@skrr-ai/cli 0.1.216 → 0.1.217
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/duties/check-now.d.ts +7 -0
- package/dist/commands/duties/check-now.js +36 -1
- package/dist/commands/duties/create.d.ts +15 -0
- package/dist/commands/duties/create.js +93 -5
- package/dist/commands/spaces/auto-executor/preview.d.ts +7 -0
- package/dist/commands/spaces/auto-executor/preview.js +21 -2
- package/dist/commands/wiki/write.js +7 -2
- package/dist/lib/duties.d.ts +2 -0
- package/dist/lib/duties.js +41 -2
- package/dist/lib/permission-rules.d.ts +4 -1
- package/dist/lib/permission-rules.js +16 -3
- package/dist/lib/space-proposals.js +8 -1
- package/dist/lib/space-write-policy.js +18 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/ownerChatDutyHarnesses.d.ts +43 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/ownerChatDutyHarnesses.js +36 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/ownerChatDutyHarnesses.d.ts +43 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/ownerChatDutyHarnesses.js +48 -0
- package/dist/node_modules/@skrr-ai/auth-core/package.json +10 -0
- package/dist/node_modules/@skrr-ai/data-provider/index.js +10285 -10283
- package/oclif.manifest.json +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which daemon harnesses a Main Chat turn may carry the owner-chat Duty tools on
|
|
3
|
+
* (`duty_list`, `duty_start`, `duty_update_reporting`, `duty_pause`): the tools
|
|
4
|
+
* that let an Agent's owner start, pause or change a Duty in their own words
|
|
5
|
+
* (OSK-33476). One list, here, because both ends of the wire act on it and the
|
|
6
|
+
* daemon cannot import the API (`@skrr-ai/auth-core/owner-chat-duty-harnesses`):
|
|
7
|
+
*
|
|
8
|
+
* - the server (`api/server/services/AgentWorker/bridge.js`) offers the tools to
|
|
9
|
+
* a listed harness's dispatch, and seals the owner's message on the dispatch
|
|
10
|
+
* receipt the tools are checked against when one is called;
|
|
11
|
+
* - the server's intent check (`api/server/services/Duties/OwnerChatDutyIntent.js`)
|
|
12
|
+
* has a bounded, tool-less inference on the chat's own daemon for every listed
|
|
13
|
+
* harness, and refuses any other;
|
|
14
|
+
* - the daemon mints the session credential the tools need
|
|
15
|
+
* (`daemon/src/connection-helpers/session-credential.ts`) and admits the turn
|
|
16
|
+
* (`daemon/src/delegation-mcp/owner-chat-duty-gate.ts`) only for a listed
|
|
17
|
+
* harness, whose backend mounts the tools.
|
|
18
|
+
*
|
|
19
|
+
* A harness is listed only when ALL THREE hold: its daemon backend can mount an
|
|
20
|
+
* extra stdio MCP server for the turn, the server can run the intent check for
|
|
21
|
+
* it, and the daemon mints its credential. Listing one that lacks the second
|
|
22
|
+
* would offer tools whose every change is refused.
|
|
23
|
+
*
|
|
24
|
+
* The first-party harness is deliberately NOT listed yet. Its ACP backend could
|
|
25
|
+
* mount the server as it mounts `delegation` (`daemon/src/backends/acp.ts`; not wired,
|
|
26
|
+
* and a resident engine reads MCP bindings from its turn channel, not a file), but
|
|
27
|
+
* the intent check has no qualified local inference for it:
|
|
28
|
+
* the daemon's private inference answers only `claude` and the native Codex draft
|
|
29
|
+
* (`daemon/src/continuity/inference.ts`, `PROVIDERS`), and a hosted check would
|
|
30
|
+
* move a local chat's judgment and its cost onto the platform, which is a product
|
|
31
|
+
* decision, not this list's.
|
|
32
|
+
*
|
|
33
|
+
* The server stays the authority whatever this list says: the tools act only after
|
|
34
|
+
* `OwnerChatDuty.run` re-checks the stored owner stamp, the quoted request and the
|
|
35
|
+
* intent. An older peer that does not know a provider is listed only ever withholds
|
|
36
|
+
* the tools.
|
|
37
|
+
*
|
|
38
|
+
* Pure: no `node:` imports and nothing read at module load.
|
|
39
|
+
*/
|
|
40
|
+
/** Canonical provider spellings, in the order they were admitted. */
|
|
41
|
+
export declare const OWNER_CHAT_DUTY_TOOL_HARNESSES: readonly string[];
|
|
42
|
+
/** Whether a Main Chat turn on this harness may carry the owner-chat Duty tools. */
|
|
43
|
+
export declare function supportsOwnerChatDutyTools(provider: unknown): boolean;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which daemon harnesses a Main Chat turn may carry the owner-chat Duty tools on
|
|
3
|
+
* (`duty_list`, `duty_start`, `duty_update_reporting`, `duty_pause`): the tools
|
|
4
|
+
* that let an Agent's owner start, pause or change a Duty in their own words
|
|
5
|
+
* (OSK-33476). One list, here, because both ends of the wire act on it and the
|
|
6
|
+
* daemon cannot import the API (`@skrr-ai/auth-core/owner-chat-duty-harnesses`):
|
|
7
|
+
*
|
|
8
|
+
* - the server (`api/server/services/AgentWorker/bridge.js`) offers the tools to
|
|
9
|
+
* a listed harness's dispatch, and seals the owner's message on the dispatch
|
|
10
|
+
* receipt the tools are checked against when one is called;
|
|
11
|
+
* - the server's intent check (`api/server/services/Duties/OwnerChatDutyIntent.js`)
|
|
12
|
+
* has a bounded, tool-less inference on the chat's own daemon for every listed
|
|
13
|
+
* harness, and refuses any other;
|
|
14
|
+
* - the daemon mints the session credential the tools need
|
|
15
|
+
* (`daemon/src/connection-helpers/session-credential.ts`) and admits the turn
|
|
16
|
+
* (`daemon/src/delegation-mcp/owner-chat-duty-gate.ts`) only for a listed
|
|
17
|
+
* harness, whose backend mounts the tools.
|
|
18
|
+
*
|
|
19
|
+
* A harness is listed only when ALL THREE hold: its daemon backend can mount an
|
|
20
|
+
* extra stdio MCP server for the turn, the server can run the intent check for
|
|
21
|
+
* it, and the daemon mints its credential. Listing one that lacks the second
|
|
22
|
+
* would offer tools whose every change is refused.
|
|
23
|
+
*
|
|
24
|
+
* The first-party harness is deliberately NOT listed yet. Its ACP backend could
|
|
25
|
+
* mount the server as it mounts `delegation` (`daemon/src/backends/acp.ts`; not wired,
|
|
26
|
+
* and a resident engine reads MCP bindings from its turn channel, not a file), but
|
|
27
|
+
* the intent check has no qualified local inference for it:
|
|
28
|
+
* the daemon's private inference answers only `claude` and the native Codex draft
|
|
29
|
+
* (`daemon/src/continuity/inference.ts`, `PROVIDERS`), and a hosted check would
|
|
30
|
+
* move a local chat's judgment and its cost onto the platform, which is a product
|
|
31
|
+
* decision, not this list's.
|
|
32
|
+
*
|
|
33
|
+
* The server stays the authority whatever this list says: the tools act only after
|
|
34
|
+
* `OwnerChatDuty.run` re-checks the stored owner stamp, the quoted request and the
|
|
35
|
+
* intent. An older peer that does not know a provider is listed only ever withholds
|
|
36
|
+
* the tools.
|
|
37
|
+
*
|
|
38
|
+
* Pure: no `node:` imports and nothing read at module load.
|
|
39
|
+
*/
|
|
40
|
+
import { canonicalHarnessProvider } from './firstPartyHarness.js';
|
|
41
|
+
/** Canonical provider spellings, in the order they were admitted. */
|
|
42
|
+
export const OWNER_CHAT_DUTY_TOOL_HARNESSES = Object.freeze(['codex', 'claude']);
|
|
43
|
+
/** Whether a Main Chat turn on this harness may carry the owner-chat Duty tools. */
|
|
44
|
+
export function supportsOwnerChatDutyTools(provider) {
|
|
45
|
+
if (typeof provider !== 'string' || !provider)
|
|
46
|
+
return false;
|
|
47
|
+
return OWNER_CHAT_DUTY_TOOL_HARNESSES.includes(String(canonicalHarnessProvider(provider)));
|
|
48
|
+
}
|
|
@@ -82,6 +82,16 @@
|
|
|
82
82
|
"default": "./dist/cjs/inferenceBrokerHarnesses.js"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
+
"./owner-chat-duty-harnesses": {
|
|
86
|
+
"import": {
|
|
87
|
+
"types": "./dist/esm/ownerChatDutyHarnesses.d.ts",
|
|
88
|
+
"default": "./dist/esm/ownerChatDutyHarnesses.js"
|
|
89
|
+
},
|
|
90
|
+
"require": {
|
|
91
|
+
"types": "./dist/cjs/ownerChatDutyHarnesses.d.ts",
|
|
92
|
+
"default": "./dist/cjs/ownerChatDutyHarnesses.js"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
85
95
|
"./harness-skill-layout": {
|
|
86
96
|
"import": {
|
|
87
97
|
"types": "./dist/esm/harnessSkillLayout.d.ts",
|