@prismer/runtime 1.9.9 → 1.9.22
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/cli.cjs +800 -2517
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +761 -2472
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +555 -2155
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -112
- package/dist/index.d.ts +6 -112
- package/dist/index.js +504 -2098
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -28,11 +28,6 @@ interface AdapterDef {
|
|
|
28
28
|
workspaceSchema: z.ZodSchema;
|
|
29
29
|
/** Long-running: ensure the underlying service is reachable. May spawn or just connect. */
|
|
30
30
|
ensureService?(profile: AgentProfile): Promise<AdapterService>;
|
|
31
|
-
/**
|
|
32
|
-
* Optional preflight called when the daemon syncs a profile. This should
|
|
33
|
-
* prepare local profile files/config without starting a long-running service.
|
|
34
|
-
*/
|
|
35
|
-
prepareProfile?(profile: AgentProfile): Promise<void>;
|
|
36
31
|
/** Interactive: one-shot dispatch (spawn-per-task). */
|
|
37
32
|
dispatch?(profile: AgentProfile, task: TaskInput): Promise<TaskResult>;
|
|
38
33
|
/** Validate config before persisting `AgentProfile.config`. */
|
|
@@ -215,46 +210,6 @@ declare const HermesProfileConfigSchema: z.ZodObject<{
|
|
|
215
210
|
nativeMirrorTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
216
211
|
/** Task authority level: executor (default) or orchestrator. */
|
|
217
212
|
taskAuthority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["executor", "orchestrator"]>>>;
|
|
218
|
-
/** Human approval escalation policy. Enforcement is currently prompt/cloud-side. */
|
|
219
|
-
approvalPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["strict", "auto-low-risk", "autonomous"]>>>;
|
|
220
|
-
/** Agent-level MCP tool allowlist. Empty/null means all tools. Supports exact names and trailing * wildcards. */
|
|
221
|
-
mcpAllowlist: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
222
|
-
/** Agent-level operating principles injected through /v1/runs instructions. */
|
|
223
|
-
operatingPrinciples: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
224
|
-
/**
|
|
225
|
-
* Role-template snapshot carried in AgentProfile.config by cloud ACP.
|
|
226
|
-
* Expected fields used here:
|
|
227
|
-
* - roleTemplate.mcpServers[].toolsAllowlist
|
|
228
|
-
* - roleTemplate.operatingPrinciples
|
|
229
|
-
*/
|
|
230
|
-
roleTemplate: z.ZodOptional<z.ZodObject<{
|
|
231
|
-
mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
232
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
233
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
234
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
235
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
236
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
237
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
238
|
-
operatingPrinciples: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
239
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
240
|
-
mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
241
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
242
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
243
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
244
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
245
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
246
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
247
|
-
operatingPrinciples: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
248
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
249
|
-
mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
250
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
251
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
252
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
253
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
254
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
255
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
256
|
-
operatingPrinciples: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
257
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
258
213
|
}, "strip", z.ZodTypeAny, {
|
|
259
214
|
port: number;
|
|
260
215
|
apiKey: string;
|
|
@@ -269,23 +224,10 @@ declare const HermesProfileConfigSchema: z.ZodObject<{
|
|
|
269
224
|
mirrorNativeGoals: boolean;
|
|
270
225
|
nativeMirrorTimeoutMs: number;
|
|
271
226
|
taskAuthority: "executor" | "orchestrator";
|
|
272
|
-
approvalPolicy: "strict" | "auto-low-risk" | "autonomous";
|
|
273
227
|
hermesProfileName?: string | undefined;
|
|
274
228
|
prismerMcpServerPath?: string | undefined;
|
|
275
229
|
prismerProviderBaseUrl?: string | undefined;
|
|
276
230
|
hermesSourceDir?: string | undefined;
|
|
277
|
-
mcpAllowlist?: string[] | null | undefined;
|
|
278
|
-
operatingPrinciples?: string | Record<string, string> | undefined;
|
|
279
|
-
roleTemplate?: z.objectOutputType<{
|
|
280
|
-
mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
281
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
282
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
283
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
284
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
285
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
286
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
287
|
-
operatingPrinciples: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
288
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
289
231
|
}, {
|
|
290
232
|
apiKey: string;
|
|
291
233
|
hermesProfileName?: string | undefined;
|
|
@@ -304,19 +246,6 @@ declare const HermesProfileConfigSchema: z.ZodObject<{
|
|
|
304
246
|
hermesSourceDir?: string | undefined;
|
|
305
247
|
nativeMirrorTimeoutMs?: number | undefined;
|
|
306
248
|
taskAuthority?: "executor" | "orchestrator" | undefined;
|
|
307
|
-
approvalPolicy?: "strict" | "auto-low-risk" | "autonomous" | undefined;
|
|
308
|
-
mcpAllowlist?: string[] | null | undefined;
|
|
309
|
-
operatingPrinciples?: string | Record<string, string> | undefined;
|
|
310
|
-
roleTemplate?: z.objectInputType<{
|
|
311
|
-
mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
312
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
313
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
314
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
315
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
316
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
317
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
318
|
-
operatingPrinciples: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
319
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
320
249
|
}>;
|
|
321
250
|
type HermesProfileConfig = z.infer<typeof HermesProfileConfigSchema>;
|
|
322
251
|
declare const hermesAdapter: AdapterDef;
|
|
@@ -958,9 +887,6 @@ interface HostAckedPayload {
|
|
|
958
887
|
[key: string]: number;
|
|
959
888
|
};
|
|
960
889
|
profilesToSync: string[];
|
|
961
|
-
/** Profile IDs the daemon declared but that no longer exist on the cloud
|
|
962
|
-
* (soft-deleted). The daemon should remove these from its local store. */
|
|
963
|
-
profilesToDelete: string[];
|
|
964
890
|
}
|
|
965
891
|
interface AgentStatusChangedPayload {
|
|
966
892
|
agentImUserId: string;
|
|
@@ -1297,8 +1223,6 @@ declare class AssetMetadataIndex {
|
|
|
1297
1223
|
search(query: string, limit?: number): AssetMetadataRow[];
|
|
1298
1224
|
/** Exact match on filename column. Returns undefined if not indexed. */
|
|
1299
1225
|
resolveByFilename(filename: string): AssetMetadataRow | undefined;
|
|
1300
|
-
resolveByAssetId(assetId: string): AssetMetadataRow | undefined;
|
|
1301
|
-
resolveByContentHash(contentHash: string): AssetMetadataRow | undefined;
|
|
1302
1226
|
/** Batch exact match — returns Map for O(1) access. */
|
|
1303
1227
|
resolveByFilenames(filenames: string[]): Map<string, AssetMetadataRow>;
|
|
1304
1228
|
}
|
|
@@ -1476,7 +1400,6 @@ interface LocalServerState {
|
|
|
1476
1400
|
runningTaskIds: string[];
|
|
1477
1401
|
observability?: {
|
|
1478
1402
|
adapters?: Record<string, unknown>;
|
|
1479
|
-
assetSync?: Record<string, unknown>;
|
|
1480
1403
|
lastTaskError?: {
|
|
1481
1404
|
taskId: string;
|
|
1482
1405
|
message: string;
|
|
@@ -1564,15 +1487,6 @@ declare class Runner extends EventEmitter {
|
|
|
1564
1487
|
private outboxWatcher?;
|
|
1565
1488
|
private memoryWiring?;
|
|
1566
1489
|
private assetMetadataIndexes;
|
|
1567
|
-
private workspaceMirrors;
|
|
1568
|
-
private assetOriginOutbox?;
|
|
1569
|
-
private dropFolderAdapter?;
|
|
1570
|
-
private dropFolderUploadRunner?;
|
|
1571
|
-
private dropFolderTimer?;
|
|
1572
|
-
private dropFolderWorkspaceId;
|
|
1573
|
-
private dropFolderWorkspaceDir;
|
|
1574
|
-
private dropFolderTickInFlight;
|
|
1575
|
-
private readonly dropFolderStable;
|
|
1576
1490
|
private state;
|
|
1577
1491
|
private startedAt;
|
|
1578
1492
|
private workspaceId;
|
|
@@ -1599,7 +1513,6 @@ declare class Runner extends EventEmitter {
|
|
|
1599
1513
|
* `agent_profiles` table (filled by host.acked sync).
|
|
1600
1514
|
*/
|
|
1601
1515
|
loadAgentsFromDb(): void;
|
|
1602
|
-
private prepareLocalProfiles;
|
|
1603
1516
|
/**
|
|
1604
1517
|
* Register an in-process AgentProfile snapshot (called by agent CLI / sync layer).
|
|
1605
1518
|
* Used to populate the `agents` list in agent.host.declare.
|
|
@@ -1630,31 +1543,12 @@ declare class Runner extends EventEmitter {
|
|
|
1630
1543
|
private onAssetChanged;
|
|
1631
1544
|
private onWorkspaceFileChanged;
|
|
1632
1545
|
private snapshotAdapterObservability;
|
|
1633
|
-
private snapshotAssetSyncObservability;
|
|
1634
1546
|
/**
|
|
1635
1547
|
* Ensure an AssetMetadataIndex exists for the given workspace and pull
|
|
1636
1548
|
* delta from cloud. Idempotent — creates the index on first call, reuses
|
|
1637
1549
|
* it on subsequent calls. Same cursor-catch-up semantics as WorkspaceMirror.
|
|
1638
1550
|
*/
|
|
1639
1551
|
private syncAssetMetadata;
|
|
1640
|
-
/**
|
|
1641
|
-
* Ensure a WorkspaceMirror exists for the workspace and pull path→asset
|
|
1642
|
-
* bindings from cloud. Cold-start daemons previously only had this table
|
|
1643
|
-
* populated by WS push or per-path URI fallback, so local asset state looked
|
|
1644
|
-
* empty even though cloud files existed.
|
|
1645
|
-
*/
|
|
1646
|
-
private syncWorkspaceFiles;
|
|
1647
|
-
private syncAssetState;
|
|
1648
|
-
/**
|
|
1649
|
-
* Desktop asset ingress: watch a user-visible local asset folder
|
|
1650
|
-
* and upload new files as IMAssets, preserving nested relative dirs in
|
|
1651
|
-
* IMAsset.folderPath. The lower-level adapter/outbox/uploader already
|
|
1652
|
-
* existed; this method wires them into the real daemon lifecycle.
|
|
1653
|
-
*/
|
|
1654
|
-
private ensureDropFolderRuntime;
|
|
1655
|
-
private stopDropFolderRuntime;
|
|
1656
|
-
private runDropFolderTick;
|
|
1657
|
-
private isDropFolderObservationStable;
|
|
1658
1552
|
/**
|
|
1659
1553
|
* SyncWorker FlushFn — pushes local writes to cloud.
|
|
1660
1554
|
*
|
|
@@ -1752,29 +1646,29 @@ declare const CCConfigSchema: z.ZodObject<{
|
|
|
1752
1646
|
cwd: string;
|
|
1753
1647
|
maxTurns: number;
|
|
1754
1648
|
route: "default" | "prismer" | "omniroute";
|
|
1649
|
+
systemPrompt?: string | undefined;
|
|
1650
|
+
allowedTools?: string[] | undefined;
|
|
1651
|
+
envVars?: Record<string, string> | undefined;
|
|
1755
1652
|
mcpServers?: {
|
|
1756
1653
|
name: string;
|
|
1757
1654
|
command: string;
|
|
1758
1655
|
env?: Record<string, string> | undefined;
|
|
1759
1656
|
args?: string[] | undefined;
|
|
1760
1657
|
}[] | undefined;
|
|
1761
|
-
systemPrompt?: string | undefined;
|
|
1762
|
-
allowedTools?: string[] | undefined;
|
|
1763
|
-
envVars?: Record<string, string> | undefined;
|
|
1764
1658
|
baseURL?: string | undefined;
|
|
1765
1659
|
apiKeyRef?: string | undefined;
|
|
1766
1660
|
}, {
|
|
1767
1661
|
cwd: string;
|
|
1768
1662
|
model?: string | undefined;
|
|
1663
|
+
systemPrompt?: string | undefined;
|
|
1664
|
+
allowedTools?: string[] | undefined;
|
|
1665
|
+
envVars?: Record<string, string> | undefined;
|
|
1769
1666
|
mcpServers?: {
|
|
1770
1667
|
name: string;
|
|
1771
1668
|
command: string;
|
|
1772
1669
|
env?: Record<string, string> | undefined;
|
|
1773
1670
|
args?: string[] | undefined;
|
|
1774
1671
|
}[] | undefined;
|
|
1775
|
-
systemPrompt?: string | undefined;
|
|
1776
|
-
allowedTools?: string[] | undefined;
|
|
1777
|
-
envVars?: Record<string, string> | undefined;
|
|
1778
1672
|
maxTurns?: number | undefined;
|
|
1779
1673
|
baseURL?: string | undefined;
|
|
1780
1674
|
apiKeyRef?: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -28,11 +28,6 @@ interface AdapterDef {
|
|
|
28
28
|
workspaceSchema: z.ZodSchema;
|
|
29
29
|
/** Long-running: ensure the underlying service is reachable. May spawn or just connect. */
|
|
30
30
|
ensureService?(profile: AgentProfile): Promise<AdapterService>;
|
|
31
|
-
/**
|
|
32
|
-
* Optional preflight called when the daemon syncs a profile. This should
|
|
33
|
-
* prepare local profile files/config without starting a long-running service.
|
|
34
|
-
*/
|
|
35
|
-
prepareProfile?(profile: AgentProfile): Promise<void>;
|
|
36
31
|
/** Interactive: one-shot dispatch (spawn-per-task). */
|
|
37
32
|
dispatch?(profile: AgentProfile, task: TaskInput): Promise<TaskResult>;
|
|
38
33
|
/** Validate config before persisting `AgentProfile.config`. */
|
|
@@ -215,46 +210,6 @@ declare const HermesProfileConfigSchema: z.ZodObject<{
|
|
|
215
210
|
nativeMirrorTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
216
211
|
/** Task authority level: executor (default) or orchestrator. */
|
|
217
212
|
taskAuthority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["executor", "orchestrator"]>>>;
|
|
218
|
-
/** Human approval escalation policy. Enforcement is currently prompt/cloud-side. */
|
|
219
|
-
approvalPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["strict", "auto-low-risk", "autonomous"]>>>;
|
|
220
|
-
/** Agent-level MCP tool allowlist. Empty/null means all tools. Supports exact names and trailing * wildcards. */
|
|
221
|
-
mcpAllowlist: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
222
|
-
/** Agent-level operating principles injected through /v1/runs instructions. */
|
|
223
|
-
operatingPrinciples: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
224
|
-
/**
|
|
225
|
-
* Role-template snapshot carried in AgentProfile.config by cloud ACP.
|
|
226
|
-
* Expected fields used here:
|
|
227
|
-
* - roleTemplate.mcpServers[].toolsAllowlist
|
|
228
|
-
* - roleTemplate.operatingPrinciples
|
|
229
|
-
*/
|
|
230
|
-
roleTemplate: z.ZodOptional<z.ZodObject<{
|
|
231
|
-
mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
232
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
233
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
234
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
235
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
236
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
237
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
238
|
-
operatingPrinciples: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
239
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
240
|
-
mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
241
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
242
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
243
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
244
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
245
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
246
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
247
|
-
operatingPrinciples: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
248
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
249
|
-
mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
250
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
251
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
252
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
253
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
254
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
255
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
256
|
-
operatingPrinciples: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
257
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
258
213
|
}, "strip", z.ZodTypeAny, {
|
|
259
214
|
port: number;
|
|
260
215
|
apiKey: string;
|
|
@@ -269,23 +224,10 @@ declare const HermesProfileConfigSchema: z.ZodObject<{
|
|
|
269
224
|
mirrorNativeGoals: boolean;
|
|
270
225
|
nativeMirrorTimeoutMs: number;
|
|
271
226
|
taskAuthority: "executor" | "orchestrator";
|
|
272
|
-
approvalPolicy: "strict" | "auto-low-risk" | "autonomous";
|
|
273
227
|
hermesProfileName?: string | undefined;
|
|
274
228
|
prismerMcpServerPath?: string | undefined;
|
|
275
229
|
prismerProviderBaseUrl?: string | undefined;
|
|
276
230
|
hermesSourceDir?: string | undefined;
|
|
277
|
-
mcpAllowlist?: string[] | null | undefined;
|
|
278
|
-
operatingPrinciples?: string | Record<string, string> | undefined;
|
|
279
|
-
roleTemplate?: z.objectOutputType<{
|
|
280
|
-
mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
281
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
282
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
283
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
284
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
285
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
286
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
287
|
-
operatingPrinciples: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
288
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
289
231
|
}, {
|
|
290
232
|
apiKey: string;
|
|
291
233
|
hermesProfileName?: string | undefined;
|
|
@@ -304,19 +246,6 @@ declare const HermesProfileConfigSchema: z.ZodObject<{
|
|
|
304
246
|
hermesSourceDir?: string | undefined;
|
|
305
247
|
nativeMirrorTimeoutMs?: number | undefined;
|
|
306
248
|
taskAuthority?: "executor" | "orchestrator" | undefined;
|
|
307
|
-
approvalPolicy?: "strict" | "auto-low-risk" | "autonomous" | undefined;
|
|
308
|
-
mcpAllowlist?: string[] | null | undefined;
|
|
309
|
-
operatingPrinciples?: string | Record<string, string> | undefined;
|
|
310
|
-
roleTemplate?: z.objectInputType<{
|
|
311
|
-
mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
312
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
313
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
314
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
315
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
316
|
-
toolsAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
317
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
318
|
-
operatingPrinciples: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
319
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
320
249
|
}>;
|
|
321
250
|
type HermesProfileConfig = z.infer<typeof HermesProfileConfigSchema>;
|
|
322
251
|
declare const hermesAdapter: AdapterDef;
|
|
@@ -958,9 +887,6 @@ interface HostAckedPayload {
|
|
|
958
887
|
[key: string]: number;
|
|
959
888
|
};
|
|
960
889
|
profilesToSync: string[];
|
|
961
|
-
/** Profile IDs the daemon declared but that no longer exist on the cloud
|
|
962
|
-
* (soft-deleted). The daemon should remove these from its local store. */
|
|
963
|
-
profilesToDelete: string[];
|
|
964
890
|
}
|
|
965
891
|
interface AgentStatusChangedPayload {
|
|
966
892
|
agentImUserId: string;
|
|
@@ -1297,8 +1223,6 @@ declare class AssetMetadataIndex {
|
|
|
1297
1223
|
search(query: string, limit?: number): AssetMetadataRow[];
|
|
1298
1224
|
/** Exact match on filename column. Returns undefined if not indexed. */
|
|
1299
1225
|
resolveByFilename(filename: string): AssetMetadataRow | undefined;
|
|
1300
|
-
resolveByAssetId(assetId: string): AssetMetadataRow | undefined;
|
|
1301
|
-
resolveByContentHash(contentHash: string): AssetMetadataRow | undefined;
|
|
1302
1226
|
/** Batch exact match — returns Map for O(1) access. */
|
|
1303
1227
|
resolveByFilenames(filenames: string[]): Map<string, AssetMetadataRow>;
|
|
1304
1228
|
}
|
|
@@ -1476,7 +1400,6 @@ interface LocalServerState {
|
|
|
1476
1400
|
runningTaskIds: string[];
|
|
1477
1401
|
observability?: {
|
|
1478
1402
|
adapters?: Record<string, unknown>;
|
|
1479
|
-
assetSync?: Record<string, unknown>;
|
|
1480
1403
|
lastTaskError?: {
|
|
1481
1404
|
taskId: string;
|
|
1482
1405
|
message: string;
|
|
@@ -1564,15 +1487,6 @@ declare class Runner extends EventEmitter {
|
|
|
1564
1487
|
private outboxWatcher?;
|
|
1565
1488
|
private memoryWiring?;
|
|
1566
1489
|
private assetMetadataIndexes;
|
|
1567
|
-
private workspaceMirrors;
|
|
1568
|
-
private assetOriginOutbox?;
|
|
1569
|
-
private dropFolderAdapter?;
|
|
1570
|
-
private dropFolderUploadRunner?;
|
|
1571
|
-
private dropFolderTimer?;
|
|
1572
|
-
private dropFolderWorkspaceId;
|
|
1573
|
-
private dropFolderWorkspaceDir;
|
|
1574
|
-
private dropFolderTickInFlight;
|
|
1575
|
-
private readonly dropFolderStable;
|
|
1576
1490
|
private state;
|
|
1577
1491
|
private startedAt;
|
|
1578
1492
|
private workspaceId;
|
|
@@ -1599,7 +1513,6 @@ declare class Runner extends EventEmitter {
|
|
|
1599
1513
|
* `agent_profiles` table (filled by host.acked sync).
|
|
1600
1514
|
*/
|
|
1601
1515
|
loadAgentsFromDb(): void;
|
|
1602
|
-
private prepareLocalProfiles;
|
|
1603
1516
|
/**
|
|
1604
1517
|
* Register an in-process AgentProfile snapshot (called by agent CLI / sync layer).
|
|
1605
1518
|
* Used to populate the `agents` list in agent.host.declare.
|
|
@@ -1630,31 +1543,12 @@ declare class Runner extends EventEmitter {
|
|
|
1630
1543
|
private onAssetChanged;
|
|
1631
1544
|
private onWorkspaceFileChanged;
|
|
1632
1545
|
private snapshotAdapterObservability;
|
|
1633
|
-
private snapshotAssetSyncObservability;
|
|
1634
1546
|
/**
|
|
1635
1547
|
* Ensure an AssetMetadataIndex exists for the given workspace and pull
|
|
1636
1548
|
* delta from cloud. Idempotent — creates the index on first call, reuses
|
|
1637
1549
|
* it on subsequent calls. Same cursor-catch-up semantics as WorkspaceMirror.
|
|
1638
1550
|
*/
|
|
1639
1551
|
private syncAssetMetadata;
|
|
1640
|
-
/**
|
|
1641
|
-
* Ensure a WorkspaceMirror exists for the workspace and pull path→asset
|
|
1642
|
-
* bindings from cloud. Cold-start daemons previously only had this table
|
|
1643
|
-
* populated by WS push or per-path URI fallback, so local asset state looked
|
|
1644
|
-
* empty even though cloud files existed.
|
|
1645
|
-
*/
|
|
1646
|
-
private syncWorkspaceFiles;
|
|
1647
|
-
private syncAssetState;
|
|
1648
|
-
/**
|
|
1649
|
-
* Desktop asset ingress: watch a user-visible local asset folder
|
|
1650
|
-
* and upload new files as IMAssets, preserving nested relative dirs in
|
|
1651
|
-
* IMAsset.folderPath. The lower-level adapter/outbox/uploader already
|
|
1652
|
-
* existed; this method wires them into the real daemon lifecycle.
|
|
1653
|
-
*/
|
|
1654
|
-
private ensureDropFolderRuntime;
|
|
1655
|
-
private stopDropFolderRuntime;
|
|
1656
|
-
private runDropFolderTick;
|
|
1657
|
-
private isDropFolderObservationStable;
|
|
1658
1552
|
/**
|
|
1659
1553
|
* SyncWorker FlushFn — pushes local writes to cloud.
|
|
1660
1554
|
*
|
|
@@ -1752,29 +1646,29 @@ declare const CCConfigSchema: z.ZodObject<{
|
|
|
1752
1646
|
cwd: string;
|
|
1753
1647
|
maxTurns: number;
|
|
1754
1648
|
route: "default" | "prismer" | "omniroute";
|
|
1649
|
+
systemPrompt?: string | undefined;
|
|
1650
|
+
allowedTools?: string[] | undefined;
|
|
1651
|
+
envVars?: Record<string, string> | undefined;
|
|
1755
1652
|
mcpServers?: {
|
|
1756
1653
|
name: string;
|
|
1757
1654
|
command: string;
|
|
1758
1655
|
env?: Record<string, string> | undefined;
|
|
1759
1656
|
args?: string[] | undefined;
|
|
1760
1657
|
}[] | undefined;
|
|
1761
|
-
systemPrompt?: string | undefined;
|
|
1762
|
-
allowedTools?: string[] | undefined;
|
|
1763
|
-
envVars?: Record<string, string> | undefined;
|
|
1764
1658
|
baseURL?: string | undefined;
|
|
1765
1659
|
apiKeyRef?: string | undefined;
|
|
1766
1660
|
}, {
|
|
1767
1661
|
cwd: string;
|
|
1768
1662
|
model?: string | undefined;
|
|
1663
|
+
systemPrompt?: string | undefined;
|
|
1664
|
+
allowedTools?: string[] | undefined;
|
|
1665
|
+
envVars?: Record<string, string> | undefined;
|
|
1769
1666
|
mcpServers?: {
|
|
1770
1667
|
name: string;
|
|
1771
1668
|
command: string;
|
|
1772
1669
|
env?: Record<string, string> | undefined;
|
|
1773
1670
|
args?: string[] | undefined;
|
|
1774
1671
|
}[] | undefined;
|
|
1775
|
-
systemPrompt?: string | undefined;
|
|
1776
|
-
allowedTools?: string[] | undefined;
|
|
1777
|
-
envVars?: Record<string, string> | undefined;
|
|
1778
1672
|
maxTurns?: number | undefined;
|
|
1779
1673
|
baseURL?: string | undefined;
|
|
1780
1674
|
apiKeyRef?: string | undefined;
|