@skrr-ai/cli 0.1.109 → 0.1.110

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.
Files changed (63) hide show
  1. package/dist/base-command.d.ts +15 -0
  2. package/dist/base-command.js +64 -17
  3. package/dist/commands/agents/triggers/create.js +1 -1
  4. package/dist/commands/agents/triggers/update.js +1 -1
  5. package/dist/commands/agents/update.d.ts +11 -0
  6. package/dist/commands/agents/update.js +58 -2
  7. package/dist/commands/daemon/install.js +17 -1
  8. package/dist/commands/daemon/login.js +14 -0
  9. package/dist/commands/harnesses/prune.d.ts +26 -0
  10. package/dist/commands/harnesses/prune.js +172 -0
  11. package/dist/commands/login.js +11 -0
  12. package/dist/commands/spaces/workflows/start.js +3 -1
  13. package/dist/commands/spaces/workflows/validate.js +12 -2
  14. package/dist/commands/tasks/activity.js +11 -1
  15. package/dist/commands/tasks/list.js +6 -2
  16. package/dist/commands/tasks/rearm-recurrence.js +22 -3
  17. package/dist/commands/tasks/show.d.ts +8 -0
  18. package/dist/commands/tasks/show.js +64 -32
  19. package/dist/commands/tasks/unschedule.js +5 -1
  20. package/dist/commands/tasks/update.js +11 -1
  21. package/dist/commands/triggers/audit.js +12 -3
  22. package/dist/commands/triggers/create.js +1 -1
  23. package/dist/commands/triggers/fire-detail.d.ts +7 -0
  24. package/dist/commands/triggers/fire-detail.js +30 -12
  25. package/dist/commands/triggers/fire.js +13 -3
  26. package/dist/commands/triggers/parse-intent.js +1 -1
  27. package/dist/commands/triggers/update.js +1 -1
  28. package/dist/commands/workspaces/grants.js +1 -4
  29. package/dist/commands/workspaces/members.js +6 -6
  30. package/dist/lib/commitment-product.js +5 -2
  31. package/dist/lib/commitments.d.ts +2 -1
  32. package/dist/lib/commitments.js +40 -40
  33. package/dist/lib/daemon-machine-identity-copy.d.ts +14 -0
  34. package/dist/lib/daemon-machine-identity-copy.js +27 -0
  35. package/dist/lib/daemon-machine-identity.d.ts +27 -0
  36. package/dist/lib/daemon-machine-identity.js +61 -0
  37. package/dist/lib/daemonHandoff.d.ts +19 -1
  38. package/dist/lib/daemonHandoff.js +59 -0
  39. package/dist/lib/harnesses.d.ts +71 -0
  40. package/dist/lib/harnesses.js +70 -0
  41. package/dist/lib/list-output.d.ts +1 -1
  42. package/dist/lib/list-output.js +2 -0
  43. package/dist/lib/profile-machine-identity-guard.js +11 -1
  44. package/dist/lib/task-economics.d.ts +10 -0
  45. package/dist/lib/task-economics.js +24 -2
  46. package/dist/lib/triggers.d.ts +11 -0
  47. package/dist/lib/triggers.js +43 -1
  48. package/dist/lib/workflow-run-view.d.ts +4 -0
  49. package/dist/lib/workflow-run-view.js +5 -0
  50. package/dist/lib/workspaces.d.ts +24 -7
  51. package/dist/lib/workspaces.js +14 -2
  52. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/index.d.ts +1 -1
  53. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/index.js +5 -3
  54. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/machineUuid.d.ts +60 -0
  55. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/machineUuid.js +130 -6
  56. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/index.d.ts +1 -1
  57. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/index.js +1 -1
  58. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/machineUuid.d.ts +60 -0
  59. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/machineUuid.js +128 -6
  60. package/dist/node_modules/@skrr-ai/auth-core/package.json +1 -1
  61. package/dist/node_modules/@skrr-ai/data-provider/index.js +4003 -3968
  62. package/oclif.manifest.json +99 -9
  63. package/package.json +10 -1
