@phnx-labs/agents-cli 0.1.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/README.md +283 -372
- package/dist/commands/alias.d.ts +11 -0
- package/dist/commands/alias.js +117 -0
- package/dist/commands/beta.d.ts +2 -0
- package/dist/commands/beta.js +53 -0
- package/dist/commands/cloud.d.ts +8 -1
- package/dist/commands/cloud.js +108 -22
- package/dist/commands/commands.d.ts +9 -1
- package/dist/commands/commands.js +24 -172
- package/dist/commands/daemon.d.ts +8 -1
- package/dist/commands/daemon.js +13 -5
- package/dist/commands/doctor.d.ts +15 -0
- package/dist/commands/doctor.js +132 -0
- package/dist/commands/drive.d.ts +8 -1
- package/dist/commands/drive.js +20 -3
- package/dist/commands/exec.d.ts +8 -1
- package/dist/commands/exec.js +96 -27
- package/dist/commands/factory.d.ts +19 -0
- package/dist/commands/factory.js +71 -0
- package/dist/commands/fork.d.ts +8 -1
- package/dist/commands/fork.js +11 -4
- package/dist/commands/hooks.d.ts +9 -1
- package/dist/commands/hooks.js +30 -182
- package/dist/commands/init.d.ts +15 -1
- package/dist/commands/init.js +168 -74
- package/dist/commands/mcp.d.ts +9 -1
- package/dist/commands/mcp.js +11 -7
- package/dist/commands/models.d.ts +8 -1
- package/dist/commands/models.js +16 -4
- package/dist/commands/packages.d.ts +8 -1
- package/dist/commands/packages.js +13 -7
- package/dist/commands/permissions.d.ts +9 -1
- package/dist/commands/permissions.js +3 -3
- package/dist/commands/plugins.d.ts +8 -1
- package/dist/commands/plugins.js +13 -2
- package/dist/commands/profiles.d.ts +9 -1
- package/dist/commands/profiles.js +56 -7
- package/dist/commands/prune.d.ts +22 -0
- package/dist/commands/prune.js +191 -0
- package/dist/commands/pty.d.ts +1 -1
- package/dist/commands/pty.js +2 -1
- package/dist/commands/pull.d.ts +8 -1
- package/dist/commands/pull.js +58 -128
- package/dist/commands/refresh-memory.d.ts +7 -1
- package/dist/commands/refresh-memory.js +7 -1
- package/dist/commands/repo.d.ts +15 -0
- package/dist/commands/repo.js +570 -0
- package/dist/commands/resource-view.d.ts +10 -3
- package/dist/commands/resource-view.js +18 -5
- package/dist/commands/routines.d.ts +8 -1
- package/dist/commands/routines.js +17 -4
- package/dist/commands/rules.d.ts +9 -1
- package/dist/commands/rules.js +16 -11
- package/dist/commands/secrets.d.ts +8 -1
- package/dist/commands/secrets.js +235 -63
- package/dist/commands/sessions-picker.d.ts +2 -1
- package/dist/commands/sessions-picker.js +88 -11
- package/dist/commands/sessions-tail.d.ts +19 -0
- package/dist/commands/sessions-tail.js +235 -0
- package/dist/commands/sessions.d.ts +2 -1
- package/dist/commands/sessions.js +188 -7
- package/dist/commands/skills.d.ts +9 -1
- package/dist/commands/skills.js +28 -178
- package/dist/commands/status.d.ts +7 -1
- package/dist/commands/status.js +7 -1
- package/dist/commands/subagents.d.ts +8 -1
- package/dist/commands/subagents.js +11 -1
- package/dist/commands/sync.d.ts +8 -1
- package/dist/commands/sync.js +8 -1
- package/dist/commands/teams-picker.d.ts +4 -1
- package/dist/commands/teams-picker.js +55 -3
- package/dist/commands/teams.d.ts +15 -1
- package/dist/commands/teams.js +323 -69
- package/dist/commands/usage.d.ts +11 -0
- package/dist/commands/usage.js +60 -0
- package/dist/commands/utils.d.ts +6 -1
- package/dist/commands/utils.js +6 -1
- package/dist/commands/versions.d.ts +8 -1
- package/dist/commands/versions.js +4 -3
- package/dist/commands/view.d.ts +47 -2
- package/dist/commands/view.js +317 -24
- package/dist/index.d.ts +7 -2
- package/dist/index.js +172 -34
- package/dist/lib/acp/client.d.ts +31 -0
- package/dist/lib/acp/client.js +117 -0
- package/dist/lib/acp/harnesses.d.ts +26 -0
- package/dist/lib/acp/harnesses.js +65 -0
- package/dist/lib/acp/run.d.ts +18 -0
- package/dist/lib/acp/run.js +39 -0
- package/dist/lib/agents.d.ts +74 -2
- package/dist/lib/agents.js +197 -21
- package/dist/lib/artifact-actions.d.ts +8 -4
- package/dist/lib/artifact-actions.js +8 -6
- package/dist/lib/auto-pull-worker.d.ts +11 -0
- package/dist/lib/auto-pull-worker.js +121 -0
- package/dist/lib/auto-pull.d.ts +31 -0
- package/dist/lib/auto-pull.js +97 -0
- package/dist/lib/beta.d.ts +23 -0
- package/dist/lib/beta.js +90 -0
- package/dist/lib/capabilities.d.ts +29 -0
- package/dist/lib/capabilities.js +74 -0
- package/dist/lib/cloud/codex.d.ts +9 -3
- package/dist/lib/cloud/codex.js +53 -13
- package/dist/lib/cloud/factory.d.ts +8 -3
- package/dist/lib/cloud/factory.js +19 -3
- package/dist/lib/cloud/registry.d.ts +10 -1
- package/dist/lib/cloud/registry.js +14 -3
- package/dist/lib/cloud/rush.d.ts +63 -3
- package/dist/lib/cloud/rush.js +273 -20
- package/dist/lib/cloud/store.d.ts +13 -1
- package/dist/lib/cloud/store.js +23 -4
- package/dist/lib/cloud/stream.d.ts +6 -1
- package/dist/lib/cloud/stream.js +95 -39
- package/dist/lib/cloud/types.d.ts +153 -8
- package/dist/lib/cloud/types.js +34 -2
- package/dist/lib/command-skills.d.ts +20 -0
- package/dist/lib/command-skills.js +142 -0
- package/dist/lib/commands.d.ts +22 -2
- package/dist/lib/commands.js +51 -11
- package/dist/lib/convert.d.ts +10 -1
- package/dist/lib/convert.js +9 -1
- package/dist/lib/daemon.d.ts +21 -1
- package/dist/lib/daemon.js +97 -4
- package/dist/lib/drive-sync.d.ts +18 -1
- package/dist/lib/drive-sync.js +57 -15
- package/dist/lib/exec.d.ts +23 -6
- package/dist/lib/exec.js +53 -17
- package/dist/lib/fs-walk.d.ts +2 -0
- package/dist/lib/fs-walk.js +40 -0
- package/dist/lib/fuzzy.d.ts +53 -0
- package/dist/lib/fuzzy.js +72 -0
- package/dist/lib/gemini-settings.d.ts +4 -0
- package/dist/lib/gemini-settings.js +33 -0
- package/dist/lib/git.d.ts +12 -2
- package/dist/lib/git.js +17 -6
- package/dist/lib/help.d.ts +20 -1
- package/dist/lib/help.js +45 -6
- package/dist/lib/hooks/match.d.ts +32 -0
- package/dist/lib/hooks/match.js +120 -0
- package/dist/lib/hooks.d.ts +17 -4
- package/dist/lib/hooks.js +119 -101
- package/dist/lib/manifest.d.ts +6 -1
- package/dist/lib/manifest.js +15 -4
- package/dist/lib/markdown.d.ts +0 -1
- package/dist/lib/markdown.js +6 -1
- package/dist/lib/mcp.d.ts +0 -1
- package/dist/lib/mcp.js +29 -33
- package/dist/lib/memory-compile.d.ts +13 -3
- package/dist/lib/memory-compile.js +31 -9
- package/dist/lib/memory.d.ts +14 -7
- package/dist/lib/memory.js +67 -38
- package/dist/lib/migrate.d.ts +8 -0
- package/dist/lib/migrate.js +85 -0
- package/dist/lib/models.d.ts +10 -4
- package/dist/lib/models.js +36 -15
- package/dist/lib/onepassword.d.ts +63 -0
- package/dist/lib/onepassword.js +186 -0
- package/dist/lib/paths.d.ts +8 -0
- package/dist/lib/paths.js +20 -0
- package/dist/lib/permissions.d.ts +24 -2
- package/dist/lib/permissions.js +117 -48
- package/dist/lib/picker.d.ts +10 -1
- package/dist/lib/picker.js +15 -1
- package/dist/lib/plugins.d.ts +7 -1
- package/dist/lib/plugins.js +10 -1
- package/dist/lib/profiles-presets.d.ts +10 -1
- package/dist/lib/profiles-presets.js +9 -1
- package/dist/lib/profiles.d.ts +35 -1
- package/dist/lib/profiles.js +36 -15
- package/dist/lib/pty-client.d.ts +1 -1
- package/dist/lib/pty-client.js +0 -1
- package/dist/lib/pty-server.d.ts +16 -2
- package/dist/lib/pty-server.js +92 -3
- package/dist/lib/registry.d.ts +23 -3
- package/dist/lib/registry.js +153 -8
- package/dist/lib/resources.d.ts +28 -1
- package/dist/lib/resources.js +79 -1
- package/dist/lib/rotate.d.ts +40 -13
- package/dist/lib/rotate.js +238 -40
- package/dist/lib/routines.d.ts +29 -1
- package/dist/lib/routines.js +32 -5
- package/dist/lib/runner.d.ts +14 -1
- package/dist/lib/runner.js +22 -3
- package/dist/lib/sandbox.d.ts +16 -1
- package/dist/lib/sandbox.js +39 -16
- package/dist/lib/scheduler.d.ts +8 -1
- package/dist/lib/scheduler.js +8 -1
- package/dist/lib/secrets/AgentsKeychain.app/Contents/CodeResources +0 -0
- package/dist/lib/secrets/AgentsKeychain.app/Contents/Info.plist +22 -0
- package/dist/lib/secrets/AgentsKeychain.app/Contents/MacOS/AgentsKeychain +0 -0
- package/dist/lib/secrets/AgentsKeychain.app/Contents/_CodeSignature/CodeResources +123 -0
- package/dist/lib/secrets/AgentsKeychain.app/Contents/embedded.provisionprofile +0 -0
- package/dist/lib/{secrets-bundles.d.ts → secrets/bundles.d.ts} +12 -2
- package/dist/lib/{secrets-bundles.js → secrets/bundles.js} +38 -17
- package/dist/lib/secrets/index.d.ts +55 -0
- package/dist/lib/secrets/index.js +211 -0
- package/dist/lib/secrets/profiles.d.ts +10 -0
- package/dist/lib/secrets/profiles.js +13 -0
- package/dist/lib/session/active.d.ts +43 -0
- package/dist/lib/session/active.js +392 -0
- package/dist/lib/session/artifacts.d.ts +12 -1
- package/dist/lib/session/artifacts.js +25 -5
- package/dist/lib/session/cloud.d.ts +30 -0
- package/dist/lib/session/cloud.js +121 -0
- package/dist/lib/session/db.d.ts +23 -2
- package/dist/lib/session/db.js +76 -12
- package/dist/lib/session/discover.d.ts +19 -4
- package/dist/lib/session/discover.js +344 -48
- package/dist/lib/session/parse.d.ts +28 -1
- package/dist/lib/session/parse.js +267 -9
- package/dist/lib/session/prompt.d.ts +9 -1
- package/dist/lib/session/prompt.js +17 -3
- package/dist/lib/session/render.d.ts +13 -1
- package/dist/lib/session/render.js +20 -1
- package/dist/lib/session/team-filter.d.ts +9 -1
- package/dist/lib/session/team-filter.js +11 -2
- package/dist/lib/session/types.d.ts +16 -2
- package/dist/lib/session/types.js +10 -2
- package/dist/lib/shims.d.ts +64 -5
- package/dist/lib/shims.js +309 -47
- package/dist/lib/skills.d.ts +27 -2
- package/dist/lib/skills.js +127 -65
- package/dist/lib/sqlite.d.ts +43 -0
- package/dist/lib/sqlite.js +94 -0
- package/dist/lib/state.d.ts +112 -27
- package/dist/lib/state.js +320 -148
- package/dist/lib/subagents.d.ts +9 -1
- package/dist/lib/subagents.js +70 -63
- package/dist/lib/sync-manifest.d.ts +81 -0
- package/dist/lib/sync-manifest.js +450 -0
- package/dist/lib/teams/agents.d.ts +103 -5
- package/dist/lib/teams/agents.js +414 -91
- package/dist/lib/teams/api.d.ts +26 -3
- package/dist/lib/teams/api.js +63 -3
- package/dist/lib/teams/debug.d.ts +6 -1
- package/dist/lib/teams/debug.js +6 -1
- package/dist/lib/teams/file_ops.d.ts +7 -1
- package/dist/lib/teams/file_ops.js +7 -1
- package/dist/lib/teams/index.d.ts +15 -0
- package/dist/lib/teams/index.js +14 -0
- package/dist/lib/teams/parsers.d.ts +4 -1
- package/dist/lib/teams/parsers.js +11 -1
- package/dist/lib/teams/persistence.d.ts +15 -1
- package/dist/lib/teams/persistence.js +102 -20
- package/dist/lib/teams/registry.d.ts +12 -1
- package/dist/lib/teams/registry.js +116 -33
- package/dist/lib/teams/summarizer.d.ts +15 -1
- package/dist/lib/teams/summarizer.js +14 -1
- package/dist/lib/teams/supervisor.d.ts +48 -0
- package/dist/lib/teams/supervisor.js +73 -0
- package/dist/lib/template.d.ts +8 -6
- package/dist/lib/template.js +8 -6
- package/dist/lib/types.d.ts +147 -8
- package/dist/lib/types.js +26 -3
- package/dist/lib/usage.d.ts +32 -1
- package/dist/lib/usage.js +70 -6
- package/dist/lib/version-duplicates.d.ts +21 -0
- package/dist/lib/version-duplicates.js +90 -0
- package/dist/lib/versions.d.ts +33 -4
- package/dist/lib/versions.js +376 -108
- package/package.json +32 -17
- package/scripts/postinstall.js +126 -30
- package/dist/commands/__tests__/sessions.test.d.ts +0 -2
- package/dist/commands/__tests__/sessions.test.d.ts.map +0 -1
- package/dist/commands/__tests__/sessions.test.js +0 -636
- package/dist/commands/__tests__/sessions.test.js.map +0 -1
- package/dist/commands/cloud.d.ts.map +0 -1
- package/dist/commands/cloud.js.map +0 -1
- package/dist/commands/commands.d.ts.map +0 -1
- package/dist/commands/commands.js.map +0 -1
- package/dist/commands/daemon.d.ts.map +0 -1
- package/dist/commands/daemon.js.map +0 -1
- package/dist/commands/drive.d.ts.map +0 -1
- package/dist/commands/drive.js.map +0 -1
- package/dist/commands/exec.d.ts.map +0 -1
- package/dist/commands/exec.js.map +0 -1
- package/dist/commands/fork.d.ts.map +0 -1
- package/dist/commands/fork.js.map +0 -1
- package/dist/commands/hooks.d.ts.map +0 -1
- package/dist/commands/hooks.js.map +0 -1
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/models.d.ts.map +0 -1
- package/dist/commands/models.js.map +0 -1
- package/dist/commands/packages.d.ts.map +0 -1
- package/dist/commands/packages.js.map +0 -1
- package/dist/commands/permissions.d.ts.map +0 -1
- package/dist/commands/permissions.js.map +0 -1
- package/dist/commands/plugins.d.ts.map +0 -1
- package/dist/commands/plugins.js.map +0 -1
- package/dist/commands/profiles.d.ts.map +0 -1
- package/dist/commands/profiles.js.map +0 -1
- package/dist/commands/pty.d.ts.map +0 -1
- package/dist/commands/pty.js.map +0 -1
- package/dist/commands/pull.d.ts.map +0 -1
- package/dist/commands/pull.js.map +0 -1
- package/dist/commands/push.d.ts +0 -3
- package/dist/commands/push.d.ts.map +0 -1
- package/dist/commands/push.js +0 -180
- package/dist/commands/push.js.map +0 -1
- package/dist/commands/refresh-memory.d.ts.map +0 -1
- package/dist/commands/refresh-memory.js.map +0 -1
- package/dist/commands/resource-view.d.ts.map +0 -1
- package/dist/commands/resource-view.js.map +0 -1
- package/dist/commands/routines.d.ts.map +0 -1
- package/dist/commands/routines.js.map +0 -1
- package/dist/commands/rules.d.ts.map +0 -1
- package/dist/commands/rules.js.map +0 -1
- package/dist/commands/secrets.d.ts.map +0 -1
- package/dist/commands/secrets.js.map +0 -1
- package/dist/commands/sessions-picker.d.ts.map +0 -1
- package/dist/commands/sessions-picker.js.map +0 -1
- package/dist/commands/sessions.d.ts.map +0 -1
- package/dist/commands/sessions.js.map +0 -1
- package/dist/commands/skills.d.ts.map +0 -1
- package/dist/commands/skills.js.map +0 -1
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/subagents.d.ts.map +0 -1
- package/dist/commands/subagents.js.map +0 -1
- package/dist/commands/sync.d.ts.map +0 -1
- package/dist/commands/sync.js.map +0 -1
- package/dist/commands/teams-picker.d.ts.map +0 -1
- package/dist/commands/teams-picker.js.map +0 -1
- package/dist/commands/teams.d.ts.map +0 -1
- package/dist/commands/teams.js.map +0 -1
- package/dist/commands/utils.d.ts.map +0 -1
- package/dist/commands/utils.js.map +0 -1
- package/dist/commands/versions.d.ts.map +0 -1
- package/dist/commands/versions.js.map +0 -1
- package/dist/commands/view.d.ts.map +0 -1
- package/dist/commands/view.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/__tests__/bugfixes.test.d.ts +0 -2
- package/dist/lib/__tests__/bugfixes.test.d.ts.map +0 -1
- package/dist/lib/__tests__/bugfixes.test.js +0 -192
- package/dist/lib/__tests__/bugfixes.test.js.map +0 -1
- package/dist/lib/__tests__/exec.test.d.ts +0 -2
- package/dist/lib/__tests__/exec.test.d.ts.map +0 -1
- package/dist/lib/__tests__/exec.test.js +0 -446
- package/dist/lib/__tests__/exec.test.js.map +0 -1
- package/dist/lib/__tests__/git-sync.test.d.ts +0 -2
- package/dist/lib/__tests__/git-sync.test.d.ts.map +0 -1
- package/dist/lib/__tests__/git-sync.test.js +0 -138
- package/dist/lib/__tests__/git-sync.test.js.map +0 -1
- package/dist/lib/__tests__/hooks.test.d.ts +0 -2
- package/dist/lib/__tests__/hooks.test.d.ts.map +0 -1
- package/dist/lib/__tests__/hooks.test.js +0 -203
- package/dist/lib/__tests__/hooks.test.js.map +0 -1
- package/dist/lib/__tests__/memory-compile.test.d.ts +0 -2
- package/dist/lib/__tests__/memory-compile.test.d.ts.map +0 -1
- package/dist/lib/__tests__/memory-compile.test.js +0 -95
- package/dist/lib/__tests__/memory-compile.test.js.map +0 -1
- package/dist/lib/__tests__/models.test.d.ts +0 -2
- package/dist/lib/__tests__/models.test.d.ts.map +0 -1
- package/dist/lib/__tests__/models.test.js +0 -239
- package/dist/lib/__tests__/models.test.js.map +0 -1
- package/dist/lib/__tests__/rotate.test.d.ts +0 -2
- package/dist/lib/__tests__/rotate.test.d.ts.map +0 -1
- package/dist/lib/__tests__/rotate.test.js +0 -80
- package/dist/lib/__tests__/rotate.test.js.map +0 -1
- package/dist/lib/__tests__/secrets-bundles.test.d.ts +0 -2
- package/dist/lib/__tests__/secrets-bundles.test.d.ts.map +0 -1
- package/dist/lib/__tests__/secrets-bundles.test.js +0 -104
- package/dist/lib/__tests__/secrets-bundles.test.js.map +0 -1
- package/dist/lib/__tests__/secrets.test.d.ts +0 -2
- package/dist/lib/__tests__/secrets.test.d.ts.map +0 -1
- package/dist/lib/__tests__/secrets.test.js +0 -90
- package/dist/lib/__tests__/secrets.test.js.map +0 -1
- package/dist/lib/__tests__/shims.test.d.ts +0 -2
- package/dist/lib/__tests__/shims.test.d.ts.map +0 -1
- package/dist/lib/__tests__/shims.test.js +0 -39
- package/dist/lib/__tests__/shims.test.js.map +0 -1
- package/dist/lib/__tests__/usage.test.d.ts +0 -2
- package/dist/lib/__tests__/usage.test.d.ts.map +0 -1
- package/dist/lib/__tests__/usage.test.js +0 -220
- package/dist/lib/__tests__/usage.test.js.map +0 -1
- package/dist/lib/__tests__/versions.test.d.ts +0 -2
- package/dist/lib/__tests__/versions.test.d.ts.map +0 -1
- package/dist/lib/__tests__/versions.test.js +0 -63
- package/dist/lib/__tests__/versions.test.js.map +0 -1
- package/dist/lib/agents.d.ts.map +0 -1
- package/dist/lib/agents.js.map +0 -1
- package/dist/lib/artifact-actions.d.ts.map +0 -1
- package/dist/lib/artifact-actions.js.map +0 -1
- package/dist/lib/cloud/codex.d.ts.map +0 -1
- package/dist/lib/cloud/codex.js.map +0 -1
- package/dist/lib/cloud/factory.d.ts.map +0 -1
- package/dist/lib/cloud/factory.js.map +0 -1
- package/dist/lib/cloud/registry.d.ts.map +0 -1
- package/dist/lib/cloud/registry.js.map +0 -1
- package/dist/lib/cloud/rush.d.ts.map +0 -1
- package/dist/lib/cloud/rush.js.map +0 -1
- package/dist/lib/cloud/store.d.ts.map +0 -1
- package/dist/lib/cloud/store.js.map +0 -1
- package/dist/lib/cloud/stream.d.ts.map +0 -1
- package/dist/lib/cloud/stream.js.map +0 -1
- package/dist/lib/cloud/types.d.ts.map +0 -1
- package/dist/lib/cloud/types.js.map +0 -1
- package/dist/lib/commands.d.ts.map +0 -1
- package/dist/lib/commands.js.map +0 -1
- package/dist/lib/convert.d.ts.map +0 -1
- package/dist/lib/convert.js.map +0 -1
- package/dist/lib/daemon.d.ts.map +0 -1
- package/dist/lib/daemon.js.map +0 -1
- package/dist/lib/drive-sync.d.ts.map +0 -1
- package/dist/lib/drive-sync.js.map +0 -1
- package/dist/lib/exec.d.ts.map +0 -1
- package/dist/lib/exec.js.map +0 -1
- package/dist/lib/factory.d.ts +0 -57
- package/dist/lib/factory.d.ts.map +0 -1
- package/dist/lib/factory.js +0 -110
- package/dist/lib/factory.js.map +0 -1
- package/dist/lib/git.d.ts.map +0 -1
- package/dist/lib/git.js.map +0 -1
- package/dist/lib/help.d.ts.map +0 -1
- package/dist/lib/help.js.map +0 -1
- package/dist/lib/hooks.d.ts.map +0 -1
- package/dist/lib/hooks.js.map +0 -1
- package/dist/lib/manifest.d.ts.map +0 -1
- package/dist/lib/manifest.js.map +0 -1
- package/dist/lib/markdown.d.ts.map +0 -1
- package/dist/lib/markdown.js.map +0 -1
- package/dist/lib/mcp.d.ts.map +0 -1
- package/dist/lib/mcp.js.map +0 -1
- package/dist/lib/memory-compile.d.ts.map +0 -1
- package/dist/lib/memory-compile.js.map +0 -1
- package/dist/lib/memory.d.ts.map +0 -1
- package/dist/lib/memory.js.map +0 -1
- package/dist/lib/models.d.ts.map +0 -1
- package/dist/lib/models.js.map +0 -1
- package/dist/lib/permissions.d.ts.map +0 -1
- package/dist/lib/permissions.js.map +0 -1
- package/dist/lib/picker.d.ts.map +0 -1
- package/dist/lib/picker.js.map +0 -1
- package/dist/lib/plugins.d.ts.map +0 -1
- package/dist/lib/plugins.js.map +0 -1
- package/dist/lib/profiles-keychain.d.ts +0 -3
- package/dist/lib/profiles-keychain.d.ts.map +0 -1
- package/dist/lib/profiles-keychain.js +0 -10
- package/dist/lib/profiles-keychain.js.map +0 -1
- package/dist/lib/profiles-presets.d.ts.map +0 -1
- package/dist/lib/profiles-presets.js.map +0 -1
- package/dist/lib/profiles.d.ts.map +0 -1
- package/dist/lib/profiles.js.map +0 -1
- package/dist/lib/pty-client.d.ts.map +0 -1
- package/dist/lib/pty-client.js.map +0 -1
- package/dist/lib/pty-server.d.ts.map +0 -1
- package/dist/lib/pty-server.js.map +0 -1
- package/dist/lib/registry.d.ts.map +0 -1
- package/dist/lib/registry.js.map +0 -1
- package/dist/lib/resources.d.ts.map +0 -1
- package/dist/lib/resources.js.map +0 -1
- package/dist/lib/rotate.d.ts.map +0 -1
- package/dist/lib/rotate.js.map +0 -1
- package/dist/lib/routines.d.ts.map +0 -1
- package/dist/lib/routines.js.map +0 -1
- package/dist/lib/runner.d.ts.map +0 -1
- package/dist/lib/runner.js.map +0 -1
- package/dist/lib/sandbox.d.ts.map +0 -1
- package/dist/lib/sandbox.js.map +0 -1
- package/dist/lib/scheduler.d.ts.map +0 -1
- package/dist/lib/scheduler.js.map +0 -1
- package/dist/lib/secrets-bundles.d.ts.map +0 -1
- package/dist/lib/secrets-bundles.js.map +0 -1
- package/dist/lib/secrets.d.ts +0 -27
- package/dist/lib/secrets.d.ts.map +0 -1
- package/dist/lib/secrets.js +0 -127
- package/dist/lib/secrets.js.map +0 -1
- package/dist/lib/session/__tests__/db.test.d.ts +0 -2
- package/dist/lib/session/__tests__/db.test.d.ts.map +0 -1
- package/dist/lib/session/__tests__/db.test.js +0 -54
- package/dist/lib/session/__tests__/db.test.js.map +0 -1
- package/dist/lib/session/__tests__/discover.test.d.ts +0 -2
- package/dist/lib/session/__tests__/discover.test.d.ts.map +0 -1
- package/dist/lib/session/__tests__/discover.test.js +0 -63
- package/dist/lib/session/__tests__/discover.test.js.map +0 -1
- package/dist/lib/session/__tests__/prompt.test.d.ts +0 -2
- package/dist/lib/session/__tests__/prompt.test.d.ts.map +0 -1
- package/dist/lib/session/__tests__/prompt.test.js +0 -44
- package/dist/lib/session/__tests__/prompt.test.js.map +0 -1
- package/dist/lib/session/__tests__/render.test.d.ts +0 -2
- package/dist/lib/session/__tests__/render.test.d.ts.map +0 -1
- package/dist/lib/session/__tests__/render.test.js +0 -602
- package/dist/lib/session/__tests__/render.test.js.map +0 -1
- package/dist/lib/session/artifacts.d.ts.map +0 -1
- package/dist/lib/session/artifacts.js.map +0 -1
- package/dist/lib/session/db.d.ts.map +0 -1
- package/dist/lib/session/db.js.map +0 -1
- package/dist/lib/session/discover.d.ts.map +0 -1
- package/dist/lib/session/discover.js.map +0 -1
- package/dist/lib/session/parse.d.ts.map +0 -1
- package/dist/lib/session/parse.js.map +0 -1
- package/dist/lib/session/prompt.d.ts.map +0 -1
- package/dist/lib/session/prompt.js.map +0 -1
- package/dist/lib/session/prompt.test.d.ts +0 -2
- package/dist/lib/session/prompt.test.d.ts.map +0 -1
- package/dist/lib/session/prompt.test.js +0 -57
- package/dist/lib/session/prompt.test.js.map +0 -1
- package/dist/lib/session/render.d.ts.map +0 -1
- package/dist/lib/session/render.js.map +0 -1
- package/dist/lib/session/team-filter.d.ts.map +0 -1
- package/dist/lib/session/team-filter.js.map +0 -1
- package/dist/lib/session/team-filter.test.d.ts +0 -2
- package/dist/lib/session/team-filter.test.d.ts.map +0 -1
- package/dist/lib/session/team-filter.test.js +0 -157
- package/dist/lib/session/team-filter.test.js.map +0 -1
- package/dist/lib/session/types.d.ts.map +0 -1
- package/dist/lib/session/types.js.map +0 -1
- package/dist/lib/shims.d.ts.map +0 -1
- package/dist/lib/shims.js.map +0 -1
- package/dist/lib/skills.d.ts.map +0 -1
- package/dist/lib/skills.js.map +0 -1
- package/dist/lib/state.d.ts.map +0 -1
- package/dist/lib/state.js.map +0 -1
- package/dist/lib/subagents.d.ts.map +0 -1
- package/dist/lib/subagents.js.map +0 -1
- package/dist/lib/teams/agents.d.ts.map +0 -1
- package/dist/lib/teams/agents.js.map +0 -1
- package/dist/lib/teams/api.d.ts.map +0 -1
- package/dist/lib/teams/api.js.map +0 -1
- package/dist/lib/teams/cloud.d.ts +0 -11
- package/dist/lib/teams/cloud.d.ts.map +0 -1
- package/dist/lib/teams/cloud.js +0 -169
- package/dist/lib/teams/cloud.js.map +0 -1
- package/dist/lib/teams/debug.d.ts.map +0 -1
- package/dist/lib/teams/debug.js.map +0 -1
- package/dist/lib/teams/file_ops.d.ts.map +0 -1
- package/dist/lib/teams/file_ops.js.map +0 -1
- package/dist/lib/teams/parsers.d.ts.map +0 -1
- package/dist/lib/teams/parsers.js.map +0 -1
- package/dist/lib/teams/persistence.d.ts.map +0 -1
- package/dist/lib/teams/persistence.js.map +0 -1
- package/dist/lib/teams/ralph.d.ts +0 -8
- package/dist/lib/teams/ralph.d.ts.map +0 -1
- package/dist/lib/teams/ralph.js +0 -59
- package/dist/lib/teams/ralph.js.map +0 -1
- package/dist/lib/teams/registry.d.ts.map +0 -1
- package/dist/lib/teams/registry.js.map +0 -1
- package/dist/lib/teams/summarizer.d.ts.map +0 -1
- package/dist/lib/teams/summarizer.js.map +0 -1
- package/dist/lib/template.d.ts.map +0 -1
- package/dist/lib/template.js.map +0 -1
- package/dist/lib/types.d.ts.map +0 -1
- package/dist/lib/types.js.map +0 -1
- package/dist/lib/usage.d.ts.map +0 -1
- package/dist/lib/usage.js.map +0 -1
- package/dist/lib/versions.d.ts.map +0 -1
- package/dist/lib/versions.js.map +0 -1
- package/scripts/rebuild-sqlite.sh +0 -46
package/dist/commands/pull.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config pull command.
|
|
3
|
+
*
|
|
4
|
+
* Registers the `agents pull` command which clones or updates the
|
|
5
|
+
* system ~/.agents-system/ git repo and syncs CLI versions, MCP servers,
|
|
6
|
+
* resources, and hooks to installed agent versions.
|
|
7
|
+
*/
|
|
1
8
|
import chalk from 'chalk';
|
|
2
9
|
import ora from 'ora';
|
|
3
10
|
import { AGENTS, ALL_AGENT_IDS, HOOKS_CAPABLE_AGENTS, MCP_CAPABLE_AGENTS, getAllCliStates, registerMcpToTargets, isAgentName, resolveAgentName, agentLabel, } from '../lib/agents.js';
|
|
4
11
|
import { readManifest, MANIFEST_FILENAME, } from '../lib/manifest.js';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { isGitRepo, cloneIntoExisting, pullRepo, pullFromUpstream, parseSource, getGitHubUsername, checkGitHubRepoExists, hasUpstreamRemote, getUpstreamUrl, } from '../lib/git.js';
|
|
12
|
+
import { getUserAgentsDir, ensureAgentsDir, getEnabledExtraRepos, } from '../lib/state.js';
|
|
13
|
+
import { isGitRepo, pullRepo, isSystemRepoOrigin, } from '../lib/git.js';
|
|
8
14
|
import * as fs from 'fs';
|
|
9
15
|
import * as path from 'path';
|
|
10
16
|
import { installVersion, listInstalledVersions, getGlobalDefault, setGlobalDefault, getVersionHomePath, syncResourcesToVersion, getAvailableResources, getActuallySyncedResources, getNewResources, hasNewResources, promptNewResourceSelection, promptResourceSelection, resolveConfiguredAgentTargets, } from '../lib/versions.js';
|
|
@@ -14,7 +20,7 @@ import { select } from '@inquirer/prompts';
|
|
|
14
20
|
import { isInteractiveTerminal, isPromptCancelled } from './utils.js';
|
|
15
21
|
/**
|
|
16
22
|
* Old repo layout stored promptcuts under claude/promptcuts.yaml (agent-scoped).
|
|
17
|
-
* The new layout is ~/.agents/promptcuts.yaml at the repo root — the hook
|
|
23
|
+
* The new layout is ~/.agents-system/promptcuts.yaml at the repo root — the hook
|
|
18
24
|
* reads from a fixed path so it survives version upgrades. If the root file
|
|
19
25
|
* doesn't exist yet but an agent-scoped one does, hoist the first one found.
|
|
20
26
|
*/
|
|
@@ -37,24 +43,18 @@ function migratePromptcutsToRoot(agentsDir) {
|
|
|
37
43
|
}
|
|
38
44
|
}
|
|
39
45
|
}
|
|
46
|
+
/** Register the `agents pull` command. */
|
|
40
47
|
export function registerPullCommand(program) {
|
|
41
48
|
program
|
|
42
|
-
.command('pull [
|
|
43
|
-
.description('
|
|
49
|
+
.command('pull [agent]')
|
|
50
|
+
.description('Pull your user repo at ~/.agents/ and refresh installed agent versions.')
|
|
44
51
|
.option('-y, --yes', 'Auto-sync all resources without prompting')
|
|
45
52
|
.option('--skip-clis', 'Pull config changes but do not install or upgrade agent CLIs')
|
|
46
|
-
.option('--upstream', 'Pull from the upstream remote instead of origin (for forked repos)')
|
|
47
53
|
.addHelpText('after', `
|
|
48
54
|
Examples:
|
|
49
|
-
# First time: clone
|
|
50
|
-
agents pull gh:yourname/.agents
|
|
51
|
-
|
|
52
|
-
# Update your config from origin (GitHub)
|
|
55
|
+
# First time: clone the system repo into ~/.agents-system/
|
|
53
56
|
agents pull
|
|
54
57
|
|
|
55
|
-
# Pull updates from the upstream default repo (after you've forked)
|
|
56
|
-
agents pull --upstream
|
|
57
|
-
|
|
58
58
|
# Sync only one agent's config
|
|
59
59
|
agents pull claude
|
|
60
60
|
|
|
@@ -62,9 +62,8 @@ Examples:
|
|
|
62
62
|
agents pull -y
|
|
63
63
|
|
|
64
64
|
When to use:
|
|
65
|
-
- Initial setup: clone
|
|
66
|
-
- Daily sync: pull
|
|
67
|
-
- Upstream updates: get new skills, commands, or MCP servers from the default repo
|
|
65
|
+
- Initial setup: clone the system repo to a new machine
|
|
66
|
+
- Daily sync: pull the latest system skills, commands, or MCP servers
|
|
68
67
|
- Per-agent: sync just one agent's config without touching others
|
|
69
68
|
|
|
70
69
|
What it syncs:
|
|
@@ -76,102 +75,44 @@ What it syncs:
|
|
|
76
75
|
|
|
77
76
|
Skip CLI installs with --skip-clis when you only want config updates, not version changes.
|
|
78
77
|
`)
|
|
79
|
-
.action(async (arg1,
|
|
78
|
+
.action(async (arg1, options) => {
|
|
79
|
+
// Deprecation banner — `agents pull` is on its way out. agents-cli now
|
|
80
|
+
// auto-syncs the system repo in the background and surfaces upstream
|
|
81
|
+
// changes for user/extra repos as one-line notices. Repo lifecycle is
|
|
82
|
+
// managed under `agents repo`. We keep this command functional today
|
|
83
|
+
// because `agents init` still invokes it for first-time setup; once
|
|
84
|
+
// init is refactored to call the bootstrap helpers directly, this
|
|
85
|
+
// command will hard-error like `agents memory` does.
|
|
86
|
+
if (!options.yes && process.argv[2] === 'pull') {
|
|
87
|
+
process.stderr.write('agents-cli: "agents pull" is deprecated.\n' +
|
|
88
|
+
' First-time setup: agents init\n' +
|
|
89
|
+
' Force a sync now: agents repo pull\n' +
|
|
90
|
+
' Push your repo: agents repo push\n\n');
|
|
91
|
+
}
|
|
80
92
|
const skipPrompts = options.yes || !isInteractiveTerminal();
|
|
81
|
-
// Parse source and agent filter from positional args
|
|
82
|
-
let targetSource;
|
|
83
93
|
let agentFilter;
|
|
84
94
|
if (arg1) {
|
|
85
95
|
if (isAgentName(arg1)) {
|
|
86
|
-
// agents pull claude
|
|
87
96
|
agentFilter = resolveAgentName(arg1);
|
|
88
97
|
}
|
|
89
98
|
else {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
if (arg2 && isAgentName(arg2)) {
|
|
93
|
-
agentFilter = resolveAgentName(arg2);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
const agentsDir = getAgentsDir();
|
|
98
|
-
ensureAgentsDir();
|
|
99
|
-
// Handle --upstream: pull from upstream remote
|
|
100
|
-
if (options.upstream) {
|
|
101
|
-
if (!isGitRepo(agentsDir)) {
|
|
102
|
-
console.log(chalk.red('~/.agents/ is not a git repository.'));
|
|
103
|
-
console.log(chalk.gray('\nInitialize first: agents pull'));
|
|
99
|
+
console.log(chalk.red(`Invalid agent: ${arg1}`));
|
|
100
|
+
console.log(chalk.gray(`Available: ${ALL_AGENT_IDS.join(', ')}`));
|
|
104
101
|
return;
|
|
105
102
|
}
|
|
106
|
-
if (!await hasUpstreamRemote(agentsDir)) {
|
|
107
|
-
console.log(chalk.red('No upstream remote configured.'));
|
|
108
|
-
console.log(chalk.gray('\nIf you forked from the system repo, run: agents fork'));
|
|
109
|
-
console.log(chalk.gray('This will set up the upstream remote automatically.'));
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
// Migration nudge: one-time notice if upstream still points at the legacy personal repo.
|
|
113
|
-
const legacySlug = systemRepoSlug(LEGACY_SYSTEM_REPO).toLowerCase();
|
|
114
|
-
const currentSlug = systemRepoSlug(DEFAULT_SYSTEM_REPO);
|
|
115
|
-
const nudgeMarker = path.join(agentsDir, '.migration-nudge-shown');
|
|
116
|
-
const upstreamUrl = await getUpstreamUrl(agentsDir);
|
|
117
|
-
if (upstreamUrl && upstreamUrl.toLowerCase().includes(legacySlug) && !fs.existsSync(nudgeMarker)) {
|
|
118
|
-
console.log(chalk.yellow(`\nYour upstream points at a personal repo (${legacySlug}).`));
|
|
119
|
-
console.log(chalk.yellow(`The curated upstream is now ${currentSlug}.`));
|
|
120
|
-
console.log(chalk.gray('To switch:'));
|
|
121
|
-
console.log(chalk.cyan(` cd ~/.agents && git remote set-url upstream git@github.com:${currentSlug}.git\n`));
|
|
122
|
-
try {
|
|
123
|
-
fs.writeFileSync(nudgeMarker, new Date().toISOString() + '\n');
|
|
124
|
-
}
|
|
125
|
-
catch { /* best-effort */ }
|
|
126
|
-
}
|
|
127
|
-
const spinner = ora('Pulling from upstream...').start();
|
|
128
|
-
const result = await pullFromUpstream(agentsDir);
|
|
129
|
-
if (!result.success) {
|
|
130
|
-
spinner.fail(`Failed: ${result.error}`);
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
spinner.succeed(`Merged upstream changes (${result.commit})`);
|
|
134
|
-
// Continue with the rest of the sync (CLI versions, MCP, resources)
|
|
135
|
-
// Skip the source determination since we already pulled
|
|
136
|
-
targetSource = 'existing';
|
|
137
|
-
}
|
|
138
|
-
// Determine source
|
|
139
|
-
const meta = readMeta();
|
|
140
|
-
if (!targetSource) {
|
|
141
|
-
// Check if ~/.agents/ is already a git repo
|
|
142
|
-
if (isGitRepo(agentsDir)) {
|
|
143
|
-
targetSource = 'existing';
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
// Try to infer from GitHub username
|
|
147
|
-
const spinner = ora('Checking GitHub...').start();
|
|
148
|
-
const username = await getGitHubUsername();
|
|
149
|
-
if (username) {
|
|
150
|
-
const repoExists = await checkGitHubRepoExists(username, '.agents');
|
|
151
|
-
if (repoExists) {
|
|
152
|
-
targetSource = `gh:${username}/.agents`;
|
|
153
|
-
spinner.succeed(`Found ${username}/.agents`);
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
spinner.info(`No .agents repo found for ${username}`);
|
|
157
|
-
console.log(chalk.gray('\nTo create one:'));
|
|
158
|
-
console.log(chalk.cyan(' gh repo create .agents --public'));
|
|
159
|
-
console.log(chalk.gray('\nThen run: agents pull'));
|
|
160
|
-
return;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
// Fall back to system default repo
|
|
165
|
-
targetSource = DEFAULT_SYSTEM_REPO;
|
|
166
|
-
spinner.info(`Using default: ${DEFAULT_SYSTEM_REPO}`);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
103
|
}
|
|
104
|
+
const agentsDir = getUserAgentsDir();
|
|
105
|
+
ensureAgentsDir();
|
|
170
106
|
const spinner = ora('Syncing...').start();
|
|
171
107
|
try {
|
|
172
|
-
let commit;
|
|
173
|
-
if (
|
|
174
|
-
//
|
|
108
|
+
let commit = '';
|
|
109
|
+
if (isGitRepo(agentsDir)) {
|
|
110
|
+
// Don't pull if the remote is the system repo — that's a misconfiguration
|
|
111
|
+
if (await isSystemRepoOrigin(agentsDir)) {
|
|
112
|
+
spinner.fail('~/.agents/ is pointing at the system repo. Use a personal repo instead.');
|
|
113
|
+
console.log(chalk.gray('\nCreate your own repo: agents repo init'));
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
175
116
|
spinner.text = 'Pulling updates...';
|
|
176
117
|
const result = await pullRepo(agentsDir);
|
|
177
118
|
if (!result.success) {
|
|
@@ -182,38 +123,28 @@ Skip CLI installs with --skip-clis when you only want config updates, not versio
|
|
|
182
123
|
spinner.succeed(`Updated to ${commit}`);
|
|
183
124
|
}
|
|
184
125
|
else {
|
|
185
|
-
//
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
126
|
+
// ~/.agents/ is not a git repo yet — skip git pull, proceed with local resource sync
|
|
127
|
+
spinner.succeed('Using local ~/.agents/ (no remote configured)');
|
|
128
|
+
}
|
|
129
|
+
// Pull extra DotAgent repos before resource sync so any new skills /
|
|
130
|
+
// commands they ship land in the version homes on this same run.
|
|
131
|
+
const extraRepos = getEnabledExtraRepos();
|
|
132
|
+
if (extraRepos.length > 0) {
|
|
133
|
+
console.log(chalk.bold(`\nExtra repos (${extraRepos.length}):\n`));
|
|
134
|
+
for (const { alias, dir } of extraRepos) {
|
|
135
|
+
const extraSpinner = ora(`Pulling ${alias}...`).start();
|
|
136
|
+
const result = await pullRepo(dir);
|
|
137
|
+
if (result.success) {
|
|
138
|
+
extraSpinner.succeed(`${alias} -> ${result.commit}`);
|
|
194
139
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
// Clone into existing ~/.agents/
|
|
200
|
-
spinner.text = `Cloning ${targetSource}...`;
|
|
201
|
-
const result = await cloneIntoExisting(targetSource, agentsDir);
|
|
202
|
-
if (!result.success) {
|
|
203
|
-
spinner.fail(`Clone failed: ${result.error}`);
|
|
204
|
-
return;
|
|
140
|
+
else {
|
|
141
|
+
extraSpinner.warn(`${alias}: ${result.error}`);
|
|
205
142
|
}
|
|
206
|
-
commit = result.commit;
|
|
207
|
-
spinner.succeed(`Initialized from ${targetSource}`);
|
|
208
143
|
}
|
|
209
|
-
// Save source to meta
|
|
210
|
-
updateMeta({
|
|
211
|
-
source: parsed.url,
|
|
212
|
-
});
|
|
213
144
|
}
|
|
214
145
|
// One-time migration: promptcuts.yaml moved from agent-scoped
|
|
215
146
|
// (e.g. claude/promptcuts.yaml) to repo root. We move it so the
|
|
216
|
-
// hook at ~/.agents/hooks/ can always find it at a fixed path.
|
|
147
|
+
// hook at ~/.agents-system/hooks/ can always find it at a fixed path.
|
|
217
148
|
migratePromptcutsToRoot(agentsDir);
|
|
218
149
|
// Read manifest for CLI versions and MCP config
|
|
219
150
|
const manifest = readManifest(agentsDir);
|
|
@@ -445,4 +376,3 @@ Skip CLI installs with --skip-clis when you only want config updates, not versio
|
|
|
445
376
|
}
|
|
446
377
|
});
|
|
447
378
|
}
|
|
448
|
-
//# sourceMappingURL=pull.js.map
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal memory refresh command.
|
|
3
|
+
*
|
|
4
|
+
* Registers the hidden `agents refresh-memory` command invoked by
|
|
5
|
+
* shims for agents that do not natively resolve @-imports in their
|
|
6
|
+
* memory file. Recompiles memory only when source files have changed.
|
|
7
|
+
*/
|
|
1
8
|
import { Command } from 'commander';
|
|
2
9
|
/**
|
|
3
10
|
* Hidden command invoked by shims for agents that don't natively resolve
|
|
@@ -6,4 +13,3 @@ import { Command } from 'commander';
|
|
|
6
13
|
* sync. Typical cost: 10-20ms when memory is fresh.
|
|
7
14
|
*/
|
|
8
15
|
export declare function registerRefreshMemoryCommand(program: Command): void;
|
|
9
|
-
//# sourceMappingURL=refresh-memory.d.ts.map
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal memory refresh command.
|
|
3
|
+
*
|
|
4
|
+
* Registers the hidden `agents refresh-memory` command invoked by
|
|
5
|
+
* shims for agents that do not natively resolve @-imports in their
|
|
6
|
+
* memory file. Recompiles memory only when source files have changed.
|
|
7
|
+
*/
|
|
1
8
|
import chalk from 'chalk';
|
|
2
9
|
import { AGENTS } from '../lib/agents.js';
|
|
3
10
|
import { isVersionInstalled } from '../lib/versions.js';
|
|
@@ -42,4 +49,3 @@ export function registerRefreshMemoryCommand(program) {
|
|
|
42
49
|
}
|
|
43
50
|
});
|
|
44
51
|
}
|
|
45
|
-
//# sourceMappingURL=refresh-memory.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extra DotAgent repo management.
|
|
3
|
+
*
|
|
4
|
+
* Registers `agents repo add|init|list|remove|enable|disable` which manage
|
|
5
|
+
* additional DotAgent repos alongside the primary ~/.agents-system/ repo so
|
|
6
|
+
* private, work, or team skills can ship separately from public ones.
|
|
7
|
+
*
|
|
8
|
+
* Extras are user-level config: managed clones live at ~/.agents-<alias>/ as
|
|
9
|
+
* peer dirs to ~/.agents/, and user-owned repos may live anywhere. All extras
|
|
10
|
+
* are registered in meta.extraRepos. Sync functions merge their resources into
|
|
11
|
+
* agent version homes after the user repo's (user-wins on name collisions).
|
|
12
|
+
*/
|
|
13
|
+
import type { Command } from 'commander';
|
|
14
|
+
/** Register the `agents repo` command tree. */
|
|
15
|
+
export declare function registerRepoCommands(program: Command): void;
|