@skrr-ai/cli 0.1.207 → 0.1.209

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 (168) hide show
  1. package/dist/commands/agent/message/no-reply.js +1 -1
  2. package/dist/commands/agent/message/react.d.ts +23 -0
  3. package/dist/commands/agent/message/react.js +125 -0
  4. package/dist/commands/agent/message/resolve.d.ts +31 -0
  5. package/dist/commands/agent/message/resolve.js +111 -0
  6. package/dist/commands/agent/message/retract.js +1 -1
  7. package/dist/commands/agent/message/send.d.ts +25 -6
  8. package/dist/commands/agent/message/send.js +135 -30
  9. package/dist/commands/agent/request/list.d.ts +15 -0
  10. package/dist/commands/agent/request/list.js +82 -0
  11. package/dist/commands/agent/request/send.d.ts +18 -0
  12. package/dist/commands/agent/request/send.js +56 -0
  13. package/dist/commands/agents/access/approve.d.ts +17 -0
  14. package/dist/commands/agents/access/approve.js +94 -0
  15. package/dist/commands/agents/access/deny.d.ts +10 -0
  16. package/dist/commands/agents/access/deny.js +36 -0
  17. package/dist/commands/agents/access/list.d.ts +10 -0
  18. package/dist/commands/agents/access/list.js +55 -0
  19. package/dist/commands/agents/access/reach.d.ts +13 -0
  20. package/dist/commands/agents/access/reach.js +53 -0
  21. package/dist/commands/agents/access/revoke.d.ts +13 -0
  22. package/dist/commands/agents/access/revoke.js +50 -0
  23. package/dist/commands/agents/always-on/recovery-review.d.ts +5 -0
  24. package/dist/commands/agents/always-on/recovery-review.js +16 -0
  25. package/dist/commands/agents/chat.d.ts +8 -0
  26. package/dist/commands/agents/chat.js +369 -90
  27. package/dist/commands/agents/import.d.ts +15 -1
  28. package/dist/commands/agents/import.js +212 -24
  29. package/dist/commands/agents/intuitions/accept.d.ts +0 -1
  30. package/dist/commands/agents/intuitions/accept.js +22 -7
  31. package/dist/commands/agents/intuitions/generate.d.ts +0 -1
  32. package/dist/commands/agents/intuitions/generate.js +4 -16
  33. package/dist/commands/agents/intuitions/list.js +9 -3
  34. package/dist/commands/agents/intuitions/resume.d.ts +11 -0
  35. package/dist/commands/agents/intuitions/resume.js +37 -0
  36. package/dist/commands/agents/manager/status.js +7 -6
  37. package/dist/commands/agents/not-for-task.d.ts +24 -0
  38. package/dist/commands/agents/not-for-task.js +60 -0
  39. package/dist/commands/agents/schedule-overview.d.ts +20 -0
  40. package/dist/commands/agents/schedule-overview.js +35 -2
  41. package/dist/commands/agents/shared-memory.d.ts +24 -0
  42. package/dist/commands/agents/shared-memory.js +67 -0
  43. package/dist/commands/agents/stop.d.ts +23 -0
  44. package/dist/commands/agents/stop.js +61 -0
  45. package/dist/commands/agents/update.d.ts +7 -0
  46. package/dist/commands/agents/update.js +45 -2
  47. package/dist/commands/agents/visibility.d.ts +1 -0
  48. package/dist/commands/agents/visibility.js +14 -0
  49. package/dist/commands/code/migrate.js +3 -1
  50. package/dist/commands/convos/messages.js +5 -0
  51. package/dist/commands/convos/transcript.js +2 -2
  52. package/dist/commands/daemon/logs.d.ts +3 -1
  53. package/dist/commands/daemon/logs.js +6 -2
  54. package/dist/commands/duties/advance-next.js +16 -7
  55. package/dist/commands/duties/preflight.js +17 -13
  56. package/dist/commands/followups/show.js +9 -0
  57. package/dist/commands/followups/watch-pr.d.ts +27 -0
  58. package/dist/commands/followups/watch-pr.js +124 -0
  59. package/dist/commands/harnesses/evaluations/evidence.js +2 -2
  60. package/dist/commands/harnesses/evaluations/grant.js +1 -1
  61. package/dist/commands/harnesses/evaluations/revoke.js +1 -1
  62. package/dist/commands/harnesses/evaluations/show.js +1 -1
  63. package/dist/commands/harnesses/rollouts/grant.js +1 -1
  64. package/dist/commands/harnesses/rollouts/revoke.js +1 -1
  65. package/dist/commands/machines/hosted/identity-evaluations/revoke.js +1 -1
  66. package/dist/commands/machines/hosted/identity-evaluations/show.js +1 -1
  67. package/dist/commands/memory/consolidation/index.d.ts +20 -0
  68. package/dist/commands/memory/consolidation/index.js +78 -0
  69. package/dist/commands/memory/consolidation/resume.d.ts +14 -0
  70. package/dist/commands/memory/consolidation/resume.js +46 -0
  71. package/dist/commands/memory/consolidation/undo.d.ts +18 -0
  72. package/dist/commands/memory/consolidation/undo.js +61 -0
  73. package/dist/commands/messages/list.js +9 -1
  74. package/dist/commands/slack/mutes.d.ts +10 -0
  75. package/dist/commands/slack/mutes.js +62 -0
  76. package/dist/commands/slack/unmute.d.ts +12 -0
  77. package/dist/commands/slack/unmute.js +44 -0
  78. package/dist/commands/tasks/actionability.js +10 -0
  79. package/dist/commands/tasks/ask.d.ts +50 -0
  80. package/dist/commands/tasks/ask.js +190 -0
  81. package/dist/commands/tasks/bulk-update.js +12 -0
  82. package/dist/commands/tasks/handover.js +14 -0
  83. package/dist/commands/tasks/input/answer.js +8 -2
  84. package/dist/commands/tasks/input/show.d.ts +26 -0
  85. package/dist/commands/tasks/input/show.js +185 -17
  86. package/dist/commands/tasks/list.d.ts +8 -0
  87. package/dist/commands/tasks/list.js +50 -9
  88. package/dist/commands/tasks/move.d.ts +3 -0
  89. package/dist/commands/tasks/move.js +71 -1
  90. package/dist/commands/tasks/result/show.js +19 -7
  91. package/dist/commands/tasks/result/submit.js +3 -0
  92. package/dist/commands/tasks/runs.d.ts +4 -1
  93. package/dist/commands/tasks/runs.js +22 -3
  94. package/dist/commands/tasks/show.d.ts +4 -3
  95. package/dist/commands/tasks/show.js +40 -7
  96. package/dist/commands/tasks/start.js +35 -16
  97. package/dist/commands/tasks/update.d.ts +1 -0
  98. package/dist/commands/tasks/update.js +55 -1
  99. package/dist/commands/tasks/updates/add.js +3 -0
  100. package/dist/commands/tasks/wait.d.ts +20 -0
  101. package/dist/commands/tasks/wait.js +103 -2
  102. package/dist/generated/agent-guides.json +892 -183
  103. package/dist/generated/managed-instruction-guides.json +1 -1
  104. package/dist/lib/agent-access-command.d.ts +19 -0
  105. package/dist/lib/agent-access-command.js +44 -0
  106. package/dist/lib/agent-access.d.ts +18 -0
  107. package/dist/lib/agent-access.js +48 -0
  108. package/dist/lib/agent-import/apply.d.ts +50 -0
  109. package/dist/lib/agent-import/apply.js +85 -0
  110. package/dist/lib/agent-import/plan.d.ts +132 -0
  111. package/dist/lib/agent-import/plan.js +504 -0
  112. package/dist/lib/agent-import/reader.d.ts +94 -0
  113. package/dist/lib/agent-import/reader.js +326 -0
  114. package/dist/lib/agent-import/schedule.d.ts +46 -0
  115. package/dist/lib/agent-import/schedule.js +220 -0
  116. package/dist/lib/agent-import/sources.d.ts +124 -0
  117. package/dist/lib/agent-import/sources.js +797 -0
  118. package/dist/lib/chat-stop.d.ts +17 -0
  119. package/dist/lib/chat-stop.js +70 -0
  120. package/dist/lib/cloud-reply.d.ts +21 -0
  121. package/dist/lib/cloud-reply.js +52 -0
  122. package/dist/lib/duties.js +24 -4
  123. package/dist/lib/duty-ledgers.js +19 -2
  124. package/dist/lib/file-mime.js +8 -0
  125. package/dist/lib/followups.d.ts +61 -0
  126. package/dist/lib/followups.js +39 -0
  127. package/dist/lib/handover-interview.d.ts +18 -0
  128. package/dist/lib/handover-interview.js +53 -0
  129. package/dist/lib/inbound-messages.d.ts +156 -0
  130. package/dist/lib/inbound-messages.js +375 -0
  131. package/dist/lib/input-queue.js +2 -1
  132. package/dist/lib/intuition-look.d.ts +10 -0
  133. package/dist/lib/intuition-look.js +64 -0
  134. package/dist/lib/message-intent.d.ts +18 -2
  135. package/dist/lib/message-intent.js +23 -1
  136. package/dist/lib/preflight-copy.d.ts +16 -1
  137. package/dist/lib/preflight-copy.js +33 -1
  138. package/dist/lib/record-output.d.ts +1 -1
  139. package/dist/lib/record-output.js +2 -0
  140. package/dist/lib/skill-import.d.ts +19 -0
  141. package/dist/lib/skill-import.js +34 -0
  142. package/dist/lib/slack-thread-mutes.d.ts +25 -0
  143. package/dist/lib/slack-thread-mutes.js +12 -0
  144. package/dist/lib/task-carriers.d.ts +18 -0
  145. package/dist/lib/task-carriers.js +43 -0
  146. package/dist/lib/task-extras.d.ts +5 -0
  147. package/dist/lib/task-extras.js +5 -0
  148. package/dist/lib/task-operations.d.ts +2 -0
  149. package/dist/lib/task-operations.js +28 -4
  150. package/dist/lib/task-preflight.js +1 -0
  151. package/dist/lib/task-recurrence-summary.d.ts +15 -0
  152. package/dist/lib/task-recurrence-summary.js +22 -0
  153. package/dist/lib/task-review-notice.d.ts +21 -0
  154. package/dist/lib/task-review-notice.js +46 -0
  155. package/dist/lib/task-version.d.ts +53 -0
  156. package/dist/lib/task-version.js +89 -0
  157. package/dist/lib/task-write-attribution.d.ts +7 -0
  158. package/dist/lib/task-write-attribution.js +14 -0
  159. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialEnvelopeBridge.js +6 -1
  160. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/turnPacing.d.ts +75 -0
  161. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/turnPacing.js +124 -0
  162. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/credentialEnvelopeBridge.js +45 -15
  163. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/turnPacing.d.ts +75 -0
  164. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/turnPacing.js +141 -0
  165. package/dist/node_modules/@skrr-ai/auth-core/package.json +11 -1
  166. package/dist/node_modules/@skrr-ai/data-provider/index.js +13492 -12505
  167. package/oclif.manifest.json +2090 -132
  168. package/package.json +9 -2
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const core_1 = require("@oclif/core");
4
+ const data_provider_1 = require("@skrr-ai/data-provider");
5
+ const agent_access_command_1 = require("../../../lib/agent-access-command");
6
+ /** Decline an access request. The person cannot ask again for a week. */
7
+ class AgentsAccessDeny extends agent_access_command_1.AgentAccessCommand {
8
+ static description = 'Decline an access request';
9
+ static examples = [
10
+ '<%= config.bin %> agents access deny <request-id> --agent <agent-id>',
11
+ ];
12
+ static args = {
13
+ requestId: core_1.Args.string({ description: 'Access request id', required: true, ignoreStdin: true }),
14
+ };
15
+ async run() {
16
+ this.requireAuth();
17
+ const { args, flags } = await this.parse(AgentsAccessDeny);
18
+ const agentId = await this.accessAgentId(flags.agent);
19
+ let result;
20
+ try {
21
+ result = await data_provider_1.dataService.decideAgentAccessRequest(agentId, args.requestId, {
22
+ decision: 'deny',
23
+ });
24
+ }
25
+ catch (err) {
26
+ this.handleApiError(err);
27
+ }
28
+ if (flags.json) {
29
+ this.printJsonResult(result);
30
+ return;
31
+ }
32
+ const who = result.request?.requesterName || result.request?.platformUserId || 'They';
33
+ this.log(`Declined. ${who} stays restricted and cannot ask again for a week.`);
34
+ }
35
+ }
36
+ exports.default = AgentsAccessDeny;
@@ -0,0 +1,10 @@
1
+ import { AgentAccessCommand } from '../../../lib/agent-access-command';
2
+ /**
3
+ * Who may ask an agent for work in its channels: the people you trusted and
4
+ * what each may reach, and the requests waiting for you.
5
+ */
6
+ export default class AgentsAccessList extends AgentAccessCommand {
7
+ static description: string;
8
+ static examples: string[];
9
+ run(): Promise<void>;
10
+ }
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const data_provider_1 = require("@skrr-ai/data-provider");
4
+ const agent_access_command_1 = require("../../../lib/agent-access-command");
5
+ const agent_access_1 = require("../../../lib/agent-access");
6
+ const list_output_1 = require("../../../lib/list-output");
7
+ /**
8
+ * Who may ask an agent for work in its channels: the people you trusted and
9
+ * what each may reach, and the requests waiting for you.
10
+ */
11
+ class AgentsAccessList extends agent_access_command_1.AgentAccessCommand {
12
+ static description = 'List the people trusted to ask an agent for work in its channels, and pending access requests';
13
+ static examples = [
14
+ '<%= config.bin %> agents access list --agent <agent-id>',
15
+ '<%= config.bin %> agents access list --json',
16
+ ];
17
+ async run() {
18
+ this.requireAuth();
19
+ const { flags } = await this.parse(AgentsAccessList);
20
+ const agentId = await this.accessAgentId(flags.agent);
21
+ const access = await this.readAccess(agentId);
22
+ if (flags.json) {
23
+ // Rows are the trusted people; `requests` and `trustedAskers` stay beside them.
24
+ this.printJsonResult((0, list_output_1.listResult)(access, 'trustedAskers'));
25
+ return;
26
+ }
27
+ const pending = access.requests.filter((request) => request.state === 'pending');
28
+ const decided = access.requests.filter((request) => request.state !== 'pending');
29
+ this.log(`Agent: ${access.agentName || access.agentId}`);
30
+ this.log('');
31
+ this.log(`Waiting for you (${pending.length})`);
32
+ if (!pending.length) {
33
+ this.log(` None. Someone in the agent's channels can send "${data_provider_1.ACCESS_REQUEST_COMMAND}" to ask.`);
34
+ }
35
+ for (const request of pending)
36
+ this.log(` ${(0, agent_access_1.requestLine)(request)}`);
37
+ this.log('');
38
+ this.log(`Trusted (${access.trustedAskers.length})`);
39
+ if (!access.trustedAskers.length)
40
+ this.log(' Nobody yet. Everyone else is restricted.');
41
+ for (const asker of access.trustedAskers)
42
+ this.log(` ${(0, agent_access_1.trustedAskerLine)(asker)}`);
43
+ if (decided.length) {
44
+ this.log('');
45
+ this.log('Earlier requests');
46
+ for (const request of decided.slice(0, 10))
47
+ this.log(` ${(0, agent_access_1.requestLine)(request)}`);
48
+ }
49
+ if (pending.length) {
50
+ this.log('');
51
+ this.log(`Approve with \`${this.config.bin} agents access approve <request-id> --reach connected_apps,agent_tools\`, or decline with \`${this.config.bin} agents access deny <request-id>\`.`);
52
+ }
53
+ }
54
+ }
55
+ exports.default = AgentsAccessList;
@@ -0,0 +1,13 @@
1
+ import { AgentAccessCommand } from '../../../lib/agent-access-command';
2
+ /** Change what a trusted asker may reach. It applies from their next message. */
3
+ export default class AgentsAccessReach extends AgentAccessCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ static args: {
7
+ askerId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
8
+ };
9
+ static flags: {
10
+ reach: import("@oclif/core/interfaces").OptionFlag<string[], import("@oclif/core/interfaces").CustomOptions>;
11
+ };
12
+ run(): Promise<void>;
13
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const core_1 = require("@oclif/core");
4
+ const data_provider_1 = require("@skrr-ai/data-provider");
5
+ const agent_access_command_1 = require("../../../lib/agent-access-command");
6
+ const agent_access_1 = require("../../../lib/agent-access");
7
+ /** Change what a trusted asker may reach. It applies from their next message. */
8
+ class AgentsAccessReach extends agent_access_command_1.AgentAccessCommand {
9
+ static description = 'Change what a trusted asker may reach through the agent';
10
+ static examples = [
11
+ '<%= config.bin %> agents access reach <asker-id> --reach agent_tools',
12
+ '<%= config.bin %> agents access reach <asker-id> --reach none',
13
+ ];
14
+ static args = {
15
+ askerId: core_1.Args.string({ description: 'Trusted asker id', required: true, ignoreStdin: true }),
16
+ };
17
+ static flags = {
18
+ reach: core_1.Flags.string({
19
+ multiple: true,
20
+ required: true,
21
+ description: `What they may reach: ${agent_access_1.TRUSTED_ASKER_REACH.join(', ')} (comma-separated), or none for conversation only`,
22
+ }),
23
+ };
24
+ async run() {
25
+ this.requireAuth();
26
+ const { args, flags } = await this.parse(AgentsAccessReach);
27
+ const { reach, unknown } = (0, agent_access_1.parseReachFlag)(flags.reach);
28
+ if (unknown.length) {
29
+ this.failWithCliError({
30
+ message: `Unknown reach: ${unknown.join(', ')}. Use ${agent_access_1.TRUSTED_ASKER_REACH.join(', ')} or none.`,
31
+ code: 'INVALID_REACH',
32
+ exit: 2,
33
+ retryable: false,
34
+ });
35
+ }
36
+ const agentId = await this.accessAgentId(flags.agent);
37
+ let result;
38
+ try {
39
+ result = await data_provider_1.dataService.updateAgentTrustedAsker(agentId, args.askerId, reach);
40
+ }
41
+ catch (err) {
42
+ this.handleApiError(err);
43
+ }
44
+ if (flags.json) {
45
+ this.printJsonResult(result);
46
+ return;
47
+ }
48
+ this.log(`Reach is now: ${(0, agent_access_1.reachSummary)(result.trustedAsker.reach)}`);
49
+ for (const line of (0, agent_access_1.confirmLines)(result.confirm))
50
+ this.log(line);
51
+ }
52
+ }
53
+ exports.default = AgentsAccessReach;
@@ -0,0 +1,13 @@
1
+ import { AgentAccessCommand } from '../../../lib/agent-access-command';
2
+ /** Revoke a trusted asker. Their next message is treated like anyone else's. */
3
+ export default class AgentsAccessRevoke extends AgentAccessCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ static args: {
7
+ askerId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
8
+ };
9
+ static flags: {
10
+ yes: import("@oclif/core/interfaces").BooleanFlag<boolean>;
11
+ };
12
+ run(): Promise<void>;
13
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const core_1 = require("@oclif/core");
4
+ const data_provider_1 = require("@skrr-ai/data-provider");
5
+ const agent_access_command_1 = require("../../../lib/agent-access-command");
6
+ const prompt_1 = require("../../../lib/prompt");
7
+ /** Revoke a trusted asker. Their next message is treated like anyone else's. */
8
+ class AgentsAccessRevoke extends agent_access_command_1.AgentAccessCommand {
9
+ static description = 'Revoke a trusted asker; they are restricted from their next message';
10
+ static examples = ['<%= config.bin %> agents access revoke <asker-id> --yes'];
11
+ static args = {
12
+ askerId: core_1.Args.string({ description: 'Trusted asker id', required: true, ignoreStdin: true }),
13
+ };
14
+ static flags = {
15
+ yes: core_1.Flags.boolean({ char: 'y', description: 'Revoke without asking to confirm' }),
16
+ };
17
+ async run() {
18
+ this.requireAuth();
19
+ const { args, flags } = await this.parse(AgentsAccessRevoke);
20
+ const agentId = await this.accessAgentId(flags.agent);
21
+ let ok = false;
22
+ try {
23
+ ok = await (0, prompt_1.confirmDestructive)(`Revoke trusted asker ${args.askerId}?`, Boolean(flags.yes));
24
+ }
25
+ catch (err) {
26
+ const e = err;
27
+ if (e.exit === 7)
28
+ this.error(e.message ?? 'Confirmation required.', { exit: 7 });
29
+ throw err;
30
+ }
31
+ if (!ok) {
32
+ this.log('Not revoked.');
33
+ return;
34
+ }
35
+ let result;
36
+ try {
37
+ result = await data_provider_1.dataService.revokeAgentTrustedAsker(agentId, args.askerId);
38
+ }
39
+ catch (err) {
40
+ this.handleApiError(err);
41
+ }
42
+ if (flags.json) {
43
+ this.printJsonResult(result);
44
+ return;
45
+ }
46
+ const who = result.trustedAsker?.displayName || result.trustedAsker?.platformUserId || 'They';
47
+ this.log(`Revoked. ${who} is restricted from their next message.`);
48
+ }
49
+ }
50
+ exports.default = AgentsAccessRevoke;
@@ -37,3 +37,8 @@ export default class AgentsAlwaysOnRecoveryReview extends BaseCommand {
37
37
  * server, or a hold this server cannot close: no command is offered that would be refused.
38
38
  */
39
39
  export declare function closeLines(agentId: string, review: DutyRunRecoveryReview): string[];
40
+ /**
41
+ * Why a Run stopped at its effect boundary, as its worker recorded it (OSK-33242): the server's content-free codes, as
42
+ * sent. Nothing for a Run with no record, or an older server.
43
+ */
44
+ export declare function unprovenLine(review: DutyRunRecoveryReview): string | undefined;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UNKNOWN_CODE_HINT = exports.RECOVERY_CLOSE_CODES = exports.RECOVERY_EXECUTOR_CODES = exports.RECOVERY_HOLD_CODES = void 0;
4
4
  exports.recoveryCode = recoveryCode;
5
5
  exports.closeLines = closeLines;
6
+ exports.unprovenLine = unprovenLine;
6
7
  const core_1 = require("@oclif/core");
7
8
  const data_provider_1 = require("@skrr-ai/data-provider");
8
9
  const base_command_1 = require("../../../base-command");
@@ -105,6 +106,9 @@ class AgentsAlwaysOnRecoveryReview extends base_command_1.BaseCommand {
105
106
  const receipts = receiptLine(review);
106
107
  if (receipts)
107
108
  this.log(receipts);
109
+ const unproven = unprovenLine(review);
110
+ if (unproven)
111
+ this.log(unproven);
108
112
  this.log(INTEGRITY_CAVEAT);
109
113
  for (const line of closeLines(args.id, review))
110
114
  this.log(line);
@@ -263,6 +267,18 @@ function receiptLine(review) {
263
267
  .filter(Boolean)
264
268
  .join(' ');
265
269
  }
270
+ /**
271
+ * Why a Run stopped at its effect boundary, as its worker recorded it (OSK-33242): the server's content-free codes, as
272
+ * sent. Nothing for a Run with no record, or an older server.
273
+ */
274
+ function unprovenLine(review) {
275
+ const codes = Array.isArray(review.effectsUnproven)
276
+ ? review.effectsUnproven.filter(isNonEmptyString)
277
+ : [];
278
+ if (codes.length === 0)
279
+ return undefined;
280
+ return `Stopped because it could not prove: ${codes.join(', ')}.`;
281
+ }
266
282
  /** One line per held result: what a person needs to choose which one to open. */
267
283
  function reviewLine(review) {
268
284
  const stored = review.resultCapture === 'unsealable'
@@ -283,6 +283,7 @@ export default class AgentsChat extends BaseCommand {
283
283
  jsonl: import("@oclif/core/interfaces").BooleanFlag<boolean>;
284
284
  json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
285
285
  'idempotency-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
286
+ 'after-current': import("@oclif/core/interfaces").BooleanFlag<boolean>;
286
287
  'wait-for-idle': import("@oclif/core/interfaces").BooleanFlag<boolean>;
287
288
  'wait-timeout': import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
288
289
  'when-busy': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -321,6 +322,13 @@ export default class AgentsChat extends BaseCommand {
321
322
  * message joined the running turn, or `--detach`).
322
323
  */
323
324
  private startThroughQueue;
325
+ /**
326
+ * Inbound messages: in an existing conversation the message goes to the server's ingress, which
327
+ * keeps it at once and decides how the agent sees it, so a busy agent is never a refusal.
328
+ * Returns the turn to stream, `null` when there is nothing to stream (the message reached the
329
+ * agent another way, or `--detach`), or `'legacy'` when this server has no ingress.
330
+ */
331
+ private sendThroughIngress;
324
332
  run(): Promise<void>;
325
333
  }
326
334
  export {};