@xenosystem/agent-sdk 0.9.22 → 0.9.25
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 +12 -5
- package/dist/artifacts/index.cjs +1 -1
- package/dist/artifacts/index.js +1 -1
- package/dist/automation/index.cjs +16 -3
- package/dist/automation/index.d.cts +342 -1
- package/dist/automation/index.d.ts +342 -1
- package/dist/automation/index.js +16 -3
- package/dist/automation/metafile-cjs.json +1 -1
- package/dist/automation/metafile-esm.json +1 -1
- package/dist/control-plane/index.cjs +1 -1
- package/dist/control-plane/index.js +1 -1
- package/dist/control-room/index.d.cts +1 -1
- package/dist/control-room/index.d.ts +1 -1
- package/dist/control-room/metafile-cjs.json +1 -1
- package/dist/control-room/metafile-esm.json +1 -1
- package/dist/coordination/index.cjs +2 -0
- package/dist/coordination/index.d.cts +395 -0
- package/dist/coordination/index.d.ts +395 -0
- package/dist/coordination/index.js +2 -0
- package/dist/coordination/metafile-cjs.json +1 -0
- package/dist/coordination/metafile-esm.json +1 -0
- package/dist/electron/index.cjs +113 -113
- package/dist/electron/index.d.cts +9 -1
- package/dist/electron/index.d.ts +9 -1
- package/dist/electron/index.js +113 -113
- package/dist/electron/metafile-cjs.json +1 -1
- package/dist/electron/metafile-esm.json +1 -1
- package/dist/governance/index.d.cts +2 -0
- package/dist/governance/index.d.ts +2 -0
- package/dist/hosted/index.cjs +1 -1
- package/dist/hosted/index.js +1 -1
- package/dist/hosted/metafile-cjs.json +1 -1
- package/dist/hosted/metafile-esm.json +1 -1
- package/dist/index.cjs +357 -355
- package/dist/index.d.cts +1911 -1355
- package/dist/index.d.ts +1911 -1355
- package/dist/index.js +357 -355
- package/dist/mcp/index.d.cts +3 -0
- package/dist/mcp/index.d.ts +3 -0
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/session/index.cjs +24 -24
- package/dist/session/index.d.cts +9 -1
- package/dist/session/index.d.ts +9 -1
- package/dist/session/index.js +24 -24
- package/dist/session/metafile-cjs.json +1 -1
- package/dist/session/metafile-esm.json +1 -1
- package/dist/skills/index.d.cts +3 -0
- package/dist/skills/index.d.ts +3 -0
- package/dist/ui/index.d.cts +2 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/utils/index.d.cts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/package.json +15 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WebJobProgress } from "@xenosystem/web-context-client/progress";
|
|
1
2
|
declare const XENO_ARTIFACT_SCHEMA_VERSION: 1;
|
|
2
3
|
type XenoJsonPrimitive = string | number | boolean | null;
|
|
3
4
|
type XenoJsonValue = XenoJsonPrimitive | XenoJsonObject | XenoJsonValue[];
|
|
@@ -327,6 +328,30 @@ interface XenoArtifactListQuery {
|
|
|
327
328
|
sensitivity?: XenoArtifactSensitivity[];
|
|
328
329
|
includeSuperseded?: boolean;
|
|
329
330
|
}
|
|
331
|
+
interface PromptSectionContext {
|
|
332
|
+
readonly systemPrompt: string;
|
|
333
|
+
readonly taskPrompt?: string;
|
|
334
|
+
readonly iteration: number;
|
|
335
|
+
readonly model: string;
|
|
336
|
+
}
|
|
337
|
+
interface PromptSectionProvider {
|
|
338
|
+
name: string;
|
|
339
|
+
order?: number;
|
|
340
|
+
provide(ctx: PromptSectionContext): string | null | undefined;
|
|
341
|
+
}
|
|
342
|
+
type PermissionProfileName = "default" | "read-only" | "trusted-dev";
|
|
343
|
+
interface AgentToolPolicy {
|
|
344
|
+
mode?: "inherit" | "none" | "readOnly" | "default" | "fullAccess";
|
|
345
|
+
allow?: string[];
|
|
346
|
+
deny?: string[];
|
|
347
|
+
}
|
|
348
|
+
type AgentDefinitionIsolation = "none" | "worktree";
|
|
349
|
+
declare const XENO_AGENT_PROFILE_SCHEMA_VERSION: 2;
|
|
350
|
+
type AgentProfileKind = "primary" | "subagent" | "service";
|
|
351
|
+
type AgentProfileCollaborationMode = "chat" | "plan" | "execute" | "review";
|
|
352
|
+
type AgentProfileMemoryScope = "none" | "session" | "project" | "user";
|
|
353
|
+
type AgentProfileSoulMode = "disabled" | "read" | "learn";
|
|
354
|
+
type AgentProfileIsolation = AgentDefinitionIsolation | "container";
|
|
330
355
|
declare const AGENT_PROFILE_EXTERNAL_ACTIONS: readonly [
|
|
331
356
|
"publish",
|
|
332
357
|
"deploy",
|
|
@@ -339,6 +364,82 @@ declare const AGENT_PROFILE_EXTERNAL_ACTIONS: readonly [
|
|
|
339
364
|
];
|
|
340
365
|
type AgentProfileExternalAction = (typeof AGENT_PROFILE_EXTERNAL_ACTIONS)[number];
|
|
341
366
|
type AgentProfileActionDecision = "allow" | "ask" | "deny";
|
|
367
|
+
type AgentProfileEvidenceKind = "sources" | "file-references" | "tests" | "typecheck" | "build" | "diff" | "deployment-proof" | "human-review";
|
|
368
|
+
interface AgentProfileSkillPolicy {
|
|
369
|
+
preload: string[];
|
|
370
|
+
allow?: string[];
|
|
371
|
+
deny: string[];
|
|
372
|
+
}
|
|
373
|
+
interface AgentProfileExternalActionPolicy {
|
|
374
|
+
default: AgentProfileActionDecision;
|
|
375
|
+
overrides?: Partial<Record<AgentProfileExternalAction, AgentProfileActionDecision>>;
|
|
376
|
+
requireCurrentTurnApproval: AgentProfileExternalAction[];
|
|
377
|
+
}
|
|
378
|
+
interface AgentProfileCapabilities {
|
|
379
|
+
tools: AgentToolPolicy;
|
|
380
|
+
skills: AgentProfileSkillPolicy;
|
|
381
|
+
hooks: string[];
|
|
382
|
+
mcpServers?: string[];
|
|
383
|
+
delegatedAgents?: string[];
|
|
384
|
+
permissionProfile: PermissionProfileName;
|
|
385
|
+
externalActions: AgentProfileExternalActionPolicy;
|
|
386
|
+
}
|
|
387
|
+
interface AgentProfileMemoryPolicy {
|
|
388
|
+
scope: AgentProfileMemoryScope;
|
|
389
|
+
role: string;
|
|
390
|
+
soul: AgentProfileSoulMode;
|
|
391
|
+
}
|
|
392
|
+
interface AgentProfileExecutionPolicy {
|
|
393
|
+
defaultMode: AgentProfileCollaborationMode;
|
|
394
|
+
allowedModes: AgentProfileCollaborationMode[];
|
|
395
|
+
isolation: AgentProfileIsolation;
|
|
396
|
+
allowBackground: boolean;
|
|
397
|
+
planForComplexTasks: boolean;
|
|
398
|
+
defaultDryRun: boolean;
|
|
399
|
+
maxTurns?: number;
|
|
400
|
+
}
|
|
401
|
+
interface AgentProfileCompletionPolicy {
|
|
402
|
+
evidence: AgentProfileEvidenceKind[];
|
|
403
|
+
requirePrimarySources: boolean;
|
|
404
|
+
requireCurrentInformation: boolean;
|
|
405
|
+
requireHumanReview: boolean;
|
|
406
|
+
stopConditions: string[];
|
|
407
|
+
}
|
|
408
|
+
interface AgentProfilePresentation {
|
|
409
|
+
label: string;
|
|
410
|
+
color: string;
|
|
411
|
+
glyph: string;
|
|
412
|
+
}
|
|
413
|
+
interface AgentProfileV2 {
|
|
414
|
+
schemaVersion: typeof XENO_AGENT_PROFILE_SCHEMA_VERSION;
|
|
415
|
+
id: string;
|
|
416
|
+
version: string;
|
|
417
|
+
displayName: string;
|
|
418
|
+
description: string;
|
|
419
|
+
kind: AgentProfileKind;
|
|
420
|
+
prompt: string;
|
|
421
|
+
model?: {
|
|
422
|
+
preferred?: string;
|
|
423
|
+
effort?: "low" | "medium" | "high";
|
|
424
|
+
};
|
|
425
|
+
capabilities: AgentProfileCapabilities;
|
|
426
|
+
memory: AgentProfileMemoryPolicy;
|
|
427
|
+
execution: AgentProfileExecutionPolicy;
|
|
428
|
+
completion: AgentProfileCompletionPolicy;
|
|
429
|
+
presentation: AgentProfilePresentation;
|
|
430
|
+
tags: string[];
|
|
431
|
+
}
|
|
432
|
+
interface CompiledAgentProfile {
|
|
433
|
+
schemaVersion: typeof XENO_AGENT_PROFILE_SCHEMA_VERSION;
|
|
434
|
+
profile: AgentProfileV2;
|
|
435
|
+
fingerprint: string;
|
|
436
|
+
boundarySources: string[];
|
|
437
|
+
capabilities: AgentProfileCapabilities;
|
|
438
|
+
memory: AgentProfileMemoryPolicy;
|
|
439
|
+
execution: AgentProfileExecutionPolicy;
|
|
440
|
+
completion: AgentProfileCompletionPolicy;
|
|
441
|
+
promptSection: PromptSectionProvider;
|
|
442
|
+
}
|
|
342
443
|
declare const XENO_CAPABILITY_LEASE_SCHEMA_VERSION: 1;
|
|
343
444
|
type XenoCapabilityKind = "filesystem-read" | "filesystem-write" | "process-execute" | "network-connect" | "secret-use" | "external-action" | "browser-read" | "browser-act" | "computer-observe" | "computer-act" | "tool-invoke" | `custom:${string}`;
|
|
344
445
|
type XenoCapabilityEffect = "read" | "write" | "execute" | "external";
|
|
@@ -432,6 +533,7 @@ interface WebContextToolResult {
|
|
|
432
533
|
mediaType: string;
|
|
433
534
|
bytes: number;
|
|
434
535
|
};
|
|
536
|
+
jobProgress?: WebJobProgress;
|
|
435
537
|
}
|
|
436
538
|
interface ToolDefinition {
|
|
437
539
|
name: string;
|
|
@@ -513,6 +615,7 @@ interface ToolProgressUpdate {
|
|
|
513
615
|
bytes?: number;
|
|
514
616
|
outputBytes?: number;
|
|
515
617
|
nextOffset?: number;
|
|
618
|
+
webContextProgress?: WebJobProgress;
|
|
516
619
|
}
|
|
517
620
|
interface ToolAuthorizationReceipt {
|
|
518
621
|
turnId: string;
|
|
@@ -567,8 +670,41 @@ interface TextBlock {
|
|
|
567
670
|
type: "text";
|
|
568
671
|
text: string;
|
|
569
672
|
}
|
|
673
|
+
interface AgentCapabilities {
|
|
674
|
+
terminal: boolean;
|
|
675
|
+
fileRead: boolean;
|
|
676
|
+
fileWrite: boolean;
|
|
677
|
+
appLaunch: boolean;
|
|
678
|
+
}
|
|
570
679
|
type ExecutionSecurityLevel = "policy-only" | "process-hardened" | "contained";
|
|
571
680
|
type ExecutionTrustMode = "trusted-workspace" | "untrusted";
|
|
681
|
+
interface ContainmentCertificationBinding {
|
|
682
|
+
manifestPath: string;
|
|
683
|
+
candidateSha256: string;
|
|
684
|
+
expectedCertificationId?: string;
|
|
685
|
+
trustedPublicKeys: Record<string, string>;
|
|
686
|
+
}
|
|
687
|
+
interface PolicyEnforcerConfig {
|
|
688
|
+
allowedDirectories: string[];
|
|
689
|
+
workingDirectory?: string;
|
|
690
|
+
capabilities: AgentCapabilities;
|
|
691
|
+
executionLevel?: ExecutionSecurityLevel;
|
|
692
|
+
trustMode?: ExecutionTrustMode;
|
|
693
|
+
requireOsContainment?: boolean;
|
|
694
|
+
allowNetwork?: boolean;
|
|
695
|
+
containmentCertification?: ContainmentCertificationBinding;
|
|
696
|
+
deniedDirectories?: string[];
|
|
697
|
+
containedEnvironmentAllowlist?: string[];
|
|
698
|
+
temporaryDirectories?: string[];
|
|
699
|
+
workspace?: {
|
|
700
|
+
id: string;
|
|
701
|
+
name: string;
|
|
702
|
+
};
|
|
703
|
+
team?: {
|
|
704
|
+
id: string;
|
|
705
|
+
name: string;
|
|
706
|
+
};
|
|
707
|
+
}
|
|
572
708
|
interface ExecutionSecurityCapabilities {
|
|
573
709
|
policyEnforcement: boolean;
|
|
574
710
|
restrictedIdentity: boolean;
|
|
@@ -579,6 +715,24 @@ interface ExecutionSecurityCapabilities {
|
|
|
579
715
|
inheritedHandleAllowlist: boolean;
|
|
580
716
|
environmentSanitization: boolean;
|
|
581
717
|
}
|
|
718
|
+
interface ProcessContainmentStatus {
|
|
719
|
+
available: boolean;
|
|
720
|
+
requestedLevel: ExecutionSecurityLevel;
|
|
721
|
+
effectiveLevel: ExecutionSecurityLevel | "unavailable";
|
|
722
|
+
adapter: "policy-enforcer" | "windows-restricted-token-job" | "linux-bubblewrap" | "microsoft-mxc" | "unavailable";
|
|
723
|
+
isolation: "policy-only" | "process-hardening" | "filesystem-network" | "none";
|
|
724
|
+
certified: boolean;
|
|
725
|
+
capabilities: ExecutionSecurityCapabilities;
|
|
726
|
+
limitations: string[];
|
|
727
|
+
reason: string;
|
|
728
|
+
adapterVersion?: string;
|
|
729
|
+
backend?: string;
|
|
730
|
+
isolationTier?: string;
|
|
731
|
+
nativeBinarySha256?: string;
|
|
732
|
+
certificationArtifactId?: string;
|
|
733
|
+
certificationManifestSha256?: string;
|
|
734
|
+
needsHostPreparation?: boolean;
|
|
735
|
+
}
|
|
582
736
|
declare const XENO_SECURE_EXECUTION_CONTRACT_SCHEMA_VERSION: 1;
|
|
583
737
|
type XenoExecutionEnforcement = "none" | "policy" | "os";
|
|
584
738
|
interface XenoExecutionIdentity {
|
|
@@ -974,6 +1128,91 @@ declare class XenoLoopbackAutomationAdapter implements XenoAutomationAdapter {
|
|
|
974
1128
|
stop(operationId: string, reason: string): Promise<void>;
|
|
975
1129
|
private request;
|
|
976
1130
|
}
|
|
1131
|
+
declare const XENO_BROWSER_CONTROL_PLANE_OPERATIONS: readonly [
|
|
1132
|
+
"browser.navigate",
|
|
1133
|
+
"browser.back",
|
|
1134
|
+
"browser.forward",
|
|
1135
|
+
"browser.reload",
|
|
1136
|
+
"browser.wait",
|
|
1137
|
+
"browser.snapshot",
|
|
1138
|
+
"browser.screenshot",
|
|
1139
|
+
"browser.locate",
|
|
1140
|
+
"browser.tabs.list",
|
|
1141
|
+
"browser.tabs.open",
|
|
1142
|
+
"browser.console.read",
|
|
1143
|
+
"browser.network.read",
|
|
1144
|
+
"browser.storage.read",
|
|
1145
|
+
"browser.page-errors.read",
|
|
1146
|
+
"browser.click",
|
|
1147
|
+
"browser.type",
|
|
1148
|
+
"browser.key",
|
|
1149
|
+
"browser.select",
|
|
1150
|
+
"browser.scroll",
|
|
1151
|
+
"browser.tabs.close",
|
|
1152
|
+
"browser.upload",
|
|
1153
|
+
"browser.download"
|
|
1154
|
+
];
|
|
1155
|
+
interface XenoBrowserControlPlaneAdapterOptions {
|
|
1156
|
+
baseUrl: string;
|
|
1157
|
+
token: string;
|
|
1158
|
+
driver: "browser" | "extension";
|
|
1159
|
+
fetch?: typeof globalThis.fetch;
|
|
1160
|
+
timeoutMs?: number;
|
|
1161
|
+
}
|
|
1162
|
+
declare class XenoBrowserControlPlaneAdapter implements XenoAutomationAdapter {
|
|
1163
|
+
private readonly options;
|
|
1164
|
+
private readonly base;
|
|
1165
|
+
private readonly fetchImpl;
|
|
1166
|
+
private readonly timeoutMs;
|
|
1167
|
+
constructor(options: XenoBrowserControlPlaneAdapterOptions);
|
|
1168
|
+
manifest(): Promise<XenoAutomationAdapterManifest>;
|
|
1169
|
+
preflight(request: XenoAutomationRequest, signal: AbortSignal): Promise<XenoAutomationPreflight>;
|
|
1170
|
+
execute(request: XenoAutomationRequest, preflight: XenoAutomationPreflight, _grant: XenoAutomationExecutionGrant, signal: AbortSignal): Promise<XenoAutomationAdapterExecutionResult>;
|
|
1171
|
+
stop(_operationId: string, _reason: string): Promise<void>;
|
|
1172
|
+
private resultEvidence;
|
|
1173
|
+
private snapshotEvidence;
|
|
1174
|
+
private call;
|
|
1175
|
+
}
|
|
1176
|
+
interface ToolRegistryOptions {
|
|
1177
|
+
validateInputs?: boolean;
|
|
1178
|
+
toolSchemaMode?: "all" | "demand";
|
|
1179
|
+
}
|
|
1180
|
+
declare class ToolRegistry {
|
|
1181
|
+
private tools;
|
|
1182
|
+
private compiledSchemas;
|
|
1183
|
+
private changeListeners;
|
|
1184
|
+
private aliasNames;
|
|
1185
|
+
private validateInputs;
|
|
1186
|
+
private readonly toolSchemaMode;
|
|
1187
|
+
private readonly activatedDefinitions;
|
|
1188
|
+
constructor(options?: ToolRegistryOptions);
|
|
1189
|
+
setValidateInputs(enabled: boolean): this;
|
|
1190
|
+
get inputValidationEnabled(): boolean;
|
|
1191
|
+
get schemaLoadingMode(): "all" | "demand";
|
|
1192
|
+
register(tool: RegisteredTool): void;
|
|
1193
|
+
registerAlias(tool: RegisteredTool): void;
|
|
1194
|
+
registerAll(tools: Iterable<RegisteredTool>): void;
|
|
1195
|
+
unregister(name: string): boolean;
|
|
1196
|
+
onChange(listener: () => void): () => void;
|
|
1197
|
+
private emitChange;
|
|
1198
|
+
get(name: string): RegisteredTool | undefined;
|
|
1199
|
+
getDefinitions(): ToolDefinition[];
|
|
1200
|
+
getDefinitionsForRequest(): ToolDefinition[];
|
|
1201
|
+
getCapabilityCatalog(): string;
|
|
1202
|
+
activateMatchingDefinitions(query: string, limit?: number): ToolDefinition[];
|
|
1203
|
+
private static namespaceOf;
|
|
1204
|
+
getDefinitionsByNamespace(namespace: string): ToolDefinition[];
|
|
1205
|
+
listNamespaces(): string[];
|
|
1206
|
+
execute(name: string, input: Record<string, unknown>, context?: ToolExecutionContext): Promise<ToolResult>;
|
|
1207
|
+
listNames(): string[];
|
|
1208
|
+
has(name: string): boolean;
|
|
1209
|
+
projectPolicyInput(name: string, input: Record<string, unknown>): ToolPolicyProjection | {
|
|
1210
|
+
error: ToolResult;
|
|
1211
|
+
};
|
|
1212
|
+
get size(): number;
|
|
1213
|
+
private compileDefinition;
|
|
1214
|
+
private assertDefinitionsExportable;
|
|
1215
|
+
}
|
|
977
1216
|
interface XenoGovernedAutomationToolExecution {
|
|
978
1217
|
operation: XenoAutomationOperation;
|
|
979
1218
|
governingToolName: string;
|
|
@@ -994,4 +1233,106 @@ interface CreateXenoGovernedAutomationToolsOptions {
|
|
|
994
1233
|
operations?: readonly XenoAutomationOperation[];
|
|
995
1234
|
}
|
|
996
1235
|
declare function createXenoGovernedAutomationTools(options: CreateXenoGovernedAutomationToolsOptions): RegisteredTool[];
|
|
997
|
-
|
|
1236
|
+
interface CliAutomationAuditEvent {
|
|
1237
|
+
eventType: "automation_lease_approved" | "automation_completed" | "automation_failed";
|
|
1238
|
+
traceId: string;
|
|
1239
|
+
operation: XenoAutomationOperation;
|
|
1240
|
+
operationId: string;
|
|
1241
|
+
leaseId?: string;
|
|
1242
|
+
contractFingerprint?: string;
|
|
1243
|
+
status?: string;
|
|
1244
|
+
artifactIds?: string[];
|
|
1245
|
+
permissionReason?: string;
|
|
1246
|
+
}
|
|
1247
|
+
interface CliAutomationAuditLoggerPort {
|
|
1248
|
+
append(event: {
|
|
1249
|
+
trace_id: string;
|
|
1250
|
+
event_type: string;
|
|
1251
|
+
actor: "system";
|
|
1252
|
+
risk_level: "low" | "high";
|
|
1253
|
+
decision?: "allow";
|
|
1254
|
+
status: "ok" | "error";
|
|
1255
|
+
reason?: string;
|
|
1256
|
+
metadata: Record<string, unknown>;
|
|
1257
|
+
}): Promise<unknown>;
|
|
1258
|
+
}
|
|
1259
|
+
interface CliAutomationEnvironment {
|
|
1260
|
+
browser?: {
|
|
1261
|
+
driver: "browser" | "extension";
|
|
1262
|
+
baseUrl?: string;
|
|
1263
|
+
token?: string;
|
|
1264
|
+
readDomains: string[];
|
|
1265
|
+
actDomains: string[];
|
|
1266
|
+
deniedDomains: string[];
|
|
1267
|
+
ports: number[];
|
|
1268
|
+
allowLoopbackDevelopment: boolean;
|
|
1269
|
+
uploads: "deny" | "prompt" | "allow";
|
|
1270
|
+
downloads: "deny" | "prompt" | "allow";
|
|
1271
|
+
recording: "disabled" | "bounded";
|
|
1272
|
+
};
|
|
1273
|
+
computer?: {
|
|
1274
|
+
baseUrl?: string;
|
|
1275
|
+
token?: string;
|
|
1276
|
+
deviceId?: string;
|
|
1277
|
+
allowedApplications: string[];
|
|
1278
|
+
};
|
|
1279
|
+
}
|
|
1280
|
+
interface CliAutomationSurfaceStatus {
|
|
1281
|
+
surface: "browser" | "computer";
|
|
1282
|
+
configured: boolean;
|
|
1283
|
+
available: boolean;
|
|
1284
|
+
certified: boolean;
|
|
1285
|
+
adapterId?: string;
|
|
1286
|
+
adapterVersion?: string;
|
|
1287
|
+
operations: string[];
|
|
1288
|
+
limitations: string[];
|
|
1289
|
+
error?: string;
|
|
1290
|
+
}
|
|
1291
|
+
interface CliAutomationStatusReport {
|
|
1292
|
+
schemaVersion: 1;
|
|
1293
|
+
protocolVersion: 1;
|
|
1294
|
+
enabled: boolean;
|
|
1295
|
+
surfaces: CliAutomationSurfaceStatus[];
|
|
1296
|
+
docs: string;
|
|
1297
|
+
}
|
|
1298
|
+
interface CreateCliGovernedAutomationRuntimeOptions {
|
|
1299
|
+
cwd: () => string;
|
|
1300
|
+
profile: () => CompiledAgentProfile;
|
|
1301
|
+
runId: string;
|
|
1302
|
+
agentId?: string;
|
|
1303
|
+
sessionId?: string;
|
|
1304
|
+
workspaceId?: string;
|
|
1305
|
+
surface: "cli" | "hub" | "ide" | "api" | "hosted";
|
|
1306
|
+
securityPolicy?: () => PolicyEnforcerConfig | undefined;
|
|
1307
|
+
securityStatus?: ProcessContainmentStatus;
|
|
1308
|
+
safeMode?: boolean;
|
|
1309
|
+
environment?: CliAutomationEnvironment;
|
|
1310
|
+
onAudit?: (event: CliAutomationAuditEvent) => Promise<void> | void;
|
|
1311
|
+
}
|
|
1312
|
+
declare class CliGovernedAutomationRuntime implements XenoGovernedAutomationToolRuntime {
|
|
1313
|
+
private readonly options;
|
|
1314
|
+
private readonly leases;
|
|
1315
|
+
private readonly activeExecutors;
|
|
1316
|
+
private readonly environment;
|
|
1317
|
+
private browserAdapter?;
|
|
1318
|
+
private computerAdapter?;
|
|
1319
|
+
constructor(options: CreateCliGovernedAutomationRuntimeOptions);
|
|
1320
|
+
register(registry: ToolRegistry): number;
|
|
1321
|
+
execute(input: XenoGovernedAutomationToolExecution): Promise<XenoAutomationExecutionResult>;
|
|
1322
|
+
stop(operationId: string, reason?: string): Promise<boolean>;
|
|
1323
|
+
private securityPolicy;
|
|
1324
|
+
private adapterFor;
|
|
1325
|
+
private audit;
|
|
1326
|
+
}
|
|
1327
|
+
declare function createCliGovernedAutomationRuntime(options: CreateCliGovernedAutomationRuntimeOptions): CliGovernedAutomationRuntime;
|
|
1328
|
+
declare function createCliAutomationAuditSink(logger: CliAutomationAuditLoggerPort | undefined): ((event: CliAutomationAuditEvent) => Promise<void>) | undefined;
|
|
1329
|
+
declare function inspectCliAutomationStatus(environment?: CliAutomationEnvironment): Promise<CliAutomationStatusReport>;
|
|
1330
|
+
declare function readCliAutomationEnvironment(env?: NodeJS.ProcessEnv): CliAutomationEnvironment;
|
|
1331
|
+
declare function renderCliAutomationStatus(report: CliAutomationStatusReport): string;
|
|
1332
|
+
type XenoHostAutomationAuditEvent = CliAutomationAuditEvent;
|
|
1333
|
+
type XenoHostAutomationAuditLoggerPort = CliAutomationAuditLoggerPort;
|
|
1334
|
+
type XenoHostAutomationEnvironment = CliAutomationEnvironment;
|
|
1335
|
+
type XenoHostAutomationSurfaceStatus = CliAutomationSurfaceStatus;
|
|
1336
|
+
type XenoHostAutomationStatusReport = CliAutomationStatusReport;
|
|
1337
|
+
type CreateXenoHostGovernedAutomationRuntimeOptions = CreateCliGovernedAutomationRuntimeOptions;
|
|
1338
|
+
export { type CliAutomationAuditEvent, type CliAutomationAuditLoggerPort, type CliAutomationEnvironment, type CliAutomationStatusReport, type CliAutomationSurfaceStatus, CliGovernedAutomationRuntime, type CreateCliGovernedAutomationRuntimeOptions, type CreateXenoGovernedAutomationToolsOptions, type CreateXenoHostGovernedAutomationRuntimeOptions, type MaterializeXenoAutomationEvidenceOptions, XENO_AUTOMATION_OPERATIONS, XENO_AUTOMATION_PROTOCOL_VERSION, XENO_BROWSER_CONTROL_PLANE_OPERATIONS, type XenoAutomationAdapter, type XenoAutomationAdapterExecutionResult, type XenoAutomationAdapterManifest, type XenoAutomationConformanceCheck, type XenoAutomationConformanceReport, type XenoAutomationEffect, XenoAutomationError, type XenoAutomationErrorCode, type XenoAutomationEvidenceContent, type XenoAutomationEvidenceInput, type XenoAutomationEvidencePhase, type XenoAutomationEvidencePolicy, type XenoAutomationExecutionGrant, type XenoAutomationExecutionResult, type XenoAutomationIdentity, type XenoAutomationLeaseAuthority, type XenoAutomationOperation, type XenoAutomationOperationDescriptor, type XenoAutomationPreflight, type XenoAutomationRequest, type XenoAutomationSurface, type XenoAutomationTarget, type XenoBrowserAutomationOperation, XenoBrowserControlPlaneAdapter, type XenoBrowserControlPlaneAdapterOptions, type XenoComputerAutomationOperation, XenoGovernedAutomationExecutor, type XenoGovernedAutomationExecutorOptions, type XenoGovernedAutomationToolExecution, type XenoGovernedAutomationToolRuntime, type XenoHostAutomationAuditEvent, type XenoHostAutomationAuditLoggerPort, type XenoHostAutomationEnvironment, type XenoHostAutomationStatusReport, type XenoHostAutomationSurfaceStatus, CliGovernedAutomationRuntime as XenoHostGovernedAutomationRuntime, XenoLoopbackAutomationAdapter, type XenoLoopbackAutomationAdapterOptions, assertRequiredXenoAutomationEvidence, assertValidXenoAutomationAdapterManifest, assertValidXenoAutomationRequest, assertXenoAutomationAdapterConformant, assertXenoAutomationAuthority, buildXenoAutomationCapabilityUse, createCliAutomationAuditSink, createCliGovernedAutomationRuntime, createXenoAutomationConformanceReport, createXenoGovernedAutomationTools, createCliAutomationAuditSink as createXenoHostAutomationAuditSink, createCliGovernedAutomationRuntime as createXenoHostGovernedAutomationRuntime, describeXenoAutomationOperation, inspectCliAutomationStatus, inspectCliAutomationStatus as inspectXenoHostAutomationStatus, isXenoAutomationOperation, materializeXenoAutomationEvidence, persistXenoAutomationEvidence, readCliAutomationEnvironment, readCliAutomationEnvironment as readXenoHostAutomationEnvironment, renderCliAutomationStatus, renderCliAutomationStatus as renderXenoHostAutomationStatus, resolveXenoAutomationEvidencePolicy };
|