§
    PòmjW  ã                  ó2   — d Z ddlmZ ddlZddlmZ d
d	„ZdS )uM  ``hermes sync`` subcommand parser â€” Skill Sync.

Cloned from ``hermes_cli/subcommands/cron.py`` â€” same injected-handler shape
(``func=cmd_sync``) so this module does not import ``main`` (cycle avoidance).

Skill Sync covers two surfaces, both under this one command for launch:

  Personal â€” your own skills, across your own devices:
    hermes sync status                 show gate/opt-in/head state
    hermes sync pull                   pull and materialize opted-in skills
    hermes sync push                   push opted-in skills
    hermes sync now                    reconcile: pull then push
    hermes sync enable <skill>         opt a skill into sync
    hermes sync disable <skill>        opt a skill out of sync
    hermes sync device [--name]        show or set this device's label

  Organisation â€” skills shared with your team:
    hermes sync propose <skill>        share a skill with your organisation

Sync is INERT unless the resolved Nous token carries the access-gate claim
AND a sync base URL is configured. The commands report that state rather than
failing opaquely.
é    )ÚannotationsN)ÚCallableÚcmd_syncr   ÚreturnÚNonec               ó  — |                       ddddt          j        ¬¦  «        }|                     d¬¦  «        }|                      dd	¬
¦  «         |                      dd¬
¦  «         |                      dd¬
¦  «         |                      dd¬
¦  «         |                      dd¬
¦  «        }|                     dd¬
¦  «         |                      dd¬
¦  «        }|                     dd¬
¦  «         |                      dd¬
¦  «        }|                     dddd¬¦  «         |                      ddd ¬!¦  «        }|                     d"d#¬
¦  «         |                     d$d%dd&¬'¦  «         |                     |¬(¦  «         dS ))zGAttach the ``sync`` subcommand (and its sub-actions) to ``subparsers``.ÚsyncuA   Skill Sync â€” sync your skills across devices and with your teamzÌSkill Sync keeps your skills with you. Personal sync moves your own skills between your devices; if you belong to an organisation, you also get its shared skills and can propose your own back to the team.zóExamples:
  hermes sync status            what is synced, and from where
  hermes sync enable my-skill   include a skill in your sync
  hermes sync now               pull, then push
  hermes sync propose my-skill  share a skill with your team
)ÚhelpÚdescriptionÚepilogÚformatter_classÚsync_command)ÚdestÚstatusz#Show what is synced, and from where)r
   Úpullz1Pull your synced skills (and your organisation's)ÚpushzPush your opted-in skillsÚnowzReconcile now: pull then pushÚenablezInclude a skill in your syncÚskillz.Skill name (frontmatter name / directory name)ÚdisablezExclude a skill from your syncÚdevicez;Show or set this device's label (shown in the sync console)z--nameÚdevice_nameNzbSet a human-friendly label for this device (e.g. "Ben's Laptop"). Omit to print the current label.)r   Údefaultr
   Úproposez$Share a skill with your organisationzëSubmit one of your skills to your organisation's shared set. If you are an admin it is added directly; otherwise it becomes a proposal for an admin to review. Accounts that aren't part of a shared organisation don't have this workflow.)r
   r   ÚnamezSkill name to sharez-mz	--messagez&Optional message describing the change)r   r
   )Úfunc)Ú
add_parserÚargparseÚRawDescriptionHelpFormatterÚadd_subparsersÚadd_argumentÚset_defaults)Ú
subparsersr   Úsync_parserÚsync_subr   r   r   r   s           úA/home/thesage/.hermes/hermes-agent/hermes_cli/subcommands/sync.pyÚbuild_sync_parserr'      sþ  € à×'Ò'ØØPð)ðMõ !Ô<ð! (ñ ô €Kð$ ×)Ò)¨~Ð)Ñ>Ô>€Hà×Ò˜Ð'LÐÑMÔMÐMØ×ÒØÐHð ñ ô ð ð ×Ò˜Ð%@ÐÑAÔAÐAØ×Ò˜Ð$CÐÑDÔDÐDà× Ò  Ð0NÐ ÑOÔO€FØ
×Ò˜Ð&VÐÑWÔWÐWà×!Ò! )Ð2RÐ!ÑSÔS€GØ×Ò˜Ð'WÐÑXÔXÐXà× Ò ØØJð !ñ ô €Fð ×ÒØØØð+ð	 ñ ô ð ð ×!Ò!ØØ3ð<ð	 "ñ 	ô 	€Gð ×Ò˜Ð&;ÐÑ<Ô<Ð<Ø×ÒØØØØ5ð	 ñ ô ð ð ×Ò (ÐÑ+Ô+Ð+Ð+Ð+ó    )r   r   r   r   )Ú__doc__Ú
__future__r   r   Útypingr   r'   © r(   r&   ú<module>r-      sb   ððð ð0 #Ð "Ð "Ð "Ð "Ð "à €€€Ø Ð Ð Ð Ð Ð ðD,ð D,ð D,ð D,ð D,ð D,r(   