@ours.network/fleet 2.4.3 → 2.5.0
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/README.md +29 -32
- package/contrib/.claude-plugin/marketplace.json +1 -1
- package/contrib/claude-native/hooks/register.js +108 -31
- package/dist/agent-ours/mcp-endpoint.d.ts +3 -0
- package/dist/agent-ours/mcp-endpoint.js +3 -0
- package/dist/agent-ours/service.d.ts +3 -0
- package/dist/agent-ours/service.js +19 -2
- package/dist/application/conversation-history.js +2 -2
- package/dist/application/fleet-query-service.js +6 -3
- package/dist/application/native-claude-conversation.js +13 -2
- package/dist/application/native-conversation.d.ts +5 -0
- package/dist/application/native-conversation.js +30 -5
- package/dist/application/native-conversations.d.ts +3 -0
- package/dist/application/native-conversations.js +2 -0
- package/dist/application/role-creation-service.js +0 -3
- package/dist/application/session-control.d.ts +3 -0
- package/dist/application/session-control.js +5 -0
- package/dist/application/types.d.ts +5 -0
- package/dist/build-info.json +4 -4
- package/dist/cli.js +2 -3
- package/dist/config.d.ts +9 -2
- package/dist/config.js +15 -4
- package/dist/docs.d.ts +5 -7
- package/dist/docs.js +38 -46
- package/dist/doctor.js +4 -6
- package/dist/file-delivery/store.d.ts +12 -0
- package/dist/file-delivery/store.js +24 -2
- package/dist/fleet-command-audit.js +3 -2
- package/dist/fleet-proxy.js +0 -1
- package/dist/harness/hermes-permissions.js +1 -1
- package/dist/harness/hermes-session.js +0 -1
- package/dist/init-wizard.js +2 -2
- package/dist/lifecycle-summary.d.ts +3 -2
- package/dist/lifecycle-summary.js +2 -3
- package/dist/native-participation-cli.js +55 -10
- package/dist/native-participation.d.ts +174 -0
- package/dist/native-participation.js +67 -0
- package/dist/notifications/status-producer.d.ts +37 -0
- package/dist/notifications/status-producer.js +146 -0
- package/dist/permissions.d.ts +2 -3
- package/dist/permissions.js +3 -3
- package/dist/preset-migration.js +12 -0
- package/dist/rooms-tasks/cli.js +2 -6
- package/dist/rooms-tasks/deletion.js +3 -0
- package/dist/rooms-tasks/member-overrides.d.ts +2 -1
- package/dist/rooms-tasks/member-overrides.js +1 -4
- package/dist/rooms-tasks/task-contributions.d.ts +15 -0
- package/dist/rooms-tasks/task-contributions.js +13 -2
- package/dist/runner.js +24 -8
- package/dist/session/acp.d.ts +9 -29
- package/dist/session/acp.js +31 -308
- package/dist/session/codex-app-server.d.ts +9 -6
- package/dist/session/codex-app-server.js +19 -58
- package/dist/session/control.d.ts +5 -0
- package/dist/session/control.js +19 -3
- package/dist/session/conversation-types.d.ts +3 -2
- package/dist/session/status-notice.d.ts +24 -0
- package/dist/session/status-notice.js +38 -0
- package/dist/session/types.d.ts +2 -0
- package/dist/spawn.d.ts +1 -2
- package/dist/spawn.js +2 -6
- package/dist/statuses/permission-projection.d.ts +53 -0
- package/dist/statuses/permission-projection.js +317 -0
- package/dist/statuses/status-answers.d.ts +31 -0
- package/dist/statuses/status-answers.js +85 -0
- package/dist/statuses/status-feed.d.ts +85 -0
- package/dist/statuses/status-feed.js +122 -0
- package/dist/statuses/status-kinds.d.ts +15 -0
- package/dist/statuses/status-kinds.js +12 -0
- package/dist/statuses/status-ledger.d.ts +21 -0
- package/dist/statuses/status-ledger.js +80 -0
- package/dist/statuses/status-routes.d.ts +43 -0
- package/dist/statuses/status-routes.js +140 -0
- package/dist/statuses/status-store.d.ts +257 -0
- package/dist/statuses/status-store.js +605 -0
- package/dist/statuses/status-tools.d.ts +21 -0
- package/dist/statuses/status-tools.js +126 -0
- package/dist/supervisor/manager.js +11 -0
- package/dist/web/resource-views.d.ts +3 -1
- package/dist/web/resource-views.js +6 -2
- package/dist/web/runtime.js +21 -0
- package/dist/web/server.js +15 -0
- package/docs/acp-files.md +9 -7
- package/docs/native-session-participation.md +14 -0
- package/docs/validation/managed-cli-permissions.md +1 -1
- package/examples/fleet/agents/Alice.yaml +1 -1
- package/examples/fleet/agents/FleetCoordinator.yaml +1 -1
- package/examples/fleet.yaml +0 -1
- package/package.json +2 -2
- package/presets/fleet/agent_templates/Critic.yaml +1 -1
- package/presets/fleet/agent_templates/Developer.yaml +1 -1
- package/presets/fleet/agent_templates/Engineer.yaml +1 -1
- package/presets/fleet/agent_templates/LocalCoordinator.yaml +1 -1
- package/presets/fleet/agents/FleetCoordinator.yaml +1 -1
- package/presets/fleet.yaml +1 -1
- package/presets/manifest.json +1 -1
|
@@ -137,6 +137,8 @@ export class RoleSessionControlAdapter {
|
|
|
137
137
|
const features = request.requireIdle ? (await this.describe()).features : undefined;
|
|
138
138
|
if (request.requireIdle && (!request.expectedSessionGeneration || !features?.includes('idle_bound_prompts')))
|
|
139
139
|
throw new FleetError('capability_unavailable', 'Live voice requires an updated supervisor.');
|
|
140
|
+
if (request.expectedIdentityCid !== undefined && !(await this.describe()).features.includes('identity_bound_prompts'))
|
|
141
|
+
throw new FleetError('capability_unavailable', 'This agent\'s supervisor cannot verify its identity at admission; update it.');
|
|
140
142
|
let command = 'submit_prompt_v2';
|
|
141
143
|
if (request.expectedSessionGeneration) {
|
|
142
144
|
if ((await this.describe()).features.includes('generation_bound_prompts'))
|
|
@@ -151,6 +153,7 @@ export class RoleSessionControlAdapter {
|
|
|
151
153
|
return await this.call(command, {
|
|
152
154
|
commandId: request.commandId, text: request.text, actor: request.actorBrowserSession,
|
|
153
155
|
source: request.source, expectedSessionGeneration: request.expectedSessionGeneration, requireIdle: request.requireIdle,
|
|
156
|
+
...(request.expectedIdentityCid === undefined ? {} : { expectedIdentityCid: request.expectedIdentityCid }),
|
|
154
157
|
});
|
|
155
158
|
}
|
|
156
159
|
catch (error) {
|
|
@@ -159,6 +162,8 @@ export class RoleSessionControlAdapter {
|
|
|
159
162
|
throw new FleetError('stale_state', 'Agent session changed. Record a new voice message.');
|
|
160
163
|
if (fleetError.message.includes('voice_busy:'))
|
|
161
164
|
throw new FleetError('conflict', 'Agent is already working. Wait for the current turn.');
|
|
165
|
+
if (fleetError.message.includes('identity_mismatch:'))
|
|
166
|
+
throw new FleetError('forbidden', 'identity_mismatch: the agent session is bound to a different identity');
|
|
162
167
|
if (fleetError.message.includes('idempotency_conflict'))
|
|
163
168
|
throw new FleetError('idempotency_conflict', 'this command id was already used with a different prompt body');
|
|
164
169
|
throw fleetError;
|
|
@@ -60,6 +60,11 @@ export interface Problem {
|
|
|
60
60
|
export interface RoleStatus {
|
|
61
61
|
roleId: string;
|
|
62
62
|
observedAt: string;
|
|
63
|
+
/**
|
|
64
|
+
* The managed agent's identity CID, from its session bridge descriptor: the author of its
|
|
65
|
+
* statuses and the address of its feed. Absent until the agent's bridge has bound an identity.
|
|
66
|
+
*/
|
|
67
|
+
identityCid?: string;
|
|
63
68
|
overall: 'ready' | 'busy' | 'attention' | 'offline' | 'unknown';
|
|
64
69
|
supervisor: {
|
|
65
70
|
backend: 'systemd' | 'launchd' | 'none';
|
package/dist/build-info.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.
|
|
3
|
-
"buildId": "
|
|
4
|
-
"commit": "
|
|
2
|
+
"version": "2.5.0",
|
|
3
|
+
"buildId": "829a402b8c23",
|
|
4
|
+
"commit": "cad470c5f10468c6115c3f9398e143f8c0835d65",
|
|
5
5
|
"dirty": false,
|
|
6
|
-
"builtAt": "2026-12-
|
|
6
|
+
"builtAt": "2026-12-03T21:34:44.941Z",
|
|
7
7
|
"capabilities": [
|
|
8
8
|
"service.refresh-v1",
|
|
9
9
|
"managed-cli.codex-reasoning-effort-v1",
|
package/dist/cli.js
CHANGED
|
@@ -313,7 +313,7 @@ cOpt(program.command('config').description('validate + print the merged plan (no
|
|
|
313
313
|
+ `(${r.owner_channel.owners.length} authorized sender(s), `
|
|
314
314
|
+ `interrupt=${r.owner_channel.interrupt})`);
|
|
315
315
|
console.log(` permissions: approval=${r.permissions.approval} `
|
|
316
|
-
+ `filesystem=${r.permissions.filesystem}
|
|
316
|
+
+ `filesystem=${r.permissions.filesystem}`);
|
|
317
317
|
if (perms?.supported)
|
|
318
318
|
console.log(` native: ${formatNative(perms.native)}`
|
|
319
319
|
+ `${perms.exact ? '' : ' (not an exact representation)'}`);
|
|
@@ -1214,7 +1214,6 @@ cOpt(program.command('spawn [name]').description('spawn a new agent (permanent b
|
|
|
1214
1214
|
.option('--coordinator <name>', 'announce target')
|
|
1215
1215
|
.option('--approval <mode>', 'fleet permission mode: ask|auto|allow (Codex ACP allow selects agent-full-access; deny is deprecated)')
|
|
1216
1216
|
.option('--filesystem <mode>', 'common filesystem intent: read-only|workspace|unrestricted')
|
|
1217
|
-
.option('--unattended <mode>', 'permission behavior without a console: deny|wait')
|
|
1218
1217
|
.option('--isolation-file <path>', 'file holding an isolation: mapping (same schema as fleet.yaml)')
|
|
1219
1218
|
.option('--loops-file <path>', 'owner-only YAML containing exactly loops: for this temporary agent')
|
|
1220
1219
|
.option('--no-loops', 'explicitly disable temporary-agent loops')
|
|
@@ -1232,7 +1231,7 @@ cOpt(program.command('spawn [name]').description('spawn a new agent (permanent b
|
|
|
1232
1231
|
brain: parseAgentSelection(opts.brain, 'brain'), role: parseAgentSelection(opts.role, 'role'),
|
|
1233
1232
|
identity: opts.identity, cwd: opts.cwd, coordinator: opts.coordinator,
|
|
1234
1233
|
approval: opts.approval,
|
|
1235
|
-
filesystem: opts.filesystem,
|
|
1234
|
+
filesystem: opts.filesystem,
|
|
1236
1235
|
isolationFile: opts.isolationFile, configPath: opts.configuration,
|
|
1237
1236
|
loopsFile: opts.loopsFile, noLoops: opts.loops === false,
|
|
1238
1237
|
loopSource: opts.loopsFile || opts.loops === false ? 'cli' : 'omitted',
|
package/dist/config.d.ts
CHANGED
|
@@ -33,7 +33,6 @@ export type FleetPermissionMode = 'ask' | 'auto' | 'allow';
|
|
|
33
33
|
/** `deny` is a deprecated, fail-closed compatibility alias retained for old fleet files. */
|
|
34
34
|
export type ApprovalMode = FleetPermissionMode | 'deny';
|
|
35
35
|
export type FilesystemMode = 'read-only' | 'workspace' | 'unrestricted';
|
|
36
|
-
export type UnattendedMode = 'deny' | 'wait';
|
|
37
36
|
/** Monitor wake policy: preserve legacy booleans and add one explicit safe boundary. */
|
|
38
37
|
export type MonitorInterrupt = boolean | 'after_tool';
|
|
39
38
|
/**
|
|
@@ -56,8 +55,14 @@ export declare function validateFileDelivery(value: unknown): FileDeliveryConfig
|
|
|
56
55
|
export interface CommonPermissions {
|
|
57
56
|
approval: ApprovalMode;
|
|
58
57
|
filesystem: FilesystemMode;
|
|
59
|
-
unattended: UnattendedMode;
|
|
60
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Permission keys that are retired: still accepted in a configuration and ignored, with a startup warning naming the
|
|
61
|
+
* role. `unattended` (deny | wait) is gone because every permission request waits for the Owner (D6).
|
|
62
|
+
*/
|
|
63
|
+
export declare const RETIRED_PERMISSION_KEYS: readonly ["unattended"];
|
|
64
|
+
/** The retired keys present in a role's resolved permission input (role and defaults). */
|
|
65
|
+
export declare function retiredPermissionKeys(defaults: unknown, role: unknown): string[];
|
|
61
66
|
export interface SessionOptions {
|
|
62
67
|
acp?: {
|
|
63
68
|
/** ACP agent command and arguments. Defaults are supplied by the harness adapter. */
|
|
@@ -227,6 +232,8 @@ export interface ResolvedRole extends Omit<RoleConfig, 'model' | 'owner_channel'
|
|
|
227
232
|
* contradict, and must not be warned at.
|
|
228
233
|
*/
|
|
229
234
|
permissionsDeclared: boolean;
|
|
235
|
+
/** Retired permission keys this role's configuration still contains; ignored, warned about at start. */
|
|
236
|
+
retiredPermissions?: string[];
|
|
230
237
|
identity: string;
|
|
231
238
|
model?: string;
|
|
232
239
|
sourceFile: string;
|
package/dist/config.js
CHANGED
|
@@ -43,6 +43,17 @@ export function validateFileDelivery(value) {
|
|
|
43
43
|
throw new ConfigError('file_delivery is retired and ignored; it accepts only the legacy enabled:boolean and directory:string keys');
|
|
44
44
|
return value;
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Permission keys that are retired: still accepted in a configuration and ignored, with a startup warning naming the
|
|
48
|
+
* role. `unattended` (deny | wait) is gone because every permission request waits for the Owner (D6).
|
|
49
|
+
*/
|
|
50
|
+
export const RETIRED_PERMISSION_KEYS = ['unattended'];
|
|
51
|
+
/** The retired keys present in a role's resolved permission input (role and defaults). */
|
|
52
|
+
export function retiredPermissionKeys(defaults, role) {
|
|
53
|
+
const present = (value) => isPlainObject(value) ? Object.keys(value) : [];
|
|
54
|
+
const keys = new Set([...present(defaults), ...present(role)]);
|
|
55
|
+
return RETIRED_PERMISSION_KEYS.filter(key => keys.has(key));
|
|
56
|
+
}
|
|
46
57
|
/** Default wake sources when a role does not list its own. */
|
|
47
58
|
export const DEFAULT_WAKE_SOURCES = ['message_received', 'file_received', 'local_contact_request', 'pending_message'];
|
|
48
59
|
const MONITOR_KEYS = [
|
|
@@ -669,6 +680,7 @@ export function loadConfig(configPath, options = {}) {
|
|
|
669
680
|
const session = resolveSession(r.session ?? defaults.session, file, name);
|
|
670
681
|
const sessionOptions = resolveSessionOptions(defaults.session_options, r.session_options, session, file, name);
|
|
671
682
|
const permissions = resolvePermissions(defaults.permissions, r.permissions, file, name);
|
|
683
|
+
const retiredPermissions = retiredPermissionKeys(defaults.permissions, r.permissions);
|
|
672
684
|
const permissionsDeclared = r.permissions !== undefined || defaults.permissions !== undefined;
|
|
673
685
|
const defaultHarnessOptions = defaults.harness_options;
|
|
674
686
|
if (defaultHarnessOptions !== undefined
|
|
@@ -736,6 +748,7 @@ export function loadConfig(configPath, options = {}) {
|
|
|
736
748
|
session_options: sessionOptions,
|
|
737
749
|
permissions,
|
|
738
750
|
permissionsDeclared,
|
|
751
|
+
...(retiredPermissions.length ? { retiredPermissions } : {}),
|
|
739
752
|
identity: r.identity ?? name,
|
|
740
753
|
model,
|
|
741
754
|
model_chain: modelChain,
|
|
@@ -1136,7 +1149,7 @@ export function resolvePermissions(defaults, role, file = 'config', name = 'role
|
|
|
1136
1149
|
...(defaults ?? {}),
|
|
1137
1150
|
...(role ?? {}),
|
|
1138
1151
|
};
|
|
1139
|
-
const allowed = ['approval', 'filesystem',
|
|
1152
|
+
const allowed = ['approval', 'filesystem', ...RETIRED_PERMISSION_KEYS];
|
|
1140
1153
|
const bad = Object.keys(merged).filter(k => !allowed.includes(k));
|
|
1141
1154
|
if (bad.length)
|
|
1142
1155
|
throw new ConfigError(`${file}: role '${name}' permissions: unknown key(s) ${bad.join(', ')}`);
|
|
@@ -1146,12 +1159,10 @@ export function resolvePermissions(defaults, role, file = 'config', name = 'role
|
|
|
1146
1159
|
if (merged.filesystem !== undefined
|
|
1147
1160
|
&& !['read-only', 'workspace', 'unrestricted'].includes(merged.filesystem))
|
|
1148
1161
|
throw new ConfigError(`${file}: role '${name}' permissions.filesystem must be one of: read-only, workspace, unrestricted`);
|
|
1149
|
-
|
|
1150
|
-
throw new ConfigError(`${file}: role '${name}' permissions.unattended must be one of: deny, wait`);
|
|
1162
|
+
// A retired key is accepted with any value and ignored (see RETIRED_PERMISSION_KEYS).
|
|
1151
1163
|
return {
|
|
1152
1164
|
approval: merged.approval ?? 'ask',
|
|
1153
1165
|
filesystem: merged.filesystem ?? 'workspace',
|
|
1154
|
-
unattended: merged.unattended ?? 'deny',
|
|
1155
1166
|
};
|
|
1156
1167
|
}
|
|
1157
1168
|
/** Validate the top-level `start_stagger_ms` (supervisor launch spacing); default 0. */
|