@@ -16859,7 +16859,7 @@
16859
16859
  "type": "option"
16860
16860
  },
16861
16861
  "stale-catchup-ms": {
16862
- "description": "How late a missed occurrence may still run, in ms (a positive number). After downtime, an occurrence more than this overdue is skipped rather than run late, and the schedule moves to its next future slot. Unset: 3600000 (1 hour).",
16862
+ "description": "How late a missed occurrence may still run, in ms, from 1000 (1 second) to 31622400000 (366 days). After downtime, an occurrence more than this overdue is skipped rather than run late, and the schedule moves to its next future slot. Unset: 3600000 (1 hour).",
16863
16863
  "name": "stale-catchup-ms",
16864
16864
  "hasDynamicHelp": false,
16865
16865
  "multiple": false,
@@ -18274,7 +18274,7 @@
18274
18274
  "type": "option"
18275
18275
  },
18276
18276
  "stale-catchup-ms": {
18277
- "description": "How late a missed occurrence may still run, in ms (a positive number). After downtime, an occurrence more than this overdue is skipped rather than run late, and the schedule moves to its next future slot. Unset: 3600000 (1 hour).",
18277
+ "description": "How late a missed occurrence may still run, in ms, from 1000 (1 second) to 31622400000 (366 days). After downtime, an occurrence more than this overdue is skipped rather than run late, and the schedule moves to its next future slot. Unset: 3600000 (1 hour).",
18278
18278
  "name": "stale-catchup-ms",
18279
18279
  "hasDynamicHelp": false,
18280
18280
  "multiple": false,
@@ -48957,6 +48957,96 @@
48957
48957
  "products.js"
48958
48958
  ]
48959
48959
  },
