@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/lib/cloud/codex.js
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Codex Cloud provider -- wraps the `codex` CLI for cloud dispatch.
|
|
3
|
+
*
|
|
4
|
+
* Delegates to `codex cloud exec/status/list` subcommands, parsing their
|
|
5
|
+
* JSON or text output into the unified CloudTask format. Streaming is
|
|
6
|
+
* emulated via polling since Codex Cloud lacks an SSE endpoint.
|
|
7
|
+
*/
|
|
1
8
|
import { spawn, execFileSync } from 'child_process';
|
|
2
9
|
import * as fs from 'fs';
|
|
3
10
|
import * as path from 'path';
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
11
|
+
import { resolveDispatchRepos } from './types.js';
|
|
12
|
+
import { getShimsDir } from '../state.js';
|
|
13
|
+
const SHIMS_DIR = getShimsDir();
|
|
14
|
+
/** Map a Codex Cloud status string to the canonical CloudTaskStatus enum. */
|
|
7
15
|
function mapStatus(s) {
|
|
8
16
|
const lower = s.toLowerCase();
|
|
9
17
|
if (lower.includes('queued') || lower.includes('pending'))
|
|
@@ -18,6 +26,7 @@ function mapStatus(s) {
|
|
|
18
26
|
return 'cancelled';
|
|
19
27
|
return 'running';
|
|
20
28
|
}
|
|
29
|
+
/** Locate the codex binary, checking agents-cli shims first then PATH. */
|
|
21
30
|
function findCodexBinary() {
|
|
22
31
|
// Check agents-cli shims first
|
|
23
32
|
const shim = path.join(SHIMS_DIR, 'codex');
|
|
@@ -31,9 +40,11 @@ function findCodexBinary() {
|
|
|
31
40
|
return null;
|
|
32
41
|
}
|
|
33
42
|
}
|
|
43
|
+
/** Check whether the codex CLI is installed and reachable. */
|
|
34
44
|
function codexAvailable() {
|
|
35
45
|
return findCodexBinary() !== null;
|
|
36
46
|
}
|
|
47
|
+
/** Spawn the codex CLI with the given arguments and capture its output. */
|
|
37
48
|
function runCodex(args) {
|
|
38
49
|
const bin = findCodexBinary();
|
|
39
50
|
if (!bin)
|
|
@@ -49,6 +60,7 @@ function runCodex(args) {
|
|
|
49
60
|
});
|
|
50
61
|
});
|
|
51
62
|
}
|
|
63
|
+
/** Best-effort parse of codex CLI output into task fields (tries JSON, then key:value lines). */
|
|
52
64
|
function parseTaskFromText(text) {
|
|
53
65
|
// Codex cloud list/status output varies. Try JSON first, then parse text.
|
|
54
66
|
try {
|
|
@@ -77,13 +89,37 @@ export class CodexCloudProvider {
|
|
|
77
89
|
constructor(config) {
|
|
78
90
|
this.defaultEnv = config?.env;
|
|
79
91
|
}
|
|
80
|
-
|
|
81
|
-
|
|
92
|
+
capabilities() {
|
|
93
|
+
const available = codexAvailable();
|
|
94
|
+
return {
|
|
95
|
+
available,
|
|
96
|
+
dispatch: available,
|
|
97
|
+
status: available,
|
|
98
|
+
list: available,
|
|
99
|
+
stream: available,
|
|
100
|
+
cancel: false,
|
|
101
|
+
message: false,
|
|
102
|
+
multiRepo: false,
|
|
103
|
+
skills: false,
|
|
104
|
+
images: false,
|
|
105
|
+
};
|
|
82
106
|
}
|
|
83
107
|
async dispatch(options) {
|
|
84
108
|
const env = options.providerOptions?.env ?? this.defaultEnv;
|
|
85
109
|
if (!env) {
|
|
86
|
-
throw new Error('Codex Cloud requires --env <id>. Set a default in ~/.agents/agents.yaml under cloud.providers.codex.env.');
|
|
110
|
+
throw new Error('Codex Cloud requires --env <id>. Set a default in ~/.agents-system/agents.yaml under cloud.providers.codex.env.');
|
|
111
|
+
}
|
|
112
|
+
// Codex envs bundle their own repo list — the repos a task can touch are
|
|
113
|
+
// fixed at env-creation time, not per-dispatch. Passing 2+ repos here is
|
|
114
|
+
// almost always a misconfiguration: either the user meant to dispatch to
|
|
115
|
+
// Rush (which does support multi-repo), or they need to create/pick a
|
|
116
|
+
// Codex env that already contains those repos. Fail loudly rather than
|
|
117
|
+
// silently ignore the extras.
|
|
118
|
+
const repos = resolveDispatchRepos(options);
|
|
119
|
+
if (repos.length > 1) {
|
|
120
|
+
throw new Error(`Codex Cloud does not support multi-repo dispatch. Got ${repos.length} repos (${repos.join(', ')}). ` +
|
|
121
|
+
`Codex envs bundle repos at the env layer — either configure a Codex env that includes all of these repos, ` +
|
|
122
|
+
`or switch to --provider rush (which clones each repo into /workspace/<owner>/<name>/).`);
|
|
87
123
|
}
|
|
88
124
|
const args = ['cloud', 'exec', '--env', env];
|
|
89
125
|
if (options.branch)
|
|
@@ -102,6 +138,8 @@ export class CodexCloudProvider {
|
|
|
102
138
|
status: 'queued',
|
|
103
139
|
agent: 'codex',
|
|
104
140
|
prompt: options.prompt,
|
|
141
|
+
repo: repos[0],
|
|
142
|
+
repos: repos.length > 0 ? repos : undefined,
|
|
105
143
|
branch: options.branch,
|
|
106
144
|
createdAt: now,
|
|
107
145
|
updatedAt: now,
|
|
@@ -164,11 +202,13 @@ export class CodexCloudProvider {
|
|
|
164
202
|
const task = await this.status(taskId);
|
|
165
203
|
if (task.status !== lastStatus) {
|
|
166
204
|
lastStatus = task.status;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
205
|
+
const ts = new Date().toISOString();
|
|
206
|
+
if (terminalStatuses.has(task.status)) {
|
|
207
|
+
yield { type: 'done', status: task.status, summary: task.summary, timestamp: ts };
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
yield { type: 'status', status: task.status, timestamp: ts };
|
|
211
|
+
}
|
|
172
212
|
}
|
|
173
213
|
if (terminalStatuses.has(task.status))
|
|
174
214
|
break;
|
|
@@ -176,7 +216,7 @@ export class CodexCloudProvider {
|
|
|
176
216
|
catch (err) {
|
|
177
217
|
yield {
|
|
178
218
|
type: 'error',
|
|
179
|
-
|
|
219
|
+
message: err instanceof Error ? err.message : String(err),
|
|
180
220
|
timestamp: new Date().toISOString(),
|
|
181
221
|
};
|
|
182
222
|
break;
|
|
@@ -193,6 +233,7 @@ export class CodexCloudProvider {
|
|
|
193
233
|
throw new Error('Follow-up messages are not supported for Codex Cloud tasks.');
|
|
194
234
|
}
|
|
195
235
|
}
|
|
236
|
+
/** Extract a task ID from codex CLI output (JSON field, key:value line, or UUID pattern). */
|
|
196
237
|
function extractTaskId(output) {
|
|
197
238
|
// Try JSON first
|
|
198
239
|
try {
|
|
@@ -207,4 +248,3 @@ function extractTaskId(output) {
|
|
|
207
248
|
return match?.[1];
|
|
208
249
|
}
|
|
209
250
|
}
|
|
210
|
-
//# sourceMappingURL=codex.js.map
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Factory/Droid cloud provider -- stub for Phase 2.
|
|
3
|
+
*
|
|
4
|
+
* Will dispatch tasks to a `droid daemon` running on a remote machine.
|
|
5
|
+
* All methods throw until the droid daemon API is documented and stable.
|
|
6
|
+
*/
|
|
7
|
+
import type { CloudProvider, CloudTask, CloudTaskStatus, CloudEvent, DispatchOptions, ProviderCapabilities } from './types.js';
|
|
2
8
|
/**
|
|
3
9
|
* Factory/Droid cloud provider — stub for Phase 2.
|
|
4
10
|
*
|
|
@@ -13,7 +19,7 @@ import type { CloudProvider, CloudTask, CloudTaskStatus, CloudEvent, DispatchOpt
|
|
|
13
19
|
export declare class FactoryCloudProvider implements CloudProvider {
|
|
14
20
|
id: "factory";
|
|
15
21
|
name: string;
|
|
16
|
-
|
|
22
|
+
capabilities(): ProviderCapabilities;
|
|
17
23
|
dispatch(_options: DispatchOptions): Promise<CloudTask>;
|
|
18
24
|
status(_taskId: string): Promise<CloudTask>;
|
|
19
25
|
list(_filter?: {
|
|
@@ -23,4 +29,3 @@ export declare class FactoryCloudProvider implements CloudProvider {
|
|
|
23
29
|
cancel(_taskId: string): Promise<void>;
|
|
24
30
|
message(_taskId: string, _content: string): Promise<void>;
|
|
25
31
|
}
|
|
26
|
-
//# sourceMappingURL=factory.d.ts.map
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factory/Droid cloud provider -- stub for Phase 2.
|
|
3
|
+
*
|
|
4
|
+
* Will dispatch tasks to a `droid daemon` running on a remote machine.
|
|
5
|
+
* All methods throw until the droid daemon API is documented and stable.
|
|
6
|
+
*/
|
|
1
7
|
/**
|
|
2
8
|
* Factory/Droid cloud provider — stub for Phase 2.
|
|
3
9
|
*
|
|
@@ -12,8 +18,19 @@
|
|
|
12
18
|
export class FactoryCloudProvider {
|
|
13
19
|
id = 'factory';
|
|
14
20
|
name = 'Factory (Droid)';
|
|
15
|
-
|
|
16
|
-
return
|
|
21
|
+
capabilities() {
|
|
22
|
+
return {
|
|
23
|
+
available: false,
|
|
24
|
+
dispatch: false,
|
|
25
|
+
status: false,
|
|
26
|
+
list: false,
|
|
27
|
+
stream: false,
|
|
28
|
+
cancel: false,
|
|
29
|
+
message: false,
|
|
30
|
+
multiRepo: false,
|
|
31
|
+
skills: false,
|
|
32
|
+
images: false,
|
|
33
|
+
};
|
|
17
34
|
}
|
|
18
35
|
async dispatch(_options) {
|
|
19
36
|
throw new Error('Factory cloud provider is not yet available. Coming in a future release.');
|
|
@@ -34,4 +51,3 @@ export class FactoryCloudProvider {
|
|
|
34
51
|
throw new Error('Factory cloud provider is not yet available.');
|
|
35
52
|
}
|
|
36
53
|
}
|
|
37
|
-
//# sourceMappingURL=factory.js.map
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloud provider registry.
|
|
3
|
+
*
|
|
4
|
+
* Reads the `cloud` section of agents.yaml, lazily instantiates provider
|
|
5
|
+
* implementations, and exposes lookup helpers used by the `agents cloud` commands.
|
|
6
|
+
*/
|
|
1
7
|
import type { CloudProvider, CloudProviderId } from './types.js';
|
|
8
|
+
/** Look up a provider by ID, throwing if the ID is unknown. */
|
|
2
9
|
export declare function getProvider(id: CloudProviderId): CloudProvider;
|
|
10
|
+
/** Return the user's configured default provider, falling back to 'rush'. */
|
|
3
11
|
export declare function getDefaultProviderId(): CloudProviderId;
|
|
12
|
+
/** Return every registered provider (used by `agents cloud providers`). */
|
|
4
13
|
export declare function getAllProviders(): CloudProvider[];
|
|
14
|
+
/** Resolve the active provider from an explicit flag or the configured default. */
|
|
5
15
|
export declare function resolveProvider(explicit?: string): CloudProvider;
|
|
6
|
-
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloud provider registry.
|
|
3
|
+
*
|
|
4
|
+
* Reads the `cloud` section of agents.yaml, lazily instantiates provider
|
|
5
|
+
* implementations, and exposes lookup helpers used by the `agents cloud` commands.
|
|
6
|
+
*/
|
|
1
7
|
import * as fs from 'fs';
|
|
2
8
|
import * as path from 'path';
|
|
3
|
-
import * as os from 'os';
|
|
4
9
|
import * as yaml from 'yaml';
|
|
5
10
|
import { RushCloudProvider } from './rush.js';
|
|
6
11
|
import { CodexCloudProvider } from './codex.js';
|
|
7
12
|
import { FactoryCloudProvider } from './factory.js';
|
|
8
|
-
|
|
13
|
+
import { getAgentsDir } from '../state.js';
|
|
14
|
+
const META_FILE = path.join(getAgentsDir(), 'agents.yaml');
|
|
9
15
|
let _config = null;
|
|
16
|
+
/** Parse the `cloud` section from agents.yaml, caching the result for the process lifetime. */
|
|
10
17
|
function loadCloudConfig() {
|
|
11
18
|
if (_config)
|
|
12
19
|
return _config;
|
|
@@ -25,6 +32,7 @@ function loadCloudConfig() {
|
|
|
25
32
|
return _config;
|
|
26
33
|
}
|
|
27
34
|
const providers = new Map();
|
|
35
|
+
/** Instantiate all provider implementations once, keyed by their ID. */
|
|
28
36
|
function initProviders() {
|
|
29
37
|
if (providers.size > 0)
|
|
30
38
|
return;
|
|
@@ -33,6 +41,7 @@ function initProviders() {
|
|
|
33
41
|
providers.set('codex', new CodexCloudProvider(config.providers?.codex));
|
|
34
42
|
providers.set('factory', new FactoryCloudProvider());
|
|
35
43
|
}
|
|
44
|
+
/** Look up a provider by ID, throwing if the ID is unknown. */
|
|
36
45
|
export function getProvider(id) {
|
|
37
46
|
initProviders();
|
|
38
47
|
const provider = providers.get(id);
|
|
@@ -41,16 +50,18 @@ export function getProvider(id) {
|
|
|
41
50
|
}
|
|
42
51
|
return provider;
|
|
43
52
|
}
|
|
53
|
+
/** Return the user's configured default provider, falling back to 'rush'. */
|
|
44
54
|
export function getDefaultProviderId() {
|
|
45
55
|
const config = loadCloudConfig();
|
|
46
56
|
return config.default_provider ?? 'rush';
|
|
47
57
|
}
|
|
58
|
+
/** Return every registered provider (used by `agents cloud providers`). */
|
|
48
59
|
export function getAllProviders() {
|
|
49
60
|
initProviders();
|
|
50
61
|
return [...providers.values()];
|
|
51
62
|
}
|
|
63
|
+
/** Resolve the active provider from an explicit flag or the configured default. */
|
|
52
64
|
export function resolveProvider(explicit) {
|
|
53
65
|
const id = (explicit ?? getDefaultProviderId());
|
|
54
66
|
return getProvider(id);
|
|
55
67
|
}
|
|
56
|
-
//# sourceMappingURL=registry.js.map
|
package/dist/lib/cloud/rush.d.ts
CHANGED
|
@@ -1,8 +1,69 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Rush Cloud provider -- dispatches tasks to the Factory Floor via api.prix.dev.
|
|
3
|
+
*
|
|
4
|
+
* Auth: reads the session token from ~/.rush/user.yaml (written by `rush login`).
|
|
5
|
+
* Requires the Rush GitHub App installed on the target repo.
|
|
6
|
+
*/
|
|
7
|
+
import type { CloudProvider, CloudTask, CloudTaskStatus, CloudEvent, DispatchOptions, ProviderCapabilities } from './types.js';
|
|
8
|
+
/** One version's entry in the account manifest sent on every dispatch. */
|
|
9
|
+
export interface AccountManifestEntry {
|
|
10
|
+
version: string;
|
|
11
|
+
email: string;
|
|
12
|
+
cred_fp: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Manifest of the user's local Claude accounts. Sent on every dispatch so the
|
|
16
|
+
* server can detect "new account" or "token rotated" drift and ask the client
|
|
17
|
+
* to upload the underlying credentials. The manifest itself contains no
|
|
18
|
+
* secrets — only public-ish identifiers + a hash of each token.
|
|
19
|
+
*/
|
|
20
|
+
export interface AccountManifest {
|
|
21
|
+
fp: string;
|
|
22
|
+
versions: AccountManifestEntry[];
|
|
23
|
+
}
|
|
24
|
+
/** Token blob uploaded on retry when the server detects drift. */
|
|
25
|
+
export interface AccountTokenEntry {
|
|
26
|
+
version: string;
|
|
27
|
+
/** Stringified OAuth credentials JSON (Mac: keychain blob; Linux: .credentials.json). */
|
|
28
|
+
credentials_json: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Build a manifest of the user's local Claude installations to send on every
|
|
32
|
+
* cloud dispatch. The manifest is the contract the server uses to detect when
|
|
33
|
+
* the user has added a new account or rotated a token.
|
|
34
|
+
*
|
|
35
|
+
* Returns null when no Claude versions are signed in (the dispatch falls back
|
|
36
|
+
* to the platform-wide key, current behavior).
|
|
37
|
+
*/
|
|
38
|
+
export declare function buildAccountManifest(): Promise<AccountManifest | null>;
|
|
39
|
+
/**
|
|
40
|
+
* Re-load OAuth blobs for the given versions so they can be uploaded to the
|
|
41
|
+
* server on a retry. Only the versions named in the manifest are loaded — we
|
|
42
|
+
* never upload tokens for versions the server hasn't asked about.
|
|
43
|
+
*/
|
|
44
|
+
export declare function buildAccountTokensPayload(versions: string[]): Promise<AccountTokenEntry[]>;
|
|
45
|
+
/**
|
|
46
|
+
* Build the POST body for /api/v1/cloud-runs. Exported so tests can verify
|
|
47
|
+
* the back-compat shape (singular fields + repos[]) without needing real
|
|
48
|
+
* GitHub installations or a live Rush session. `findInstallation` is the
|
|
49
|
+
* only other I/O and it's tested by the halo/proxy integration suite.
|
|
50
|
+
*/
|
|
51
|
+
export declare function buildDispatchBody(input: {
|
|
52
|
+
agent?: string;
|
|
53
|
+
prompt: string;
|
|
54
|
+
mode?: string;
|
|
55
|
+
resolvedRepos: Array<{
|
|
56
|
+
installation_id: number;
|
|
57
|
+
repo_owner: string;
|
|
58
|
+
repo_name: string;
|
|
59
|
+
}>;
|
|
60
|
+
accountManifest?: AccountManifest | null;
|
|
61
|
+
accountTokens?: AccountTokenEntry[] | null;
|
|
62
|
+
}): Record<string, unknown>;
|
|
2
63
|
export declare class RushCloudProvider implements CloudProvider {
|
|
3
64
|
id: "rush";
|
|
4
65
|
name: string;
|
|
5
|
-
|
|
66
|
+
capabilities(): ProviderCapabilities;
|
|
6
67
|
dispatch(options: DispatchOptions): Promise<CloudTask>;
|
|
7
68
|
status(taskId: string): Promise<CloudTask>;
|
|
8
69
|
list(filter?: {
|
|
@@ -12,4 +73,3 @@ export declare class RushCloudProvider implements CloudProvider {
|
|
|
12
73
|
cancel(taskId: string): Promise<void>;
|
|
13
74
|
message(taskId: string, content: string): Promise<void>;
|
|
14
75
|
}
|
|
15
|
-
//# sourceMappingURL=rush.d.ts.map
|