@cotal-ai/cli 0.90.0 → 0.91.0
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/dist/chat/chat-view.d.ts +17 -0
- package/dist/chat/chat-view.d.ts.map +1 -0
- package/dist/chat/chat-view.js +179 -0
- package/dist/chat/chat-view.js.map +1 -0
- package/dist/chat/controller.d.ts +19 -0
- package/dist/chat/controller.d.ts.map +1 -0
- package/dist/chat/controller.js +116 -0
- package/dist/chat/controller.js.map +1 -0
- package/dist/chat/engine.d.ts +108 -0
- package/dist/chat/engine.d.ts.map +1 -0
- package/dist/chat/engine.js +226 -0
- package/dist/chat/engine.js.map +1 -0
- package/dist/chat/frontend.d.ts +35 -0
- package/dist/chat/frontend.d.ts.map +1 -0
- package/dist/chat/frontend.js +151 -0
- package/dist/chat/frontend.js.map +1 -0
- package/dist/chat/native-session.d.ts +71 -0
- package/dist/chat/native-session.d.ts.map +1 -0
- package/dist/chat/native-session.js +348 -0
- package/dist/chat/native-session.js.map +1 -0
- package/dist/chat/open-session.d.ts +8 -0
- package/dist/chat/open-session.d.ts.map +1 -0
- package/dist/chat/open-session.js +120 -0
- package/dist/chat/open-session.js.map +1 -0
- package/dist/chat/picker.d.ts +34 -0
- package/dist/chat/picker.d.ts.map +1 -0
- package/dist/chat/picker.js +97 -0
- package/dist/chat/picker.js.map +1 -0
- package/dist/chat/plain.d.ts +15 -0
- package/dist/chat/plain.d.ts.map +1 -0
- package/dist/chat/plain.js +242 -0
- package/dist/chat/plain.js.map +1 -0
- package/dist/chat/session.d.ts +217 -0
- package/dist/chat/session.d.ts.map +1 -0
- package/dist/chat/session.js +2 -0
- package/dist/chat/session.js.map +1 -0
- package/dist/chat/static-session.d.ts +61 -0
- package/dist/chat/static-session.d.ts.map +1 -0
- package/dist/chat/static-session.js +212 -0
- package/dist/chat/static-session.js.map +1 -0
- package/dist/chat/stdio-io.d.ts +34 -0
- package/dist/chat/stdio-io.d.ts.map +1 -0
- package/dist/chat/stdio-io.js +175 -0
- package/dist/chat/stdio-io.js.map +1 -0
- package/dist/chat/stdio.d.ts +173 -0
- package/dist/chat/stdio.d.ts.map +1 -0
- package/dist/chat/stdio.js +400 -0
- package/dist/chat/stdio.js.map +1 -0
- package/dist/chat/user-session.d.ts +21 -0
- package/dist/chat/user-session.d.ts.map +1 -0
- package/dist/chat/user-session.js +180 -0
- package/dist/chat/user-session.js.map +1 -0
- package/dist/chat/view.d.ts +186 -0
- package/dist/chat/view.d.ts.map +1 -0
- package/dist/chat/view.js +386 -0
- package/dist/chat/view.js.map +1 -0
- package/dist/command.d.ts +11 -3
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +392 -147
- package/dist/command.js.map +1 -1
- package/dist/commands/agents.d.ts +103 -11
- package/dist/commands/agents.d.ts.map +1 -1
- package/dist/commands/agents.js +501 -251
- package/dist/commands/agents.js.map +1 -1
- package/dist/commands/app-identity.d.ts.map +1 -1
- package/dist/commands/app-identity.js +10 -1
- package/dist/commands/app-identity.js.map +1 -1
- package/dist/commands/backup-maintenance.d.ts +4 -0
- package/dist/commands/backup-maintenance.d.ts.map +1 -0
- package/dist/commands/backup-maintenance.js +92 -0
- package/dist/commands/backup-maintenance.js.map +1 -0
- package/dist/commands/backup-read.d.ts +4 -0
- package/dist/commands/backup-read.d.ts.map +1 -0
- package/dist/commands/backup-read.js +27 -0
- package/dist/commands/backup-read.js.map +1 -0
- package/dist/commands/backup-restore.d.ts +7 -0
- package/dist/commands/backup-restore.d.ts.map +1 -0
- package/dist/commands/backup-restore.js +81 -0
- package/dist/commands/backup-restore.js.map +1 -0
- package/dist/commands/backup.d.ts +2 -1
- package/dist/commands/backup.d.ts.map +1 -1
- package/dist/commands/backup.js +102 -24
- package/dist/commands/backup.js.map +1 -1
- package/dist/commands/channel-members.d.ts +8 -0
- package/dist/commands/channel-members.d.ts.map +1 -0
- package/dist/commands/channel-members.js +144 -0
- package/dist/commands/channel-members.js.map +1 -0
- package/dist/commands/channels.d.ts +75 -22
- package/dist/commands/channels.d.ts.map +1 -1
- package/dist/commands/channels.js +181 -100
- package/dist/commands/channels.js.map +1 -1
- package/dist/commands/chat.d.ts +109 -0
- package/dist/commands/chat.d.ts.map +1 -0
- package/dist/commands/chat.js +227 -0
- package/dist/commands/chat.js.map +1 -0
- package/dist/commands/clean.d.ts +43 -1
- package/dist/commands/clean.d.ts.map +1 -1
- package/dist/commands/clean.js +90 -47
- package/dist/commands/clean.js.map +1 -1
- package/dist/commands/completion.d.ts +39 -1
- package/dist/commands/completion.d.ts.map +1 -1
- package/dist/commands/completion.js +211 -87
- package/dist/commands/completion.js.map +1 -1
- package/dist/commands/config.d.ts +33 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +159 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/console.d.ts.map +1 -1
- package/dist/commands/console.js +25 -7
- package/dist/commands/console.js.map +1 -1
- package/dist/commands/describe.d.ts +63 -31
- package/dist/commands/describe.d.ts.map +1 -1
- package/dist/commands/describe.js +264 -136
- package/dist/commands/describe.js.map +1 -1
- package/dist/commands/doctor.d.ts +11 -6
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +195 -288
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/down-services.d.ts +29 -0
- package/dist/commands/down-services.d.ts.map +1 -0
- package/dist/commands/down-services.js +129 -0
- package/dist/commands/down-services.js.map +1 -0
- package/dist/commands/down.d.ts +37 -11
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +276 -115
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/endpoint-authoring.d.ts +4 -0
- package/dist/commands/endpoint-authoring.d.ts.map +1 -0
- package/dist/commands/endpoint-authoring.js +125 -0
- package/dist/commands/endpoint-authoring.js.map +1 -0
- package/dist/commands/endpoint-deregister.d.ts +5 -0
- package/dist/commands/endpoint-deregister.d.ts.map +1 -0
- package/dist/commands/endpoint-deregister.js +70 -0
- package/dist/commands/endpoint-deregister.js.map +1 -0
- package/dist/commands/endpoint.d.ts +118 -0
- package/dist/commands/endpoint.d.ts.map +1 -0
- package/dist/commands/endpoint.js +177 -0
- package/dist/commands/endpoint.js.map +1 -0
- package/dist/commands/endpoints.d.ts +27 -1
- package/dist/commands/endpoints.d.ts.map +1 -1
- package/dist/commands/endpoints.js +42 -30
- package/dist/commands/endpoints.js.map +1 -1
- package/dist/commands/ext.d.ts +38 -1
- package/dist/commands/ext.d.ts.map +1 -1
- package/dist/commands/ext.js +84 -49
- package/dist/commands/ext.js.map +1 -1
- package/dist/commands/feedback.d.ts +58 -1
- package/dist/commands/feedback.d.ts.map +1 -1
- package/dist/commands/feedback.js +119 -47
- package/dist/commands/feedback.js.map +1 -1
- package/dist/commands/help.d.ts +20 -0
- package/dist/commands/help.d.ts.map +1 -0
- package/dist/commands/help.js +52 -0
- package/dist/commands/help.js.map +1 -0
- package/dist/commands/history-clear.d.ts +14 -0
- package/dist/commands/history-clear.d.ts.map +1 -0
- package/dist/commands/history-clear.js +73 -0
- package/dist/commands/history-clear.js.map +1 -0
- package/dist/commands/history.d.ts +146 -4
- package/dist/commands/history.d.ts.map +1 -1
- package/dist/commands/history.js +443 -19
- package/dist/commands/history.js.map +1 -1
- package/dist/commands/join.d.ts.map +1 -1
- package/dist/commands/join.js +7 -3
- package/dist/commands/join.js.map +1 -1
- package/dist/commands/meshes-add.d.ts +3 -0
- package/dist/commands/meshes-add.d.ts.map +1 -1
- package/dist/commands/meshes-add.js +41 -34
- package/dist/commands/meshes-add.js.map +1 -1
- package/dist/commands/meshes-wizard.js +3 -3
- package/dist/commands/meshes-wizard.js.map +1 -1
- package/dist/commands/mint-endpoint-caller.d.ts +5 -0
- package/dist/commands/mint-endpoint-caller.d.ts.map +1 -0
- package/dist/commands/mint-endpoint-caller.js +130 -0
- package/dist/commands/mint-endpoint-caller.js.map +1 -0
- package/dist/commands/mint.d.ts +2 -37
- package/dist/commands/mint.d.ts.map +1 -1
- package/dist/commands/mint.js +142 -325
- package/dist/commands/mint.js.map +1 -1
- package/dist/commands/models.d.ts +30 -8
- package/dist/commands/models.d.ts.map +1 -1
- package/dist/commands/models.js +72 -41
- package/dist/commands/models.js.map +1 -1
- package/dist/commands/persona-remote.d.ts +5 -0
- package/dist/commands/persona-remote.d.ts.map +1 -0
- package/dist/commands/persona-remote.js +237 -0
- package/dist/commands/persona-remote.js.map +1 -0
- package/dist/commands/persona.d.ts +91 -0
- package/dist/commands/persona.d.ts.map +1 -0
- package/dist/commands/persona.js +200 -0
- package/dist/commands/persona.js.map +1 -0
- package/dist/commands/personas.d.ts.map +1 -1
- package/dist/commands/personas.js +16 -59
- package/dist/commands/personas.js.map +1 -1
- package/dist/commands/reset-space-apply.d.ts +5 -0
- package/dist/commands/reset-space-apply.d.ts.map +1 -0
- package/dist/commands/reset-space-apply.js +140 -0
- package/dist/commands/reset-space-apply.js.map +1 -0
- package/dist/commands/reset-store-apply.d.ts +11 -0
- package/dist/commands/reset-store-apply.d.ts.map +1 -0
- package/dist/commands/reset-store-apply.js +154 -0
- package/dist/commands/reset-store-apply.js.map +1 -0
- package/dist/commands/reset.d.ts +26 -0
- package/dist/commands/reset.d.ts.map +1 -0
- package/dist/commands/reset.js +143 -0
- package/dist/commands/reset.js.map +1 -0
- package/dist/commands/runtimes.d.ts +26 -1
- package/dist/commands/runtimes.d.ts.map +1 -1
- package/dist/commands/runtimes.js +68 -32
- package/dist/commands/runtimes.js.map +1 -1
- package/dist/commands/send.d.ts +91 -6
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +180 -106
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/service-actions.d.ts +6 -0
- package/dist/commands/service-actions.d.ts.map +1 -0
- package/dist/commands/service-actions.js +405 -0
- package/dist/commands/service-actions.js.map +1 -0
- package/dist/commands/service-log-follow.d.ts +5 -0
- package/dist/commands/service-log-follow.d.ts.map +1 -0
- package/dist/commands/service-log-follow.js +106 -0
- package/dist/commands/service-log-follow.js.map +1 -0
- package/dist/commands/service-registry.d.ts +67 -0
- package/dist/commands/service-registry.d.ts.map +1 -0
- package/dist/commands/service-registry.js +275 -0
- package/dist/commands/service-registry.js.map +1 -0
- package/dist/commands/service-set-stop.d.ts +6 -0
- package/dist/commands/service-set-stop.d.ts.map +1 -0
- package/dist/commands/service-set-stop.js +161 -0
- package/dist/commands/service-set-stop.js.map +1 -0
- package/dist/commands/service-unit-entry.d.ts +5 -0
- package/dist/commands/service-unit-entry.d.ts.map +1 -0
- package/dist/commands/service-unit-entry.js +113 -0
- package/dist/commands/service-unit-entry.js.map +1 -0
- package/dist/commands/setup-start.d.ts +21 -0
- package/dist/commands/setup-start.d.ts.map +1 -0
- package/dist/commands/setup-start.js +95 -0
- package/dist/commands/setup-start.js.map +1 -0
- package/dist/commands/setup.d.ts +86 -100
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +766 -487
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/space-delete.d.ts +3 -0
- package/dist/commands/space-delete.d.ts.map +1 -0
- package/dist/commands/space-delete.js +341 -0
- package/dist/commands/space-delete.js.map +1 -0
- package/dist/commands/space-registration.d.ts +92 -0
- package/dist/commands/space-registration.d.ts.map +1 -0
- package/dist/commands/space-registration.js +388 -0
- package/dist/commands/space-registration.js.map +1 -0
- package/dist/commands/space.d.ts +128 -0
- package/dist/commands/space.d.ts.map +1 -0
- package/dist/commands/space.js +230 -0
- package/dist/commands/space.js.map +1 -0
- package/dist/commands/spawn-manifest.d.ts.map +1 -1
- package/dist/commands/spawn-manifest.js +2 -2
- package/dist/commands/spawn-manifest.js.map +1 -1
- package/dist/commands/spawn-preview.d.ts +9 -0
- package/dist/commands/spawn-preview.d.ts.map +1 -0
- package/dist/commands/spawn-preview.js +68 -0
- package/dist/commands/spawn-preview.js.map +1 -0
- package/dist/commands/spawn.d.ts +78 -18
- package/dist/commands/spawn.d.ts.map +1 -1
- package/dist/commands/spawn.js +236 -96
- package/dist/commands/spawn.js.map +1 -1
- package/dist/commands/stack-down.d.ts +6 -0
- package/dist/commands/stack-down.d.ts.map +1 -0
- package/dist/commands/stack-down.js +206 -0
- package/dist/commands/stack-down.js.map +1 -0
- package/dist/commands/stack-up.d.ts +149 -0
- package/dist/commands/stack-up.d.ts.map +1 -0
- package/dist/commands/stack-up.js +459 -0
- package/dist/commands/stack-up.js.map +1 -0
- package/dist/commands/stack-user-auth.d.ts +52 -0
- package/dist/commands/stack-user-auth.d.ts.map +1 -0
- package/dist/commands/stack-user-auth.js +128 -0
- package/dist/commands/stack-user-auth.js.map +1 -0
- package/dist/commands/status.d.ts +232 -5
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +989 -406
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.d.ts +23 -0
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +69 -17
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/team-agent-apply.d.ts +5 -0
- package/dist/commands/team-agent-apply.d.ts.map +1 -0
- package/dist/commands/team-agent-apply.js +204 -0
- package/dist/commands/team-agent-apply.js.map +1 -0
- package/dist/commands/team-agent-remove.d.ts +87 -0
- package/dist/commands/team-agent-remove.d.ts.map +1 -0
- package/dist/commands/team-agent-remove.js +348 -0
- package/dist/commands/team-agent-remove.js.map +1 -0
- package/dist/commands/team-boot-controller.d.ts +11 -0
- package/dist/commands/team-boot-controller.d.ts.map +1 -0
- package/dist/commands/team-boot-controller.js +176 -0
- package/dist/commands/team-boot-controller.js.map +1 -0
- package/dist/commands/team-channel-remove.d.ts +167 -0
- package/dist/commands/team-channel-remove.d.ts.map +1 -0
- package/dist/commands/team-channel-remove.js +486 -0
- package/dist/commands/team-channel-remove.js.map +1 -0
- package/dist/commands/team-deploy-apply.d.ts +11 -0
- package/dist/commands/team-deploy-apply.d.ts.map +1 -0
- package/dist/commands/team-deploy-apply.js +320 -0
- package/dist/commands/team-deploy-apply.js.map +1 -0
- package/dist/commands/team-mixed-remove.d.ts +8 -0
- package/dist/commands/team-mixed-remove.d.ts.map +1 -0
- package/dist/commands/team-mixed-remove.js +207 -0
- package/dist/commands/team-mixed-remove.js.map +1 -0
- package/dist/commands/team.d.ts +51 -0
- package/dist/commands/team.d.ts.map +1 -0
- package/dist/commands/team.js +727 -0
- package/dist/commands/team.js.map +1 -0
- package/dist/commands/topology.d.ts +4 -0
- package/dist/commands/topology.d.ts.map +1 -1
- package/dist/commands/topology.js +8 -0
- package/dist/commands/topology.js.map +1 -1
- package/dist/commands/up.d.ts +144 -5
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +1015 -124
- package/dist/commands/up.js.map +1 -1
- package/dist/commands/update.d.ts +11 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +72 -15
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/use.d.ts +16 -3
- package/dist/commands/use.d.ts.map +1 -1
- package/dist/commands/use.js +45 -19
- package/dist/commands/use.js.map +1 -1
- package/dist/commands/watch.d.ts +37 -0
- package/dist/commands/watch.d.ts.map +1 -0
- package/dist/commands/watch.js +106 -0
- package/dist/commands/watch.js.map +1 -0
- package/dist/commands/who.d.ts +79 -0
- package/dist/commands/who.d.ts.map +1 -0
- package/dist/commands/who.js +193 -0
- package/dist/commands/who.js.map +1 -0
- package/dist/commands/whoami.d.ts +56 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +106 -0
- package/dist/commands/whoami.js.map +1 -0
- package/dist/console/app.d.ts.map +1 -1
- package/dist/console/app.js +8 -4
- package/dist/console/app.js.map +1 -1
- package/dist/console/commands.d.ts.map +1 -1
- package/dist/console/commands.js +12 -6
- package/dist/console/commands.js.map +1 -1
- package/dist/exec-endpoint/definition.d.ts +15 -0
- package/dist/exec-endpoint/definition.d.ts.map +1 -0
- package/dist/exec-endpoint/definition.js +56 -0
- package/dist/exec-endpoint/definition.js.map +1 -0
- package/dist/exec-endpoint/handler.d.ts +13 -0
- package/dist/exec-endpoint/handler.d.ts.map +1 -0
- package/dist/exec-endpoint/handler.js +155 -0
- package/dist/exec-endpoint/handler.js.map +1 -0
- package/dist/exec-endpoint/registration.d.ts +34 -0
- package/dist/exec-endpoint/registration.d.ts.map +1 -0
- package/dist/exec-endpoint/registration.js +148 -0
- package/dist/exec-endpoint/registration.js.map +1 -0
- package/dist/exec-endpoint/serve.d.ts +8 -0
- package/dist/exec-endpoint/serve.d.ts.map +1 -0
- package/dist/exec-endpoint/serve.js +159 -0
- package/dist/exec-endpoint/serve.js.map +1 -0
- package/dist/exec-endpoint/service-adapter.d.ts +6 -0
- package/dist/exec-endpoint/service-adapter.d.ts.map +1 -0
- package/dist/exec-endpoint/service-adapter.js +110 -0
- package/dist/exec-endpoint/service-adapter.js.map +1 -0
- package/dist/ext-loader.d.ts +10 -0
- package/dist/ext-loader.d.ts.map +1 -1
- package/dist/ext-loader.js +61 -13
- package/dist/ext-loader.js.map +1 -1
- package/dist/help.d.ts +18 -0
- package/dist/help.d.ts.map +1 -0
- package/dist/help.js +256 -0
- package/dist/help.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +444 -118
- package/dist/index.js.map +1 -1
- package/dist/lib/assist.d.ts.map +1 -1
- package/dist/lib/assist.js +3 -2
- package/dist/lib/assist.js.map +1 -1
- package/dist/lib/attach-client.d.ts +7 -6
- package/dist/lib/attach-client.d.ts.map +1 -1
- package/dist/lib/attach-client.js +14 -15
- package/dist/lib/attach-client.js.map +1 -1
- package/dist/lib/auth-proc.d.ts +3 -3
- package/dist/lib/auth-proc.d.ts.map +1 -1
- package/dist/lib/auth-proc.js +8 -8
- package/dist/lib/auth-proc.js.map +1 -1
- package/dist/lib/backup-artifact.d.ts +34 -1
- package/dist/lib/backup-artifact.d.ts.map +1 -1
- package/dist/lib/backup-artifact.js +67 -17
- package/dist/lib/backup-artifact.js.map +1 -1
- package/dist/lib/broker-service.d.ts +10 -0
- package/dist/lib/broker-service.d.ts.map +1 -0
- package/dist/lib/broker-service.js +329 -0
- package/dist/lib/broker-service.js.map +1 -0
- package/dist/lib/cancel.js +1 -1
- package/dist/lib/cancel.js.map +1 -1
- package/dist/lib/choose-target.d.ts +10 -0
- package/dist/lib/choose-target.d.ts.map +1 -0
- package/dist/lib/choose-target.js +42 -0
- package/dist/lib/choose-target.js.map +1 -0
- package/dist/lib/command-path.d.ts +13 -0
- package/dist/lib/command-path.d.ts.map +1 -0
- package/dist/lib/command-path.js +40 -0
- package/dist/lib/command-path.js.map +1 -0
- package/dist/lib/completion-install.d.ts +29 -0
- package/dist/lib/completion-install.d.ts.map +1 -0
- package/dist/lib/completion-install.js +369 -0
- package/dist/lib/completion-install.js.map +1 -0
- package/dist/lib/completion-scripts.d.ts +4 -0
- package/dist/lib/completion-scripts.d.ts.map +1 -0
- package/dist/lib/completion-scripts.js +15 -0
- package/dist/lib/completion-scripts.js.map +1 -0
- package/dist/lib/completion.d.ts.map +1 -1
- package/dist/lib/completion.js +4 -1
- package/dist/lib/completion.js.map +1 -1
- package/dist/lib/control.d.ts +65 -6
- package/dist/lib/control.d.ts.map +1 -1
- package/dist/lib/control.js +121 -27
- package/dist/lib/control.js.map +1 -1
- package/dist/lib/controller-preserve.d.ts +12 -0
- package/dist/lib/controller-preserve.d.ts.map +1 -0
- package/dist/lib/controller-preserve.js +373 -0
- package/dist/lib/controller-preserve.js.map +1 -0
- package/dist/lib/controller-restore.d.ts +38 -0
- package/dist/lib/controller-restore.d.ts.map +1 -0
- package/dist/lib/controller-restore.js +205 -0
- package/dist/lib/controller-restore.js.map +1 -0
- package/dist/lib/controller-resume.d.ts +92 -0
- package/dist/lib/controller-resume.d.ts.map +1 -0
- package/dist/lib/controller-resume.js +300 -0
- package/dist/lib/controller-resume.js.map +1 -0
- package/dist/lib/credential-authority.d.ts +17 -0
- package/dist/lib/credential-authority.d.ts.map +1 -0
- package/dist/lib/credential-authority.js +28 -0
- package/dist/lib/credential-authority.js.map +1 -0
- package/dist/lib/default-persona.d.ts +38 -0
- package/dist/lib/default-persona.d.ts.map +1 -0
- package/dist/lib/default-persona.js +85 -0
- package/dist/lib/default-persona.js.map +1 -0
- package/dist/lib/delivery-proc.d.ts +9 -9
- package/dist/lib/delivery-proc.d.ts.map +1 -1
- package/dist/lib/delivery-proc.js +9 -19
- package/dist/lib/delivery-proc.js.map +1 -1
- package/dist/lib/endpoint-capability-gates.d.ts +10 -0
- package/dist/lib/endpoint-capability-gates.d.ts.map +1 -0
- package/dist/lib/endpoint-capability-gates.js +70 -0
- package/dist/lib/endpoint-capability-gates.js.map +1 -0
- package/dist/lib/endpoint-client.d.ts +20 -0
- package/dist/lib/endpoint-client.d.ts.map +1 -0
- package/dist/lib/endpoint-client.js +42 -0
- package/dist/lib/endpoint-client.js.map +1 -0
- package/dist/lib/endpoint-errors.d.ts +11 -0
- package/dist/lib/endpoint-errors.d.ts.map +1 -0
- package/dist/lib/endpoint-errors.js +30 -0
- package/dist/lib/endpoint-errors.js.map +1 -0
- package/dist/lib/endpoint-goal.d.ts +19 -0
- package/dist/lib/endpoint-goal.d.ts.map +1 -0
- package/dist/lib/endpoint-goal.js +31 -0
- package/dist/lib/endpoint-goal.js.map +1 -0
- package/dist/lib/endpoint-inventory.d.ts +30 -0
- package/dist/lib/endpoint-inventory.d.ts.map +1 -0
- package/dist/lib/endpoint-inventory.js +79 -0
- package/dist/lib/endpoint-inventory.js.map +1 -0
- package/dist/lib/endpoint-references.d.ts +22 -0
- package/dist/lib/endpoint-references.d.ts.map +1 -0
- package/dist/lib/endpoint-references.js +44 -0
- package/dist/lib/endpoint-references.js.map +1 -0
- package/dist/lib/endpoint-scatter.d.ts +57 -0
- package/dist/lib/endpoint-scatter.d.ts.map +1 -0
- package/dist/lib/endpoint-scatter.js +75 -0
- package/dist/lib/endpoint-scatter.js.map +1 -0
- package/dist/lib/endpoint-selection.d.ts +35 -0
- package/dist/lib/endpoint-selection.d.ts.map +1 -0
- package/dist/lib/endpoint-selection.js +80 -0
- package/dist/lib/endpoint-selection.js.map +1 -0
- package/dist/lib/install-umask.d.ts +6 -0
- package/dist/lib/install-umask.d.ts.map +1 -0
- package/dist/lib/install-umask.js +15 -0
- package/dist/lib/install-umask.js.map +1 -0
- package/dist/lib/isolated-broker.d.ts.map +1 -1
- package/dist/lib/isolated-broker.js +9 -5
- package/dist/lib/isolated-broker.js.map +1 -1
- package/dist/lib/local-process-stop.d.ts.map +1 -1
- package/dist/lib/local-process-stop.js +7 -1
- package/dist/lib/local-process-stop.js.map +1 -1
- package/dist/lib/manager-proc.d.ts +11 -5
- package/dist/lib/manager-proc.d.ts.map +1 -1
- package/dist/lib/manager-proc.js +12 -17
- package/dist/lib/manager-proc.js.map +1 -1
- package/dist/lib/manifest/apply.d.ts +4 -1
- package/dist/lib/manifest/apply.d.ts.map +1 -1
- package/dist/lib/manifest/apply.js +1 -1
- package/dist/lib/manifest/apply.js.map +1 -1
- package/dist/lib/manifest/ledger.d.ts +3 -1
- package/dist/lib/manifest/ledger.d.ts.map +1 -1
- package/dist/lib/manifest/ledger.js +16 -3
- package/dist/lib/manifest/ledger.js.map +1 -1
- package/dist/lib/manifest/schema.d.ts +1 -117
- package/dist/lib/manifest/schema.d.ts.map +1 -1
- package/dist/lib/manifest/schema.js +1 -95
- package/dist/lib/manifest/schema.js.map +1 -1
- package/dist/lib/offline-recipient.d.ts +5 -0
- package/dist/lib/offline-recipient.d.ts.map +1 -0
- package/dist/lib/offline-recipient.js +7 -0
- package/dist/lib/offline-recipient.js.map +1 -0
- package/dist/lib/onboard.js +3 -3
- package/dist/lib/onboard.js.map +1 -1
- package/dist/lib/persona-files.d.ts +29 -0
- package/dist/lib/persona-files.d.ts.map +1 -0
- package/dist/lib/persona-files.js +154 -0
- package/dist/lib/persona-files.js.map +1 -0
- package/dist/lib/personas.d.ts +3 -0
- package/dist/lib/personas.d.ts.map +1 -1
- package/dist/lib/personas.js +14 -2
- package/dist/lib/personas.js.map +1 -1
- package/dist/lib/prompts.d.ts +16 -0
- package/dist/lib/prompts.d.ts.map +1 -0
- package/dist/lib/prompts.js +35 -0
- package/dist/lib/prompts.js.map +1 -0
- package/dist/lib/protected-records.d.ts +2 -0
- package/dist/lib/protected-records.d.ts.map +1 -0
- package/dist/lib/protected-records.js +3 -0
- package/dist/lib/protected-records.js.map +1 -0
- package/dist/lib/registry-errors.d.ts +4 -0
- package/dist/lib/registry-errors.d.ts.map +1 -0
- package/dist/lib/registry-errors.js +6 -0
- package/dist/lib/registry-errors.js.map +1 -0
- package/dist/lib/reset-space-plan.d.ts +36 -0
- package/dist/lib/reset-space-plan.d.ts.map +1 -0
- package/dist/lib/reset-space-plan.js +181 -0
- package/dist/lib/reset-space-plan.js.map +1 -0
- package/dist/lib/restore.d.ts +3 -1
- package/dist/lib/restore.d.ts.map +1 -1
- package/dist/lib/restore.js +38 -10
- package/dist/lib/restore.js.map +1 -1
- package/dist/lib/seat-resume.d.ts +4 -1
- package/dist/lib/seat-resume.d.ts.map +1 -1
- package/dist/lib/seat-resume.js +7 -4
- package/dist/lib/seat-resume.js.map +1 -1
- package/dist/lib/service-adapters.d.ts +32 -0
- package/dist/lib/service-adapters.d.ts.map +1 -0
- package/dist/lib/service-adapters.js +55 -0
- package/dist/lib/service-adapters.js.map +1 -0
- package/dist/lib/service-census.d.ts +73 -0
- package/dist/lib/service-census.d.ts.map +1 -0
- package/dist/lib/service-census.js +42 -0
- package/dist/lib/service-census.js.map +1 -0
- package/dist/lib/service-definitions.d.ts +49 -0
- package/dist/lib/service-definitions.d.ts.map +1 -0
- package/dist/lib/service-definitions.js +61 -0
- package/dist/lib/service-definitions.js.map +1 -0
- package/dist/lib/service-install-intent.d.ts +48 -0
- package/dist/lib/service-install-intent.d.ts.map +1 -0
- package/dist/lib/service-install-intent.js +95 -0
- package/dist/lib/service-install-intent.js.map +1 -0
- package/dist/lib/service-instances.d.ts +143 -0
- package/dist/lib/service-instances.d.ts.map +1 -0
- package/dist/lib/service-instances.js +193 -0
- package/dist/lib/service-instances.js.map +1 -0
- package/dist/lib/service-journal.d.ts +38 -0
- package/dist/lib/service-journal.d.ts.map +1 -0
- package/dist/lib/service-journal.js +210 -0
- package/dist/lib/service-journal.js.map +1 -0
- package/dist/lib/service-launchd-plan.d.ts +21 -0
- package/dist/lib/service-launchd-plan.d.ts.map +1 -0
- package/dist/lib/service-launchd-plan.js +69 -0
- package/dist/lib/service-launchd-plan.js.map +1 -0
- package/dist/lib/service-launchd-unit.d.ts +20 -0
- package/dist/lib/service-launchd-unit.d.ts.map +1 -0
- package/dist/lib/service-launchd-unit.js +66 -0
- package/dist/lib/service-launchd-unit.js.map +1 -0
- package/dist/lib/service-presets.d.ts +17 -0
- package/dist/lib/service-presets.d.ts.map +1 -0
- package/dist/lib/service-presets.js +138 -0
- package/dist/lib/service-presets.js.map +1 -0
- package/dist/lib/service-private-seed.d.ts +7 -0
- package/dist/lib/service-private-seed.d.ts.map +1 -0
- package/dist/lib/service-private-seed.js +64 -0
- package/dist/lib/service-private-seed.js.map +1 -0
- package/dist/lib/service-private-tree.d.ts +6 -0
- package/dist/lib/service-private-tree.d.ts.map +1 -0
- package/dist/lib/service-private-tree.js +100 -0
- package/dist/lib/service-private-tree.js.map +1 -0
- package/dist/lib/service-process.d.ts +121 -0
- package/dist/lib/service-process.d.ts.map +1 -0
- package/dist/lib/service-process.js +742 -0
- package/dist/lib/service-process.js.map +1 -0
- package/dist/lib/service-stopped-allocation.d.ts +6 -0
- package/dist/lib/service-stopped-allocation.d.ts.map +1 -0
- package/dist/lib/service-stopped-allocation.js +42 -0
- package/dist/lib/service-stopped-allocation.js.map +1 -0
- package/dist/lib/service-supervision.d.ts +59 -0
- package/dist/lib/service-supervision.d.ts.map +1 -0
- package/dist/lib/service-supervision.js +71 -0
- package/dist/lib/service-supervision.js.map +1 -0
- package/dist/lib/service-systemd-attempt-read.d.ts +40 -0
- package/dist/lib/service-systemd-attempt-read.d.ts.map +1 -0
- package/dist/lib/service-systemd-attempt-read.js +80 -0
- package/dist/lib/service-systemd-attempt-read.js.map +1 -0
- package/dist/lib/service-systemd-control.d.ts +38 -0
- package/dist/lib/service-systemd-control.d.ts.map +1 -0
- package/dist/lib/service-systemd-control.js +141 -0
- package/dist/lib/service-systemd-control.js.map +1 -0
- package/dist/lib/service-systemd-files.d.ts +8 -0
- package/dist/lib/service-systemd-files.d.ts.map +1 -0
- package/dist/lib/service-systemd-files.js +63 -0
- package/dist/lib/service-systemd-files.js.map +1 -0
- package/dist/lib/service-systemd-install.d.ts +17 -0
- package/dist/lib/service-systemd-install.d.ts.map +1 -0
- package/dist/lib/service-systemd-install.js +146 -0
- package/dist/lib/service-systemd-install.js.map +1 -0
- package/dist/lib/service-systemd-plan.d.ts +28 -0
- package/dist/lib/service-systemd-plan.d.ts.map +1 -0
- package/dist/lib/service-systemd-plan.js +56 -0
- package/dist/lib/service-systemd-plan.js.map +1 -0
- package/dist/lib/service-systemd-reseed.d.ts +16 -0
- package/dist/lib/service-systemd-reseed.d.ts.map +1 -0
- package/dist/lib/service-systemd-reseed.js +106 -0
- package/dist/lib/service-systemd-reseed.js.map +1 -0
- package/dist/lib/service-systemd-uninstall-plan.d.ts +29 -0
- package/dist/lib/service-systemd-uninstall-plan.d.ts.map +1 -0
- package/dist/lib/service-systemd-uninstall-plan.js +56 -0
- package/dist/lib/service-systemd-uninstall-plan.js.map +1 -0
- package/dist/lib/service-systemd-uninstall.d.ts +17 -0
- package/dist/lib/service-systemd-uninstall.d.ts.map +1 -0
- package/dist/lib/service-systemd-uninstall.js +106 -0
- package/dist/lib/service-systemd-uninstall.js.map +1 -0
- package/dist/lib/service-systemd-unit.d.ts +28 -0
- package/dist/lib/service-systemd-unit.d.ts.map +1 -0
- package/dist/lib/service-systemd-unit.js +73 -0
- package/dist/lib/service-systemd-unit.js.map +1 -0
- package/dist/lib/service-systemd.d.ts +49 -0
- package/dist/lib/service-systemd.d.ts.map +1 -0
- package/dist/lib/service-systemd.js +134 -0
- package/dist/lib/service-systemd.js.map +1 -0
- package/dist/lib/service-uninstall-intent.d.ts +38 -0
- package/dist/lib/service-uninstall-intent.d.ts.map +1 -0
- package/dist/lib/service-uninstall-intent.js +74 -0
- package/dist/lib/service-uninstall-intent.js.map +1 -0
- package/dist/lib/service-unit-action.d.ts +24 -0
- package/dist/lib/service-unit-action.d.ts.map +1 -0
- package/dist/lib/service-unit-action.js +61 -0
- package/dist/lib/service-unit-action.js.map +1 -0
- package/dist/lib/setup-log.d.ts +5 -4
- package/dist/lib/setup-log.d.ts.map +1 -1
- package/dist/lib/setup-log.js +18 -9
- package/dist/lib/setup-log.js.map +1 -1
- package/dist/lib/space-schema-inspection.d.ts +73 -0
- package/dist/lib/space-schema-inspection.d.ts.map +1 -0
- package/dist/lib/space-schema-inspection.js +118 -0
- package/dist/lib/space-schema-inspection.js.map +1 -0
- package/dist/lib/space-schema-report.d.ts +82 -0
- package/dist/lib/space-schema-report.d.ts.map +1 -0
- package/dist/lib/space-schema-report.js +109 -0
- package/dist/lib/space-schema-report.js.map +1 -0
- package/dist/lib/spawn-defaults.d.ts +14 -0
- package/dist/lib/spawn-defaults.d.ts.map +1 -0
- package/dist/lib/spawn-defaults.js +20 -0
- package/dist/lib/spawn-defaults.js.map +1 -0
- package/dist/lib/stack-journal.d.ts +92 -0
- package/dist/lib/stack-journal.d.ts.map +1 -0
- package/dist/lib/stack-journal.js +199 -0
- package/dist/lib/stack-journal.js.map +1 -0
- package/dist/lib/stack-resume.d.ts +35 -0
- package/dist/lib/stack-resume.d.ts.map +1 -0
- package/dist/lib/stack-resume.js +123 -0
- package/dist/lib/stack-resume.js.map +1 -0
- package/dist/lib/status.d.ts +19 -20
- package/dist/lib/status.d.ts.map +1 -1
- package/dist/lib/status.js +41 -40
- package/dist/lib/status.js.map +1 -1
- package/dist/lib/steps.d.ts.map +1 -1
- package/dist/lib/steps.js +3 -2
- package/dist/lib/steps.js.map +1 -1
- package/dist/lib/systemd-supervision.d.ts +11 -4
- package/dist/lib/systemd-supervision.d.ts.map +1 -1
- package/dist/lib/systemd-supervision.js +19 -8
- package/dist/lib/systemd-supervision.js.map +1 -1
- package/dist/lib/team-additive-attempt.d.ts +286 -0
- package/dist/lib/team-additive-attempt.d.ts.map +1 -0
- package/dist/lib/team-additive-attempt.js +387 -0
- package/dist/lib/team-additive-attempt.js.map +1 -0
- package/dist/lib/team-additive-native.d.ts +17 -0
- package/dist/lib/team-additive-native.d.ts.map +1 -0
- package/dist/lib/team-additive-native.js +29 -0
- package/dist/lib/team-additive-native.js.map +1 -0
- package/dist/lib/team-agent-removal.d.ts +104 -0
- package/dist/lib/team-agent-removal.d.ts.map +1 -0
- package/dist/lib/team-agent-removal.js +121 -0
- package/dist/lib/team-agent-removal.js.map +1 -0
- package/dist/lib/team-channel-removal.d.ts +220 -0
- package/dist/lib/team-channel-removal.d.ts.map +1 -0
- package/dist/lib/team-channel-removal.js +258 -0
- package/dist/lib/team-channel-removal.js.map +1 -0
- package/dist/lib/team-deploy-inspection.d.ts +59 -0
- package/dist/lib/team-deploy-inspection.d.ts.map +1 -0
- package/dist/lib/team-deploy-inspection.js +177 -0
- package/dist/lib/team-deploy-inspection.js.map +1 -0
- package/dist/lib/team-fresh.d.ts +73 -0
- package/dist/lib/team-fresh.d.ts.map +1 -0
- package/dist/lib/team-fresh.js +207 -0
- package/dist/lib/team-fresh.js.map +1 -0
- package/dist/lib/team-removal-reconcile.d.ts +118 -0
- package/dist/lib/team-removal-reconcile.d.ts.map +1 -0
- package/dist/lib/team-removal-reconcile.js +90 -0
- package/dist/lib/team-removal-reconcile.js.map +1 -0
- package/dist/lib/team-removal-record.d.ts +7 -0
- package/dist/lib/team-removal-record.d.ts.map +1 -0
- package/dist/lib/team-removal-record.js +46 -0
- package/dist/lib/team-removal-record.js.map +1 -0
- package/dist/lib/team-retained.d.ts +33 -0
- package/dist/lib/team-retained.d.ts.map +1 -0
- package/dist/lib/team-retained.js +55 -0
- package/dist/lib/team-retained.js.map +1 -0
- package/dist/lib/theme.d.ts.map +1 -1
- package/dist/lib/theme.js +9 -8
- package/dist/lib/theme.js.map +1 -1
- package/dist/lib/transient.d.ts +14 -9
- package/dist/lib/transient.d.ts.map +1 -1
- package/dist/lib/transient.js +25 -18
- package/dist/lib/transient.js.map +1 -1
- package/dist/lib/up-report.d.ts +1 -0
- package/dist/lib/up-report.d.ts.map +1 -1
- package/dist/lib/up-report.js +2 -1
- package/dist/lib/up-report.js.map +1 -1
- package/dist/lib/version.d.ts +8 -2
- package/dist/lib/version.d.ts.map +1 -1
- package/dist/lib/version.js +16 -9
- package/dist/lib/version.js.map +1 -1
- package/dist/seed/paths.d.ts +1 -1
- package/dist/seed/paths.js +1 -1
- package/dist/seed/reconcile.d.ts.map +1 -1
- package/dist/seed/reconcile.js +19 -3
- package/dist/seed/reconcile.js.map +1 -1
- package/dist/ui.d.ts +6 -0
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js +12 -1
- package/dist/ui.js.map +1 -1
- package/dist/watch-data.d.ts +15 -0
- package/dist/watch-data.d.ts.map +1 -0
- package/dist/watch-data.js +66 -0
- package/dist/watch-data.js.map +1 -0
- package/dist/watch-json.d.ts +5 -0
- package/dist/watch-json.d.ts.map +1 -0
- package/dist/watch-json.js +131 -0
- package/dist/watch-json.js.map +1 -0
- package/dist/watch-view.d.ts +8 -0
- package/dist/watch-view.d.ts.map +1 -0
- package/dist/watch-view.js +65 -0
- package/dist/watch-view.js.map +1 -0
- package/package.json +8 -5
- package/dist/commands/service.d.ts +0 -17
- package/dist/commands/service.d.ts.map +0 -1
- package/dist/commands/service.js +0 -589
- package/dist/commands/service.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,38 +1,52 @@
|
|
|
1
|
+
import "./exec-endpoint/service-adapter.js";
|
|
2
|
+
import "./lib/broker-service.js";
|
|
3
|
+
import { serviceUnitEntry } from "./commands/service-unit-entry.js";
|
|
1
4
|
import { registry } from "@cotal-ai/core";
|
|
2
|
-
import { serverFlag, spaceFlag, targetFlags, } from "@cotal-ai/workspace";
|
|
5
|
+
import { CommandFailure, credentialMintFlags, jsonFlag, plainFlag, presentationOf, serverFlag, spaceFlag, targetFlags, validateCredentialMintArguments, } from "@cotal-ai/workspace";
|
|
3
6
|
import { MANAGER_PROCESS } from "./lib/manager-proc.js";
|
|
4
|
-
import {
|
|
5
|
-
import { runtimes } from "./commands/runtimes.js";
|
|
6
|
-
import { down, downComplete } from "./commands/down.js";
|
|
7
|
-
import { use, useComplete } from "./commands/use.js";
|
|
7
|
+
import { upCommand, upComplete, upFlags, validateUpArguments } from "./commands/up.js";
|
|
8
|
+
import { runtimes, runtimesFlags } from "./commands/runtimes.js";
|
|
9
|
+
import { down, downComplete, validateDownArguments } from "./commands/down.js";
|
|
10
|
+
import { use, useComplete, useFlags } from "./commands/use.js";
|
|
8
11
|
import { meshes, meshesComplete, meshesFlags } from "./commands/meshes.js";
|
|
9
|
-
import {
|
|
12
|
+
import { space, spaceComplete, spaceFlags } from "./commands/space.js";
|
|
13
|
+
import { setup, setupFlags, validateSetupArguments } from "./commands/setup.js";
|
|
14
|
+
import { setupStartEntry } from "./commands/setup-start.js";
|
|
10
15
|
import { join } from "./commands/join.js";
|
|
11
16
|
import { console_ } from "./commands/console.js";
|
|
12
|
-
import { spawn, spawnComplete, spawnFlags, spawnRequiredExtensions } from "./commands/spawn.js";
|
|
17
|
+
import { spawn, spawnComplete, spawnFlags, spawnRequiredExtensions, validateSpawnArguments } from "./commands/spawn.js";
|
|
13
18
|
import { appIdentity, appIdentityFlags } from "./commands/app-identity.js";
|
|
14
|
-
import { attach, attachFlags, input, inputFlags, managedAgentComplete, ps, psFlags, stop, stopFlags } from "./commands/agents.js";
|
|
19
|
+
import { attach, attachFlags, input, inputFlags, inputArguments, managedAgentComplete, managedTarget, ps, psFlags, stop, stopFlags, validateStopArguments } from "./commands/agents.js";
|
|
15
20
|
import { models, modelsComplete, modelsFlags } from "./commands/models.js";
|
|
16
21
|
import { c } from "./ui.js";
|
|
22
|
+
import { watch, watchFlags, validateWatchArguments } from "./commands/watch.js";
|
|
23
|
+
import { persona, personaComplete, personaFlags } from "./commands/persona.js";
|
|
17
24
|
import { personas, personasComplete } from "./commands/personas.js";
|
|
18
|
-
import { completion, completionComplete, complete } from "./commands/completion.js";
|
|
25
|
+
import { completion, completionComplete, completionFlags, complete, validateCompletionArguments } from "./commands/completion.js";
|
|
26
|
+
import { config, configFlags } from "./commands/config.js";
|
|
19
27
|
import { mint } from "./commands/mint.js";
|
|
20
|
-
import { channels } from "./commands/channels.js";
|
|
21
|
-
import { history } from "./commands/history.js";
|
|
28
|
+
import { channels, channelArguments, channelComplete, channelFlags } from "./commands/channels.js";
|
|
29
|
+
import { history, historyFlags, validateHistoryArguments } from "./commands/history.js";
|
|
22
30
|
import { clean, cleanComplete } from "./commands/clean.js";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
31
|
+
import { reset, resetComplete, resetFlags, validateResetArguments } from "./commands/reset.js";
|
|
32
|
+
import { feedback, feedbackFlags, validateFeedbackArguments } from "./commands/feedback.js";
|
|
33
|
+
import { send, sendComplete, sendFlags, sendArguments } from "./commands/send.js";
|
|
34
|
+
import { chat, chatArguments, chatComplete, chatFlags } from "./commands/chat.js";
|
|
35
|
+
import { ext, extFlags } from "./commands/ext.js";
|
|
36
|
+
import { help, helpFlags, version, versionFlags } from "./commands/help.js";
|
|
26
37
|
import { topology } from "./commands/topology.js";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
38
|
+
import { team, teamComplete, teamFlags, validateTeamArguments } from "./commands/team.js";
|
|
39
|
+
import { status, statusFlags, validateStatusArguments } from "./commands/status.js";
|
|
40
|
+
import { who, whoFlags } from "./commands/who.js";
|
|
41
|
+
import { whoami, whoamiFlags } from "./commands/whoami.js";
|
|
42
|
+
import { doctor, doctorFlags, validateDoctorArguments } from "./commands/doctor.js";
|
|
43
|
+
import { endpoints, endpointsFlags } from "./commands/endpoints.js";
|
|
44
|
+
import { endpoint, endpointFlags, validateEndpointReferenceArguments } from "./commands/endpoint.js";
|
|
45
|
+
import { describeCmd, describeComplete, describeFlags, invokeCmd, invokeFlags, validateEndpointArguments } from "./commands/describe.js";
|
|
46
|
+
import { backup, backupComplete, backupFlags, validateBackupArguments } from "./commands/backup.js";
|
|
47
|
+
import { update, updateFlags, validateUpdateArguments } from "./commands/update.js";
|
|
48
|
+
import { service, serviceComplete, serviceFlags, validateServiceArguments } from "./commands/service-registry.js";
|
|
34
49
|
import { sync, syncFlags } from "./commands/sync.js";
|
|
35
|
-
import { DELIVERY_PROCESS } from "./lib/delivery-proc.js";
|
|
36
50
|
import { AUTH_PROCESS } from "./lib/auth-proc.js";
|
|
37
51
|
/** The minimal mesh CLI: thin NATS clients (up/join/console), plus `spawn` — an agent launch
|
|
38
52
|
* (foreground or --detach) that reuses the connector's launch recipe. Self-registers on import;
|
|
@@ -47,25 +61,74 @@ const baseCommands = [
|
|
|
47
61
|
kind: "command",
|
|
48
62
|
name: "setup",
|
|
49
63
|
group: "Setup",
|
|
50
|
-
summary: "
|
|
64
|
+
summary: "prepare a space and its chosen application/runtimes; start separately with --start",
|
|
65
|
+
usage: "cotal setup [--destination <local|self-hosted>] [-H|--harness <connector>] [--runtime <name>]... [--project <dir>] [--space <name>] [--connection-file <bundle.json>] [--configure-only | --start [-d|--detach]] [--demo|--full] [-y|--yes] [--json|--plain] | setup --skills",
|
|
51
66
|
flags: setupFlags,
|
|
67
|
+
validate: validateSetupArguments,
|
|
68
|
+
outputs: ["json", "plain"],
|
|
69
|
+
examples: ["cotal setup", "cotal setup --destination local --harness claude --runtime tmux --project ~/research --space research --no-input", "cotal setup --destination self-hosted --harness claude --project ~/team --space team --connection-file team.json --json", "cotal setup --destination local --harness claude --project ~/research --space research --start --detach --json", "cotal setup --skills"],
|
|
52
70
|
run: setup,
|
|
53
71
|
},
|
|
72
|
+
{
|
|
73
|
+
kind: "command",
|
|
74
|
+
name: "help",
|
|
75
|
+
group: "Setup",
|
|
76
|
+
summary: "list the commands, or show one command's help",
|
|
77
|
+
positionals: "[command…]",
|
|
78
|
+
flags: helpFlags,
|
|
79
|
+
run: help,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
kind: "command",
|
|
83
|
+
name: "version",
|
|
84
|
+
group: "Setup",
|
|
85
|
+
summary: "print this binary's version and each installed extension's",
|
|
86
|
+
flags: versionFlags,
|
|
87
|
+
outputs: ["json"],
|
|
88
|
+
examples: ["cotal version", "cotal version --json"],
|
|
89
|
+
run: version,
|
|
90
|
+
},
|
|
54
91
|
{
|
|
55
92
|
kind: "command",
|
|
56
93
|
name: "ext",
|
|
94
|
+
aliases: ["x"],
|
|
57
95
|
group: "Setup",
|
|
58
96
|
summary: "operator-installed extensions - add commands, runtimes, and local process providers",
|
|
59
|
-
usage: "ext [add <npm-package> | remove <name> |
|
|
97
|
+
usage: "cotal ext [list] [--json|--plain] | ext add <npm-package> | ext remove <name> | ext root | ext seed [--repair|--reset|--force]",
|
|
60
98
|
positionals: "[add <npm-package> | remove <name> | list | root | seed]",
|
|
61
|
-
|
|
62
|
-
{ name: "
|
|
63
|
-
{ name: "
|
|
64
|
-
{ name: "
|
|
65
|
-
{ name: "
|
|
99
|
+
subcommands: [
|
|
100
|
+
{ name: "add", summary: "install an extension package and register what it provides", usage: "cotal ext add <npm-package>" },
|
|
101
|
+
{ name: "remove", aliases: ["rm"], summary: "uninstall an extension", usage: "cotal ext remove <name>" },
|
|
102
|
+
{ name: "list", summary: "list installed extensions (what bare `cotal ext` does)", usage: "cotal ext list [--json|--plain]", outputs: ["json", "plain"], reads: true },
|
|
103
|
+
{ name: "root", summary: "print the extension root directory", usage: "cotal ext root", reads: true },
|
|
104
|
+
{ name: "seed", summary: "reconcile the built-in connectors", usage: "cotal ext seed [--repair|--reset|--force]" },
|
|
105
|
+
{ name: "__update-add", summary: "re-add one extension for a running update", hidden: true },
|
|
66
106
|
],
|
|
107
|
+
flags: extFlags,
|
|
108
|
+
outputs: ["json", "plain"],
|
|
109
|
+
examples: ["cotal ext", "cotal ext --json", "cotal ext add @cotal-ai/orca", "cotal ext root"],
|
|
110
|
+
reads: true,
|
|
67
111
|
run: ext,
|
|
68
112
|
},
|
|
113
|
+
{
|
|
114
|
+
kind: "command",
|
|
115
|
+
name: "config",
|
|
116
|
+
aliases: ["cfg"],
|
|
117
|
+
group: "Setup",
|
|
118
|
+
summary: "your preferences - the defaults your commands use, and where each value comes from",
|
|
119
|
+
usage: "cotal config [--user | --space <name>] [--json|--plain] | config get <key> | config set <key> <value> | config unset <key>",
|
|
120
|
+
positionals: "[get <key> | set <key> <value> | unset <key>]",
|
|
121
|
+
subcommands: [
|
|
122
|
+
{ name: "get", summary: "show one key's value, where it comes from and what it outranks", usage: "cotal config get <key> [--user | --space <name>] [--json|--plain]", outputs: ["json", "plain"], reads: true },
|
|
123
|
+
{ name: "set", summary: "save a value for you, or for one space with --space", usage: "cotal config set <key> <value> [--user | --space <name>] [--json|--plain]", outputs: ["json", "plain"] },
|
|
124
|
+
{ name: "unset", summary: "remove a saved value", usage: "cotal config unset <key> [--user | --space <name>] [--json|--plain]", outputs: ["json", "plain"] },
|
|
125
|
+
],
|
|
126
|
+
flags: configFlags,
|
|
127
|
+
outputs: ["json", "plain"],
|
|
128
|
+
examples: ["cotal config", "cotal config get harness", "cotal config set harness opencode", "cotal config set persona reviewer --space demo", "cotal config unset color"],
|
|
129
|
+
reads: true,
|
|
130
|
+
run: config,
|
|
131
|
+
},
|
|
69
132
|
{
|
|
70
133
|
kind: "command",
|
|
71
134
|
name: "update",
|
|
@@ -73,18 +136,32 @@ const baseCommands = [
|
|
|
73
136
|
summary: "reconcile first-party extensions and check for a coherent cotal-ai upgrade",
|
|
74
137
|
flags: updateFlags,
|
|
75
138
|
prepareMeshTarget: false,
|
|
139
|
+
outputs: ["json", "plain"],
|
|
140
|
+
validate: validateUpdateArguments,
|
|
141
|
+
examples: ["cotal update --check", "cotal update --check --json", "cotal update", "cotal update --self"],
|
|
76
142
|
run: update,
|
|
77
143
|
},
|
|
78
144
|
{
|
|
79
145
|
kind: "command",
|
|
80
146
|
name: "completion",
|
|
81
147
|
group: "Setup",
|
|
82
|
-
summary: "shell
|
|
83
|
-
usage: "completion <bash|zsh|fish|powershell | install [shell]
|
|
84
|
-
positionals: "<
|
|
148
|
+
summary: "read shell integration, print a script, or install/remove unchanged owned files",
|
|
149
|
+
usage: "cotal completion [--json|--plain] | script <bash|zsh|fish|powershell> | install|uninstall [shell] [--json|--plain]",
|
|
150
|
+
positionals: "[script <shell> | install|uninstall [shell]]",
|
|
151
|
+
flags: completionFlags,
|
|
152
|
+
outputs: ["json", "plain"],
|
|
153
|
+
subcommands: [
|
|
154
|
+
{ name: "script", flagNames: [], summary: "print a shell's completion stub as raw shell code", usage: "cotal completion script <bash|zsh|fish|powershell>" },
|
|
155
|
+
{ name: "install", flagNames: ["json", "plain"], summary: "install or refresh unchanged owned files (detects $SHELL)", usage: "cotal completion install [shell]", outputs: ["json", "plain"] },
|
|
156
|
+
{ name: "uninstall", flagNames: ["json", "plain"], summary: "remove only unchanged owned files and startup blocks", usage: "cotal completion uninstall [shell]", outputs: ["json", "plain"] },
|
|
157
|
+
...["bash", "zsh", "fish", "powershell"].map((name) => ({ name, summary: `replaced by completion script ${name}`, hidden: true })),
|
|
158
|
+
],
|
|
159
|
+
validate: validateCompletionArguments,
|
|
160
|
+
examples: ["cotal completion", "source <(cotal completion script bash)", "cotal completion install", "cotal completion uninstall bash --json"],
|
|
85
161
|
run: completion,
|
|
86
162
|
complete: completionComplete,
|
|
87
163
|
},
|
|
164
|
+
setupStartEntry,
|
|
88
165
|
{
|
|
89
166
|
kind: "command",
|
|
90
167
|
name: "__complete",
|
|
@@ -99,10 +176,13 @@ const baseCommands = [
|
|
|
99
176
|
kind: "command",
|
|
100
177
|
name: "up",
|
|
101
178
|
group: "Mesh",
|
|
102
|
-
summary: "start a local
|
|
179
|
+
summary: "start a local space in the background; --foreground keeps the native stack in this terminal",
|
|
103
180
|
flags: upFlags,
|
|
181
|
+
outputs: ["json", "plain"],
|
|
182
|
+
examples: ["cotal up", "cotal up --root <prepared-project> --space <space>", "cotal up --foreground", "cotal up -f cotal.yaml --dry-run"],
|
|
183
|
+
validate: validateUpArguments,
|
|
104
184
|
prepareMeshTarget: false,
|
|
105
|
-
run:
|
|
185
|
+
run: upCommand,
|
|
106
186
|
complete: upComplete,
|
|
107
187
|
},
|
|
108
188
|
{
|
|
@@ -110,20 +190,38 @@ const baseCommands = [
|
|
|
110
190
|
name: "runtimes",
|
|
111
191
|
group: "Manager",
|
|
112
192
|
summary: "list the agent runtimes the manager can spawn through (pty built in; others via `cotal ext add`) and whether each is reachable",
|
|
193
|
+
usage: "cotal runtimes [--json|--plain]",
|
|
194
|
+
flags: runtimesFlags,
|
|
195
|
+
outputs: ["json", "plain"],
|
|
196
|
+
examples: ["cotal runtimes", "cotal runtimes --json"],
|
|
197
|
+
reads: true,
|
|
113
198
|
run: runtimes,
|
|
114
199
|
},
|
|
115
200
|
{
|
|
116
201
|
kind: "command",
|
|
117
202
|
name: "service",
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
positionals: "
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
203
|
+
aliases: ["svc", "services"],
|
|
204
|
+
group: "Services",
|
|
205
|
+
summary: "read local service definitions and existing component observations",
|
|
206
|
+
positionals: "[show | add | remove | start | stop | restart | status | logs | install | uninstall] [name]",
|
|
207
|
+
flagNames: ["space", "json", "plain"],
|
|
208
|
+
flags: serviceFlags,
|
|
209
|
+
outputs: ["json", "ndjson", "plain"],
|
|
210
|
+
reads: true,
|
|
211
|
+
subcommands: [
|
|
212
|
+
{ name: "list", flagNames: ["space", "json", "plain"], summary: "read saved definitions and local component observations", hidden: true, reads: true, prepareMeshTarget: false },
|
|
213
|
+
{ name: "show", flagNames: ["space", "json", "plain"], summary: "read a saved definition without exposing argument or credential contents", usage: "cotal service show <name>", reads: true, prepareMeshTarget: false },
|
|
214
|
+
{ name: "add", flagNames: ["space", "file", "preset", "json", "plain"], summary: "save a file or declared preset without starting a process", usage: "cotal service add [name] [--file <definition.json>|--preset <name> <declared-options>]", prepareMeshTarget: false },
|
|
215
|
+
{ name: "remove", flagNames: ["space", "yes", "json", "plain"], aliases: ["rm"], summary: "forget a stopped, unsupervised owned definition", usage: "cotal service remove <name> [--yes]", prepareMeshTarget: false },
|
|
216
|
+
{ name: "start", flagNames: ["space", "instance", "new-instance", "foreground", "dry-run", "json", "plain"], summary: "start an owned process or declared adapter without dependencies", usage: "cotal service start <name> [--instance <id>|--new-instance] [--foreground|--dry-run]", prepareMeshTarget: false },
|
|
217
|
+
{ name: "stop", flagNames: ["space", "instance", "yes", "with-agents", "dry-run", "json", "plain"], summary: "stop the exact owned process through its declared native policy", usage: "cotal service stop <name> [--instance <id>] [--with-agents] [--yes|--dry-run]", prepareMeshTarget: false },
|
|
218
|
+
{ name: "restart", flagNames: ["space", "instance", "yes", "with-agents", "dry-run", "json", "plain"], summary: "confirm an exact owned stop before one replacement launch", usage: "cotal service restart <name> [--instance <id>] [--with-agents] [--yes|--dry-run]", prepareMeshTarget: false },
|
|
219
|
+
{ name: "status", flagNames: ["space", "instance", "json", "plain"], summary: "read instance identity and process observations without repair", usage: "cotal service status <name> [--instance <id>]", reads: true, prepareMeshTarget: false },
|
|
220
|
+
{ name: "logs", flagNames: ["space", "instance", "tail", "follow", "json", "plain"], summary: "read the selected instance's private file or original-invocation journal", usage: "cotal service logs <name> [--instance <id>] [--tail <n>] [--follow]", reads: true, prepareMeshTarget: false },
|
|
221
|
+
{ name: "install", flagNames: ["space", "instance", "dry-run", "json", "plain"], summary: "install an inactive owned Linux user unit and enable autostart", usage: "cotal service install <name> [--instance <id>] [--dry-run]", prepareMeshTarget: false },
|
|
222
|
+
{ name: "uninstall", flagNames: ["space", "instance", "yes", "dry-run", "json", "plain"], summary: "remove a stopped unchanged owned Linux user unit and private store", usage: "cotal service uninstall <name> [--instance <id>] [--yes|--dry-run]", prepareMeshTarget: false },
|
|
223
|
+
].map((sub) => ({ ...sub, outputs: sub.name === "logs" ? ["json", "ndjson", "plain"] : ["json", "plain"] })),
|
|
224
|
+
validate: validateServiceArguments,
|
|
127
225
|
run: service,
|
|
128
226
|
complete: serviceComplete,
|
|
129
227
|
},
|
|
@@ -131,18 +229,23 @@ const baseCommands = [
|
|
|
131
229
|
kind: "command",
|
|
132
230
|
name: "down",
|
|
133
231
|
group: "Mesh",
|
|
134
|
-
summary: "stop
|
|
135
|
-
positionals: "[<
|
|
232
|
+
summary: "stop named owned services or this root's recorded controller stack",
|
|
233
|
+
positionals: "[<service-name> …]",
|
|
234
|
+
usage: "cotal down [<service-name>] [--instance <full-id>] [--yes|--dry-run] [--space <space>] [--json|--plain]",
|
|
235
|
+
outputs: ["json", "plain"], prepareMeshTarget: false,
|
|
136
236
|
flags: [
|
|
137
237
|
{ name: "file", type: "string", short: "f", value: "<cotal.yaml>", description: "tear down this manifest's deploy" },
|
|
138
238
|
{ name: "run", type: "string", value: "<id>", description: "tear down one `spawn -f` run by id" },
|
|
139
|
-
|
|
140
|
-
{ name: "
|
|
239
|
+
spaceFlag, jsonFlag, plainFlag,
|
|
240
|
+
{ name: "instance", type: "string", value: "<full-id>", description: "one named owned service: select its full instance ID, never a prefix" },
|
|
241
|
+
{ name: "yes", short: "y", type: "boolean", description: "acknowledge only the reviewed named-service or recorded whole-stack stop scope" },
|
|
242
|
+
{ name: "dry-run", type: "boolean", description: "bare: inspect local records only; named: preview owned stop; mutate nothing" },
|
|
141
243
|
{ name: "with-agents", type: "boolean", description: "bare whole stack: also stop and deprovision every managed agent" },
|
|
142
244
|
{ name: "preserve-state", type: "boolean", description: "bare whole stack: stop without logical teardown and publish an offline backup cut" },
|
|
143
245
|
{ name: "store-dir", type: "string", value: "<dir>", description: "with --preserve-state: actual JetStream store (default .cotal/nats)" },
|
|
144
246
|
{ name: "session-store", type: "string", multiple: true, value: "<dir>", description: "with --preserve-state: a harness transcript store directory to capture with every continuation-capable seat (repeatable; no default and never inferred)" },
|
|
145
247
|
],
|
|
248
|
+
validate: validateDownArguments,
|
|
146
249
|
run: down,
|
|
147
250
|
complete: downComplete,
|
|
148
251
|
},
|
|
@@ -150,9 +253,21 @@ const baseCommands = [
|
|
|
150
253
|
kind: "command",
|
|
151
254
|
name: "backup",
|
|
152
255
|
group: "Mesh",
|
|
153
|
-
summary: "create
|
|
154
|
-
usage: "backup create <
|
|
155
|
-
positionals: "create <
|
|
256
|
+
summary: "create from a preserved cut, inspect or verify it offline, or restore it into the preserved root",
|
|
257
|
+
usage: "backup create|inspect|verify|restore <directory> | recover|cleanup-fallback <full-attempt-id> [--yes|--dry-run] [--json|--plain]",
|
|
258
|
+
positionals: "<create|inspect|verify|restore|recover|cleanup-fallback> <directory-or-full-attempt-id>",
|
|
259
|
+
flagNames: ["json", "plain"],
|
|
260
|
+
outputs: ["json", "plain"],
|
|
261
|
+
prepareMeshTarget: false,
|
|
262
|
+
subcommands: [
|
|
263
|
+
{ name: "recover", flagNames: ["yes", "dry-run", "json", "plain"], summary: "roll back only the exact stale pre-commit restore under native guards", outputs: ["json", "plain"], prepareMeshTarget: false },
|
|
264
|
+
{ name: "cleanup-fallback", flagNames: ["yes", "dry-run", "json", "plain"], summary: "clean only the unchanged old source of a healthy active restore", outputs: ["json", "plain"], prepareMeshTarget: false },
|
|
265
|
+
{ name: "create", flagNames: ["only", "store-dir", "json", "plain"], summary: "create a private artifact from the native stopped preservation cut", outputs: ["json", "plain"], prepareMeshTarget: false },
|
|
266
|
+
{ name: "inspect", flagNames: ["json", "plain"], summary: "read manifest and exact file inventory; integrity is not checked", reads: true, outputs: ["json", "plain"], prepareMeshTarget: false },
|
|
267
|
+
{ name: "verify", flagNames: ["json", "plain"], summary: "read and hash files against the manifest; restore is not tested", reads: true, outputs: ["json", "plain"], prepareMeshTarget: false },
|
|
268
|
+
{ name: "restore", flagNames: ["only", "store-dir", "accept-missing-source", "json", "plain"], summary: "restore an artifact into this root's stopped preserved cut under the native guards, then resume it", usage: "cotal backup restore <directory> [--only registry] [--store-dir <dir>] [--accept-missing-source] [--json|--plain]", outputs: ["json", "plain"], prepareMeshTarget: false },
|
|
269
|
+
],
|
|
270
|
+
validate: validateBackupArguments,
|
|
156
271
|
flags: backupFlags,
|
|
157
272
|
run: backup,
|
|
158
273
|
complete: backupComplete,
|
|
@@ -162,8 +277,8 @@ const baseCommands = [
|
|
|
162
277
|
name: "clean",
|
|
163
278
|
group: "Mesh",
|
|
164
279
|
summary: "configurable cleanup - history/store/all, plus explicit committed-restore fallback cleanup",
|
|
165
|
-
usage: "clean <history|store|all> --force [--dms] [--space <s>] [--server <url>] [--creds <path>] [--store-dir <dir>] | clean restore-fallback --attempt <id> --force",
|
|
166
|
-
positionals: "<history|store|all|restore-fallback>",
|
|
280
|
+
usage: "cotal clean <history|store|all> --force [--dms] [--space <s>] [--server <url>] [--creds <path>] [--store-dir <dir>] | cotal clean <restore-attempt|restore-fallback> --attempt <id> --force",
|
|
281
|
+
positionals: "<history|store|all|restore-attempt|restore-fallback>",
|
|
167
282
|
flags: [
|
|
168
283
|
...targetFlags,
|
|
169
284
|
{ name: "dms", type: "boolean", description: "history: also clear DM history" },
|
|
@@ -174,6 +289,23 @@ const baseCommands = [
|
|
|
174
289
|
run: clean,
|
|
175
290
|
complete: cleanComplete,
|
|
176
291
|
},
|
|
292
|
+
{
|
|
293
|
+
kind: "command",
|
|
294
|
+
name: "reset",
|
|
295
|
+
group: "Mesh",
|
|
296
|
+
summary: "preview or reset one verified stopped local store or identity",
|
|
297
|
+
positionals: "<store|space> <space>",
|
|
298
|
+
usage: "cotal reset <store|space> <space> [--dry-run] [-y|--yes] [--json|--plain]",
|
|
299
|
+
flags: resetFlags,
|
|
300
|
+
outputs: ["json", "plain"], prepareMeshTarget: false,
|
|
301
|
+
subcommands: [
|
|
302
|
+
{ name: "store", flagNames: ["dry-run", "yes", "json", "plain"], outputs: ["json", "plain"], summary: "preview or remove an exact stopped store; preserve identity and registration", usage: "cotal reset store <space> [--dry-run] [-y|--yes] [--json|--plain]", prepareMeshTarget: false },
|
|
303
|
+
{ name: "space", flagNames: ["dry-run", "yes", "json", "plain"], outputs: ["json", "plain"], summary: "reset the stopped local store, identity and eligible local registration", usage: "cotal reset space <space> [--dry-run] [-y|--yes] [--json|--plain]", prepareMeshTarget: false },
|
|
304
|
+
],
|
|
305
|
+
validate: validateResetArguments,
|
|
306
|
+
examples: ["cotal reset store demo --dry-run", "cotal reset space demo --dry-run --json"],
|
|
307
|
+
run: reset, complete: resetComplete,
|
|
308
|
+
},
|
|
177
309
|
{
|
|
178
310
|
kind: "command",
|
|
179
311
|
name: "meshes",
|
|
@@ -185,20 +317,56 @@ const baseCommands = [
|
|
|
185
317
|
run: meshes,
|
|
186
318
|
complete: meshesComplete,
|
|
187
319
|
},
|
|
320
|
+
{
|
|
321
|
+
kind: "command",
|
|
322
|
+
name: "space",
|
|
323
|
+
group: "Mesh",
|
|
324
|
+
summary: "inspect and register spaces; preview or confirm exact live deletion impact",
|
|
325
|
+
usage: "cotal space [--json|--plain] | space show [<name>] | space add [<name>] | space create <name> | space forget <name> | space delete <name> [--dry-run|-y]",
|
|
326
|
+
positionals: "[show [<name>] | add [<name>] | create <name> | forget <name> | delete <name> [--dry-run|-y]]",
|
|
327
|
+
subcommands: [
|
|
328
|
+
{ name: "show", flagNames: ["json", "plain"], summary: "one space in full: broker, mode, root, origin and login; the selected one when no name is given", usage: "cotal space show [<name>] [--json|--plain]", outputs: ["json", "plain"], reads: true },
|
|
329
|
+
{
|
|
330
|
+
name: "add",
|
|
331
|
+
flagNames: ["server", "root", "mode", "file", "from", "tls", "allow-unencrypted-overlay", "force", "yes", "json", "plain"],
|
|
332
|
+
summary: "register a space that runs elsewhere, after checking its broker and trust; the selection is unchanged",
|
|
333
|
+
usage: "cotal space add <name> --server <url> [--root <dir>] [--mode auth|open] [--tls] [--allow-unencrypted-overlay] [--force] [-y|--yes] [--json|--plain] | space add [<name>] (-f|--file <bundle.json> | --from <https url>) [--root <dir>] [--server <url>] [--force] [-y|--yes]",
|
|
334
|
+
outputs: ["json", "plain"],
|
|
335
|
+
},
|
|
336
|
+
{ name: "create", flagNames: ["root", "json", "plain"], summary: "prepare a space to start here: records its name and root, and `cotal up` in the root starts it", usage: "cotal space create <name> [--root <dir>] [--json|--plain]", outputs: ["json", "plain"] },
|
|
337
|
+
{ name: "forget", flagNames: ["json", "plain"], summary: "remove a registration or a prepared space; stops nothing and keeps the root's files", usage: "cotal space forget <name> [--json|--plain]", outputs: ["json", "plain"] },
|
|
338
|
+
{ name: "delete", flagNames: ["dry-run", "yes", "json", "plain"], summary: "preview native impact or delete the exact space after confirmation; local records stay", usage: "cotal space delete <name> [--dry-run] [-y|--yes] [--json|--plain]", outputs: ["json", "plain"], prepareMeshTarget: false },
|
|
339
|
+
],
|
|
340
|
+
flags: spaceFlags,
|
|
341
|
+
outputs: ["json", "plain"],
|
|
342
|
+
examples: ["cotal space", "cotal space show research --json", "cotal space add research --server nats://100.90.12.34:4222 --root ~/research", "cotal space add --file hosted.json", "cotal space create demo --root ~/demo", "cotal space forget research", "cotal space delete research --dry-run"],
|
|
343
|
+
reads: true,
|
|
344
|
+
run: space,
|
|
345
|
+
complete: spaceComplete,
|
|
346
|
+
},
|
|
188
347
|
{
|
|
189
348
|
kind: "command",
|
|
190
349
|
name: "sync",
|
|
191
350
|
group: "Mesh",
|
|
192
351
|
summary: "refresh signed-in space catalogs and report registry changes",
|
|
352
|
+
usage: "cotal sync [--idp <auth base URL>] [--json|--plain]",
|
|
193
353
|
flags: syncFlags,
|
|
354
|
+
outputs: ["json", "plain"],
|
|
194
355
|
run: sync,
|
|
195
356
|
},
|
|
196
357
|
{
|
|
197
358
|
kind: "command",
|
|
198
359
|
name: "status",
|
|
360
|
+
aliases: ["s"],
|
|
199
361
|
group: "Mesh",
|
|
200
|
-
summary: "
|
|
362
|
+
summary: "read-only status of this machine, its processes, the recorded meshes and the selected mesh",
|
|
363
|
+
usage: "cotal status [<agent>] [--json|--plain] [--space <s>] | status [--all] [--verbose] | status <agent> [--on <manager-instance>] | status --components",
|
|
364
|
+
positionals: "[<agent>]",
|
|
201
365
|
flags: statusFlags,
|
|
366
|
+
validate: validateStatusArguments,
|
|
367
|
+
outputs: ["json", "plain"],
|
|
368
|
+
examples: ["cotal status", "cotal status --all", "cotal status --json", "cotal status --components"],
|
|
369
|
+
reads: true,
|
|
202
370
|
run: status,
|
|
203
371
|
},
|
|
204
372
|
{
|
|
@@ -207,15 +375,25 @@ const baseCommands = [
|
|
|
207
375
|
group: "Mesh",
|
|
208
376
|
summary: "credential-health diagnosis + repair - `doctor auth [--fix]` renders every managed cred (healthy/near-expiry/expired) and ends in `healthy` or the exact next command",
|
|
209
377
|
positionals: "auth",
|
|
378
|
+
flagNames: ["space", "json", "plain"],
|
|
210
379
|
flags: doctorFlags,
|
|
380
|
+
outputs: ["json", "plain"],
|
|
381
|
+
reads: true,
|
|
382
|
+
prepareMeshTarget: false,
|
|
383
|
+
subcommands: [{ name: "auth", flagNames: ["space", "fix", "json", "plain"], summary: "inspect local credential claims; --fix requests guarded native daemon repair", reads: true, outputs: ["json", "plain"], prepareMeshTarget: false }],
|
|
384
|
+
validate: validateDoctorArguments,
|
|
211
385
|
run: doctor,
|
|
212
386
|
},
|
|
213
387
|
{
|
|
214
388
|
kind: "command",
|
|
215
389
|
name: "use",
|
|
216
390
|
group: "Mesh",
|
|
217
|
-
summary: "
|
|
218
|
-
|
|
391
|
+
summary: "select the space commands target when none is named, from any directory; bare `use` shows the selection",
|
|
392
|
+
usage: "cotal use [<space>] [--json|--plain]",
|
|
393
|
+
positionals: "[<space>]",
|
|
394
|
+
flags: useFlags,
|
|
395
|
+
outputs: ["json", "plain"],
|
|
396
|
+
examples: ["cotal use", "cotal use research"],
|
|
219
397
|
run: use,
|
|
220
398
|
complete: useComplete,
|
|
221
399
|
},
|
|
@@ -238,27 +416,34 @@ const baseCommands = [
|
|
|
238
416
|
run: join,
|
|
239
417
|
},
|
|
240
418
|
{
|
|
241
|
-
kind: "command",
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
419
|
+
kind: "command", name: "mint", group: "Identity", hidden: true,
|
|
420
|
+
summary: "credential minting moved to auth mint",
|
|
421
|
+
usage: "cotal auth mint <name> [options]", positionals: "<name>",
|
|
422
|
+
flags: [...credentialMintFlags,
|
|
423
|
+
{ name: "signer", type: "boolean", description: "replaced by auth signer --out <private-file>" },
|
|
424
|
+
{ name: "force", type: "boolean", description: "replacement is scoped to auth signer" },
|
|
425
|
+
],
|
|
426
|
+
outputs: ["json", "plain"], prepareMeshTarget: false,
|
|
427
|
+
validate: () => { throw new CommandFailure("refused", "USAGE_INVALID", "cotal mint moved into the auth namespace; no credential was issued", { remedy: "use cotal auth mint <name>, or cotal auth signer --out <private-file>" }); },
|
|
428
|
+
run: async () => { throw new CommandFailure("refused", "USAGE_INVALID", "use cotal auth mint <name> instead"); },
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
kind: "command", name: "team", aliases: ["t"], group: "Teams",
|
|
432
|
+
summary: "inspect teams, boot a fresh mesh or add all-new channel cards or agents",
|
|
433
|
+
positionals: "[show <deployment-id> | check <file> | boot <file> [--dry-run] | deploy <file> [--dry-run] | remove <deployment-id> [--dry-run]]",
|
|
434
|
+
flagNames: ["space", "json", "plain"],
|
|
435
|
+
usage: "cotal team [show <deployment-id> | check <file> [--graph] | boot <file> [--dry-run] | deploy <file> [--dry-run] | remove <deployment-id> [--dry-run]] [--space <s>] [--json|--plain]",
|
|
436
|
+
flags: teamFlags, reads: true, prepareMeshTarget: false, outputs: ["json", "plain"],
|
|
437
|
+
subcommands: [
|
|
438
|
+
{ name: "show", flagNames: ["space", "json", "plain"], outputs: ["json", "plain"], summary: "read one fresh boot summary or additive ownership ledger, not live state", usage: "cotal team show <deployment-id>", reads: true, prepareMeshTarget: false },
|
|
439
|
+
{ name: "check", flagNames: ["space", "graph", "json", "plain"], outputs: ["json", "plain"], summary: "resolve a manifest and referenced personas offline", usage: "cotal team check <file> [--graph]", reads: true, prepareMeshTarget: false },
|
|
440
|
+
{ name: "boot", flagNames: ["space", "foreground", "dry-run", "json", "plain"], outputs: ["json", "plain"], summary: "boot a fresh controller-owned stack; --foreground holds its terminal lifetime", usage: "cotal team boot <file> [--dry-run | --foreground]", prepareMeshTarget: false },
|
|
441
|
+
{ name: "deploy", flagNames: ["space", "runtime", "allow-stale", "dry-run", "json", "plain"], outputs: ["json", "plain"], summary: "add all-new live channels and static/open teams through one native manager", usage: "cotal team deploy <file> [--dry-run]", prepareMeshTarget: false },
|
|
442
|
+
{ name: "remove", flagNames: ["space", "dry-run", "yes", "json", "plain"], outputs: ["json", "plain"], summary: "retire a recorded static agent-only team; --dry-run reads native impact", usage: "cotal team remove <deployment-id> [--dry-run] [--yes]", prepareMeshTarget: false },
|
|
443
|
+
{ name: "list", flagNames: ["space", "json", "plain"], outputs: ["json", "plain"], hidden: true, summary: "read available local fresh and additive deployment records", reads: true, prepareMeshTarget: false },
|
|
260
444
|
],
|
|
261
|
-
|
|
445
|
+
examples: ["cotal t", "cotal t check cotal.yaml --graph", "cotal t boot cotal.yaml --dry-run", "cotal t boot cotal.yaml", "cotal t deploy cotal.yaml --dry-run", "cotal t deploy channels.yaml", "cotal t show <deployment-id>", "cotal t remove <deployment-id> [--dry-run]"],
|
|
446
|
+
validate: validateTeamArguments, run: team, complete: teamComplete,
|
|
262
447
|
},
|
|
263
448
|
{
|
|
264
449
|
kind: "command",
|
|
@@ -274,42 +459,67 @@ const baseCommands = [
|
|
|
274
459
|
kind: "command",
|
|
275
460
|
name: "send",
|
|
276
461
|
group: "Messaging",
|
|
277
|
-
summary: "send one message
|
|
278
|
-
usage: 'send
|
|
279
|
-
positionals: '
|
|
280
|
-
flags:
|
|
462
|
+
summary: "send one message to an agent, channel or role, then exit",
|
|
463
|
+
usage: 'cotal send (--to/-t <agent> | --channel/-c <channel> | --role/-r <role>) ["<message>" | --file/-f <path> | --stdin] [--json|--plain]',
|
|
464
|
+
positionals: '"<message>"',
|
|
465
|
+
flags: sendFlags,
|
|
466
|
+
outputs: ["json", "plain"],
|
|
467
|
+
validate: (args) => { sendArguments(args); },
|
|
468
|
+
examples: ['cotal send -t reviewer "Please inspect the patch"', 'cotal send -c review "The patch is ready"', 'cotal send -r reviewer "Please inspect the patch"'],
|
|
281
469
|
run: send,
|
|
282
470
|
complete: sendComplete,
|
|
283
471
|
},
|
|
284
472
|
{
|
|
285
473
|
kind: "command",
|
|
286
|
-
name: "
|
|
474
|
+
name: "chat",
|
|
287
475
|
group: "Messaging",
|
|
288
|
-
summary: "
|
|
289
|
-
usage: "
|
|
290
|
-
positionals: "<
|
|
291
|
-
flags:
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
476
|
+
summary: "open a live session under its own identity: the terminal view, --plain lines, or --stdio for programs",
|
|
477
|
+
usage: "cotal chat [<channel>] [--name <n>] [--plain | --stdio]",
|
|
478
|
+
positionals: "[<channel>]",
|
|
479
|
+
flags: chatFlags,
|
|
480
|
+
outputs: ["plain"],
|
|
481
|
+
validate: (args) => { chatArguments(args); },
|
|
482
|
+
examples: ["cotal chat", "cotal chat review", "cotal chat review --name alice --plain", "cotal chat review --stdio"],
|
|
483
|
+
run: chat,
|
|
484
|
+
complete: chatComplete,
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
kind: "command",
|
|
488
|
+
name: "channel",
|
|
489
|
+
aliases: ["ch"],
|
|
490
|
+
group: "Messaging",
|
|
491
|
+
summary: "read channel metadata and observed members, or change a channel's settings",
|
|
492
|
+
usage: "cotal channel [show|members|set|remove <name> | defaults] [options]",
|
|
493
|
+
positionals: "[show|members|set|remove <name> | defaults]",
|
|
494
|
+
flags: channelFlags,
|
|
495
|
+
outputs: ["json", "ndjson", "plain"],
|
|
496
|
+
reads: true,
|
|
497
|
+
subcommands: [
|
|
498
|
+
{ name: "show", summary: "read one channel's metadata and effective policy", reads: true, outputs: ["json", "plain"] },
|
|
499
|
+
{ name: "members", summary: "read broker-derived membership, or follow with --follow", reads: true, outputs: ["json", "ndjson", "plain"] },
|
|
500
|
+
{ name: "set", summary: "save metadata, replay or delivery policy without changing access", outputs: ["json", "plain"] },
|
|
501
|
+
{ name: "defaults", summary: "read or update space-wide replay and delivery defaults", outputs: ["json", "plain"] },
|
|
502
|
+
{ name: "remove", aliases: ["rm"], summary: "remove saved metadata; --purge also deletes this channel's retained history", outputs: ["json", "plain"] },
|
|
298
503
|
],
|
|
504
|
+
validate: (args) => { channelArguments(args); },
|
|
505
|
+
examples: ["cotal ch", "cotal ch show review", "cotal ch members review --follow", 'cotal ch set review --desc "Review coordination"', "cotal ch defaults --replay --window 24h --delivery durable", "cotal ch rm review --purge --yes"],
|
|
299
506
|
run: channels,
|
|
507
|
+
complete: channelComplete,
|
|
300
508
|
},
|
|
301
509
|
{
|
|
302
510
|
kind: "command",
|
|
303
511
|
name: "history",
|
|
512
|
+
aliases: ["h"],
|
|
304
513
|
group: "Messaging",
|
|
305
|
-
summary: "
|
|
306
|
-
usage: "history
|
|
307
|
-
positionals: "<clear
|
|
308
|
-
flags:
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
],
|
|
514
|
+
summary: "read the newest retained messages within this identity's read grant, or clear history (`history clear`)",
|
|
515
|
+
usage: "cotal history [<channel>] [--dms] [--since <time|seq>] [--limit <n>] [--from <name>] [--grep <text>] [--follow] [--json|--plain] | cotal history clear --yes [--dms]",
|
|
516
|
+
positionals: "[<channel> | clear]",
|
|
517
|
+
flags: historyFlags,
|
|
518
|
+
outputs: ["json", "ndjson", "plain"],
|
|
519
|
+
examples: ["cotal history general", "cotal history --since 2h --grep deploy", "cotal history general --follow --json", "cotal history clear --yes"],
|
|
520
|
+
reads: true,
|
|
521
|
+
subcommands: [{ name: "clear", summary: "confirm and purge all retained channel history in the selected space", usage: "clear [--dms] [--yes|--dry-run] [--json|--plain]", outputs: ["json", "plain"], prepareMeshTarget: false }],
|
|
522
|
+
validate: validateHistoryArguments,
|
|
313
523
|
run: history,
|
|
314
524
|
},
|
|
315
525
|
{
|
|
@@ -318,26 +528,25 @@ const baseCommands = [
|
|
|
318
528
|
group: "Messaging",
|
|
319
529
|
summary: 'send feedback to the Cotal developers - feedback "<summary>" [--type <t>] [--email <e>]',
|
|
320
530
|
positionals: '"<summary>"',
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
{ name: "email", type: "string", value: "<e>", description: "contact email (required on the keyless public path)" },
|
|
327
|
-
{ name: "name", type: "string", value: "<n>", description: "your name (optional)" },
|
|
328
|
-
{ name: "url", type: "string", value: "<url>", description: "intake URL override" },
|
|
329
|
-
{ name: "key", type: "string", value: "<k>", description: "feedback key (default: COTAL_FEEDBACK_KEY)" },
|
|
330
|
-
],
|
|
531
|
+
flagNames: ["type", "details", "severity", "area", "email", "name", "url", "key-file", "json", "plain"],
|
|
532
|
+
flags: feedbackFlags,
|
|
533
|
+
outputs: ["json", "plain"],
|
|
534
|
+
prepareMeshTarget: false,
|
|
535
|
+
validate: validateFeedbackArguments,
|
|
331
536
|
run: feedback,
|
|
332
537
|
},
|
|
333
538
|
// ---- Agents -------------------------------------------------------------------------------
|
|
334
539
|
{
|
|
335
540
|
kind: "command",
|
|
336
541
|
name: "spawn",
|
|
542
|
+
aliases: ["sp"],
|
|
337
543
|
group: "Agents",
|
|
338
|
-
summary: "launch
|
|
544
|
+
summary: "launch through the manager and attach; -d returns after readiness, --foreground runs the application directly",
|
|
545
|
+
usage: "spawn [<persona>] [--file <persona-file>] [-d | --foreground] [--dry-run] [options]",
|
|
339
546
|
positionals: "[<persona>]",
|
|
340
547
|
flags: spawnFlags,
|
|
548
|
+
outputs: ["json", "plain"],
|
|
549
|
+
validate: validateSpawnArguments,
|
|
341
550
|
run: spawn,
|
|
342
551
|
complete: spawnComplete,
|
|
343
552
|
requiredExtensions: spawnRequiredExtensions,
|
|
@@ -347,7 +556,11 @@ const baseCommands = [
|
|
|
347
556
|
name: "models",
|
|
348
557
|
group: "Agents",
|
|
349
558
|
summary: "list connector model catalogs and variants from the manager",
|
|
559
|
+
usage: "cotal models [--json|--plain] [-H|--harness <connector>] [--refresh] [--on <manager-instance>]",
|
|
350
560
|
flags: modelsFlags,
|
|
561
|
+
outputs: ["json", "plain"],
|
|
562
|
+
examples: ["cotal models", "cotal models -H claude --refresh", "cotal models --on <manager-instance> --json"],
|
|
563
|
+
reads: true,
|
|
351
564
|
run: models,
|
|
352
565
|
complete: modelsComplete,
|
|
353
566
|
},
|
|
@@ -381,8 +594,13 @@ const baseCommands = [
|
|
|
381
594
|
kind: "command",
|
|
382
595
|
name: "stop",
|
|
383
596
|
group: "Agents",
|
|
384
|
-
summary: "
|
|
597
|
+
summary: "stop one managed agent",
|
|
598
|
+
usage: "cotal stop <name> [--force] | cotal stop --self [--force] [--json|--plain]",
|
|
599
|
+
positionals: "[<name>] | --self",
|
|
385
600
|
flags: stopFlags,
|
|
601
|
+
outputs: ["json", "plain"],
|
|
602
|
+
prepareMeshTarget: false,
|
|
603
|
+
validate: validateStopArguments,
|
|
386
604
|
run: stop,
|
|
387
605
|
complete: managedAgentComplete,
|
|
388
606
|
},
|
|
@@ -391,15 +609,23 @@ const baseCommands = [
|
|
|
391
609
|
name: "ps",
|
|
392
610
|
group: "Agents",
|
|
393
611
|
summary: "list managed agents + their mesh status",
|
|
612
|
+
usage: "cotal ps [--json|--plain] [--wide | --slots] [--on <instance>]",
|
|
394
613
|
flags: psFlags,
|
|
614
|
+
outputs: ["json", "plain"],
|
|
615
|
+
examples: ["cotal ps", "cotal ps --wide", "cotal ps --json", "cotal ps --on <instance>"],
|
|
616
|
+
reads: true,
|
|
395
617
|
run: ps,
|
|
396
618
|
},
|
|
397
619
|
{
|
|
398
620
|
kind: "command",
|
|
399
621
|
name: "attach",
|
|
622
|
+
aliases: ["a"],
|
|
400
623
|
group: "Agents",
|
|
401
|
-
summary: "
|
|
624
|
+
summary: "return to an agent's terminal; detaching leaves it running",
|
|
625
|
+
usage: "cotal attach [<name>] [--on <instance>] [--space <space>]",
|
|
626
|
+
positionals: "[<name>]",
|
|
402
627
|
flags: attachFlags,
|
|
628
|
+
validate: (args) => { managedTarget(args, "attach", true); },
|
|
403
629
|
run: attach,
|
|
404
630
|
complete: managedAgentComplete,
|
|
405
631
|
},
|
|
@@ -407,11 +633,37 @@ const baseCommands = [
|
|
|
407
633
|
kind: "command",
|
|
408
634
|
name: "input",
|
|
409
635
|
group: "Agents",
|
|
410
|
-
summary: "
|
|
636
|
+
summary: "write native terminal input without attaching; this is not a chat message",
|
|
637
|
+
usage: "cotal input <agent> <text> [--no-enter] [--on <instance>] [--json|--plain]",
|
|
638
|
+
positionals: "<agent> <text>",
|
|
411
639
|
flags: inputFlags,
|
|
640
|
+
outputs: ["json", "plain"],
|
|
641
|
+
validate: (args) => { inputArguments(args); },
|
|
412
642
|
run: input,
|
|
413
643
|
complete: managedAgentComplete,
|
|
414
644
|
},
|
|
645
|
+
{
|
|
646
|
+
kind: "command",
|
|
647
|
+
name: "persona",
|
|
648
|
+
aliases: ["p"],
|
|
649
|
+
group: "Agents",
|
|
650
|
+
summary: "manage local definitions or an exact manager's caller-owned persona catalog",
|
|
651
|
+
usage: "cotal persona [--json|--plain] | persona show <name> | persona create <name> (--file <persona.md>|--prompt <text>|--from <path>) | persona edit <name> | persona remove <name> [--yes]; list/show/create support --on <manager-instance>",
|
|
652
|
+
positionals: "[show <name> | create <name> | edit <name> | remove <name>]",
|
|
653
|
+
flagNames: ["space", "server", "on", "json", "plain"],
|
|
654
|
+
subcommands: [
|
|
655
|
+
{ name: "show", flagNames: ["space", "server", "on", "json", "plain"], summary: "read a local definition or an authorized exact-manager card", reads: true, outputs: ["json", "plain"] },
|
|
656
|
+
{ name: "create", flagNames: ["space", "server", "on", "file", "prompt", "from", "role", "model", "harness", "subscribe", "allow-subscribe", "allow-publish", "announce", "json", "plain"], summary: "save a local definition or define a caller-owned remote persona", outputs: ["json", "plain"] },
|
|
657
|
+
{ name: "edit", flagNames: ["space", "server", "json", "plain"], summary: "validate a private editor draft before saving", outputs: ["json", "plain"] },
|
|
658
|
+
{ name: "remove", flagNames: ["space", "server", "yes", "json", "plain"], aliases: ["rm"], summary: "remove a named local definition after confirmation", outputs: ["json", "plain"] },
|
|
659
|
+
],
|
|
660
|
+
flags: personaFlags,
|
|
661
|
+
outputs: ["json", "plain"],
|
|
662
|
+
reads: true,
|
|
663
|
+
prepareMeshTarget: false,
|
|
664
|
+
run: persona,
|
|
665
|
+
complete: personaComplete,
|
|
666
|
+
},
|
|
415
667
|
{
|
|
416
668
|
kind: "command",
|
|
417
669
|
name: "personas",
|
|
@@ -434,22 +686,79 @@ const baseCommands = [
|
|
|
434
686
|
complete: personasComplete,
|
|
435
687
|
},
|
|
436
688
|
// ---- Observe ------------------------------------------------------------------------------
|
|
689
|
+
{
|
|
690
|
+
kind: "command", name: "endpoint", aliases: ["ep"], group: "Endpoints",
|
|
691
|
+
positionals: "[show|add|remove|describe|invoke|watch|session|work|init|check|deregister] [target] [command-or-instance]",
|
|
692
|
+
summary: "save references, author contracts offline, and inspect or invoke native endpoints",
|
|
693
|
+
usage: "cotal endpoint [show | add | remove | describe | invoke | watch | session | work | init | check | deregister] [target] [command-or-instance] [options]",
|
|
694
|
+
flagNames: ["space", "live", "server", "creds", "json", "plain"],
|
|
695
|
+
flags: endpointFlags, outputs: ["json", "ndjson", "plain"], reads: true, prepareMeshTarget: false,
|
|
696
|
+
subcommands: [
|
|
697
|
+
{ name: "deregister", flagNames: ["space", "server", "yes", "dry-run", "json", "plain"], summary: "remove one broker-affirmed-gone registration through the native guarded provider", usage: "cotal endpoint deregister <class> <full-instance-id> [--yes|--dry-run]" },
|
|
698
|
+
{ name: "init", flagNames: ["dir", "json", "plain"], summary: "create a contract and handler template without launching anything", usage: "cotal endpoint init <name> [--dir <directory>]" },
|
|
699
|
+
{ name: "check", flagNames: ["json", "plain"], summary: "compile a local endpoint contract offline; never execute its handler", reads: true, usage: "cotal endpoint check <contract-file>" },
|
|
700
|
+
{ name: "show", flagNames: ["space", "json", "plain"], summary: "read a local reference and its revision", reads: true, usage: "cotal endpoint show <name>" },
|
|
701
|
+
{ name: "describe", flagNames: ["space", "server", "creds", "on", "refresh", "json", "plain"], summary: "read the selected native endpoint's digest-verified contracts", reads: true, usage: "cotal endpoint describe <ref:name | ep:class | target>" },
|
|
702
|
+
{ name: "invoke", flagNames: ["space", "server", "creds", "on", "args", "name", "self", "admin", "timeout", "handle", "wait", "cast", "all", "json", "plain"], summary: "invoke one declared command under the existing caller authority", usage: "cotal endpoint invoke <target> <command> [--args '<json>']" },
|
|
703
|
+
{ name: "watch", flagNames: ["space", "server", "creds", "on", "since", "json", "plain"], summary: "declared record/event watch; native declaration adapter unavailable in this author", usage: "cotal endpoint watch <target> <record-key-or-topic> [--since <native-sequence>]", reads: true },
|
|
704
|
+
{ name: "session", flagNames: ["space", "server", "creds", "on", "json", "plain"], summary: "declared interactive session; native declaration adapter unavailable in this author", usage: "cotal endpoint session <target> <command>" },
|
|
705
|
+
{ name: "work", flagNames: ["space", "server", "creds", "on", "lease", "result", "json", "plain"], summary: "declared work pools; native declaration adapter unavailable in this author", usage: "cotal endpoint work lease <target> <pool> | work commit <target> <pool> --lease <private-file> --result <JSON>", subcommands: [
|
|
706
|
+
{ name: "lease", flagNames: ["space", "server", "creds", "on", "json", "plain"], summary: "lease from a declared pool; no lease is created on refusal" },
|
|
707
|
+
{ name: "commit", flagNames: ["space", "server", "creds", "on", "lease", "result", "json", "plain"], summary: "commit an original native lease tuple; unsupported routes read or consume nothing" },
|
|
708
|
+
] },
|
|
709
|
+
{ name: "add", flagNames: ["space", "file", "json", "plain"], summary: "save a validated local reference; launch and invoke nothing", usage: "cotal endpoint add [name] [--file <reference.json>]" },
|
|
710
|
+
{ name: "remove", flagNames: ["space", "yes", "json", "plain"], aliases: ["rm"], summary: "forget only a pinned local reference", usage: "cotal endpoint remove <name> [--yes]" },
|
|
711
|
+
{ name: "list", flagNames: ["space", "server", "creds", "live", "json", "plain"], hidden: true, summary: "read only the selected space's local references", reads: true },
|
|
712
|
+
].map((sub) => ({ ...sub, outputs: sub.name === "invoke" ? ["json", "ndjson", "plain"] : ["json", "plain"] })),
|
|
713
|
+
validate: validateEndpointReferenceArguments, run: endpoint,
|
|
714
|
+
},
|
|
437
715
|
{
|
|
438
716
|
kind: "command",
|
|
439
717
|
name: "endpoints",
|
|
440
718
|
group: "Observe",
|
|
441
|
-
summary: "
|
|
442
|
-
flags:
|
|
719
|
+
summary: "read authorized live presence, including agents and infrastructure",
|
|
720
|
+
flags: endpointsFlags,
|
|
721
|
+
outputs: ["json", "plain"],
|
|
722
|
+
reads: true,
|
|
723
|
+
validate: (args) => { presentationOf(args.values); },
|
|
443
724
|
run: endpoints,
|
|
444
725
|
},
|
|
726
|
+
{
|
|
727
|
+
kind: "command",
|
|
728
|
+
name: "who",
|
|
729
|
+
group: "Observe",
|
|
730
|
+
summary: "the live roster of the selected space: status, attention, harness, model, host and whether a manager runs each seat",
|
|
731
|
+
usage: "cotal who [--waiting] [--all] [--json|--plain] [--space <s>] [--server <url>] [--creds <path>]",
|
|
732
|
+
flags: whoFlags,
|
|
733
|
+
outputs: ["json", "plain"],
|
|
734
|
+
examples: ["cotal who", "cotal who --waiting", "cotal who --all --json"],
|
|
735
|
+
reads: true,
|
|
736
|
+
run: who,
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
kind: "command",
|
|
740
|
+
name: "whoami",
|
|
741
|
+
group: "Observe",
|
|
742
|
+
summary: "the identity this CLI acts under in the selected space, and what it may read, post and do",
|
|
743
|
+
usage: "cotal whoami [--json|--plain] [--space <s>] [--server <url>]",
|
|
744
|
+
flags: whoamiFlags,
|
|
745
|
+
prepareMeshTarget: false,
|
|
746
|
+
outputs: ["json", "plain"],
|
|
747
|
+
examples: ["cotal whoami", "cotal whoami --json"],
|
|
748
|
+
reads: true,
|
|
749
|
+
run: whoami,
|
|
750
|
+
},
|
|
445
751
|
{
|
|
446
752
|
kind: "command",
|
|
447
753
|
name: "describe",
|
|
448
754
|
group: "Observe",
|
|
449
|
-
summary: "
|
|
755
|
+
summary: "read a native endpoint's authorized, digest-verified command contracts",
|
|
450
756
|
usage: "describe <endpoint> [--space <s>] [--server <url>]",
|
|
451
757
|
positionals: "<endpoint>",
|
|
452
758
|
flags: describeFlags,
|
|
759
|
+
outputs: ["json", "plain"],
|
|
760
|
+
validate: (args) => validateEndpointArguments(args, "describe"),
|
|
761
|
+
reads: true,
|
|
453
762
|
run: describeCmd,
|
|
454
763
|
complete: describeComplete,
|
|
455
764
|
},
|
|
@@ -457,13 +766,29 @@ const baseCommands = [
|
|
|
457
766
|
kind: "command",
|
|
458
767
|
name: "invoke",
|
|
459
768
|
group: "Observe",
|
|
460
|
-
summary: "invoke
|
|
769
|
+
summary: "invoke a native command with schema validation and attributed result receipts",
|
|
461
770
|
usage: "invoke <endpoint> <command> [--args '<json>'] [--name <agent> | --self] [--admin]",
|
|
462
771
|
positionals: "<endpoint> <command>",
|
|
463
772
|
flags: invokeFlags,
|
|
773
|
+
outputs: ["json", "ndjson", "plain"],
|
|
774
|
+
validate: (args) => validateEndpointArguments(args, "invoke"),
|
|
464
775
|
run: invokeCmd,
|
|
465
776
|
complete: describeComplete,
|
|
466
777
|
},
|
|
778
|
+
{
|
|
779
|
+
kind: "command",
|
|
780
|
+
name: "watch",
|
|
781
|
+
aliases: ["w"],
|
|
782
|
+
group: "Observe",
|
|
783
|
+
summary: "follow authorized activity without starting, stopping or attaching agents",
|
|
784
|
+
usage: "cotal watch [--view <feed|events|messages|roster|channels|waiting|dms|topology>] [--json|--plain] [--space <space>]",
|
|
785
|
+
flags: watchFlags,
|
|
786
|
+
outputs: ["ndjson", "plain"],
|
|
787
|
+
validate: validateWatchArguments,
|
|
788
|
+
reads: true,
|
|
789
|
+
examples: ["cotal watch", "cotal watch --view events", "cotal watch --plain"],
|
|
790
|
+
run: watch,
|
|
791
|
+
},
|
|
467
792
|
{
|
|
468
793
|
kind: "command",
|
|
469
794
|
name: "console",
|
|
@@ -480,7 +805,6 @@ const baseCommands = [
|
|
|
480
805
|
// closes: the manager and the daemon write one name and status/down looked up another.
|
|
481
806
|
const baseProcesses = [
|
|
482
807
|
MANAGER_PROCESS,
|
|
483
|
-
DELIVERY_PROCESS,
|
|
484
808
|
AUTH_PROCESS,
|
|
485
809
|
{
|
|
486
810
|
kind: "local-process",
|
|
@@ -492,7 +816,8 @@ const baseProcesses = [
|
|
|
492
816
|
clearsMesh: true,
|
|
493
817
|
},
|
|
494
818
|
];
|
|
495
|
-
|
|
819
|
+
const credentialMintAction = { kind: "credential-action", name: "mint", validate: validateCredentialMintArguments, run: mint };
|
|
820
|
+
registry.register(...baseCommands, ...baseProcesses, credentialMintAction);
|
|
496
821
|
export { runCli } from "./command.js";
|
|
497
822
|
export { setInstalledExtensionsEnabled } from "./ext-loader.js";
|
|
498
823
|
export { c, statusBadge } from "./ui.js";
|
|
@@ -504,4 +829,5 @@ export { updateFlags } from "./commands/update.js";
|
|
|
504
829
|
// must outlive the manager's readiness wait (#159 B1).
|
|
505
830
|
export { START_TIMEOUT_MS } from "./lib/control.js";
|
|
506
831
|
export { launchAgent } from "./lib/manifest/live.js";
|
|
832
|
+
registry.register(serviceUnitEntry);
|
|
507
833
|
//# sourceMappingURL=index.js.map
|