48960
+ "harnesses:prune": {
48961
+ "aliases": [],
48962
+ "args": {},
48963
+ "description": "A machine registers a fresh row per provider each time its daemon identity changes (a profile, a working directory, a service versus a terminal), and the old rows stay. This removes the ones that are provably stale and shows every one it keeps, with the reason.\n\nIt is a DRY RUN until you pass --yes. A row is removed only if ALL of these hold: it is yours; it is a daemon you run yourself (never a hosted, dedicated or cloud machine); it is not online and has not been seen within --older-than; a later row of the same provider on the same machine replaced it AND that replacement is online now; and nothing depends on it - no agent (yours or anyone's) is pinned to it, no workspace has it lent, it is not your default, and you did not give it a name.\n\nAn agent pinned to a replaced row keeps running only because the platform adopts the live row beside it, and that adoption starts from the old row; remove the row and the pin is gone. So a pinned row is KEPT, with the agents named. Move the pin (`agents attach-harness`) and run this again.\n\nAt most --limit rows are removed per run, oldest first; the rest are counted and the next run takes them. Running it again when nothing qualifies removes nothing. A daemon that is still running re-registers on its next connection, so removing a row never stops a machine.",
48964
+ "examples": [
48965
+ "<%= config.bin %> harnesses prune",
48966
+ "<%= config.bin %> harnesses prune --yes",
48967
+ "<%= config.bin %> harnesses prune --yes --limit 20",
48968
+ "<%= config.bin %> harnesses prune --older-than 7d --json"
48969
+ ],
48970
+ "flags": {
48971
+ "bare": {
48972
+ "description": "Bare mode — ignore keychain/file credential sources. Token must come from env or --token.",
48973
+ "name": "bare",
48974
+ "allowNo": false,
48975
+ "type": "boolean"
48976
+ },
48977
+ "token": {
48978
+ "description": "Bearer token for this invocation (debugging/impersonation). Overrides env and stored creds.",
48979
+ "name": "token",
48980
+ "hasDynamicHelp": false,
48981
+ "multiple": false,
48982
+ "type": "option"
48983
+ },
48984
+ "workspace": {
48985
+ "description": "Workspace ID for workspace-scoped requests (also sets X-Workspace-Id).",
48986
+ "name": "workspace",
48987
+ "hasDynamicHelp": false,
48988
+ "multiple": false,
48989
+ "type": "option"
48990
+ },
48991
+ "profile": {
48992
+ "description": "Which stored session to use. Each profile keeps its own credential and deployment, so signing into one does not sign you out of another. Also OVERSKY_PROFILE. List them with `profiles list`.",
48993
+ "name": "profile",
48994
+ "hasDynamicHelp": false,
48995
+ "multiple": false,
48996
+ "type": "option"
48997
+ },
48998
+ "raw": {
48999
+ "description": "With --json, keep the Mongo storage fields (_id next to id, __v) that the CLI otherwise strips. Also OVERSKY_CLI_RAW=1.",
49000
+ "name": "raw",
49001
+ "allowNo": false,
49002
+ "type": "boolean"
49003
+ },
49004
+ "yes": {
49005
+ "description": "Remove the rows listed. Without it nothing is removed.",
49006
+ "name": "yes",
49007
+ "allowNo": false,
49008
+ "type": "boolean"
49009
+ },
49010
+ "limit": {
49011
+ "description": "Remove at most this many rows in one run (1-200, default 50). The rest wait for the next run.",
49012
+ "name": "limit",
49013
+ "hasDynamicHelp": false,
49014
+ "multiple": false,
49015
+ "type": "option"
49016
+ },
49017
+ "older-than": {
49018
+ "description": "Only rows unseen for at least this long: 90m, 36h or 7d (default 24h). The server never goes below its offline window.",
49019
+ "name": "older-than",
49020
+ "hasDynamicHelp": false,
49021
+ "multiple": false,
49022
+ "type": "option"
49023
+ },
49024
+ "json": {
49025
+ "description": "Output as JSON",
49026
+ "name": "json",
49027
+ "allowNo": false,
49028
+ "type": "boolean"
49029
+ }
49030
+ },
49031
+ "hasDynamicHelp": false,
49032
+ "hiddenAliases": [],
49033
+ "id": "harnesses:prune",
49034
+ "pluginAlias": "@skrr-ai/cli",
49035
+ "pluginName": "@skrr-ai/cli",
49036
+ "pluginType": "core",
49037
+ "strict": true,
49038
+ "summary": "Remove harness rows that a newer registration of the same machine replaced (dry run unless --yes)",
49039
+ "enableJsonFlag": false,
49040
+ "autonomousCredentialPolicy": "delegated",
49041
+ "resolveSpaceFlag": true,
49042
+ "isESM": false,
49043
+ "relativePath": [
49044
+ "dist",
49045
+ "commands",
49046
+ "harnesses",
49047
+ "prune.js"
49048
+ ]
49049
+ },
48960
49050
  "harnesses:quota": {
48961
49051
  "aliases": [],
48962
49052
  "args": {},
@@ -120710,7 +120800,7 @@
120710
120800
  "required": true
120711
120801
  }
120712
120802
  },
120713
- "description": "Clear the schedule on a task (no future fires)",
120803
+ "description": "Clear the schedule on a task and end its series here (no future fires). To stop without ending the series use pause-schedule; to restore an ended series run rearm-recurrence on the previous occurrence",
120714
120804
  "examples": [
120715
120805
  "<%= config.bin %> tasks unschedule <task-id>",
120716
120806
  "<%= config.bin %> tasks unschedule <task-id> --json"
@@ -125405,14 +125495,14 @@
125405
125495
  "type": "option"
125406
125496
  },
125407
125497
  "outcome": {
125408
- "description": "Outcome filter for owner-wide audit history (succeeded, failed, skipped, incomplete, capped, ...); an unknown value is refused with the full list",
125498
+ "description": "Outcome filter (succeeded, failed, skipped, incomplete, capped, ...); an unknown value is refused with the full list",
125409
125499
  "name": "outcome",
125410
125500
  "hasDynamicHelp": false,
125411
125501
  "multiple": false,
125412
125502
  "type": "option"
125413
125503
  },
