@xenosystem/agent-sdk 0.9.21 → 0.9.24
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 +18 -8
- 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 +367 -1
- package/dist/automation/index.d.ts +367 -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 +123 -119
- package/dist/electron/index.d.cts +61 -0
- package/dist/electron/index.d.ts +61 -0
- package/dist/electron/index.js +118 -114
- package/dist/electron/metafile-cjs.json +1 -1
- package/dist/electron/metafile-esm.json +1 -1
- package/dist/governance/index.d.cts +29 -0
- package/dist/governance/index.d.ts +29 -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 +359 -351
- package/dist/index.d.cts +1964 -1254
- package/dist/index.d.ts +1964 -1254
- package/dist/index.js +359 -351
- package/dist/mcp/index.d.cts +28 -0
- package/dist/mcp/index.d.ts +28 -0
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/providers/metafile-cjs.json +1 -1
- package/dist/providers/metafile-esm.json +1 -1
- package/dist/session/index.cjs +56 -54
- package/dist/session/index.d.cts +69 -1
- package/dist/session/index.d.ts +69 -1
- package/dist/session/index.js +56 -54
- package/dist/session/metafile-cjs.json +1 -1
- package/dist/session/metafile-esm.json +1 -1
- package/dist/skills/index.d.cts +28 -0
- package/dist/skills/index.d.ts +28 -0
- package/dist/ui/index.d.cts +28 -0
- package/dist/ui/index.d.ts +28 -0
- package/dist/utils/index.cjs +17 -16
- package/dist/utils/index.d.cts +31 -1
- package/dist/utils/index.d.ts +31 -1
- package/dist/utils/index.js +14 -13
- package/dist/utils/metafile-cjs.json +1 -1
- package/dist/utils/metafile-esm.json +1 -1
- package/package.json +6 -1
|
@@ -327,6 +327,30 @@ interface XenoArtifactListQuery {
|
|
|
327
327
|
sensitivity?: XenoArtifactSensitivity[];
|
|
328
328
|
includeSuperseded?: boolean;
|
|
329
329
|
}
|
|
330
|
+
interface PromptSectionContext {
|
|
331
|
+
readonly systemPrompt: string;
|
|
332
|
+
readonly taskPrompt?: string;
|
|
333
|
+
readonly iteration: number;
|
|
334
|
+
readonly model: string;
|
|
335
|
+
}
|
|
336
|
+
interface PromptSectionProvider {
|
|
337
|
+
name: string;
|
|
338
|
+
order?: number;
|
|
339
|
+
provide(ctx: PromptSectionContext): string | null | undefined;
|
|
340
|
+
}
|
|
341
|
+
type PermissionProfileName = "default" | "read-only" | "trusted-dev";
|
|
342
|
+
interface AgentToolPolicy {
|
|
343
|
+
mode?: "inherit" | "none" | "readOnly" | "default" | "fullAccess";
|
|
344
|
+
allow?: string[];
|
|
345
|
+
deny?: string[];
|
|
346
|
+
}
|
|
347
|
+
type AgentDefinitionIsolation = "none" | "worktree";
|
|
348
|
+
declare const XENO_AGENT_PROFILE_SCHEMA_VERSION: 2;
|
|
349
|
+
type AgentProfileKind = "primary" | "subagent" | "service";
|
|
350
|
+
type AgentProfileCollaborationMode = "chat" | "plan" | "execute" | "review";
|
|
351
|
+
type AgentProfileMemoryScope = "none" | "session" | "project" | "user";
|
|
352
|
+
type AgentProfileSoulMode = "disabled" | "read" | "learn";
|
|
353
|
+
type AgentProfileIsolation = AgentDefinitionIsolation | "container";
|
|
330
354
|
declare const AGENT_PROFILE_EXTERNAL_ACTIONS: readonly [
|
|
331
355
|
"publish",
|
|
332
356
|
"deploy",
|
|
@@ -339,6 +363,82 @@ declare const AGENT_PROFILE_EXTERNAL_ACTIONS: readonly [
|
|
|
339
363
|
];
|
|
340
364
|
type AgentProfileExternalAction = (typeof AGENT_PROFILE_EXTERNAL_ACTIONS)[number];
|
|
341
365
|
type AgentProfileActionDecision = "allow" | "ask" | "deny";
|
|
366
|
+
type AgentProfileEvidenceKind = "sources" | "file-references" | "tests" | "typecheck" | "build" | "diff" | "deployment-proof" | "human-review";
|
|
367
|
+
interface AgentProfileSkillPolicy {
|
|
368
|
+
preload: string[];
|
|
369
|
+
allow?: string[];
|
|
370
|
+
deny: string[];
|
|
371
|
+
}
|
|
372
|
+
interface AgentProfileExternalActionPolicy {
|
|
373
|
+
default: AgentProfileActionDecision;
|
|
374
|
+
overrides?: Partial<Record<AgentProfileExternalAction, AgentProfileActionDecision>>;
|
|
375
|
+
requireCurrentTurnApproval: AgentProfileExternalAction[];
|
|
376
|
+
}
|
|
377
|
+
interface AgentProfileCapabilities {
|
|
378
|
+
tools: AgentToolPolicy;
|
|
379
|
+
skills: AgentProfileSkillPolicy;
|
|
380
|
+
hooks: string[];
|
|
381
|
+
mcpServers?: string[];
|
|
382
|
+
delegatedAgents?: string[];
|
|
383
|
+
permissionProfile: PermissionProfileName;
|
|
384
|
+
externalActions: AgentProfileExternalActionPolicy;
|
|
385
|
+
}
|
|
386
|
+
interface AgentProfileMemoryPolicy {
|
|
387
|
+
scope: AgentProfileMemoryScope;
|
|
388
|
+
role: string;
|
|
389
|
+
soul: AgentProfileSoulMode;
|
|
390
|
+
}
|
|
391
|
+
interface AgentProfileExecutionPolicy {
|
|
392
|
+
defaultMode: AgentProfileCollaborationMode;
|
|
393
|
+
allowedModes: AgentProfileCollaborationMode[];
|
|
394
|
+
isolation: AgentProfileIsolation;
|
|
395
|
+
allowBackground: boolean;
|
|
396
|
+
planForComplexTasks: boolean;
|
|
397
|
+
defaultDryRun: boolean;
|
|
398
|
+
maxTurns?: number;
|
|
399
|
+
}
|
|
400
|
+
interface AgentProfileCompletionPolicy {
|
|
401
|
+
evidence: AgentProfileEvidenceKind[];
|
|
402
|
+
requirePrimarySources: boolean;
|
|
403
|
+
requireCurrentInformation: boolean;
|
|
404
|
+
requireHumanReview: boolean;
|
|
405
|
+
stopConditions: string[];
|
|
406
|
+
}
|
|
407
|
+
interface AgentProfilePresentation {
|
|
408
|
+
label: string;
|
|
409
|
+
color: string;
|
|
410
|
+
glyph: string;
|
|
411
|
+
}
|
|
412
|
+
interface AgentProfileV2 {
|
|
413
|
+
schemaVersion: typeof XENO_AGENT_PROFILE_SCHEMA_VERSION;
|
|
414
|
+
id: string;
|
|
415
|
+
version: string;
|
|
416
|
+
displayName: string;
|
|
417
|
+
description: string;
|
|
418
|
+
kind: AgentProfileKind;
|
|
419
|
+
prompt: string;
|
|
420
|
+
model?: {
|
|
421
|
+
preferred?: string;
|
|
422
|
+
effort?: "low" | "medium" | "high";
|
|
423
|
+
};
|
|
424
|
+
capabilities: AgentProfileCapabilities;
|
|
425
|
+
memory: AgentProfileMemoryPolicy;
|
|
426
|
+
execution: AgentProfileExecutionPolicy;
|
|
427
|
+
completion: AgentProfileCompletionPolicy;
|
|
428
|
+
presentation: AgentProfilePresentation;
|
|
429
|
+
tags: string[];
|
|
430
|
+
}
|
|
431
|
+
interface CompiledAgentProfile {
|
|
432
|
+
schemaVersion: typeof XENO_AGENT_PROFILE_SCHEMA_VERSION;
|
|
433
|
+
profile: AgentProfileV2;
|
|
434
|
+
fingerprint: string;
|
|
435
|
+
boundarySources: string[];
|
|
436
|
+
capabilities: AgentProfileCapabilities;
|
|
437
|
+
memory: AgentProfileMemoryPolicy;
|
|
438
|
+
execution: AgentProfileExecutionPolicy;
|
|
439
|
+
completion: AgentProfileCompletionPolicy;
|
|
440
|
+
promptSection: PromptSectionProvider;
|
|
441
|
+
}
|
|
342
442
|
declare const XENO_CAPABILITY_LEASE_SCHEMA_VERSION: 1;
|
|
343
443
|
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
444
|
type XenoCapabilityEffect = "read" | "write" | "execute" | "external";
|
|
@@ -406,6 +506,33 @@ interface XenoCapabilityUse {
|
|
|
406
506
|
secretId?: string;
|
|
407
507
|
externalAction?: AgentProfileExternalAction;
|
|
408
508
|
}
|
|
509
|
+
declare const WEB_CONTEXT_TOOL_RESULT_SCHEMA: "xeno.web-context.tool-result.v1";
|
|
510
|
+
interface WebContextEvidenceProjection {
|
|
511
|
+
evidenceId: string;
|
|
512
|
+
requestId: string;
|
|
513
|
+
sourceUrl: string;
|
|
514
|
+
finalUrl?: string;
|
|
515
|
+
citations: Array<{
|
|
516
|
+
url: string;
|
|
517
|
+
title?: string;
|
|
518
|
+
artifactId?: string;
|
|
519
|
+
}>;
|
|
520
|
+
}
|
|
521
|
+
interface WebContextToolResult {
|
|
522
|
+
schemaVersion: typeof WEB_CONTEXT_TOOL_RESULT_SCHEMA;
|
|
523
|
+
operation: "search" | "fetch";
|
|
524
|
+
requestId: string;
|
|
525
|
+
evidence: WebContextEvidenceProjection;
|
|
526
|
+
job?: {
|
|
527
|
+
jobId: string;
|
|
528
|
+
state: string;
|
|
529
|
+
};
|
|
530
|
+
artifact?: {
|
|
531
|
+
artifactId: string;
|
|
532
|
+
mediaType: string;
|
|
533
|
+
bytes: number;
|
|
534
|
+
};
|
|
535
|
+
}
|
|
409
536
|
interface ToolDefinition {
|
|
410
537
|
name: string;
|
|
411
538
|
description: string;
|
|
@@ -512,6 +639,7 @@ interface ToolResult {
|
|
|
512
639
|
assistantOnlyContent?: ToolAssistantContentBlock[];
|
|
513
640
|
operation?: ToolOperationSnapshot;
|
|
514
641
|
evidence?: ToolEvidence[];
|
|
642
|
+
webContext?: WebContextToolResult;
|
|
515
643
|
retryable?: boolean;
|
|
516
644
|
}
|
|
517
645
|
interface ToolExecutionContext {
|
|
@@ -539,8 +667,41 @@ interface TextBlock {
|
|
|
539
667
|
type: "text";
|
|
540
668
|
text: string;
|
|
541
669
|
}
|
|
670
|
+
interface AgentCapabilities {
|
|
671
|
+
terminal: boolean;
|
|
672
|
+
fileRead: boolean;
|
|
673
|
+
fileWrite: boolean;
|
|
674
|
+
appLaunch: boolean;
|
|
675
|
+
}
|
|
542
676
|
type ExecutionSecurityLevel = "policy-only" | "process-hardened" | "contained";
|
|
543
677
|
type ExecutionTrustMode = "trusted-workspace" | "untrusted";
|
|
678
|
+
interface ContainmentCertificationBinding {
|
|
679
|
+
manifestPath: string;
|
|
680
|
+
candidateSha256: string;
|
|
681
|
+
expectedCertificationId?: string;
|
|
682
|
+
trustedPublicKeys: Record<string, string>;
|
|
683
|
+
}
|
|
684
|
+
interface PolicyEnforcerConfig {
|
|
685
|
+
allowedDirectories: string[];
|
|
686
|
+
workingDirectory?: string;
|
|
687
|
+
capabilities: AgentCapabilities;
|
|
688
|
+
executionLevel?: ExecutionSecurityLevel;
|
|
689
|
+
trustMode?: ExecutionTrustMode;
|
|
690
|
+
requireOsContainment?: boolean;
|
|
691
|
+
allowNetwork?: boolean;
|
|
692
|
+
containmentCertification?: ContainmentCertificationBinding;
|
|
693
|
+
deniedDirectories?: string[];
|
|
694
|
+
containedEnvironmentAllowlist?: string[];
|
|
695
|
+
temporaryDirectories?: string[];
|
|
696
|
+
workspace?: {
|
|
697
|
+
id: string;
|
|
698
|
+
name: string;
|
|
699
|
+
};
|
|
700
|
+
team?: {
|
|
701
|
+
id: string;
|
|
702
|
+
name: string;
|
|
703
|
+
};
|
|
704
|
+
}
|
|
544
705
|
interface ExecutionSecurityCapabilities {
|
|
545
706
|
policyEnforcement: boolean;
|
|
546
707
|
restrictedIdentity: boolean;
|
|
@@ -551,6 +712,24 @@ interface ExecutionSecurityCapabilities {
|
|
|
551
712
|
inheritedHandleAllowlist: boolean;
|
|
552
713
|
environmentSanitization: boolean;
|
|
553
714
|
}
|
|
715
|
+
interface ProcessContainmentStatus {
|
|
716
|
+
available: boolean;
|
|
717
|
+
requestedLevel: ExecutionSecurityLevel;
|
|
718
|
+
effectiveLevel: ExecutionSecurityLevel | "unavailable";
|
|
719
|
+
adapter: "policy-enforcer" | "windows-restricted-token-job" | "linux-bubblewrap" | "microsoft-mxc" | "unavailable";
|
|
720
|
+
isolation: "policy-only" | "process-hardening" | "filesystem-network" | "none";
|
|
721
|
+
certified: boolean;
|
|
722
|
+
capabilities: ExecutionSecurityCapabilities;
|
|
723
|
+
limitations: string[];
|
|
724
|
+
reason: string;
|
|
725
|
+
adapterVersion?: string;
|
|
726
|
+
backend?: string;
|
|
727
|
+
isolationTier?: string;
|
|
728
|
+
nativeBinarySha256?: string;
|
|
729
|
+
certificationArtifactId?: string;
|
|
730
|
+
certificationManifestSha256?: string;
|
|
731
|
+
needsHostPreparation?: boolean;
|
|
732
|
+
}
|
|
554
733
|
declare const XENO_SECURE_EXECUTION_CONTRACT_SCHEMA_VERSION: 1;
|
|
555
734
|
type XenoExecutionEnforcement = "none" | "policy" | "os";
|
|
556
735
|
interface XenoExecutionIdentity {
|
|
@@ -946,6 +1125,91 @@ declare class XenoLoopbackAutomationAdapter implements XenoAutomationAdapter {
|
|
|
946
1125
|
stop(operationId: string, reason: string): Promise<void>;
|
|
947
1126
|
private request;
|
|
948
1127
|
}
|
|
1128
|
+
declare const XENO_BROWSER_CONTROL_PLANE_OPERATIONS: readonly [
|
|
1129
|
+
"browser.navigate",
|
|
1130
|
+
"browser.back",
|
|
1131
|
+
"browser.forward",
|
|
1132
|
+
"browser.reload",
|
|
1133
|
+
"browser.wait",
|
|
1134
|
+
"browser.snapshot",
|
|
1135
|
+
"browser.screenshot",
|
|
1136
|
+
"browser.locate",
|
|
1137
|
+
"browser.tabs.list",
|
|
1138
|
+
"browser.tabs.open",
|
|
1139
|
+
"browser.console.read",
|
|
1140
|
+
"browser.network.read",
|
|
1141
|
+
"browser.storage.read",
|
|
1142
|
+
"browser.page-errors.read",
|
|
1143
|
+
"browser.click",
|
|
1144
|
+
"browser.type",
|
|
1145
|
+
"browser.key",
|
|
1146
|
+
"browser.select",
|
|
1147
|
+
"browser.scroll",
|
|
1148
|
+
"browser.tabs.close",
|
|
1149
|
+
"browser.upload",
|
|
1150
|
+
"browser.download"
|
|
1151
|
+
];
|
|
1152
|
+
interface XenoBrowserControlPlaneAdapterOptions {
|
|
1153
|
+
baseUrl: string;
|
|
1154
|
+
token: string;
|
|
1155
|
+
driver: "browser" | "extension";
|
|
1156
|
+
fetch?: typeof globalThis.fetch;
|
|
1157
|
+
timeoutMs?: number;
|
|
1158
|
+
}
|
|
1159
|
+
declare class XenoBrowserControlPlaneAdapter implements XenoAutomationAdapter {
|
|
1160
|
+
private readonly options;
|
|
1161
|
+
private readonly base;
|
|
1162
|
+
private readonly fetchImpl;
|
|
1163
|
+
private readonly timeoutMs;
|
|
1164
|
+
constructor(options: XenoBrowserControlPlaneAdapterOptions);
|
|
1165
|
+
manifest(): Promise<XenoAutomationAdapterManifest>;
|
|
1166
|
+
preflight(request: XenoAutomationRequest, signal: AbortSignal): Promise<XenoAutomationPreflight>;
|
|
1167
|
+
execute(request: XenoAutomationRequest, preflight: XenoAutomationPreflight, _grant: XenoAutomationExecutionGrant, signal: AbortSignal): Promise<XenoAutomationAdapterExecutionResult>;
|
|
1168
|
+
stop(_operationId: string, _reason: string): Promise<void>;
|
|
1169
|
+
private resultEvidence;
|
|
1170
|
+
private snapshotEvidence;
|
|
1171
|
+
private call;
|
|
1172
|
+
}
|
|
1173
|
+
interface ToolRegistryOptions {
|
|
1174
|
+
validateInputs?: boolean;
|
|
1175
|
+
toolSchemaMode?: "all" | "demand";
|
|
1176
|
+
}
|
|
1177
|
+
declare class ToolRegistry {
|
|
1178
|
+
private tools;
|
|
1179
|
+
private compiledSchemas;
|
|
1180
|
+
private changeListeners;
|
|
1181
|
+
private aliasNames;
|
|
1182
|
+
private validateInputs;
|
|
1183
|
+
private readonly toolSchemaMode;
|
|
1184
|
+
private readonly activatedDefinitions;
|
|
1185
|
+
constructor(options?: ToolRegistryOptions);
|
|
1186
|
+
setValidateInputs(enabled: boolean): this;
|
|
1187
|
+
get inputValidationEnabled(): boolean;
|
|
1188
|
+
get schemaLoadingMode(): "all" | "demand";
|
|
1189
|
+
register(tool: RegisteredTool): void;
|
|
1190
|
+
registerAlias(tool: RegisteredTool): void;
|
|
1191
|
+
registerAll(tools: Iterable<RegisteredTool>): void;
|
|
1192
|
+
unregister(name: string): boolean;
|
|
1193
|
+
onChange(listener: () => void): () => void;
|
|
1194
|
+
private emitChange;
|
|
1195
|
+
get(name: string): RegisteredTool | undefined;
|
|
1196
|
+
getDefinitions(): ToolDefinition[];
|
|
1197
|
+
getDefinitionsForRequest(): ToolDefinition[];
|
|
1198
|
+
getCapabilityCatalog(): string;
|
|
1199
|
+
activateMatchingDefinitions(query: string, limit?: number): ToolDefinition[];
|
|
1200
|
+
private static namespaceOf;
|
|
1201
|
+
getDefinitionsByNamespace(namespace: string): ToolDefinition[];
|
|
1202
|
+
listNamespaces(): string[];
|
|
1203
|
+
execute(name: string, input: Record<string, unknown>, context?: ToolExecutionContext): Promise<ToolResult>;
|
|
1204
|
+
listNames(): string[];
|
|
1205
|
+
has(name: string): boolean;
|
|
1206
|
+
projectPolicyInput(name: string, input: Record<string, unknown>): ToolPolicyProjection | {
|
|
1207
|
+
error: ToolResult;
|
|
1208
|
+
};
|
|
1209
|
+
get size(): number;
|
|
1210
|
+
private compileDefinition;
|
|
1211
|
+
private assertDefinitionsExportable;
|
|
1212
|
+
}
|
|
949
1213
|
interface XenoGovernedAutomationToolExecution {
|
|
950
1214
|
operation: XenoAutomationOperation;
|
|
951
1215
|
governingToolName: string;
|
|
@@ -966,4 +1230,106 @@ interface CreateXenoGovernedAutomationToolsOptions {
|
|
|
966
1230
|
operations?: readonly XenoAutomationOperation[];
|
|
967
1231
|
}
|
|
968
1232
|
declare function createXenoGovernedAutomationTools(options: CreateXenoGovernedAutomationToolsOptions): RegisteredTool[];
|
|
969
|
-
|
|
1233
|
+
interface CliAutomationAuditEvent {
|
|
1234
|
+
eventType: "automation_lease_approved" | "automation_completed" | "automation_failed";
|
|
1235
|
+
traceId: string;
|
|
1236
|
+
operation: XenoAutomationOperation;
|
|
1237
|
+
operationId: string;
|
|
1238
|
+
leaseId?: string;
|
|
1239
|
+
contractFingerprint?: string;
|
|
1240
|
+
status?: string;
|
|
1241
|
+
artifactIds?: string[];
|
|
1242
|
+
permissionReason?: string;
|
|
1243
|
+
}
|
|
1244
|
+
interface CliAutomationAuditLoggerPort {
|
|
1245
|
+
append(event: {
|
|
1246
|
+
trace_id: string;
|
|
1247
|
+
event_type: string;
|
|
1248
|
+
actor: "system";
|
|
1249
|
+
risk_level: "low" | "high";
|
|
1250
|
+
decision?: "allow";
|
|
1251
|
+
status: "ok" | "error";
|
|
1252
|
+
reason?: string;
|
|
1253
|
+
metadata: Record<string, unknown>;
|
|
1254
|
+
}): Promise<unknown>;
|
|
1255
|
+
}
|
|
1256
|
+
interface CliAutomationEnvironment {
|
|
1257
|
+
browser?: {
|
|
1258
|
+
driver: "browser" | "extension";
|
|
1259
|
+
baseUrl?: string;
|
|
1260
|
+
token?: string;
|
|
1261
|
+
readDomains: string[];
|
|
1262
|
+
actDomains: string[];
|
|
1263
|
+
deniedDomains: string[];
|
|
1264
|
+
ports: number[];
|
|
1265
|
+
allowLoopbackDevelopment: boolean;
|
|
1266
|
+
uploads: "deny" | "prompt" | "allow";
|
|
1267
|
+
downloads: "deny" | "prompt" | "allow";
|
|
1268
|
+
recording: "disabled" | "bounded";
|
|
1269
|
+
};
|
|
1270
|
+
computer?: {
|
|
1271
|
+
baseUrl?: string;
|
|
1272
|
+
token?: string;
|
|
1273
|
+
deviceId?: string;
|
|
1274
|
+
allowedApplications: string[];
|
|
1275
|
+
};
|
|
1276
|
+
}
|
|
1277
|
+
interface CliAutomationSurfaceStatus {
|
|
1278
|
+
surface: "browser" | "computer";
|
|
1279
|
+
configured: boolean;
|
|
1280
|
+
available: boolean;
|
|
1281
|
+
certified: boolean;
|
|
1282
|
+
adapterId?: string;
|
|
1283
|
+
adapterVersion?: string;
|
|
1284
|
+
operations: string[];
|
|
1285
|
+
limitations: string[];
|
|
1286
|
+
error?: string;
|
|
1287
|
+
}
|
|
1288
|
+
interface CliAutomationStatusReport {
|
|
1289
|
+
schemaVersion: 1;
|
|
1290
|
+
protocolVersion: 1;
|
|
1291
|
+
enabled: boolean;
|
|
1292
|
+
surfaces: CliAutomationSurfaceStatus[];
|
|
1293
|
+
docs: string;
|
|
1294
|
+
}
|
|
1295
|
+
interface CreateCliGovernedAutomationRuntimeOptions {
|
|
1296
|
+
cwd: () => string;
|
|
1297
|
+
profile: () => CompiledAgentProfile;
|
|
1298
|
+
runId: string;
|
|
1299
|
+
agentId?: string;
|
|
1300
|
+
sessionId?: string;
|
|
1301
|
+
workspaceId?: string;
|
|
1302
|
+
surface: "cli" | "hub" | "ide" | "api" | "hosted";
|
|
1303
|
+
securityPolicy?: () => PolicyEnforcerConfig | undefined;
|
|
1304
|
+
securityStatus?: ProcessContainmentStatus;
|
|
1305
|
+
safeMode?: boolean;
|
|
1306
|
+
environment?: CliAutomationEnvironment;
|
|
1307
|
+
onAudit?: (event: CliAutomationAuditEvent) => Promise<void> | void;
|
|
1308
|
+
}
|
|
1309
|
+
declare class CliGovernedAutomationRuntime implements XenoGovernedAutomationToolRuntime {
|
|
1310
|
+
private readonly options;
|
|
1311
|
+
private readonly leases;
|
|
1312
|
+
private readonly activeExecutors;
|
|
1313
|
+
private readonly environment;
|
|
1314
|
+
private browserAdapter?;
|
|
1315
|
+
private computerAdapter?;
|
|
1316
|
+
constructor(options: CreateCliGovernedAutomationRuntimeOptions);
|
|
1317
|
+
register(registry: ToolRegistry): number;
|
|
1318
|
+
execute(input: XenoGovernedAutomationToolExecution): Promise<XenoAutomationExecutionResult>;
|
|
1319
|
+
stop(operationId: string, reason?: string): Promise<boolean>;
|
|
1320
|
+
private securityPolicy;
|
|
1321
|
+
private adapterFor;
|
|
1322
|
+
private audit;
|
|
1323
|
+
}
|
|
1324
|
+
declare function createCliGovernedAutomationRuntime(options: CreateCliGovernedAutomationRuntimeOptions): CliGovernedAutomationRuntime;
|
|
1325
|
+
declare function createCliAutomationAuditSink(logger: CliAutomationAuditLoggerPort | undefined): ((event: CliAutomationAuditEvent) => Promise<void>) | undefined;
|
|
1326
|
+
declare function inspectCliAutomationStatus(environment?: CliAutomationEnvironment): Promise<CliAutomationStatusReport>;
|
|
1327
|
+
declare function readCliAutomationEnvironment(env?: NodeJS.ProcessEnv): CliAutomationEnvironment;
|
|
1328
|
+
declare function renderCliAutomationStatus(report: CliAutomationStatusReport): string;
|
|
1329
|
+
type XenoHostAutomationAuditEvent = CliAutomationAuditEvent;
|
|
1330
|
+
type XenoHostAutomationAuditLoggerPort = CliAutomationAuditLoggerPort;
|
|
1331
|
+
type XenoHostAutomationEnvironment = CliAutomationEnvironment;
|
|
1332
|
+
type XenoHostAutomationSurfaceStatus = CliAutomationSurfaceStatus;
|
|
1333
|
+
type XenoHostAutomationStatusReport = CliAutomationStatusReport;
|
|
1334
|
+
type CreateXenoHostGovernedAutomationRuntimeOptions = CreateCliGovernedAutomationRuntimeOptions;
|
|
1335
|
+
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 };
|