@skrr-ai/cli 0.1.213 → 0.1.214
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/agents/relationship/clear.d.ts +12 -0
- package/dist/commands/agents/relationship/clear.js +26 -0
- package/dist/commands/agents/relationship/edit.d.ts +15 -0
- package/dist/commands/agents/relationship/edit.js +40 -0
- package/dist/commands/agents/relationship/show.d.ts +12 -0
- package/dist/commands/agents/relationship/show.js +35 -0
- package/dist/lib/inbound-messages.js +7 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/personAskWindow.d.ts +23 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/personAskWindow.js +28 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/personAskWindow.d.ts +23 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/personAskWindow.js +23 -0
- package/dist/node_modules/@skrr-ai/auth-core/package.json +10 -0
- package/dist/node_modules/@skrr-ai/data-provider/index.js +10670 -10663
- package/oclif.manifest.json +241 -1
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseCommand } from '../../../base-command';
|
|
2
|
+
export default class AgentsRelationshipClear extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
agentId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
};
|
|
11
|
+
run(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 base_command_1 = require("../../../base-command");
|
|
6
|
+
class AgentsRelationshipClear extends base_command_1.BaseCommand {
|
|
7
|
+
static description = "Clear this agent's relationship context. The continuity Duty writes a fresh one after the next material change in the conversation.";
|
|
8
|
+
static examples = ['<%= config.bin %> agents relationship clear <agent-id>'];
|
|
9
|
+
static args = { agentId: core_1.Args.string({ required: true, ignoreStdin: true }) };
|
|
10
|
+
static flags = { json: core_1.Flags.boolean({ description: 'Output JSON' }) };
|
|
11
|
+
async run() {
|
|
12
|
+
this.requireAuth();
|
|
13
|
+
const { args, flags } = await this.parse(AgentsRelationshipClear);
|
|
14
|
+
let result;
|
|
15
|
+
try {
|
|
16
|
+
result = await data_provider_1.dataService.clearAgentRelationshipContext(args.agentId);
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
this.handleApiError(err);
|
|
20
|
+
}
|
|
21
|
+
if (flags.json)
|
|
22
|
+
return this.log(this.agentJson(args.agentId, result));
|
|
23
|
+
this.log(`Agent ${args.agentId}: relationship context cleared`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.default = AgentsRelationshipClear;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseCommand } from '../../../base-command';
|
|
2
|
+
export default class AgentsRelationshipEdit extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
agentId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
summary: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
focus: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
question: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
13
|
+
};
|
|
14
|
+
run(): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 base_command_1 = require("../../../base-command");
|
|
6
|
+
class AgentsRelationshipEdit extends base_command_1.BaseCommand {
|
|
7
|
+
static description = "Replace this agent's relationship context with what you give here. The whole projection is replaced, so pass every focus and question you want kept.";
|
|
8
|
+
static examples = [
|
|
9
|
+
'<%= config.bin %> agents relationship edit <agent-id> --summary "Alert on unconfirmed developing stories too" --focus "NVDA export controls"',
|
|
10
|
+
];
|
|
11
|
+
static args = { agentId: core_1.Args.string({ required: true, ignoreStdin: true }) };
|
|
12
|
+
static flags = {
|
|
13
|
+
summary: core_1.Flags.string({ description: 'What the agent should understand about the work now' }),
|
|
14
|
+
focus: core_1.Flags.string({ description: 'A current focus (repeatable)', multiple: true }),
|
|
15
|
+
question: core_1.Flags.string({ description: 'An open question (repeatable)', multiple: true }),
|
|
16
|
+
json: core_1.Flags.boolean({ description: 'Output JSON' }),
|
|
17
|
+
};
|
|
18
|
+
async run() {
|
|
19
|
+
this.requireAuth();
|
|
20
|
+
const { args, flags } = await this.parse(AgentsRelationshipEdit);
|
|
21
|
+
if (!flags.summary && !flags.focus?.length && !flags.question?.length) {
|
|
22
|
+
this.error('Give --summary, --focus or --question; use `relationship clear` to remove it.');
|
|
23
|
+
}
|
|
24
|
+
let result;
|
|
25
|
+
try {
|
|
26
|
+
result = await data_provider_1.dataService.setAgentRelationshipContext(args.agentId, {
|
|
27
|
+
summary: flags.summary,
|
|
28
|
+
currentFocus: flags.focus,
|
|
29
|
+
openQuestions: flags.question,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
catch (err) {
|
|
33
|
+
this.handleApiError(err);
|
|
34
|
+
}
|
|
35
|
+
if (flags.json)
|
|
36
|
+
return this.log(this.agentJson(args.agentId, result));
|
|
37
|
+
this.log(`Agent ${args.agentId}: relationship context replaced`);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.default = AgentsRelationshipEdit;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseCommand } from '../../../base-command';
|
|
2
|
+
export default class AgentsRelationshipShow extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
agentId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
};
|
|
11
|
+
run(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 base_command_1 = require("../../../base-command");
|
|
6
|
+
class AgentsRelationshipShow extends base_command_1.BaseCommand {
|
|
7
|
+
static description = "Show the relationship context every Duty turn of this agent is given: a bounded summary kept by the agent's conversation continuity Duty. It can be older than the Duty's own directive; the directive wins where they disagree.";
|
|
8
|
+
static examples = ['<%= config.bin %> agents relationship show <agent-id>'];
|
|
9
|
+
static args = { agentId: core_1.Args.string({ required: true, ignoreStdin: true }) };
|
|
10
|
+
static flags = { json: core_1.Flags.boolean({ description: 'Output JSON' }) };
|
|
11
|
+
async run() {
|
|
12
|
+
this.requireAuth();
|
|
13
|
+
const { args, flags } = await this.parse(AgentsRelationshipShow);
|
|
14
|
+
let result;
|
|
15
|
+
try {
|
|
16
|
+
result = await data_provider_1.dataService.getAgentRelationshipContext(args.agentId);
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
this.handleApiError(err);
|
|
20
|
+
}
|
|
21
|
+
if (flags.json)
|
|
22
|
+
return this.log(this.agentJson(args.agentId, result));
|
|
23
|
+
const context = result.context;
|
|
24
|
+
if (!context)
|
|
25
|
+
return this.log('No relationship context is set.');
|
|
26
|
+
if (context.summary)
|
|
27
|
+
this.log(`Summary: ${context.summary}`);
|
|
28
|
+
for (const item of context.currentFocus ?? [])
|
|
29
|
+
this.log(`Focus: ${item}`);
|
|
30
|
+
for (const item of context.openQuestions ?? [])
|
|
31
|
+
this.log(`Open question: ${item}`);
|
|
32
|
+
this.log(`Updated: ${context.updatedAt ?? 'unknown'}${context.editedBy ? ` (edited by ${context.editedBy})` : ''}`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.default = AgentsRelationshipShow;
|
|
@@ -52,6 +52,13 @@ exports.HELD_COPY = {
|
|
|
52
52
|
: 'Your agent is in a long step. It will see this when the step ends.',
|
|
53
53
|
glance_unavailable: () => 'Your agent will see this at its next step.',
|
|
54
54
|
queue_paused: () => 'Paused. This sends when you resume.',
|
|
55
|
+
last_reply_unconfirmed: (d) => {
|
|
56
|
+
const until = (0, data_provider_1.messageHeldUntil)({ detail: d });
|
|
57
|
+
const waits = "Waiting for your agent's last reply to be confirmed, so nothing is done twice.";
|
|
58
|
+
return until
|
|
59
|
+
? `${waits} Sends by itself by ${until.toLocaleTimeString(undefined, { hour: 'numeric', minute: '2-digit' })}.`
|
|
60
|
+
: `${waits} Sends by itself.`;
|
|
61
|
+
},
|
|
55
62
|
};
|
|
56
63
|
exports.FAILED_COPY = {
|
|
57
64
|
agent_unavailable: 'Not delivered: this agent is no longer available.',
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How long an agent's question or approval waits for its person (OSK-33439).
|
|
3
|
+
*
|
|
4
|
+
* ONE number for every place an agent asks a person and waits: a cloud turn's
|
|
5
|
+
* approval and question (the API's `AgentWorker/permissionWindow.js`) and a
|
|
6
|
+
* session that runs natively on the person's machine (the daemon's permissions
|
|
7
|
+
* bridge, `DEFAULT_PERMISSION_TIMEOUT_MS`). Before this the daemon kept its own
|
|
8
|
+
* copy, five minutes, under a comment saying it matched the server. The server
|
|
9
|
+
* had moved to ten minutes on 2026-10-22, so the same person got ten minutes when
|
|
10
|
+
* the agent ran in the cloud and five when it ran on their machine, and nothing
|
|
11
|
+
* on screen said why.
|
|
12
|
+
*
|
|
13
|
+
* Why ten minutes (owner decision 2026-10-22): answers arrive in under a second
|
|
14
|
+
* when someone is there, so the window is for a person who stepped away, and an
|
|
15
|
+
* open ask keeps its turn's spend reserved for as long as it waits. A 72-hour
|
|
16
|
+
* window once left three abandoned cards holding $9.9 of a $10 balance
|
|
17
|
+
* (OSK-17926). Expiry is an answer the run finishes with, not an error.
|
|
18
|
+
*
|
|
19
|
+
* A harness whose own runtime gives up on an ask sooner keeps that shorter bound,
|
|
20
|
+
* because a card that outlives the wait behind it would take an answer nothing
|
|
21
|
+
* reads (the daemon's ACP permission authority, `acp-permission/authority.ts`).
|
|
22
|
+
*/
|
|
23
|
+
export declare const PERSON_ASK_WINDOW_MS: number;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var personAskWindow_exports = {};
|
|
20
|
+
__export(personAskWindow_exports, {
|
|
21
|
+
PERSON_ASK_WINDOW_MS: () => PERSON_ASK_WINDOW_MS
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(personAskWindow_exports);
|
|
24
|
+
const PERSON_ASK_WINDOW_MS = 10 * 60 * 1e3;
|
|
25
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
+
0 && (module.exports = {
|
|
27
|
+
PERSON_ASK_WINDOW_MS
|
|
28
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How long an agent's question or approval waits for its person (OSK-33439).
|
|
3
|
+
*
|
|
4
|
+
* ONE number for every place an agent asks a person and waits: a cloud turn's
|
|
5
|
+
* approval and question (the API's `AgentWorker/permissionWindow.js`) and a
|
|
6
|
+
* session that runs natively on the person's machine (the daemon's permissions
|
|
7
|
+
* bridge, `DEFAULT_PERMISSION_TIMEOUT_MS`). Before this the daemon kept its own
|
|
8
|
+
* copy, five minutes, under a comment saying it matched the server. The server
|
|
9
|
+
* had moved to ten minutes on 2026-10-22, so the same person got ten minutes when
|
|
10
|
+
* the agent ran in the cloud and five when it ran on their machine, and nothing
|
|
11
|
+
* on screen said why.
|
|
12
|
+
*
|
|
13
|
+
* Why ten minutes (owner decision 2026-10-22): answers arrive in under a second
|
|
14
|
+
* when someone is there, so the window is for a person who stepped away, and an
|
|
15
|
+
* open ask keeps its turn's spend reserved for as long as it waits. A 72-hour
|
|
16
|
+
* window once left three abandoned cards holding $9.9 of a $10 balance
|
|
17
|
+
* (OSK-17926). Expiry is an answer the run finishes with, not an error.
|
|
18
|
+
*
|
|
19
|
+
* A harness whose own runtime gives up on an ask sooner keeps that shorter bound,
|
|
20
|
+
* because a card that outlives the wait behind it would take an answer nothing
|
|
21
|
+
* reads (the daemon's ACP permission authority, `acp-permission/authority.ts`).
|
|
22
|
+
*/
|
|
23
|
+
export declare const PERSON_ASK_WINDOW_MS: number;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How long an agent's question or approval waits for its person (OSK-33439).
|
|
3
|
+
*
|
|
4
|
+
* ONE number for every place an agent asks a person and waits: a cloud turn's
|
|
5
|
+
* approval and question (the API's `AgentWorker/permissionWindow.js`) and a
|
|
6
|
+
* session that runs natively on the person's machine (the daemon's permissions
|
|
7
|
+
* bridge, `DEFAULT_PERMISSION_TIMEOUT_MS`). Before this the daemon kept its own
|
|
8
|
+
* copy, five minutes, under a comment saying it matched the server. The server
|
|
9
|
+
* had moved to ten minutes on 2026-10-22, so the same person got ten minutes when
|
|
10
|
+
* the agent ran in the cloud and five when it ran on their machine, and nothing
|
|
11
|
+
* on screen said why.
|
|
12
|
+
*
|
|
13
|
+
* Why ten minutes (owner decision 2026-10-22): answers arrive in under a second
|
|
14
|
+
* when someone is there, so the window is for a person who stepped away, and an
|
|
15
|
+
* open ask keeps its turn's spend reserved for as long as it waits. A 72-hour
|
|
16
|
+
* window once left three abandoned cards holding $9.9 of a $10 balance
|
|
17
|
+
* (OSK-17926). Expiry is an answer the run finishes with, not an error.
|
|
18
|
+
*
|
|
19
|
+
* A harness whose own runtime gives up on an ask sooner keeps that shorter bound,
|
|
20
|
+
* because a card that outlives the wait behind it would take an answer nothing
|
|
21
|
+
* reads (the daemon's ACP permission authority, `acp-permission/authority.ts`).
|
|
22
|
+
*/
|
|
23
|
+
export const PERSON_ASK_WINDOW_MS = 10 * 60 * 1000;
|
|
@@ -397,6 +397,16 @@
|
|
|
397
397
|
"default": "./dist/cjs/turnPacing.js"
|
|
398
398
|
}
|
|
399
399
|
},
|
|
400
|
+
"./person-ask-window": {
|
|
401
|
+
"import": {
|
|
402
|
+
"types": "./dist/esm/personAskWindow.d.ts",
|
|
403
|
+
"default": "./dist/esm/personAskWindow.js"
|
|
404
|
+
},
|
|
405
|
+
"require": {
|
|
406
|
+
"types": "./dist/cjs/personAskWindow.d.ts",
|
|
407
|
+
"default": "./dist/cjs/personAskWindow.js"
|
|
408
|
+
}
|
|
409
|
+
},
|
|
400
410
|
"./local-session-import-limits": {
|
|
401
411
|
"import": {
|
|
402
412
|
"types": "./dist/esm/localSessionImportLimits.d.ts",
|