@skrr-ai/cli 0.1.152 → 0.1.154
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/commands/agent/message/send.d.ts +3 -1
- package/dist/commands/agent/message/send.js +52 -1
- package/dist/commands/agents/always-on/held-messages.d.ts +22 -0
- package/dist/commands/agents/always-on/held-messages.js +62 -0
- package/dist/commands/agents/always-on/release-run.d.ts +37 -0
- package/dist/commands/agents/always-on/release-run.js +92 -0
- package/dist/commands/agents/always-on/status.js +5 -0
- package/dist/commands/duties/create.js +24 -9
- package/dist/commands/duties/export.js +2 -1
- package/dist/commands/duties/preflight.js +17 -0
- package/dist/commands/duties/update.d.ts +1 -0
- package/dist/commands/duties/update.js +87 -66
- package/dist/commands/triggers/fire-detail.js +19 -0
- package/dist/generated/agent-guides.json +35 -35
- package/dist/lib/duties.d.ts +5 -0
- package/dist/lib/duties.js +102 -6
- package/dist/lib/duty-event-wakes.js +6 -3
- package/dist/lib/duty-loop-status.js +26 -2
- package/dist/lib/duty-product.js +16 -3
- package/dist/lib/held-messages.d.ts +11 -0
- package/dist/lib/held-messages.js +93 -0
- package/dist/lib/message-intent.d.ts +15 -0
- package/dist/lib/roles.d.ts +1 -1
- package/dist/lib/triggers.d.ts +13 -1
- package/dist/lib/triggers.js +43 -0
- package/dist/lib/update-check.js +9 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dutyExecutionContract.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dutyExecutionContract.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/dutyExecutionContract.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/dutyExecutionContract.js +1 -1
- package/dist/node_modules/@skrr-ai/data-provider/index.js +6070 -6030
- package/oclif.manifest.json +191 -2
- package/package.json +4 -3
package/oclif.manifest.json
CHANGED
|
@@ -5115,6 +5115,88 @@
|
|
|
5115
5115
|
"enable.js"
|
|
5116
5116
|
]
|
|
5117
5117
|
},
|
|
5118
|
+
"agents:always-on:held-messages": {
|
|
5119
|
+
"aliases": [],
|
|
5120
|
+
"args": {
|
|
5121
|
+
"id": {
|
|
5122
|
+
"description": "Agent ID",
|
|
5123
|
+
"name": "id",
|
|
5124
|
+
"required": true
|
|
5125
|
+
}
|
|
5126
|
+
},
|
|
5127
|
+
"description": "List the session messages held by delivery policy for an agent (metadata only; message text is never returned)",
|
|
5128
|
+
"examples": [
|
|
5129
|
+
"<%= config.bin %> agents always-on held-messages <agent-id>",
|
|
5130
|
+
"<%= config.bin %> agents always-on held-messages <agent-id> --json",
|
|
5131
|
+
"<%= config.bin %> agents always-on held-messages <agent-id> --cursor <nextCursor>"
|
|
5132
|
+
],
|
|
5133
|
+
"flags": {
|
|
5134
|
+
"bare": {
|
|
5135
|
+
"description": "Bare mode — ignore keychain/file credential sources. Token must come from env or --token.",
|
|
5136
|
+
"name": "bare",
|
|
5137
|
+
"allowNo": false,
|
|
5138
|
+
"type": "boolean"
|
|
5139
|
+
},
|
|
5140
|
+
"token": {
|
|
5141
|
+
"description": "Bearer token for this invocation (debugging/impersonation). Overrides env and stored creds.",
|
|
5142
|
+
"name": "token",
|
|
5143
|
+
"hasDynamicHelp": false,
|
|
5144
|
+
"multiple": false,
|
|
5145
|
+
"type": "option"
|
|
5146
|
+
},
|
|
5147
|
+
"workspace": {
|
|
5148
|
+
"description": "Workspace ID for workspace-scoped requests (also sets X-Workspace-Id).",
|
|
5149
|
+
"name": "workspace",
|
|
5150
|
+
"hasDynamicHelp": false,
|
|
5151
|
+
"multiple": false,
|
|
5152
|
+
"type": "option"
|
|
5153
|
+
},
|
|
5154
|
+
"profile": {
|
|
5155
|
+
"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`.",
|
|
5156
|
+
"name": "profile",
|
|
5157
|
+
"hasDynamicHelp": false,
|
|
5158
|
+
"multiple": false,
|
|
5159
|
+
"type": "option"
|
|
5160
|
+
},
|
|
5161
|
+
"raw": {
|
|
5162
|
+
"description": "With --json, keep the Mongo storage fields (_id next to id, __v) that the CLI otherwise strips. Also OVERSKY_CLI_RAW=1.",
|
|
5163
|
+
"name": "raw",
|
|
5164
|
+
"allowNo": false,
|
|
5165
|
+
"type": "boolean"
|
|
5166
|
+
},
|
|
5167
|
+
"cursor": {
|
|
5168
|
+
"description": "Cursor from a previous page's nextCursor",
|
|
5169
|
+
"name": "cursor",
|
|
5170
|
+
"hasDynamicHelp": false,
|
|
5171
|
+
"multiple": false,
|
|
5172
|
+
"type": "option"
|
|
5173
|
+
},
|
|
5174
|
+
"json": {
|
|
5175
|
+
"description": "Output the server response as JSON",
|
|
5176
|
+
"name": "json",
|
|
5177
|
+
"allowNo": false,
|
|
5178
|
+
"type": "boolean"
|
|
5179
|
+
}
|
|
5180
|
+
},
|
|
5181
|
+
"hasDynamicHelp": false,
|
|
5182
|
+
"hiddenAliases": [],
|
|
5183
|
+
"id": "agents:always-on:held-messages",
|
|
5184
|
+
"pluginAlias": "@skrr-ai/cli",
|
|
5185
|
+
"pluginName": "@skrr-ai/cli",
|
|
5186
|
+
"pluginType": "core",
|
|
5187
|
+
"strict": true,
|
|
5188
|
+
"enableJsonFlag": false,
|
|
5189
|
+
"autonomousCredentialPolicy": "delegated",
|
|
5190
|
+
"resolveSpaceFlag": true,
|
|
5191
|
+
"isESM": false,
|
|
5192
|
+
"relativePath": [
|
|
5193
|
+
"dist",
|
|
5194
|
+
"commands",
|
|
5195
|
+
"agents",
|
|
5196
|
+
"always-on",
|
|
5197
|
+
"held-messages.js"
|
|
5198
|
+
]
|
|
5199
|
+
},
|
|
5118
5200
|
"agents:always-on:reconcile": {
|
|
5119
5201
|
"aliases": [],
|
|
5120
5202
|
"args": {
|
|
@@ -5189,6 +5271,107 @@
|
|
|
5189
5271
|
"reconcile.js"
|
|
5190
5272
|
]
|
|
5191
5273
|
},
|
|
5274
|
+
"agents:always-on:release-run": {
|
|
5275
|
+
"aliases": [],
|
|
5276
|
+
"args": {
|
|
5277
|
+
"id": {
|
|
5278
|
+
"description": "Agent ID",
|
|
5279
|
+
"name": "id",
|
|
5280
|
+
"required": true
|
|
5281
|
+
},
|
|
5282
|
+
"runId": {
|
|
5283
|
+
"description": "Run ID (the `Run:` line of `triggers fire-detail`)",
|
|
5284
|
+
"name": "runId",
|
|
5285
|
+
"required": true
|
|
5286
|
+
}
|
|
5287
|
+
},
|
|
5288
|
+
"description": "Let one queued Run start although the machine that ran it never confirmed it stopped (Agent owner only; the provider may receive a second request for the same turn). Release it only when its machine is online and ready: the claim spends the release even if the new attempt then parks before it reaches a machine, and the Run then needs another. It runs as you, so a program using your login can do this too: --accept-duplicate-risk is a deliberate step, not a barrier",
|
|
5289
|
+
"examples": [
|
|
5290
|
+
"<%= config.bin %> triggers fire-detail <trigger-id> <fire-id> # shows the Run, the wait and the generation",
|
|
5291
|
+
"<%= config.bin %> agents always-on release-run <agent-id> <run-id> --expected-generation 3 --accept-duplicate-risk",
|
|
5292
|
+
"<%= config.bin %> agents always-on release-run <agent-id> <run-id> --expected-generation 3 --accept-duplicate-risk --reason \"Laptop was destroyed\" --json"
|
|
5293
|
+
],
|
|
5294
|
+
"flags": {
|
|
5295
|
+
"bare": {
|
|
5296
|
+
"description": "Bare mode — ignore keychain/file credential sources. Token must come from env or --token.",
|
|
5297
|
+
"name": "bare",
|
|
5298
|
+
"allowNo": false,
|
|
5299
|
+
"type": "boolean"
|
|
5300
|
+
},
|
|
5301
|
+
"token": {
|
|
5302
|
+
"description": "Bearer token for this invocation (debugging/impersonation). Overrides env and stored creds.",
|
|
5303
|
+
"name": "token",
|
|
5304
|
+
"hasDynamicHelp": false,
|
|
5305
|
+
"multiple": false,
|
|
5306
|
+
"type": "option"
|
|
5307
|
+
},
|
|
5308
|
+
"workspace": {
|
|
5309
|
+
"description": "Workspace ID for workspace-scoped requests (also sets X-Workspace-Id).",
|
|
5310
|
+
"name": "workspace",
|
|
5311
|
+
"hasDynamicHelp": false,
|
|
5312
|
+
"multiple": false,
|
|
5313
|
+
"type": "option"
|
|
5314
|
+
},
|
|
5315
|
+
"profile": {
|
|
5316
|
+
"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`.",
|
|
5317
|
+
"name": "profile",
|
|
5318
|
+
"hasDynamicHelp": false,
|
|
5319
|
+
"multiple": false,
|
|
5320
|
+
"type": "option"
|
|
5321
|
+
},
|
|
5322
|
+
"raw": {
|
|
5323
|
+
"description": "With --json, keep the Mongo storage fields (_id next to id, __v) that the CLI otherwise strips. Also OVERSKY_CLI_RAW=1.",
|
|
5324
|
+
"name": "raw",
|
|
5325
|
+
"allowNo": false,
|
|
5326
|
+
"type": "boolean"
|
|
5327
|
+
},
|
|
5328
|
+
"expected-generation": {
|
|
5329
|
+
"description": "The generation `triggers fire-detail` printed for this wait. A stale one is refused, so you cannot release a wait you did not read.",
|
|
5330
|
+
"name": "expected-generation",
|
|
5331
|
+
"required": true,
|
|
5332
|
+
"hasDynamicHelp": false,
|
|
5333
|
+
"multiple": false,
|
|
5334
|
+
"type": "option"
|
|
5335
|
+
},
|
|
5336
|
+
"accept-duplicate-risk": {
|
|
5337
|
+
"description": "I understand the provider may receive a second request for the same turn. Required: without it nothing is sent.",
|
|
5338
|
+
"name": "accept-duplicate-risk",
|
|
5339
|
+
"allowNo": false,
|
|
5340
|
+
"type": "boolean"
|
|
5341
|
+
},
|
|
5342
|
+
"reason": {
|
|
5343
|
+
"description": "Why you know the machine is gone (up to 280 characters), kept on the Run",
|
|
5344
|
+
"name": "reason",
|
|
5345
|
+
"hasDynamicHelp": false,
|
|
5346
|
+
"multiple": false,
|
|
5347
|
+
"type": "option"
|
|
5348
|
+
},
|
|
5349
|
+
"json": {
|
|
5350
|
+
"description": "Print the server answer as JSON",
|
|
5351
|
+
"name": "json",
|
|
5352
|
+
"allowNo": false,
|
|
5353
|
+
"type": "boolean"
|
|
5354
|
+
}
|
|
5355
|
+
},
|
|
5356
|
+
"hasDynamicHelp": false,
|
|
5357
|
+
"hiddenAliases": [],
|
|
5358
|
+
"id": "agents:always-on:release-run",
|
|
5359
|
+
"pluginAlias": "@skrr-ai/cli",
|
|
5360
|
+
"pluginName": "@skrr-ai/cli",
|
|
5361
|
+
"pluginType": "core",
|
|
5362
|
+
"strict": true,
|
|
5363
|
+
"enableJsonFlag": false,
|
|
5364
|
+
"autonomousCredentialPolicy": "delegated",
|
|
5365
|
+
"resolveSpaceFlag": true,
|
|
5366
|
+
"isESM": false,
|
|
5367
|
+
"relativePath": [
|
|
5368
|
+
"dist",
|
|
5369
|
+
"commands",
|
|
5370
|
+
"agents",
|
|
5371
|
+
"always-on",
|
|
5372
|
+
"release-run.js"
|
|
5373
|
+
]
|
|
5374
|
+
},
|
|
5192
5375
|
"agents:always-on:status": {
|
|
5193
5376
|
"aliases": [],
|
|
5194
5377
|
"args": {
|
|
@@ -37365,7 +37548,7 @@
|
|
|
37365
37548
|
"type": "option"
|
|
37366
37549
|
},
|
|
37367
37550
|
"watch": {
|
|
37368
|
-
"description": "Watched source (repeatable). One of: tasks, goal, space, conversations, agent_initiatives, messages, files, docs, documents, slack, github, calendar, email, daemon, memory, metrics, product_metrics, business_metrics, local, browser, state_monitor, agent_run, monitor. Some sources need companion flags: --watch-space, --watch-monitor, --metric-key. conversations and messages need an id (config.conversationId, config.groupChatId) that only --from-json can set.",
|
|
37551
|
+
"description": "Watched source (repeatable). One of: tasks, goal, space, conversations, agent_initiatives, messages, files, docs, documents, slack, github, calendar, email, daemon, memory, metrics, product_metrics, business_metrics, local, browser, state_monitor, agent_run, monitor. Some sources need companion flags: --watch-space, --watch-monitor, --metric-key. Task event wakes need --goal or an object selector in --from-json; omit --watch when JSON supplies watchedSources. conversations and messages need an id (config.conversationId, config.groupChatId) that only --from-json can set.",
|
|
37369
37552
|
"name": "watch",
|
|
37370
37553
|
"hasDynamicHelp": false,
|
|
37371
37554
|
"multiple": true,
|
|
@@ -43690,6 +43873,12 @@
|
|
|
43690
43873
|
"multiple": false,
|
|
43691
43874
|
"type": "option"
|
|
43692
43875
|
},
|
|
43876
|
+
"restore-saved-cadence": {
|
|
43877
|
+
"description": "Restore the inactive schedule shown by duties show. On an active Duty this can schedule automatic checks.",
|
|
43878
|
+
"name": "restore-saved-cadence",
|
|
43879
|
+
"allowNo": false,
|
|
43880
|
+
"type": "boolean"
|
|
43881
|
+
},
|
|
43693
43882
|
"task-review-policy": {
|
|
43694
43883
|
"description": "Owner choice for generated Tasks; required records a blocker but does not stop the owner close.",
|
|
43695
43884
|
"name": "task-review-policy",
|
|
@@ -144419,5 +144608,5 @@
|
|
|
144419
144608
|
]
|
|
144420
144609
|
}
|
|
144421
144610
|
},
|
|
144422
|
-
"version": "0.1.
|
|
144611
|
+
"version": "0.1.154"
|
|
144423
144612
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skrr-ai/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.154",
|
|
4
4
|
"description": "Command-line interface for skrr",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "skrr",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --max-old-space-size=4096\" jest --ci",
|
|
52
52
|
"watch": "tsc -w -p tsconfig.build.json",
|
|
53
53
|
"clean": "rimraf dist",
|
|
54
|
-
"prepack": "npm run build
|
|
54
|
+
"prepack": "npm run build"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@oclif/core": "^4.0.0",
|
|
@@ -677,5 +677,6 @@
|
|
|
677
677
|
},
|
|
678
678
|
"engines": {
|
|
679
679
|
"node": ">=20.0.0"
|
|
680
|
-
}
|
|
680
|
+
},
|
|
681
|
+
"gitHead": "0d5a186d01c6e500b1e95a94836e73421f6e060b"
|
|
681
682
|
}
|