@skrr-ai/cli 0.1.214 → 0.1.216

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 (51) hide show
  1. package/dist/commands/agent/message/no-reply.d.ts +4 -0
  2. package/dist/commands/agent/message/no-reply.js +5 -1
  3. package/dist/commands/agents/always-on/recovery-review.d.ts +12 -0
  4. package/dist/commands/agents/always-on/recovery-review.js +52 -2
  5. package/dist/commands/agents/permissions/list.d.ts +12 -0
  6. package/dist/commands/agents/permissions/list.js +42 -0
  7. package/dist/commands/agents/permissions/remove.d.ts +15 -0
  8. package/dist/commands/agents/permissions/remove.js +68 -0
  9. package/dist/commands/dm/work.js +2 -0
  10. package/dist/commands/duties/action-proposal.js +7 -1
  11. package/dist/commands/duties/action-proposals.d.ts +9 -0
  12. package/dist/commands/duties/action-proposals.js +30 -12
  13. package/dist/commands/duties/pause.js +20 -2
  14. package/dist/commands/duties/trigger-status.js +6 -1
  15. package/dist/commands/duties/update.js +22 -7
  16. package/dist/commands/tasks/ask.d.ts +3 -2
  17. package/dist/commands/tasks/ask.js +4 -3
  18. package/dist/commands/tasks/chat/exchange.d.ts +3 -2
  19. package/dist/commands/tasks/chat/exchange.js +18 -6
  20. package/dist/commands/tasks/chat/index.d.ts +11 -0
  21. package/dist/commands/tasks/chat/index.js +27 -0
  22. package/dist/commands/tasks/chat/rotate.js +5 -2
  23. package/dist/commands/tasks/input/answer.d.ts +12 -0
  24. package/dist/commands/tasks/input/answer.js +59 -5
  25. package/dist/commands/tasks/operations/show.js +5 -6
  26. package/dist/commands/tasks/result/show.js +2 -4
  27. package/dist/commands/tasks/retry-receipt.js +1 -3
  28. package/dist/commands/tasks/show.d.ts +6 -1
  29. package/dist/commands/tasks/show.js +19 -5
  30. package/dist/generated/agent-guides.json +41 -41
  31. package/dist/lib/compasses.d.ts +5 -0
  32. package/dist/lib/compasses.js +6 -1
  33. package/dist/lib/duties.d.ts +27 -0
  34. package/dist/lib/duties.js +81 -14
  35. package/dist/lib/permission-rules.d.ts +18 -0
  36. package/dist/lib/permission-rules.js +62 -0
  37. package/dist/lib/task-asset-upload.d.ts +7 -0
  38. package/dist/lib/task-asset-upload.js +114 -44
  39. package/dist/lib/task-extras.d.ts +19 -0
  40. package/dist/lib/task-extras.js +13 -0
  41. package/dist/lib/task-operations.d.ts +16 -0
  42. package/dist/lib/task-operations.js +39 -0
  43. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refresh.d.ts +16 -2
  44. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refresh.js +110 -15
  45. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/runtime.d.ts +7 -2
  46. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/refresh.d.ts +16 -2
  47. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/refresh.js +179 -17
  48. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/runtime.d.ts +7 -2
  49. package/dist/node_modules/@skrr-ai/data-provider/index.js +12697 -12082
  50. package/oclif.manifest.json +224 -9
  51. package/package.json +5 -2
@@ -3873,7 +3873,7 @@
3873
3873
  "agent:message:no-reply": {
3874
3874
  "aliases": [],
3875
3875
  "args": {},
3876
- "description": "Declare that this interactive turn needs no message in Main Chat (recorded on the turn; Main Chat does not act on it yet). Only inside a daemon session, for its own running turn",
3876
+ "description": "Declare that this turn needs no message: in an interactive turn, none in Main Chat (recorded on the turn; Main Chat does not act on it yet); in a scheduled wake (heartbeat, check-in, watch), that the wake stays silent (recorded on its run, replacing the HEARTBEAT_SILENT word). Only inside a daemon session, for its own running turn",
3877
3877
  "examples": [
3878
3878
  "<%= config.bin %> agent message no-reply"
3879
3879
  ],
@@ -15914,6 +15914,173 @@
15914
15914
  "overview.js"
15915
15915
  ]
15916
15916
  },
