@skrr-ai/cli 0.1.109 → 0.1.111
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/bin/run.js +15 -1
- package/dist/base-command.d.ts +44 -1
- package/dist/base-command.js +194 -33
- package/dist/commands/actions/list.js +2 -1
- package/dist/commands/agenda/trigger/create.js +1 -1
- package/dist/commands/agenda/trigger/list.js +2 -1
- package/dist/commands/agent-groups/list.js +2 -1
- package/dist/commands/agents/actions/list.js +2 -1
- package/dist/commands/agents/always-on/status.js +5 -0
- package/dist/commands/agents/chat.js +4 -1
- package/dist/commands/agents/duplicate.js +4 -0
- package/dist/commands/agents/eval/list.js +2 -1
- package/dist/commands/agents/files/list.js +2 -1
- package/dist/commands/agents/folders/list.js +2 -1
- package/dist/commands/agents/goals/list.js +2 -1
- package/dist/commands/agents/intuitions/list.js +8 -5
- package/dist/commands/agents/list.d.ts +12 -0
- package/dist/commands/agents/list.js +45 -8
- package/dist/commands/agents/releases/known-issues/list.js +2 -1
- package/dist/commands/agents/releases/list.js +5 -1
- package/dist/commands/agents/releases/trusted-publishers/list.js +2 -1
- package/dist/commands/agents/roles/list.js +2 -1
- package/dist/commands/agents/skills/list.js +2 -1
- package/dist/commands/agents/todos/list.js +2 -1
- package/dist/commands/agents/triggers/create.js +1 -1
- package/dist/commands/agents/triggers/list.js +2 -1
- package/dist/commands/agents/triggers/update.js +1 -1
- package/dist/commands/agents/update.d.ts +11 -0
- package/dist/commands/agents/update.js +58 -2
- package/dist/commands/api-keys/list.js +2 -1
- package/dist/commands/apps/channel.d.ts +20 -0
- package/dist/commands/apps/channel.js +64 -0
- package/dist/commands/apps/check-draft.d.ts +12 -0
- package/dist/commands/apps/check-draft.js +41 -0
- package/dist/commands/apps/check.d.ts +42 -0
- package/dist/commands/apps/check.js +91 -0
- package/dist/commands/apps/create.d.ts +15 -0
- package/dist/commands/apps/create.js +59 -0
- package/dist/commands/apps/data/put.d.ts +18 -0
- package/dist/commands/apps/data/put.js +72 -0
- package/dist/commands/apps/data/query.d.ts +20 -0
- package/dist/commands/apps/data/query.js +88 -0
- package/dist/commands/apps/disclosure.d.ts +16 -0
- package/dist/commands/apps/disclosure.js +71 -0
- package/dist/commands/apps/file/cat.d.ts +15 -0
- package/dist/commands/apps/file/cat.js +50 -0
- package/dist/commands/apps/file/ls.d.ts +13 -0
- package/dist/commands/apps/file/ls.js +47 -0
- package/dist/commands/apps/file/mv.d.ts +15 -0
- package/dist/commands/apps/file/mv.js +49 -0
- package/dist/commands/apps/file/rm.d.ts +15 -0
- package/dist/commands/apps/file/rm.js +53 -0
- package/dist/commands/apps/file/write.d.ts +17 -0
- package/dist/commands/apps/file/write.js +81 -0
- package/dist/commands/apps/install.d.ts +19 -0
- package/dist/commands/apps/install.js +136 -0
- package/dist/commands/apps/installations/list.d.ts +11 -0
- package/dist/commands/apps/installations/list.js +49 -0
- package/dist/commands/apps/installations/show.d.ts +12 -0
- package/dist/commands/apps/installations/show.js +61 -0
- package/dist/commands/apps/layout/set.d.ts +11 -0
- package/dist/commands/apps/layout/set.js +125 -0
- package/dist/commands/apps/layout/show.d.ts +9 -0
- package/dist/commands/apps/layout/show.js +33 -0
- package/dist/commands/apps/list.d.ts +10 -0
- package/dist/commands/apps/list.js +45 -0
- package/dist/commands/apps/logs.d.ts +13 -0
- package/dist/commands/apps/logs.js +55 -0
- package/dist/commands/apps/preview.d.ts +12 -0
- package/dist/commands/apps/preview.js +39 -0
- package/dist/commands/apps/publish/propose.d.ts +14 -0
- package/dist/commands/apps/publish/propose.js +45 -0
- package/dist/commands/apps/pull.d.ts +14 -0
- package/dist/commands/apps/pull.js +56 -0
- package/dist/commands/apps/push.d.ts +15 -0
- package/dist/commands/apps/push.js +75 -0
- package/dist/commands/apps/reconsent.d.ts +13 -0
- package/dist/commands/apps/reconsent.js +67 -0
- package/dist/commands/apps/report.d.ts +20 -0
- package/dist/commands/apps/report.js +63 -0
- package/dist/commands/apps/resume.d.ts +12 -0
- package/dist/commands/apps/resume.js +36 -0
- package/dist/commands/apps/settings/set.d.ts +13 -0
- package/dist/commands/apps/settings/set.js +54 -0
- package/dist/commands/apps/settings/show.d.ts +11 -0
- package/dist/commands/apps/settings/show.js +31 -0
- package/dist/commands/apps/show.d.ts +12 -0
- package/dist/commands/apps/show.js +49 -0
- package/dist/commands/apps/suspend.d.ts +12 -0
- package/dist/commands/apps/suspend.js +35 -0
- package/dist/commands/apps/uninstall.d.ts +13 -0
- package/dist/commands/apps/uninstall.js +43 -0
- package/dist/commands/apps/upgrade.d.ts +14 -0
- package/dist/commands/apps/upgrade.js +49 -0
- package/dist/commands/apps/version/create.d.ts +14 -0
- package/dist/commands/apps/version/create.js +53 -0
- package/dist/commands/apps/version/show.d.ts +12 -0
- package/dist/commands/apps/version/show.js +39 -0
- package/dist/commands/apps/versions.d.ts +12 -0
- package/dist/commands/apps/versions.js +40 -0
- package/dist/commands/apps/webhooks/list.d.ts +12 -0
- package/dist/commands/apps/webhooks/list.js +47 -0
- package/dist/commands/characters/list.js +2 -1
- package/dist/commands/chats/files/list.js +2 -1
- package/dist/commands/chats/folders/list.js +2 -1
- package/dist/commands/chats/list.js +2 -1
- package/dist/commands/chats/spaces/list.js +2 -1
- package/dist/commands/chats/widgets/list.js +2 -1
- package/dist/commands/code/jobs/list.js +4 -1
- package/dist/commands/commerce/incidents/list.js +2 -1
- package/dist/commands/commitments/accounting.js +3 -0
- package/dist/commands/commitments/action-proposals.d.ts +8 -0
- package/dist/commands/commitments/action-proposals.js +17 -2
- package/dist/commands/commitments/cost.d.ts +11 -0
- package/dist/commands/commitments/cost.js +25 -0
- package/dist/commands/commitments/create.js +6 -1
- package/dist/commands/commitments/endpoints/list.js +2 -1
- package/dist/commands/commitments/links/list.js +2 -1
- package/dist/commands/commitments/list.js +2 -1
- package/dist/commands/commitments/liveness.d.ts +30 -0
- package/dist/commands/commitments/liveness.js +22 -5
- package/dist/commands/commitments/pack/list.js +2 -1
- package/dist/commands/commitments/preflight.js +6 -2
- package/dist/commands/commitments/update.js +10 -1
- package/dist/commands/compass/list.js +2 -1
- package/dist/commands/context.js +7 -1
- package/dist/commands/convos/list.js +3 -2
- package/dist/commands/daemon/install.js +17 -1
- package/dist/commands/daemon/login.js +14 -0
- package/dist/commands/dm/list.js +2 -1
- package/dist/commands/dm/work.d.ts +19 -0
- package/dist/commands/dm/work.js +54 -0
- package/dist/commands/feeds/list.js +2 -1
- package/dist/commands/followups/list.js +2 -1
- package/dist/commands/followups/plans/cancel.d.ts +13 -0
- package/dist/commands/followups/plans/cancel.js +26 -0
- package/dist/commands/followups/plans/create.d.ts +11 -0
- package/dist/commands/followups/plans/create.js +35 -0
- package/dist/commands/followups/plans/list.d.ts +13 -0
- package/dist/commands/followups/plans/list.js +50 -0
- package/dist/commands/followups/plans/observability.d.ts +11 -0
- package/dist/commands/followups/plans/observability.js +46 -0
- package/dist/commands/followups/plans/revise.d.ts +13 -0
- package/dist/commands/followups/plans/revise.js +35 -0
- package/dist/commands/followups/plans/show.d.ts +11 -0
- package/dist/commands/followups/plans/show.js +32 -0
- package/dist/commands/goals/key-results/list.js +2 -1
- package/dist/commands/goals/labels/list.js +3 -2
- package/dist/commands/goals/list.js +3 -2
- package/dist/commands/grants/list.js +2 -1
- package/dist/commands/harnesses/grants/list.js +2 -1
- package/dist/commands/harnesses/leases/list.js +2 -1
- package/dist/commands/harnesses/list.js +10 -1
- package/dist/commands/harnesses/prune.d.ts +26 -0
- package/dist/commands/harnesses/prune.js +172 -0
- package/dist/commands/ingress/list.js +2 -1
- package/dist/commands/initiatives/list.js +2 -1
- package/dist/commands/instruction-blocks/list.js +2 -1
- package/dist/commands/instructions/list.js +2 -1
- package/dist/commands/integrations/connections/list.js +2 -1
- package/dist/commands/integrations/tools/list.js +2 -1
- package/dist/commands/labels/list.js +3 -2
- package/dist/commands/learning/adapters.d.ts +16 -0
- package/dist/commands/learning/adapters.js +44 -0
- package/dist/commands/login.js +11 -0
- package/dist/commands/machines/dedicated/list.js +2 -1
- package/dist/commands/machines/hosted/list.js +2 -1
- package/dist/commands/machines/list.js +2 -1
- package/dist/commands/machines/show.js +5 -2
- package/dist/commands/measures/list.js +2 -1
- package/dist/commands/memory/list.js +2 -1
- package/dist/commands/memory/proposals/list.js +2 -1
- package/dist/commands/memory/stores/list.js +2 -1
- package/dist/commands/memory/topics/list.js +2 -1
- package/dist/commands/memory/versions/list.js +2 -1
- package/dist/commands/messages/list.js +2 -1
- package/dist/commands/northstars/intents/list.js +2 -1
- package/dist/commands/northstars/list.js +2 -1
- package/dist/commands/northstars/recommendations/list.js +2 -1
- package/dist/commands/outbox/list.js +2 -1
- package/dist/commands/profiles/list.js +2 -1
- package/dist/commands/projects/docs/list.js +8 -1
- package/dist/commands/projects/updates/list.js +2 -1
- package/dist/commands/proposals/list.js +2 -1
- package/dist/commands/requests/comments/list.js +2 -1
- package/dist/commands/requests/list.js +2 -1
- package/dist/commands/shares/list.js +2 -1
- package/dist/commands/shortcuts/list.js +2 -1
- package/dist/commands/signals/monitors/list.js +2 -1
- package/dist/commands/signals/schemas/list.js +2 -1
- package/dist/commands/signals/sources/list.js +2 -1
- package/dist/commands/space-directory-views/list.js +2 -1
- package/dist/commands/spaces/actions/list.js +4 -3
- package/dist/commands/spaces/briefs/list.js +2 -1
- package/dist/commands/spaces/cycles/list.js +2 -1
- package/dist/commands/spaces/files/folders/list.js +2 -1
- package/dist/commands/spaces/files/list.js +3 -2
- package/dist/commands/spaces/heartbeats/list.js +3 -2
- package/dist/commands/spaces/labels/list.js +3 -2
- package/dist/commands/spaces/list.d.ts +3 -18
- package/dist/commands/spaces/list.js +28 -35
- package/dist/commands/spaces/live/cards/list.js +2 -1
- package/dist/commands/spaces/members/list.d.ts +1 -0
- package/dist/commands/spaces/members/list.js +4 -1
- package/dist/commands/spaces/show.js +2 -2
- package/dist/commands/spaces/skills/list.js +6 -2
- package/dist/commands/spaces/states/list.js +2 -1
- package/dist/commands/spaces/views/list.js +2 -1
- package/dist/commands/spaces/widgets/list.js +3 -2
- package/dist/commands/spaces/workflow-templates/list.js +2 -1
- package/dist/commands/spaces/workflows/fixtures/list.js +2 -1
- package/dist/commands/spaces/workflows/list.js +3 -2
- package/dist/commands/spaces/workflows/proposals/list.js +2 -1
- package/dist/commands/spaces/workflows/start.js +3 -1
- package/dist/commands/spaces/workflows/triggers/list.js +2 -1
- package/dist/commands/spaces/workflows/validate.js +12 -2
- package/dist/commands/store/acquisitions/list.js +2 -1
- package/dist/commands/store/admissions/list.js +17 -1
- package/dist/commands/store/advisories/list.js +2 -1
- package/dist/commands/store/follows/list.js +2 -1
- package/dist/commands/store/publishers/domains/list.js +2 -1
- package/dist/commands/store/reports/list.js +2 -1
- package/dist/commands/subscriptions/list.js +2 -1
- package/dist/commands/tasks/actionability.js +7 -30
- package/dist/commands/tasks/activity.js +14 -8
- package/dist/commands/tasks/approvals/list.js +2 -1
- package/dist/commands/tasks/assign.d.ts +1 -0
- package/dist/commands/tasks/assign.js +43 -7
- package/dist/commands/tasks/attachments/list.js +2 -1
- package/dist/commands/tasks/chat/send.js +34 -0
- package/dist/commands/tasks/comments/add.js +6 -1
- package/dist/commands/tasks/comments/list.js +2 -1
- package/dist/commands/tasks/complete.js +26 -2
- package/dist/commands/tasks/continue.d.ts +18 -0
- package/dist/commands/tasks/continue.js +54 -0
- package/dist/commands/tasks/create-tree.d.ts +5 -0
- package/dist/commands/tasks/create-tree.js +399 -219
- package/dist/commands/tasks/create.d.ts +1 -0
- package/dist/commands/tasks/create.js +63 -11
- package/dist/commands/tasks/deliverable/add.js +10 -3
- package/dist/commands/tasks/deliverable/list.js +2 -1
- package/dist/commands/tasks/events/list.js +2 -1
- package/dist/commands/tasks/execution-state.d.ts +12 -0
- package/dist/commands/tasks/execution-state.js +28 -0
- package/dist/commands/tasks/expectations/assess.js +40 -5
- package/dist/commands/tasks/guide.d.ts +10 -0
- package/dist/commands/tasks/guide.js +20 -0
- package/dist/commands/tasks/labels/list.js +2 -1
- package/dist/commands/tasks/list.d.ts +19 -0
- package/dist/commands/tasks/list.js +103 -6
- package/dist/commands/tasks/move.js +10 -2
- package/dist/commands/tasks/preflight.d.ts +14 -0
- package/dist/commands/tasks/preflight.js +77 -0
- package/dist/commands/tasks/rearm-recurrence.js +22 -3
- package/dist/commands/tasks/resource/list.js +2 -1
- package/dist/commands/tasks/result/submit.js +10 -1
- package/dist/commands/tasks/review.js +6 -1
- package/dist/commands/tasks/revisions.d.ts +2 -0
- package/dist/commands/tasks/revisions.js +8 -1
- package/dist/commands/tasks/show.d.ts +8 -0
- package/dist/commands/tasks/show.js +81 -43
- package/dist/commands/tasks/start.d.ts +1 -0
- package/dist/commands/tasks/start.js +35 -0
- package/dist/commands/tasks/templates/list.js +2 -1
- package/dist/commands/tasks/timeline.d.ts +5 -0
- package/dist/commands/tasks/timeline.js +9 -1
- package/dist/commands/tasks/unschedule.js +5 -1
- package/dist/commands/tasks/update.d.ts +1 -0
- package/dist/commands/tasks/update.js +36 -3
- package/dist/commands/tasks/updates/add.js +6 -1
- package/dist/commands/tasks/updates/list.js +2 -1
- package/dist/commands/tasks/upsert.d.ts +1 -0
- package/dist/commands/tasks/upsert.js +8 -1
- package/dist/commands/token/list.js +2 -1
- package/dist/commands/tokens/list.js +2 -1
- package/dist/commands/tones/list.js +4 -2
- package/dist/commands/triggers/audit.js +12 -3
- package/dist/commands/triggers/create.js +1 -1
- package/dist/commands/triggers/fire-detail.d.ts +7 -0
- package/dist/commands/triggers/fire-detail.js +30 -12
- package/dist/commands/triggers/fire.js +13 -3
- package/dist/commands/triggers/list.js +2 -1
- package/dist/commands/triggers/parse-intent.js +1 -1
- package/dist/commands/triggers/update.js +1 -1
- package/dist/commands/views/list.js +2 -1
- package/dist/commands/webhooks/list.js +2 -1
- package/dist/commands/whoami.js +1 -1
- package/dist/commands/widgets/list.js +2 -1
- package/dist/commands/widgets/save-as-app.d.ts +13 -0
- package/dist/commands/widgets/save-as-app.js +65 -0
- package/dist/commands/work-views/list.js +2 -1
- package/dist/commands/worklog/list.js +2 -1
- package/dist/commands/workspaces/grants.js +1 -4
- package/dist/commands/workspaces/list.js +3 -2
- package/dist/commands/workspaces/members.d.ts +1 -0
- package/dist/commands/workspaces/members.js +10 -7
- package/dist/generated/managed-instruction-guides.json +2 -2
- package/dist/help.js +7 -0
- package/dist/lib/agent-proactive-baseline.d.ts +9 -0
- package/dist/lib/agent-proactive-baseline.js +44 -0
- package/dist/lib/agentic-stream.d.ts +4 -1
- package/dist/lib/agentic-stream.js +29 -4
- package/dist/lib/appData.d.ts +75 -0
- package/dist/lib/appData.js +274 -0
- package/dist/lib/appInstallations.d.ts +117 -0
- package/dist/lib/appInstallations.js +960 -0
- package/dist/lib/appSettings.d.ts +3 -0
- package/dist/lib/appSettings.js +71 -0
- package/dist/lib/appWebhooks.d.ts +7 -0
- package/dist/lib/appWebhooks.js +59 -0
- package/dist/lib/apps-command.d.ts +44 -0
- package/dist/lib/apps-command.js +164 -0
- package/dist/lib/apps.d.ts +45 -0
- package/dist/lib/apps.js +148 -0
- package/dist/lib/appsCheck.d.ts +12 -0
- package/dist/lib/appsCheck.js +173 -0
- package/dist/lib/appsFs.d.ts +58 -0
- package/dist/lib/appsFs.js +384 -0
- package/dist/lib/auth-failure.d.ts +20 -0
- package/dist/lib/auth-failure.js +40 -3
- package/dist/lib/cli-installers.d.ts +9 -2
- package/dist/lib/command-miss.js +107 -0
- package/dist/lib/commitment-loop-status.js +25 -3
- package/dist/lib/commitment-product.js +5 -2
- package/dist/lib/commitments.d.ts +45 -3
- package/dist/lib/commitments.js +139 -41
- package/dist/lib/compasses.d.ts +4 -0
- package/dist/lib/compasses.js +11 -0
- package/dist/lib/daemon-machine-identity-copy.d.ts +14 -0
- package/dist/lib/daemon-machine-identity-copy.js +27 -0
- package/dist/lib/daemon-machine-identity.d.ts +27 -0
- package/dist/lib/daemon-machine-identity.js +61 -0
- package/dist/lib/daemon-setup.js +7 -7
- package/dist/lib/daemonHandoff.d.ts +19 -1
- package/dist/lib/daemonHandoff.js +62 -2
- package/dist/lib/dedicated-ssh.d.ts +2 -0
- package/dist/lib/dedicated-ssh.js +98 -28
- package/dist/lib/harnesses.d.ts +71 -0
- package/dist/lib/harnesses.js +70 -0
- package/dist/lib/json-output.d.ts +33 -0
- package/dist/lib/json-output.js +37 -0
- package/dist/lib/list-output.d.ts +9 -4
- package/dist/lib/list-output.js +38 -9
- package/dist/lib/lookbackPlans.d.ts +13 -0
- package/dist/lib/lookbackPlans.js +68 -0
- package/dist/lib/machines.d.ts +27 -6
- package/dist/lib/machines.js +25 -14
- package/dist/lib/member-output.d.ts +20 -0
- package/dist/lib/member-output.js +57 -0
- package/dist/lib/preflight-copy.d.ts +7 -0
- package/dist/lib/preflight-copy.js +31 -0
- package/dist/lib/profile-machine-identity-guard.js +11 -1
- package/dist/lib/roles.d.ts +2 -2
- package/dist/lib/task-admission.d.ts +9 -0
- package/dist/lib/task-admission.js +35 -0
- package/dist/lib/task-batch.d.ts +4 -0
- package/dist/lib/task-batch.js +2 -0
- package/dist/lib/task-economics.d.ts +10 -0
- package/dist/lib/task-economics.js +24 -2
- package/dist/lib/task-operations.d.ts +25 -0
- package/dist/lib/task-operations.js +123 -0
- package/dist/lib/task-preflight.d.ts +35 -0
- package/dist/lib/task-preflight.js +121 -0
- package/dist/lib/task-resource-references.d.ts +23 -0
- package/dist/lib/task-resource-references.js +119 -0
- package/dist/lib/task-spec-verification.d.ts +42 -0
- package/dist/lib/task-spec-verification.js +101 -0
- package/dist/lib/task-work.d.ts +11 -0
- package/dist/lib/task-work.js +41 -0
- package/dist/lib/task-write-attribution.d.ts +26 -0
- package/dist/lib/task-write-attribution.js +47 -0
- package/dist/lib/tasks.d.ts +13 -0
- package/dist/lib/tasks.js +61 -8
- package/dist/lib/triggers.d.ts +18 -0
- package/dist/lib/triggers.js +97 -5
- package/dist/lib/usage-discovery.d.ts +4 -0
- package/dist/lib/usage-discovery.js +14 -4
- package/dist/lib/widgetApps.d.ts +10 -0
- package/dist/lib/widgetApps.js +47 -0
- package/dist/lib/widgetStaticScan.js +25 -1
- package/dist/lib/workflow-run-view.d.ts +4 -0
- package/dist/lib/workflow-run-view.js +5 -0
- package/dist/lib/workspaces.d.ts +33 -9
- package/dist/lib/workspaces.js +19 -3
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/computerWire.d.ts +14 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/computerWire.js +47 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonToolApproval.d.ts +49 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonToolApproval.js +26 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonWire.d.ts +118 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonWire.js +614 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/index.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/index.js +5 -3
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/machineUuid.d.ts +60 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/machineUuid.js +130 -6
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refresh.d.ts +2 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refresh.js +15 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refreshClassification.d.ts +5 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refreshClassification.js +3 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.d.ts +177 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +484 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/telemetryRedaction.d.ts +11 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/telemetryRedaction.js +46 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/toolApprovalSignature.d.ts +232 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/toolApprovalSignature.js +372 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.d.ts +17 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +12 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/computerWire.d.ts +14 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/computerWire.js +45 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/daemonToolApproval.d.ts +49 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/daemonToolApproval.js +24 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/daemonWire.d.ts +118 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/daemonWire.js +608 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/index.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/index.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/machineUuid.d.ts +60 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/machineUuid.js +128 -6
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/refresh.d.ts +2 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/refresh.js +15 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/refreshClassification.d.ts +5 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/refreshClassification.js +3 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.d.ts +177 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.js +472 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/telemetryRedaction.d.ts +11 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/telemetryRedaction.js +44 -6
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/toolApprovalSignature.d.ts +232 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/toolApprovalSignature.js +360 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.d.ts +17 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.js +12 -1
- package/dist/node_modules/@skrr-ai/auth-core/package.json +31 -1
- package/dist/node_modules/@skrr-ai/data-provider/index.js +25255 -18711
- package/docs/v1/operations.md +52 -0
- package/docs/v1/space-search.md +19 -0
- package/oclif.manifest.json +4843 -513
- package/package.json +32 -2
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../base-command");
|
|
6
7
|
const format_1 = require("../../../lib/format");
|
|
7
8
|
const space_members_1 = require("../../../lib/space-members");
|
|
9
|
+
const member_output_1 = require("../../../lib/member-output");
|
|
8
10
|
const space_output_1 = require("../../../lib/space-output");
|
|
9
11
|
class SpacesMembersList extends base_command_1.BaseCommand {
|
|
10
12
|
static description = 'List members of a space';
|
|
@@ -17,6 +19,7 @@ class SpacesMembersList extends base_command_1.BaseCommand {
|
|
|
17
19
|
};
|
|
18
20
|
static flags = {
|
|
19
21
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
22
|
+
...member_output_1.memberImageFlags,
|
|
20
23
|
};
|
|
21
24
|
async run() {
|
|
22
25
|
this.requireAuth();
|
|
@@ -32,7 +35,7 @@ class SpacesMembersList extends base_command_1.BaseCommand {
|
|
|
32
35
|
this.handleApiError(err);
|
|
33
36
|
}
|
|
34
37
|
if (flags.json) {
|
|
35
|
-
this.
|
|
38
|
+
this.printJsonResult((0, list_output_1.listResult)((0, space_output_1.withSpacePerspectiveUrl)(this.cliConfig.baseURL, spaceRef, 'members', (0, member_output_1.projectSpaceMembership)(response, flags['include-images'])), 'principals'));
|
|
36
39
|
return;
|
|
37
40
|
}
|
|
38
41
|
const principals = (response.principals ?? []);
|
|
@@ -53,7 +53,7 @@ class SpacesShow extends base_command_1.BaseCommand {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
if (flags.json) {
|
|
56
|
-
this.
|
|
56
|
+
this.printJsonResult({
|
|
57
57
|
...s,
|
|
58
58
|
url,
|
|
59
59
|
...(templateSource?.templateId
|
|
@@ -62,7 +62,7 @@ class SpacesShow extends base_command_1.BaseCommand {
|
|
|
62
62
|
...(templateCheckError ? { templateUpdateError: templateCheckError } : {}),
|
|
63
63
|
}
|
|
64
64
|
: {}),
|
|
65
|
-
}
|
|
65
|
+
});
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
68
|
const ancestors = Array.isArray(s.ancestorSpaceIds) ? s.ancestorSpaceIds : [];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../base-command");
|
|
@@ -29,10 +30,13 @@ class SpacesSkillsList extends base_command_1.BaseCommand {
|
|
|
29
30
|
this.handleApiError(err);
|
|
30
31
|
}
|
|
31
32
|
if (flags.json) {
|
|
32
|
-
this.
|
|
33
|
+
this.printJsonResult((0, list_output_1.listResult)({
|
|
33
34
|
...response,
|
|
35
|
+
data: response.skills ??
|
|
36
|
+
response.skillIds?.map((id) => ({ id })) ??
|
|
37
|
+
[],
|
|
34
38
|
url: (0, space_output_1.spacePerspectiveUrl)(this.cliConfig.baseURL, spaceRef, 'skills'),
|
|
35
|
-
}
|
|
39
|
+
}));
|
|
36
40
|
return;
|
|
37
41
|
}
|
|
38
42
|
// SpaceSkillsResponse: { spaceId, skillIds, pinnedSkillIds, skills? }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../base-command");
|
|
@@ -24,7 +25,7 @@ class SpacesStatesList extends base_command_1.BaseCommand {
|
|
|
24
25
|
return;
|
|
25
26
|
}
|
|
26
27
|
if (flags.json) {
|
|
27
|
-
this.
|
|
28
|
+
this.printJsonResult((0, list_output_1.listResult)((0, web_url_1.withSpaceUrl)(this.cliConfig.baseURL, { id: spaceRef, ...result })));
|
|
28
29
|
return;
|
|
29
30
|
}
|
|
30
31
|
this.log(result.inherited ? `Inherited from Space ${result.sourceSpaceId}` : 'Local workflow states');
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../base-command");
|
|
@@ -23,7 +24,7 @@ class SpacesViewsList extends base_command_1.BaseCommand {
|
|
|
23
24
|
this.handleApiError(err);
|
|
24
25
|
}
|
|
25
26
|
if (flags.json)
|
|
26
|
-
return void this.
|
|
27
|
+
return void this.printJsonResult((0, list_output_1.listResult)((0, space_output_1.withSpaceResourceUrls)(this.cliConfig.baseURL, spaceRef, 'tasks', response, ['id'], (id) => `${(0, space_output_1.spacePerspectiveUrl)(this.cliConfig.baseURL, spaceRef, 'tasks')}?view=${encodeURIComponent(id)}`)));
|
|
27
28
|
if (!response.data.length)
|
|
28
29
|
return void this.log('No saved views.');
|
|
29
30
|
(0, format_1.renderTable)(response.data.map((v) => ({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../base-command");
|
|
@@ -29,11 +30,11 @@ class SpacesWidgetsList extends base_command_1.BaseCommand {
|
|
|
29
30
|
this.handleApiError(err);
|
|
30
31
|
}
|
|
31
32
|
if (flags.json) {
|
|
32
|
-
this.
|
|
33
|
+
this.printJsonResult((0, list_output_1.listResult)((0, space_output_1.withSpaceResourceUrls)(this.cliConfig.baseURL, spaceRef, 'widgets', response, [
|
|
33
34
|
'widgetId',
|
|
34
35
|
'id',
|
|
35
36
|
'_id',
|
|
36
|
-
]),
|
|
37
|
+
]), 'widgets'));
|
|
37
38
|
return;
|
|
38
39
|
}
|
|
39
40
|
// Handle response defensively — could be { widgets, total } or an array
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../base-command");
|
|
@@ -52,7 +53,7 @@ class SpacesWorkflowTemplatesList extends base_command_1.BaseCommand {
|
|
|
52
53
|
this.handleApiError(error, { subject: `space ${args.spaceId}` });
|
|
53
54
|
}
|
|
54
55
|
if (flags.json)
|
|
55
|
-
return this.
|
|
56
|
+
return this.printJsonResult((0, list_output_1.listResult)(result, 'templates'));
|
|
56
57
|
if (!result.templates.length)
|
|
57
58
|
return this.log('No workflow templates.');
|
|
58
59
|
(0, format_1.renderTable)(result.templates.map(workflow_templates_1.toTemplateListRow), [
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../../base-command");
|
|
@@ -28,7 +29,7 @@ class SpacesWorkflowsFixturesList extends base_command_1.BaseCommand {
|
|
|
28
29
|
return;
|
|
29
30
|
}
|
|
30
31
|
if (flags.json) {
|
|
31
|
-
this.
|
|
32
|
+
this.printJsonResult((0, list_output_1.listResult)((0, space_output_1.withSpacePerspectiveUrl)(this.cliConfig.baseURL, args.spaceId, 'workflows', result), 'fixtures'));
|
|
32
33
|
return;
|
|
33
34
|
}
|
|
34
35
|
if (!result.fixtures.length) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../base-command");
|
|
@@ -22,7 +23,7 @@ class SpacesWorkflowsList extends base_command_1.BaseCommand {
|
|
|
22
23
|
return;
|
|
23
24
|
}
|
|
24
25
|
if (flags.json)
|
|
25
|
-
return this.
|
|
26
|
+
return this.printJsonResult((0, list_output_1.listResult)({
|
|
26
27
|
...result,
|
|
27
28
|
workflows: result.workflows.map((workflow) => ({
|
|
28
29
|
...workflow,
|
|
@@ -30,7 +31,7 @@ class SpacesWorkflowsList extends base_command_1.BaseCommand {
|
|
|
30
31
|
workflowId: workflow.id,
|
|
31
32
|
}).url,
|
|
32
33
|
})),
|
|
33
|
-
},
|
|
34
|
+
}, 'workflows'));
|
|
34
35
|
if (!result.workflows.length)
|
|
35
36
|
return this.log('No workflows.');
|
|
36
37
|
(0, format_1.renderTable)(result.workflows.map((workflow) => ({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../../base-command");
|
|
@@ -18,7 +19,7 @@ class SpacesWorkflowsProposalsList extends base_command_1.BaseCommand {
|
|
|
18
19
|
try {
|
|
19
20
|
const result = await data_provider_1.dataService.listSpaceWorkflowProposals(args.spaceId, args.workflowId);
|
|
20
21
|
if (flags.json)
|
|
21
|
-
return this.
|
|
22
|
+
return this.printJsonResult((0, list_output_1.listResult)(result, 'proposals'));
|
|
22
23
|
if (!result.proposals.length)
|
|
23
24
|
return this.log('No workflow proposals.');
|
|
24
25
|
(0, format_1.renderTable)(result.proposals.map((proposal) => ({
|
|
@@ -80,8 +80,10 @@ class SpacesWorkflowsStart extends base_command_1.BaseCommand {
|
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
const decorated = (0, space_output_1.withWorkflowUrl)(this.cliConfig.baseURL, args.spaceId, result, { workflowId: args.workflowId, runId: result.run.id });
|
|
83
|
+
// The id this command created, at the top where a script looks for it, instead of only
|
|
84
|
+
// inside `run` (OSK-16494). The nested run is unchanged.
|
|
83
85
|
if (flags.json)
|
|
84
|
-
return this.log(JSON.stringify(decorated, null, 2));
|
|
86
|
+
return this.log(JSON.stringify({ runId: result.run.id, status: result.run.status, ...decorated }, null, 2));
|
|
85
87
|
this.log(formatStartedRunLine(result));
|
|
86
88
|
// The run someone just started is the one they most want to watch, so the
|
|
87
89
|
// link comes before the command that prints the same thing as text.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../../base-command");
|
|
@@ -25,7 +26,7 @@ class SpacesWorkflowsTriggersList extends base_command_1.BaseCommand {
|
|
|
25
26
|
return;
|
|
26
27
|
}
|
|
27
28
|
if (flags.json) {
|
|
28
|
-
this.
|
|
29
|
+
this.printJsonResult((0, list_output_1.listResult)((0, space_output_1.withSpacePerspectiveUrl)(this.cliConfig.baseURL, args.spaceId, 'workflows', result), 'triggers'));
|
|
29
30
|
return;
|
|
30
31
|
}
|
|
31
32
|
if (!result.triggers.length) {
|
|
@@ -30,12 +30,22 @@ class SpacesWorkflowsValidate extends base_command_1.BaseCommand {
|
|
|
30
30
|
this.handleApiError(error);
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
|
+
// The one rule (OSK-16493): an error-severity issue means invalid, whatever `valid` says. A
|
|
34
|
+
// server that predates the shared gate answered `valid: true` beside such an issue, and the
|
|
35
|
+
// text view then called the draft ready to publish and hid the issue.
|
|
36
|
+
const blocking = (0, data_provider_1.blockingWorkflowIssues)(result.issues ?? []);
|
|
37
|
+
const valid = Boolean(result.valid) && blocking.length === 0;
|
|
33
38
|
if (flags.json) {
|
|
34
39
|
this.log(JSON.stringify((0, space_output_1.withSpacePerspectiveUrl)(this.cliConfig.baseURL, args.spaceId, 'workflows', result), null, 2));
|
|
40
|
+
// One answer, two renderings: an invalid draft fails the command in either mode, so a
|
|
41
|
+
// script reading --json can trust the exit status exactly as a person reading text can
|
|
42
|
+
// (OSK-16473).
|
|
43
|
+
if (!valid)
|
|
44
|
+
this.exit(1);
|
|
35
45
|
return;
|
|
36
46
|
}
|
|
37
47
|
const advisories = (result.issues ?? []).filter((issue) => issue.severity !== 'error');
|
|
38
|
-
if (
|
|
48
|
+
if (valid) {
|
|
39
49
|
this.log('Workflow draft is valid and ready to publish.');
|
|
40
50
|
if (advisories.length) {
|
|
41
51
|
this.log(`${advisories.length} warning${advisories.length === 1 ? '' : 's'} (publishing is allowed):`);
|
|
@@ -44,7 +54,7 @@ class SpacesWorkflowsValidate extends base_command_1.BaseCommand {
|
|
|
44
54
|
}
|
|
45
55
|
return;
|
|
46
56
|
}
|
|
47
|
-
this.log(`Workflow draft is invalid${result.code ? ` (${result.code})` : ''}: ${result.message ?? 'Unknown validation error'}`);
|
|
57
|
+
this.log(`Workflow draft is invalid${result.code ? ` (${result.code})` : ''}: ${result.message ?? blocking[0]?.message ?? 'Unknown validation error'}`);
|
|
48
58
|
// Every problem, not only the first one publish would stop at.
|
|
49
59
|
const all = result.issues ?? [];
|
|
50
60
|
if (all.length) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../base-command");
|
|
@@ -41,7 +42,7 @@ class StoreAcquisitionsList extends base_command_1.BaseCommand {
|
|
|
41
42
|
}
|
|
42
43
|
const requests = result?.requests ?? [];
|
|
43
44
|
if (flags.json) {
|
|
44
|
-
this.
|
|
45
|
+
this.printJsonResult((0, list_output_1.listResult)(result, 'requests'));
|
|
45
46
|
return;
|
|
46
47
|
}
|
|
47
48
|
if (requests.length === 0) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../base-command");
|
|
@@ -43,7 +44,22 @@ class StoreAdmissionsList extends base_command_1.BaseCommand {
|
|
|
43
44
|
after = page.artifactNextCursor;
|
|
44
45
|
}
|
|
45
46
|
if (flags.json) {
|
|
46
|
-
this.
|
|
47
|
+
this.printJsonResult((0, list_output_1.listResult)({
|
|
48
|
+
...result,
|
|
49
|
+
artifacts,
|
|
50
|
+
artifactNextCursor: null,
|
|
51
|
+
data: [
|
|
52
|
+
...(result.releases || []).map((release) => ({
|
|
53
|
+
...release,
|
|
54
|
+
admissionKind: 'agent_release',
|
|
55
|
+
})),
|
|
56
|
+
...(result.listings || []).map((listing) => ({
|
|
57
|
+
...listing,
|
|
58
|
+
admissionKind: 'listing',
|
|
59
|
+
})),
|
|
60
|
+
...artifacts.map((artifact) => ({ ...artifact, admissionKind: 'artifact_release' })),
|
|
61
|
+
],
|
|
62
|
+
}));
|
|
47
63
|
return;
|
|
48
64
|
}
|
|
49
65
|
const rows = [
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../base-command");
|
|
@@ -34,7 +35,7 @@ class StoreAdvisoriesList extends base_command_1.BaseCommand {
|
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
36
37
|
if (flags.json) {
|
|
37
|
-
this.
|
|
38
|
+
this.printJsonResult((0, list_output_1.listResult)(result, 'advisories'));
|
|
38
39
|
return;
|
|
39
40
|
}
|
|
40
41
|
if (!result.advisories.length) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../base-command");
|
|
@@ -19,7 +20,7 @@ class StoreFollowsList extends base_command_1.BaseCommand {
|
|
|
19
20
|
const { flags } = await this.parse(StoreFollowsList);
|
|
20
21
|
try {
|
|
21
22
|
const result = await data_provider_1.dataService.getStorePublisherFollows(flags.cursor);
|
|
22
|
-
this.
|
|
23
|
+
this.printJsonResult((0, list_output_1.listResult)(result, 'items'));
|
|
23
24
|
}
|
|
24
25
|
catch (err) {
|
|
25
26
|
this.handleApiError(err);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../../base-command");
|
|
@@ -13,7 +14,7 @@ class StorePublisherDomainsList extends base_command_1.BaseCommand {
|
|
|
13
14
|
this.requireAuth();
|
|
14
15
|
const { flags } = await this.parse(StorePublisherDomainsList);
|
|
15
16
|
const result = await data_provider_1.dataService.getStorePublisherDomains(flags.workspaceId);
|
|
16
|
-
this.
|
|
17
|
+
this.printJsonResult((0, list_output_1.listResult)(result, 'domains'));
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
exports.default = StorePublisherDomainsList;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../base-command");
|
|
@@ -38,7 +39,7 @@ class StoreReportsList extends base_command_1.BaseCommand {
|
|
|
38
39
|
return;
|
|
39
40
|
}
|
|
40
41
|
if (flags.json) {
|
|
41
|
-
this.
|
|
42
|
+
this.printJsonResult((0, list_output_1.listResult)(queue, 'reports'));
|
|
42
43
|
return;
|
|
43
44
|
}
|
|
44
45
|
const reports = queue?.reports ?? [];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const list_output_1 = require("../../lib/list-output");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../base-command");
|
|
@@ -24,7 +25,7 @@ class SubscriptionsList extends base_command_1.BaseCommand {
|
|
|
24
25
|
this.handleApiError(err);
|
|
25
26
|
}
|
|
26
27
|
if (flags.json) {
|
|
27
|
-
this.
|
|
28
|
+
this.printJsonResult((0, list_output_1.listResult)(response));
|
|
28
29
|
return;
|
|
29
30
|
}
|
|
30
31
|
const items = response?.data ?? [];
|
|
@@ -4,6 +4,7 @@ const core_1 = require("@oclif/core");
|
|
|
4
4
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
5
|
const base_command_1 = require("../../base-command");
|
|
6
6
|
const task_resolver_1 = require("../../lib/task-resolver");
|
|
7
|
+
const task_operations_1 = require("../../lib/task-operations");
|
|
7
8
|
class TasksActionability extends base_command_1.BaseCommand {
|
|
8
9
|
static description = 'Show the canonical next actor and why this task can or cannot move';
|
|
9
10
|
static args = {
|
|
@@ -62,41 +63,17 @@ class TasksActionability extends base_command_1.BaseCommand {
|
|
|
62
63
|
// That gap is what OSK-3815 fixed for one of them by adding `tasks
|
|
63
64
|
// retry`; naming the verb beside each is the rest of it.
|
|
64
65
|
//
|
|
65
|
-
// Unmapped actions
|
|
66
|
-
//
|
|
67
|
-
// than saying nothing — the reader would chase a command that does not
|
|
68
|
-
// do what the name suggests.
|
|
66
|
+
// Unmapped actions remain native action names. The shared display helper
|
|
67
|
+
// also carries exact dependency, input-request, and approval coordinates.
|
|
69
68
|
const width = Math.max(...a.allowedActions.map((action) => action.action.length));
|
|
70
69
|
this.log('Actions:');
|
|
71
|
-
for (const { action } of a.allowedActions) {
|
|
72
|
-
const verb =
|
|
70
|
+
for (const { action, targetId } of a.allowedActions) {
|
|
71
|
+
const verb = (0, task_operations_1.taskActionCommand)(action, response.taskId, targetId, this.config.bin, {
|
|
72
|
+
allowedActions: a.allowedActions,
|
|
73
|
+
});
|
|
73
74
|
this.log(` ${action.padEnd(width)}${verb ? ` → ${verb}` : ''}`);
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
exports.default = TasksActionability;
|
|
79
|
-
/**
|
|
80
|
-
* Server action name → the `skrr` command that performs it.
|
|
81
|
-
*
|
|
82
|
-
* Only mappings verified against the command surface are listed. Four actions
|
|
83
|
-
* are deliberately absent: `request_changes` and `inspect_workflow` resolve
|
|
84
|
-
* through a review conversation rather than one verb, and `inspect_dependency`
|
|
85
|
-
* / `inspect_workflow` are readings rather than actions — the blocker they
|
|
86
|
-
* point at is already printed above as the reason.
|
|
87
|
-
*/
|
|
88
|
-
const ACTION_VERBS = {
|
|
89
|
-
answer_human_input: 'skrr tasks input answer <id>',
|
|
90
|
-
assign_task: 'skrr tasks assign <id> --agent <agent-id>',
|
|
91
|
-
complete_task: 'skrr tasks complete <id>',
|
|
92
|
-
dismiss_human_input: 'skrr tasks input dismiss <id>',
|
|
93
|
-
interrupt_task: 'skrr tasks interrupt <id>',
|
|
94
|
-
request_approval: 'skrr tasks approvals create <id>',
|
|
95
|
-
resolve_approval: 'skrr tasks approvals resolve <id>',
|
|
96
|
-
resolve_task_hold: 'skrr tasks move <id> --status <status>',
|
|
97
|
-
retry_task: 'skrr tasks retry <id>',
|
|
98
|
-
set_execution_mode: 'skrr tasks update <id> --execution-mode <agent|human>',
|
|
99
|
-
start_task: 'skrr tasks start <id>',
|
|
100
|
-
triage_task: 'skrr tasks triage <id>',
|
|
101
|
-
unschedule_task: 'skrr tasks unschedule <id>',
|
|
102
|
-
};
|
|
@@ -8,17 +8,23 @@ const base_command_1 = require("../../base-command");
|
|
|
8
8
|
const format_1 = require("../../lib/format");
|
|
9
9
|
const task_economics_1 = require("../../lib/task-economics");
|
|
10
10
|
const task_legacy_1 = require("../../lib/task-legacy");
|
|
11
|
+
/**
|
|
12
|
+
* A system-written embedded entry names no person (OSK-16475): it carries
|
|
13
|
+
* `details.actorKind: 'system'` instead of a `userId`, so the actor is the service.
|
|
14
|
+
*/
|
|
15
|
+
function systemEntryActor(details) {
|
|
16
|
+
const value = details;
|
|
17
|
+
if (value?.actorKind !== 'system')
|
|
18
|
+
return undefined;
|
|
19
|
+
return `system:${value.actorService ?? '-'}`;
|
|
20
|
+
}
|
|
11
21
|
function activityRow(entry) {
|
|
12
22
|
const actor = entry.actor;
|
|
23
|
+
// A human row names its credential channel when it records one (OSK-16621):
|
|
24
|
+
// `human:<id> (via CLI credential)`. Older rows render as they always did.
|
|
13
25
|
const actorText = actor
|
|
14
|
-
? actor
|
|
15
|
-
|
|
16
|
-
: actor.kind === 'human'
|
|
17
|
-
? `human:${actor.userId}`
|
|
18
|
-
: actor.kind === 'integration'
|
|
19
|
-
? `integration:${actor.provider}`
|
|
20
|
-
: `system:${actor.service}`
|
|
21
|
-
: (entry.userId ?? entry.actorId);
|
|
26
|
+
? (0, data_provider_1.formatTaskPrincipal)(actor)
|
|
27
|
+
: (entry.userId ?? entry.actorId ?? systemEntryActor(entry.details));
|
|
22
28
|
const type = entry.action ?? entry.event ?? entry.type;
|
|
23
29
|
return {
|
|
24
30
|
time: (0, format_1.localTime)(entry.occurredAt ?? entry.timestamp ?? entry.createdAt),
|
|
@@ -4,6 +4,7 @@ exports.approvalRow = approvalRow;
|
|
|
4
4
|
exports.permissionBlockedRun = permissionBlockedRun;
|
|
5
5
|
exports.blockedRunSummary = blockedRunSummary;
|
|
6
6
|
exports.permissionBlockLines = permissionBlockLines;
|
|
7
|
+
const list_output_1 = require("../../../lib/list-output");
|
|
7
8
|
const core_1 = require("@oclif/core");
|
|
8
9
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
9
10
|
const base_command_1 = require("../../../base-command");
|
|
@@ -206,7 +207,7 @@ class TasksApprovalsList extends base_command_1.BaseCommand {
|
|
|
206
207
|
blockedRun: blockedRun ? blockedRunSummary(blockedRun, this.config.bin, taskRef) : null,
|
|
207
208
|
}
|
|
208
209
|
: payload;
|
|
209
|
-
this.
|
|
210
|
+
this.printJsonResult((0, list_output_1.listResult)(out));
|
|
210
211
|
return;
|
|
211
212
|
}
|
|
212
213
|
const blockLines = blockedRun ? permissionBlockLines(blockedRun, this.config.bin, taskRef) : [];
|
|
@@ -29,6 +29,7 @@ export default class TasksAssign extends BaseCommand {
|
|
|
29
29
|
task: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
30
30
|
person: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
31
31
|
agent: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
32
|
+
unassigned: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
32
33
|
replace: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
33
34
|
remove: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
34
35
|
'repair-release-pins': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
@@ -62,6 +62,9 @@ class TasksAssign extends base_command_1.BaseCommand {
|
|
|
62
62
|
description: 'Agent to assign (repeatable); name or agent id',
|
|
63
63
|
multiple: true,
|
|
64
64
|
}),
|
|
65
|
+
unassigned: core_1.Flags.boolean({
|
|
66
|
+
description: 'Clear all Agent and Human assignees while retaining executor intent; does not start a Run.',
|
|
67
|
+
}),
|
|
65
68
|
replace: core_1.Flags.boolean({
|
|
66
69
|
description: 'Replace existing assignees of the same kind instead of adding',
|
|
67
70
|
}),
|
|
@@ -87,6 +90,21 @@ class TasksAssign extends base_command_1.BaseCommand {
|
|
|
87
90
|
async run() {
|
|
88
91
|
this.requireAuth();
|
|
89
92
|
const { args, flags } = await this.parse(TasksAssign);
|
|
93
|
+
this.setJsonOperation({ command: 'tasks:assign', mode: 'execute' });
|
|
94
|
+
if (flags.unassigned &&
|
|
95
|
+
(flags.replace ||
|
|
96
|
+
flags.remove ||
|
|
97
|
+
flags.list ||
|
|
98
|
+
flags.suggest ||
|
|
99
|
+
args.person ||
|
|
100
|
+
flags.person?.length ||
|
|
101
|
+
flags.agent?.length))
|
|
102
|
+
this.failWithCliError({
|
|
103
|
+
message: '--unassigned clears both assignee kinds and cannot be combined with named assignees, --replace, --remove, --list or --suggest.',
|
|
104
|
+
code: 'TASK_ASSIGNMENT_FLAG_CONFLICT',
|
|
105
|
+
exit: 2,
|
|
106
|
+
retryable: false,
|
|
107
|
+
});
|
|
90
108
|
if (flags.replace && flags.remove) {
|
|
91
109
|
this.failWithCliError({
|
|
92
110
|
message: '--replace and --remove are mutually exclusive.',
|
|
@@ -112,7 +130,11 @@ class TasksAssign extends base_command_1.BaseCommand {
|
|
|
112
130
|
const taskRef = await this.resolveEntityRef('task', taskIdentity.id);
|
|
113
131
|
const personQueries = [...(args.person ? [args.person] : []), ...(flags.person ?? [])];
|
|
114
132
|
const agentQueries = flags.agent ?? [];
|
|
115
|
-
if (!flags.
|
|
133
|
+
if (!flags.unassigned &&
|
|
134
|
+
!flags.list &&
|
|
135
|
+
!flags.suggest &&
|
|
136
|
+
personQueries.length === 0 &&
|
|
137
|
+
agentQueries.length === 0) {
|
|
116
138
|
// Positional order is `<task-id> <person>`. Inside a task runtime the
|
|
117
139
|
// task id is implicit, so a single positional (`skrr tasks assign frank`)
|
|
118
140
|
// is silently eaten as the TASK id and the user sees a confusing
|
|
@@ -174,6 +196,7 @@ class TasksAssign extends base_command_1.BaseCommand {
|
|
|
174
196
|
}
|
|
175
197
|
if (flags['execution-mode'])
|
|
176
198
|
payload.executionMode = flags['execution-mode'];
|
|
199
|
+
(0, tasks_1.applyExplicitTaskUnassignment)(payload, flags.unassigned === true);
|
|
177
200
|
const repairGuardFailure = (0, tasks_1.releasePinRepairGuard)(payload);
|
|
178
201
|
if (repairGuardFailure) {
|
|
179
202
|
this.failWithCliError({
|
|
@@ -194,17 +217,30 @@ class TasksAssign extends base_command_1.BaseCommand {
|
|
|
194
217
|
this.handleApiError(err);
|
|
195
218
|
}
|
|
196
219
|
if (flags.json) {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
220
|
+
const row = updated;
|
|
221
|
+
this.printJsonOperation({
|
|
222
|
+
...(0, web_url_1.withTaskUrl)(this.cliConfig.baseURL, row),
|
|
223
|
+
assignmentAction: flags.unassigned
|
|
224
|
+
? 'unassign_all'
|
|
225
|
+
: flags.remove
|
|
226
|
+
? 'remove'
|
|
227
|
+
: flags.replace
|
|
228
|
+
? 'replace'
|
|
229
|
+
: 'add',
|
|
202
230
|
resolved: [...people.resolved, ...agents.resolved],
|
|
203
|
-
|
|
231
|
+
assignmentPreview: (0, tasks_1.taskAssignmentPreview)(row),
|
|
232
|
+
}, {
|
|
233
|
+
resource: row.id ? { kind: 'task', id: String(row.id) } : null,
|
|
234
|
+
task: row.id ? { id: String(row.id) } : null,
|
|
235
|
+
});
|
|
204
236
|
return;
|
|
205
237
|
}
|
|
206
238
|
const t = updated;
|
|
207
239
|
const ref = t.identifier ?? t.id ?? taskRef;
|
|
240
|
+
if (flags.unassigned) {
|
|
241
|
+
this.log(`Unassigned ${ref}; executor intent: ${(0, tasks_1.taskAssignmentPreview)(t).executor.mode || 'unspecified'}. No Run requested.`);
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
208
244
|
let verb = 'Assigned';
|
|
209
245
|
if (flags.remove)
|
|
210
246
|
verb = 'Unassigned';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.attachmentRow = attachmentRow;
|
|
4
|
+
const list_output_1 = require("../../../lib/list-output");
|
|
4
5
|
const core_1 = require("@oclif/core");
|
|
5
6
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
6
7
|
const base_command_1 = require("../../../base-command");
|
|
@@ -60,7 +61,7 @@ class TasksAttachmentsList extends base_command_1.BaseCommand {
|
|
|
60
61
|
this.handleApiError(err);
|
|
61
62
|
}
|
|
62
63
|
if (flags.json) {
|
|
63
|
-
this.
|
|
64
|
+
this.printJsonResult((0, list_output_1.listResult)(response));
|
|
64
65
|
return;
|
|
65
66
|
}
|
|
66
67
|
const r = response;
|