125414
125504
  "source": {
125415
- "description": "Source filter for owner-wide audit history (schedule, once, event, manual, webhook, replay, ...); an unknown value is refused with the full list",
125505
+ "description": "Source filter (schedule, once, event, manual, webhook, replay, ...); an unknown value is refused with the full list",
125416
125506
  "name": "source",
125417
125507
  "hasDynamicHelp": false,
125418
125508
  "multiple": false,
@@ -125849,7 +125939,7 @@
125849
125939
  "type": "option"
125850
125940
  },
125851
125941
  "stale-catchup-ms": {
125852
- "description": "How late a missed occurrence may still run, in ms (a positive number). After downtime, an occurrence more than this overdue is skipped rather than run late, and the schedule moves to its next future slot. Unset: 3600000 (1 hour).",
125942
+ "description": "How late a missed occurrence may still run, in ms, from 1000 (1 second) to 31622400000 (366 days). After downtime, an occurrence more than this overdue is skipped rather than run late, and the schedule moves to its next future slot. Unset: 3600000 (1 hour).",
125853
125943
  "name": "stale-catchup-ms",
125854
125944
  "hasDynamicHelp": false,
125855
125945
  "multiple": false,
@@ -126832,7 +126922,7 @@
126832
126922
  "type": "option"
126833
126923
  },
126834
126924
  "history-json": {
126835
- "description": "Parser history JSON array of {role:\"user\"|\"assistant\",content:string} objects. To answer a clarifying question, pass the `history` a previous --json run returned and add your reply with --message",
126925
+ "description": "Parser history: an inline JSON array of {role:\"user\"|\"assistant\",content:string} objects, or @file / a path to a file holding it. To answer a clarifying question, pass the `history` a previous --json run returned and add your reply with --message",
126836
126926
  "name": "history-json",
126837
126927
  "hasDynamicHelp": false,
126838
126928
  "multiple": false,
@@ -127640,7 +127730,7 @@
127640
127730
  "type": "option"
127641
127731
  },
127642
127732
  "stale-catchup-ms": {
127643
- "description": "How late a missed occurrence may still run, in ms (a positive number). After downtime, an occurrence more than this overdue is skipped rather than run late, and the schedule moves to its next future slot. Unset: 3600000 (1 hour).",
127733
+ "description": "How late a missed occurrence may still run, in ms, from 1000 (1 second) to 31622400000 (366 days). After downtime, an occurrence more than this overdue is skipped rather than run late, and the schedule moves to its next future slot. Unset: 3600000 (1 hour).",
127644
127734
  "name": "stale-catchup-ms",
127645
127735
  "hasDynamicHelp": false,
127646
127736
  "multiple": false,
@@ -132821,5 +132911,5 @@
132821
132911
  ]
132822
132912
  }
132823
132913
  },
132824
- "version": "0.1.109"
132914
+ "version": "0.1.110"
132825
132915
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skrr-ai/cli",
3
- "version": "0.1.109",
3
+ "version": "0.1.110",
4
4
  "description": "Command-line interface for skrr",
5
5
  "license": "ISC",
6
6
  "author": "skrr",
@@ -266,6 +266,15 @@
266
266
  "spaces:workflows:task-execution": {
267
267
  "description": "Compile existing Space Tasks into an observable execution workflow"
268
268
  },
269
+ "spaces:workflows:proposals": {
270
+ "description": "Propose, confirm, apply, and dismiss reviewed changes to a workflow draft"
271
+ },
272
+ "spaces:workflows:triggers": {
273
+ "description": "Start a workflow on a schedule, a webhook, or a Space event"
274
+ },
275
+ "spaces:workflows:fixtures": {
276
+ "description": "Record node outputs that a test run replays instead of doing the work"
277
+ },
269
278
  "spaces:workflow-templates": {
270
279
  "description": "Save, version, and stamp reusable workflow graph fragments into existing workflows"
271
280
  },