15917
+ "agents:permissions:list": {
15918
+ "aliases": [],
15919
+ "args": {
15920
+ "agentId": {
15921
+ "name": "agentId",
15922
+ "required": true
15923
+ }
15924
+ },
15925
+ "description": "List the \"Always allow\" rules you granted this agent: what each covers, where it applies, where you granted it from, and how often it has run. Calls a rule covers run without asking you. Only your own rules are listed. Rules are granted on a permission card, never from the CLI.",
15926
+ "examples": [
15927
+ "<%= config.bin %> agents permissions list <agent-id>",
15928
+ "<%= config.bin %> agents permissions list <agent-id> --json"
15929
+ ],
15930
+ "flags": {
15931
+ "bare": {
15932
+ "description": "Bare mode — ignore keychain/file credential sources. Token must come from env or --token.",
15933
+ "name": "bare",
15934
+ "allowNo": false,
15935
+ "type": "boolean"
15936
+ },
15937
+ "token": {
15938
+ "description": "Bearer token for this invocation (debugging/impersonation). Overrides env and stored creds.",
15939
+ "name": "token",
15940
+ "hasDynamicHelp": false,
15941
+ "multiple": false,
15942
+ "type": "option"
15943
+ },
15944
+ "workspace": {
15945
+ "description": "Workspace ID for workspace-scoped requests (also sets X-Workspace-Id).",
15946
+ "name": "workspace",
15947
+ "hasDynamicHelp": false,
15948
+ "multiple": false,
15949
+ "type": "option"
15950
+ },
15951
+ "profile": {
15952
+ "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`.",
15953
+ "name": "profile",
15954
+ "hasDynamicHelp": false,
15955
+ "multiple": false,
15956
+ "type": "option"
15957
+ },
15958
+ "raw": {
15959
+ "description": "With --json, keep the Mongo storage fields (_id next to id, __v) that the CLI otherwise strips. Also OVERSKY_CLI_RAW=1.",
15960
+ "name": "raw",
15961
+ "allowNo": false,
15962
+ "type": "boolean"
15963
+ },
15964
+ "json": {
15965
+ "description": "Output JSON",
15966
+ "name": "json",
15967
+ "allowNo": false,
15968
+ "type": "boolean"
15969
+ }
15970
+ },
15971
+ "hasDynamicHelp": false,
15972
+ "hiddenAliases": [],
15973
+ "id": "agents:permissions:list",
15974
+ "pluginAlias": "@skrr-ai/cli",
15975
+ "pluginName": "@skrr-ai/cli",
15976
+ "pluginType": "core",
15977
+ "strict": true,
15978
+ "enableJsonFlag": false,
15979
+ "autonomousCredentialPolicy": "delegated",
15980
+ "autonomousCredentialFallback": "none",
15981
+ "resolveSpaceFlag": true,
15982
+ "isESM": false,
15983
+ "relativePath": [
15984
+ "dist",
15985
+ "commands",
15986
+ "agents",
15987
+ "permissions",
15988
+ "list.js"
15989
+ ]
15990
+ },
15991
+ "agents:permissions:remove": {
15992
+ "aliases": [],
15993
+ "args": {
15994
+ "agentId": {
15995
+ "name": "agentId",
15996
+ "required": true
15997
+ },
15998
+ "ruleId": {
15999
+ "description": "The rule to remove (from `agents permissions list`)",
16000
+ "name": "ruleId",
16001
+ "required": false
16002
+ }
16003
+ },
16004
+ "description": "Remove one of your \"Always allow\" rules for this agent, or all of them with --all. The next call a removed rule covered asks you again. This only takes permission away: rules are granted on a permission card, never from the CLI.",
16005
+ "examples": [
16006
+ "<%= config.bin %> agents permissions remove <agent-id> <rule-id>",
16007
+ "<%= config.bin %> agents permissions remove <agent-id> --all",
16008
+ "<%= config.bin %> agents permissions remove <agent-id> --all --yes"
16009
+ ],
16010
+ "flags": {
16011
+ "bare": {
16012
+ "description": "Bare mode — ignore keychain/file credential sources. Token must come from env or --token.",
16013
+ "name": "bare",
16014
+ "allowNo": false,
16015
+ "type": "boolean"
16016
+ },
16017
+ "token": {
16018
+ "description": "Bearer token for this invocation (debugging/impersonation). Overrides env and stored creds.",
16019
+ "name": "token",
16020
+ "hasDynamicHelp": false,
16021
+ "multiple": false,
16022
+ "type": "option"
16023
+ },
16024
+ "workspace": {
16025
+ "description": "Workspace ID for workspace-scoped requests (also sets X-Workspace-Id).",
16026
+ "name": "workspace",
16027
+ "hasDynamicHelp": false,
16028
+ "multiple": false,
16029
+ "type": "option"
16030
+ },
16031
+ "profile": {
16032
+ "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`.",
16033
+ "name": "profile",
16034
+ "hasDynamicHelp": false,
16035
+ "multiple": false,
16036
+ "type": "option"
16037
+ },
16038
+ "raw": {
16039
+ "description": "With --json, keep the Mongo storage fields (_id next to id, __v) that the CLI otherwise strips. Also OVERSKY_CLI_RAW=1.",
16040
+ "name": "raw",
16041
+ "allowNo": false,
16042
+ "type": "boolean"
16043
+ },
16044
+ "all": {
16045
+ "description": "Remove every rule you granted this agent: always ask",
16046
+ "name": "all",
16047
+ "allowNo": false,
16048
+ "type": "boolean"
16049
+ },
16050
+ "yes": {
16051
+ "char": "y",
16052
+ "description": "Skip the confirmation for --all",
16053
+ "name": "yes",
16054
+ "allowNo": false,
16055
+ "type": "boolean"
16056
+ },
16057
+ "json": {
16058
+ "description": "Output JSON",
16059
+ "name": "json",
16060
+ "allowNo": false,
16061
+ "type": "boolean"
16062
+ }
16063
+ },
16064
+ "hasDynamicHelp": false,
16065
+ "hiddenAliases": [],
16066
+ "id": "agents:permissions:remove",
16067
+ "pluginAlias": "@skrr-ai/cli",
16068
+ "pluginName": "@skrr-ai/cli",
16069
+ "pluginType": "core",
16070
+ "strict": true,
16071
+ "enableJsonFlag": false,
16072
+ "autonomousCredentialPolicy": "delegated",
16073
+ "autonomousCredentialFallback": "none",
16074
+ "resolveSpaceFlag": true,
16075
+ "isESM": false,
16076
+ "relativePath": [
16077
+ "dist",
16078
+ "commands",
16079
+ "agents",
16080
+ "permissions",
16081
+ "remove.js"
16082
+ ]
16083
+ },
15917
16084
  "agents:pin": {
15918
16085
  "aliases": [],
15919
16086
  "args": {
@@ -126516,7 +126683,7 @@
126516
126683
  "type": "boolean"
126517
126684
  },
126518
126685
  "expires": {
126519
- "description": "When it stops waiting: an ISO date-time or 30m, 4h, 2d (default and maximum: the workspace's policy)",
126686
+ "description": "When it stops waiting: an ISO date-time or 30m, 4h, 2d (default: it waits until answered, unless the workspace set a longest wait, which is also the maximum)",
126520
126687
  "name": "expires",
126521
126688
  "hasDynamicHelp": false,
126522
126689
  "multiple": false,
@@ -127578,7 +127745,10 @@
127578
127745
  "<%= config.bin %> tasks chat task_abc123 --exchanges",
127579
127746
  "<%= config.bin %> tasks chat task_abc123 --sources",
127580
127747
  "<%= config.bin %> tasks chat task_abc123 --runs",
127581
- "<%= config.bin %> tasks chat task_abc123 --history"
127748
+ "<%= config.bin %> tasks chat task_abc123 --history",
127749
+ "<%= config.bin %> tasks chat task_abc123 --launch-input",
127750
+ "<%= config.bin %> tasks chat task_abc123 --run-input run_abc123",
127751
+ "<%= config.bin %> tasks chat task_abc123 --handled-output run_abc123"
127582
127752
  ],
127583
127753
  "flags": {
127584
127754
  "bare": {
@@ -127650,6 +127820,26 @@
127650
127820
  "allowNo": false,
127651
127821
  "type": "boolean"
127652
127822
  },
127823
+ "launch-input": {
127824
+ "description": "The brief the launching Agent chat handed this task (null when none)",
127825
+ "name": "launch-input",
127826
+ "allowNo": false,
127827
+ "type": "boolean"
127828
+ },
127829
+ "run-input": {
127830
+ "description": "What the execution run with this id was given: specification, brief, messages, files and history",
127831
+ "name": "run-input",
127832
+ "hasDynamicHelp": false,
127833
+ "multiple": false,
127834
+ "type": "option"
127835
+ },
127836
+ "handled-output": {
127837
+ "description": "The reply and Result id the handled Agent round with this run id produced",
127838
+ "name": "handled-output",
127839
+ "hasDynamicHelp": false,
127840
+ "multiple": false,
127841
+ "type": "option"
127842
+ },
127653
127843
  "limit": {
127654
127844
  "description": "Max rows",
127655
127845
  "name": "limit",
@@ -127695,7 +127885,8 @@
127695
127885
  "description": "Close input on, interrupt, or cancel a task chat exchange",
127696
127886
  "examples": [
127697
127887
  "<%= config.bin %> tasks chat exchange task_abc ex_123 --close-input",
127698
- "<%= config.bin %> tasks chat exchange task_abc ex_123 --interrupt --reason \"wrong file\"",
127888
+ "<%= config.bin %> tasks chat exchange task_abc ex_123 --interrupt --text \"stop, wrong file; use src/a.ts\"",
127889
+ "<%= config.bin %> tasks chat exchange task_abc ex_123 --cancel --reason \"wrong file\"",
127699
127890
  "<%= config.bin %> tasks chat exchange task_abc ex_123 --cancel"
127700
127891
  ],
127701
127892
  "flags": {
@@ -127749,7 +127940,7 @@
127749
127940
  "type": "boolean"
127750
127941
  },
127751
127942
  "interrupt": {
127752
- "description": "Stop the current generation; the exchange survives",
127943
+ "description": "Inject --text into the running response",
127753
127944
  "exclusive": [
127754
127945
  "cancel",
127755
127946
  "close-input"
@@ -127768,8 +127959,21 @@
127768
127959
  "allowNo": false,
127769
127960
  "type": "boolean"
127770
127961
  },
127962
+ "text": {
127963
+ "dependsOn": [
127964
+ "interrupt"
127965
+ ],
127966
+ "description": "What to tell the running response (required with --interrupt)",
127967
+ "name": "text",
127968
+ "hasDynamicHelp": false,
127969
+ "multiple": false,
127970
+ "type": "option"
127971
+ },
127771
127972
  "reason": {
127772
- "description": "Why — recorded on the exchange",
127973
+ "dependsOn": [
127974
+ "cancel"
127975
+ ],
127976
+ "description": "Why the exchange is cancelled (--cancel only; the other two record none)",
127773
127977
  "name": "reason",
127774
127978
  "hasDynamicHelp": false,
127775
127979
  "multiple": false,
@@ -128126,7 +128330,7 @@
128126
128330
  "description": "Start a fresh chat epoch (old transcript stays in history)",
128127
128331
  "examples": [
128128
128332
  "<%= config.bin %> tasks chat rotate task_abc123",
128129
- "<%= config.bin %> tasks chat rotate task_abc123 --reason \"context got poisoned\" --yes"
128333
+ "<%= config.bin %> tasks chat rotate task_abc123 --reason deleted_repair --yes"
128130
128334
  ],
128131
128335
  "flags": {
128132
128336
  "bare": {
@@ -128169,10 +128373,14 @@
128169
128373
  "type": "boolean"
128170
128374
  },
128171
128375
  "reason": {
128172
- "description": "Why — recorded with the rotation",
128376
+ "description": "Why it is rotated (the server accepts only these two; default fresh_context)",
128173
128377
  "name": "reason",
128174
128378
  "hasDynamicHelp": false,
128175
128379
  "multiple": false,
128380
+ "options": [
128381
+ "fresh_context",
128382
+ "deleted_repair"
128383
+ ],
128176
128384
  "type": "option"
128177
128385
  },
128178
128386
  "yes": {
@@ -133989,6 +134197,13 @@
133989
134197
  "multiple": true,
133990
134198
  "type": "option"
133991
134199
  },
134200
+ "select": {
134201
+ "description": "Choose an option by label: questionId=Label, or just Label for a one-question request (repeatable). An approval is answered this way, e.g. --select \"Allow once\" or --select Deny",
134202
+ "name": "select",
134203
+ "hasDynamicHelp": false,
134204
+ "multiple": true,
134205
+ "type": "option"
134206
+ },
133992
134207
  "command-id": {
133993
134208
  "description": "Stable idempotency key for retries",
133994
134209
  "name": "command-id",
@@ -155890,5 +156105,5 @@
155890
156105
  ]
155891
156106
  }
155892
156107
  },
155893
- "version": "0.1.214"
156108
+ "version": "0.1.216"
155894
156109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skrr-ai/cli",
3
- "version": "0.1.214",
3
+ "version": "0.1.216",
4
4
  "description": "Command-line interface for skrr",
5
5
  "license": "ISC",
6
6
  "author": "skrr",
@@ -192,6 +192,9 @@
192
192
  "agents:endpoint": {
193
193
  "description": "Your agent as a hosted MCP endpoint: show its URL and payer, switch it on for a Store copy, and mint an agents:invoke key"
194
194
  },
195
+ "agents:permissions": {
196
+ "description": "See and remove the \"Always allow\" rules you granted an agent"
197
+ },
195
198
  "agents:tone": {
196
199
  "description": "Read and set how an agent WRITES (its tone; audio timbre is `voiceId`)"
197
200
  },
@@ -723,5 +726,5 @@
723
726
  "engines": {
724
727
  "node": ">=20.0.0"
725
728
  },
726
- "gitHead": "1d2e2d53dcb6e88fd2899161a3d49df764a741ad"
729
+ "gitHead": "98b4fcff44eeb3ac5f0a01a1434d860b517df8b8"
727
730
  }