@skrr-ai/cli 0.1.40 → 0.1.42

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 (120) hide show
  1. package/dist/base-command.d.ts +9 -0
  2. package/dist/base-command.js +18 -3
  3. package/dist/commands/agent-shares/list-for.js +4 -11
  4. package/dist/commands/agent-shares/received.js +4 -11
  5. package/dist/commands/agent-shares/sent.js +4 -11
  6. package/dist/commands/agent-shares/with.js +3 -10
  7. package/dist/commands/agents/activity.js +1 -1
  8. package/dist/commands/agents/api-actions/add.js +6 -0
  9. package/dist/commands/agents/chat.js +6 -1
  10. package/dist/commands/agents/create.js +6 -1
  11. package/dist/commands/agents/manager/ensure.d.ts +18 -0
  12. package/dist/commands/agents/manager/ensure.js +56 -0
  13. package/dist/commands/agents/show.js +4 -0
  14. package/dist/commands/agents/tools/auth.d.ts +6 -0
  15. package/dist/commands/agents/tools/auth.js +27 -1
  16. package/dist/commands/agents/tools/index.js +11 -1
  17. package/dist/commands/agents/update.js +6 -1
  18. package/dist/commands/code/install.d.ts +4 -2
  19. package/dist/commands/code/install.js +15 -14
  20. package/dist/commands/convos/list.js +1 -3
  21. package/dist/commands/convos/show.js +4 -11
  22. package/dist/commands/daemon/index.js +3 -3
  23. package/dist/commands/daemon/install.js +4 -4
  24. package/dist/commands/daemon/login.js +1 -1
  25. package/dist/commands/daemon/logs.d.ts +3 -1
  26. package/dist/commands/daemon/logs.js +16 -1
  27. package/dist/commands/daemon/start.js +3 -3
  28. package/dist/commands/daemon/status.d.ts +9 -0
  29. package/dist/commands/daemon/status.js +22 -0
  30. package/dist/commands/dm/messages.js +1 -11
  31. package/dist/commands/followups/cancel.js +1 -1
  32. package/dist/commands/followups/remind.js +4 -0
  33. package/dist/commands/followups/resolve.js +1 -1
  34. package/dist/commands/followups/show.js +16 -0
  35. package/dist/commands/harnesses/forget.js +20 -3
  36. package/dist/commands/harnesses/install.d.ts +18 -0
  37. package/dist/commands/harnesses/install.js +146 -25
  38. package/dist/commands/harnesses/installers.d.ts +1 -1
  39. package/dist/commands/harnesses/installers.js +36 -12
  40. package/dist/commands/harnesses/list.d.ts +74 -2
  41. package/dist/commands/harnesses/list.js +231 -15
  42. package/dist/commands/harnesses/ping.d.ts +2 -0
  43. package/dist/commands/harnesses/ping.js +21 -0
  44. package/dist/commands/harnesses/show.d.ts +22 -0
  45. package/dist/commands/harnesses/show.js +116 -17
  46. package/dist/commands/harnesses/update.d.ts +8 -0
  47. package/dist/commands/harnesses/update.js +25 -1
  48. package/dist/commands/harnesses/usage.d.ts +2 -0
  49. package/dist/commands/harnesses/usage.js +7 -2
  50. package/dist/commands/instructions/status.js +13 -0
  51. package/dist/commands/instructions/update-target.d.ts +1 -0
  52. package/dist/commands/instructions/update-target.js +11 -3
  53. package/dist/commands/login.js +5 -5
  54. package/dist/commands/machines/list.js +8 -9
  55. package/dist/commands/machines/show.js +46 -17
  56. package/dist/commands/messages/show.js +3 -10
  57. package/dist/commands/shares/get.js +2 -9
  58. package/dist/commands/shares/list.js +1 -9
  59. package/dist/commands/shortcuts/show.js +4 -11
  60. package/dist/commands/skills/import-as-actions.js +6 -15
  61. package/dist/commands/skills/local.js +6 -0
  62. package/dist/commands/spaces/actions/run.js +3 -4
  63. package/dist/commands/spaces/briefs/get.js +2 -9
  64. package/dist/commands/spaces/briefs/list.js +1 -9
  65. package/dist/commands/spaces/conversations.js +1 -9
  66. package/dist/commands/spaces/heartbeats/list.js +1 -9
  67. package/dist/commands/spaces/heartbeats/status.js +2 -9
  68. package/dist/commands/tasks/activity.js +1 -10
  69. package/dist/commands/tasks/approvals/list.js +1 -9
  70. package/dist/commands/tasks/attachments/list.js +1 -9
  71. package/dist/commands/tasks/comments/list.js +1 -9
  72. package/dist/commands/tasks/complete.js +13 -0
  73. package/dist/commands/tasks/dri-status.js +2 -9
  74. package/dist/commands/tasks/events/append.js +9 -7
  75. package/dist/commands/tasks/execution-timeline.js +1 -9
  76. package/dist/commands/tasks/monitor.js +1 -9
  77. package/dist/commands/tasks/result/submit.js +14 -0
  78. package/dist/commands/tasks/runs.js +1 -9
  79. package/dist/commands/tasks/show.js +5 -12
  80. package/dist/commands/token/list.d.ts +8 -0
  81. package/dist/commands/token/list.js +51 -6
  82. package/dist/help.js +8 -12
  83. package/dist/lib/agent-home-workspace.d.ts +19 -0
  84. package/dist/lib/agent-home-workspace.js +39 -0
  85. package/dist/lib/agent-resolver.js +2 -2
  86. package/dist/lib/agentic-stream.d.ts +22 -1
  87. package/dist/lib/agentic-stream.js +48 -7
  88. package/dist/lib/cli-installers.d.ts +124 -2
  89. package/dist/lib/cli-installers.js +196 -13
  90. package/dist/lib/command-miss.d.ts +22 -0
  91. package/dist/lib/command-miss.js +78 -0
  92. package/dist/lib/daemon-setup.js +2 -2
  93. package/dist/lib/daemon-target.d.ts +14 -0
  94. package/dist/lib/daemon-target.js +32 -0
  95. package/dist/lib/daemonBroker.js +1 -1
  96. package/dist/lib/daemonHandoff.js +1 -1
  97. package/dist/lib/exec-runtime-binary.js +2 -2
  98. package/dist/lib/followups.d.ts +12 -0
  99. package/dist/lib/followups.js +14 -1
  100. package/dist/lib/format.d.ts +11 -0
  101. package/dist/lib/format.js +21 -0
  102. package/dist/lib/harness-labels.d.ts +39 -0
  103. package/dist/lib/harness-labels.js +60 -0
  104. package/dist/lib/harnesses.d.ts +6 -0
  105. package/dist/lib/instruction-input.d.ts +13 -0
  106. package/dist/lib/instruction-input.js +20 -1
  107. package/dist/lib/local-skills.d.ts +44 -1
  108. package/dist/lib/local-skills.js +58 -2
  109. package/dist/lib/login.js +5 -5
  110. package/dist/lib/machines.d.ts +6 -0
  111. package/dist/lib/machines.js +68 -2
  112. package/dist/lib/runtime-tool-support.d.ts +34 -0
  113. package/dist/lib/runtime-tool-support.js +77 -0
  114. package/dist/lib/share-rows.d.ts +17 -0
  115. package/dist/lib/share-rows.js +35 -0
  116. package/dist/lib/task-closure.d.ts +13 -0
  117. package/dist/lib/task-closure.js +17 -0
  118. package/dist/node_modules/@skrr-ai/data-provider/index.js +5066 -5033
  119. package/oclif.manifest.json +33472 -33360
  120. package/package.json +6 -3
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * How an agent-share row names its share and the other person.
4
+ *
5
+ * The share routes answer `{ shareId, owner: { userId, name }, recipient:
6
+ * { userId, name } }`. The four `agent-shares` listings read `id`/`_id` and
7
+ * stringified the person object, so every row printed SHARE ID `-` and FROM/TO
8
+ * `[object Object]` (OSK-10043): the one id `respond`/`revoke` need was
9
+ * unreadable, and so was who the share was with.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.shareIdOf = shareIdOf;
13
+ exports.sharePartyLabel = sharePartyLabel;
14
+ /** The share's id, whichever key the row carries it under. */
15
+ function shareIdOf(share) {
16
+ const id = share.shareId ?? share.id ?? share._id;
17
+ return typeof id === 'string' && id.length > 0 ? id : '-';
18
+ }
19
+ /**
20
+ * A person as `Name (userId)` — the name to recognise, the id that
21
+ * `agent-shares with <userId>` takes. Accepts a bare id string too, which older
22
+ * rows used.
23
+ */
24
+ function sharePartyLabel(value) {
25
+ if (typeof value === 'string')
26
+ return value.length > 0 ? value : '-';
27
+ if (!value || typeof value !== 'object')
28
+ return '-';
29
+ const party = value;
30
+ const id = [party.userId, party.id].find((v) => typeof v === 'string' && v.length > 0);
31
+ const name = [party.name, party.email].find((v) => typeof v === 'string' && v.length > 0);
32
+ if (name && id)
33
+ return `${name} (${id})`;
34
+ return name ?? id ?? '-';
35
+ }
@@ -28,6 +28,19 @@ export type ClosureLike = TaskClosureEvaluation | {
28
28
  * the whole point is to be able to act without a second lookup.
29
29
  */
30
30
  export declare function closureReport(closure: ClosureLike): string[];
31
+ /**
32
+ * The ways forward when a closed Task refuses a Result (`TASK_REOPEN_REQUIRED`).
33
+ *
34
+ * Both writers reach this refusal, `tasks result submit` and `tasks complete`,
35
+ * so both print from here. The first version sat in `result submit` alone and
36
+ * offered `tasks complete` as a way around it, which the same refusal stops:
37
+ * every step named here has to work on a closed Task (OSK-10031).
38
+ */
39
+ export declare function reopenRequiredLines({ bin, task, command, }: {
40
+ bin: string;
41
+ task: string;
42
+ command: 'result submit' | 'complete';
43
+ }): string[];
31
44
  /** `met (agent)` vs `met (person)` — shared with the web through data-provider. */
32
45
  export { describeAssessorKind as describeAssessor } from '@skrr-ai/data-provider';
33
46
  export { describeClosure as closureSnapshotLines, type TaskClosureSnapshot as ClosureSnapshot, } from '@skrr-ai/data-provider';
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.closureSnapshotLines = exports.describeAssessor = void 0;
4
4
  exports.closureReport = closureReport;
5
+ exports.reopenRequiredLines = reopenRequiredLines;
5
6
  const data_provider_1 = require("@skrr-ai/data-provider");
6
7
  function isUnavailable(closure) {
7
8
  return Boolean(closure && closure.unavailable);
@@ -82,6 +83,22 @@ function closureReport(closure) {
82
83
  : 'Closing anyway is allowed — all of this is recorded on resolution.closure.');
83
84
  return lines;
84
85
  }
86
+ /**
87
+ * The ways forward when a closed Task refuses a Result (`TASK_REOPEN_REQUIRED`).
88
+ *
89
+ * Both writers reach this refusal, `tasks result submit` and `tasks complete`,
90
+ * so both print from here. The first version sat in `result submit` alone and
91
+ * offered `tasks complete` as a way around it, which the same refusal stops:
92
+ * every step named here has to work on a closed Task (OSK-10031).
93
+ */
94
+ function reopenRequiredLines({ bin, task, command, }) {
95
+ return [
96
+ `→ Reopen it: ${bin} tasks move ${task} --status in_progress`,
97
+ command === 'complete'
98
+ ? '→ Then run this command again.'
99
+ : `→ Then submit again, or submit and close in one step: ${bin} tasks complete ${task} --summary "…"`,
100
+ ];
101
+ }
85
102
  /** `met (agent)` vs `met (person)` — shared with the web through data-provider. */
86
103
  var data_provider_2 = require("@skrr-ai/data-provider");
87
104
  Object.defineProperty(exports, "describeAssessor", { enumerable: true, get: function () { return data_provider_2.describeAssessorKind; } });