@dailephd/my-centcom 0.1.0 → 0.3.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.
Files changed (175) hide show
  1. package/README.md +10 -5
  2. package/apps/daemon/dist/artifacts/returnSnapshots.d.ts +12 -0
  3. package/apps/daemon/dist/artifacts/returnSnapshots.js +41 -0
  4. package/apps/daemon/dist/bootstrap/app.d.ts +21 -0
  5. package/apps/daemon/dist/bootstrap/app.js +27 -0
  6. package/apps/daemon/dist/bootstrap/installLayout.d.ts +81 -0
  7. package/apps/daemon/dist/bootstrap/installLayout.js +164 -0
  8. package/apps/daemon/dist/bootstrap/main.d.ts +14 -0
  9. package/apps/daemon/dist/bootstrap/main.js +141 -0
  10. package/apps/daemon/dist/bootstrap/operatorConsole.d.ts +75 -0
  11. package/apps/daemon/dist/bootstrap/operatorConsole.js +293 -0
  12. package/apps/daemon/dist/bootstrap/privateDataRoot.d.ts +38 -0
  13. package/apps/daemon/dist/bootstrap/privateDataRoot.js +204 -0
  14. package/apps/daemon/dist/bootstrap/secureMain.d.ts +118 -0
  15. package/apps/daemon/dist/bootstrap/secureMain.js +403 -0
  16. package/apps/daemon/dist/bootstrap/setup.d.ts +93 -0
  17. package/apps/daemon/dist/bootstrap/setup.js +738 -0
  18. package/apps/daemon/dist/context/changeProposal.d.ts +97 -0
  19. package/apps/daemon/dist/context/changeProposal.js +259 -0
  20. package/apps/daemon/dist/context/gitEvidence.d.ts +88 -0
  21. package/apps/daemon/dist/context/gitEvidence.js +332 -0
  22. package/apps/daemon/dist/context/gitObservation.d.ts +30 -0
  23. package/apps/daemon/dist/context/gitObservation.js +113 -0
  24. package/apps/daemon/dist/context/projectReadIssuer.d.ts +68 -0
  25. package/apps/daemon/dist/context/projectReadIssuer.js +158 -0
  26. package/apps/daemon/dist/context/projectReadService.d.ts +153 -0
  27. package/apps/daemon/dist/context/projectReadService.js +652 -0
  28. package/apps/daemon/dist/context/projectViewService.d.ts +85 -0
  29. package/apps/daemon/dist/context/projectViewService.js +332 -0
  30. package/apps/daemon/dist/context/proposalRecorder.d.ts +11 -0
  31. package/apps/daemon/dist/context/proposalRecorder.js +19 -0
  32. package/apps/daemon/dist/plugins/drivers/codexMcpConfig.d.ts +40 -0
  33. package/apps/daemon/dist/plugins/drivers/codexMcpConfig.js +73 -0
  34. package/apps/daemon/dist/plugins/drivers/codexModelCompatibility.d.ts +49 -0
  35. package/apps/daemon/dist/plugins/drivers/codexModelCompatibility.js +70 -0
  36. package/apps/daemon/dist/plugins/drivers/fakePluginDriver.d.ts +16 -0
  37. package/apps/daemon/dist/plugins/drivers/fakePluginDriver.js +115 -0
  38. package/apps/daemon/dist/plugins/drivers/finiteCliDriver.d.ts +153 -0
  39. package/apps/daemon/dist/plugins/drivers/finiteCliDriver.js +505 -0
  40. package/apps/daemon/dist/plugins/registry/operationCatalog.d.ts +23 -0
  41. package/apps/daemon/dist/plugins/registry/operationCatalog.js +41 -0
  42. package/apps/daemon/dist/plugins/registry/registryOperationCatalog.d.ts +14 -0
  43. package/apps/daemon/dist/plugins/registry/registryOperationCatalog.js +29 -0
  44. package/apps/daemon/dist/plugins/registry/verifiedCapabilityRegistry.d.ts +151 -0
  45. package/apps/daemon/dist/plugins/registry/verifiedCapabilityRegistry.js +579 -0
  46. package/apps/daemon/dist/projects/codingAuthority.d.ts +102 -0
  47. package/apps/daemon/dist/projects/codingAuthority.js +244 -0
  48. package/apps/daemon/dist/projects/fixtureAuthorization.d.ts +54 -0
  49. package/apps/daemon/dist/projects/fixtureAuthorization.js +172 -0
  50. package/apps/daemon/dist/projects/pairedAuthority.d.ts +158 -0
  51. package/apps/daemon/dist/projects/pairedAuthority.js +273 -0
  52. package/apps/daemon/dist/projects/trustedCliConsent.d.ts +47 -0
  53. package/apps/daemon/dist/projects/trustedCliConsent.js +84 -0
  54. package/apps/daemon/dist/runs/changeApplier.d.ts +59 -0
  55. package/apps/daemon/dist/runs/changeApplier.js +319 -0
  56. package/apps/daemon/dist/runs/codingWorkflowService.d.ts +283 -0
  57. package/apps/daemon/dist/runs/codingWorkflowService.js +785 -0
  58. package/apps/daemon/dist/runs/durableIntentCoordinator.d.ts +72 -0
  59. package/apps/daemon/dist/runs/durableIntentCoordinator.js +160 -0
  60. package/apps/daemon/dist/runs/inMemoryCoordinator.d.ts +55 -0
  61. package/apps/daemon/dist/runs/inMemoryCoordinator.js +375 -0
  62. package/apps/daemon/dist/runs/runExecutor.d.ts +154 -0
  63. package/apps/daemon/dist/runs/runExecutor.js +295 -0
  64. package/apps/daemon/dist/runs/workflowService.d.ts +185 -0
  65. package/apps/daemon/dist/runs/workflowService.js +300 -0
  66. package/apps/daemon/dist/runtime/boundedProcessHost.d.ts +111 -0
  67. package/apps/daemon/dist/runtime/boundedProcessHost.js +752 -0
  68. package/apps/daemon/dist/runtime/evidenceRedaction.d.ts +30 -0
  69. package/apps/daemon/dist/runtime/evidenceRedaction.js +79 -0
  70. package/apps/daemon/dist/runtime/executionDiagnostics.d.ts +134 -0
  71. package/apps/daemon/dist/runtime/executionDiagnostics.js +213 -0
  72. package/apps/daemon/dist/runtime/modelExecutionPolicy.d.ts +22 -0
  73. package/apps/daemon/dist/runtime/modelExecutionPolicy.js +19 -0
  74. package/apps/daemon/dist/runtime/mxcExecution.d.ts +12 -0
  75. package/apps/daemon/dist/runtime/mxcExecution.js +163 -0
  76. package/apps/daemon/dist/runtime/mxcIntegrity.d.ts +24 -0
  77. package/apps/daemon/dist/runtime/mxcIntegrity.js +81 -0
  78. package/apps/daemon/dist/runtime/mxcWorker.d.ts +2 -0
  79. package/apps/daemon/dist/runtime/mxcWorker.js +45 -0
  80. package/apps/daemon/dist/runtime/provisionedExecution.d.ts +150 -0
  81. package/apps/daemon/dist/runtime/provisionedExecution.js +653 -0
  82. package/apps/daemon/dist/runtime/testExecution.d.ts +76 -0
  83. package/apps/daemon/dist/runtime/testExecution.js +106 -0
  84. package/apps/daemon/dist/runtime/testProfiles.d.ts +10 -0
  85. package/apps/daemon/dist/runtime/testProfiles.js +4 -0
  86. package/apps/daemon/dist/runtime/trustedAgentStaging.d.ts +89 -0
  87. package/apps/daemon/dist/runtime/trustedAgentStaging.js +262 -0
  88. package/apps/daemon/dist/runtime/trustedCaBundle.d.ts +77 -0
  89. package/apps/daemon/dist/runtime/trustedCaBundle.js +125 -0
  90. package/apps/daemon/dist/runtime/windows/windowsJobSupervisor.d.ts +166 -0
  91. package/apps/daemon/dist/runtime/windows/windowsJobSupervisor.js +521 -0
  92. package/apps/daemon/dist/storage/diagnosticLog.d.ts +63 -0
  93. package/apps/daemon/dist/storage/diagnosticLog.js +136 -0
  94. package/apps/daemon/dist/storage/executionTelemetry.d.ts +63 -0
  95. package/apps/daemon/dist/storage/executionTelemetry.js +247 -0
  96. package/apps/daemon/dist/storage/protectedSecrets.d.ts +39 -0
  97. package/apps/daemon/dist/storage/protectedSecrets.js +106 -0
  98. package/apps/daemon/dist/storage/sqliteLedger.d.ts +786 -0
  99. package/apps/daemon/dist/storage/sqliteLedger.js +1303 -0
  100. package/apps/daemon/dist/transports/http/dispatch.d.ts +43 -0
  101. package/apps/daemon/dist/transports/http/dispatch.js +405 -0
  102. package/apps/daemon/dist/transports/http/secureRoutes.d.ts +40 -0
  103. package/apps/daemon/dist/transports/http/secureRoutes.js +332 -0
  104. package/apps/daemon/dist/transports/http/workflowRoutes.d.ts +41 -0
  105. package/apps/daemon/dist/transports/http/workflowRoutes.js +473 -0
  106. package/apps/daemon/dist/transports/mcp/localProjectReadServer.d.ts +182 -0
  107. package/apps/daemon/dist/transports/mcp/localProjectReadServer.js +221 -0
  108. package/apps/daemon/dist/transports/native/nativeHost.d.ts +24 -0
  109. package/apps/daemon/dist/transports/native/nativeHost.js +344 -0
  110. package/apps/daemon/package.json +24 -0
  111. package/apps/daemon/src/runtime/benign/referenceEcho.mjs +27 -0
  112. package/apps/daemon/src/runtime/windows/buildSupervisor.mjs +87 -0
  113. package/apps/daemon/src/runtime/windows/supervisorMain.cs +676 -0
  114. package/apps/extension/manifest.secure.json +25 -0
  115. package/apps/extension/scripts/build.mjs +173 -0
  116. package/apps/extension/src/background/secureWorker.ts +1595 -0
  117. package/apps/extension/src/background/serviceWorker.ts +892 -0
  118. package/apps/extension/src/content/captureSelection.ts +64 -0
  119. package/apps/extension/src/content/secureInsert.ts +207 -0
  120. package/apps/extension/src/probe/index.html +41 -0
  121. package/apps/extension/src/probe/main.ts +201 -0
  122. package/apps/extension/src/sidepanel/index.html +203 -0
  123. package/apps/extension/src/sidepanel/main.ts +903 -0
  124. package/package.json +19 -3
  125. package/packages/contracts/dist/artifacts.d.ts +66 -0
  126. package/packages/contracts/dist/artifacts.js +64 -0
  127. package/packages/contracts/dist/automation.d.ts +540 -0
  128. package/packages/contracts/dist/automation.js +191 -0
  129. package/packages/contracts/dist/browser.d.ts +251 -0
  130. package/packages/contracts/dist/browser.js +131 -0
  131. package/packages/contracts/dist/context.d.ts +71 -0
  132. package/packages/contracts/dist/context.js +73 -0
  133. package/packages/contracts/dist/diagnostics.d.ts +99 -0
  134. package/packages/contracts/dist/diagnostics.js +284 -0
  135. package/packages/contracts/dist/effects.d.ts +42 -0
  136. package/packages/contracts/dist/effects.js +42 -0
  137. package/packages/contracts/dist/errors.d.ts +75 -0
  138. package/packages/contracts/dist/errors.js +70 -0
  139. package/packages/contracts/dist/events.d.ts +50 -0
  140. package/packages/contracts/dist/events.js +34 -0
  141. package/packages/contracts/dist/executionDiagnostics.d.ts +212 -0
  142. package/packages/contracts/dist/executionDiagnostics.js +101 -0
  143. package/packages/contracts/dist/identity.d.ts +54 -0
  144. package/packages/contracts/dist/identity.js +40 -0
  145. package/packages/contracts/dist/index.d.ts +20 -0
  146. package/packages/contracts/dist/index.js +20 -0
  147. package/packages/contracts/dist/invocation.d.ts +90 -0
  148. package/packages/contracts/dist/invocation.js +77 -0
  149. package/packages/contracts/dist/lifecycle.d.ts +130 -0
  150. package/packages/contracts/dist/lifecycle.js +135 -0
  151. package/packages/contracts/dist/plugin.d.ts +214 -0
  152. package/packages/contracts/dist/plugin.js +117 -0
  153. package/packages/contracts/dist/projectRead.d.ts +205 -0
  154. package/packages/contracts/dist/projectRead.js +162 -0
  155. package/packages/contracts/dist/secure.d.ts +128 -0
  156. package/packages/contracts/dist/secure.js +99 -0
  157. package/packages/contracts/package.json +32 -0
  158. package/packages/contracts/src/artifacts.ts +83 -0
  159. package/packages/contracts/src/automation.ts +238 -0
  160. package/packages/contracts/src/browser.ts +164 -0
  161. package/packages/contracts/src/context.ts +91 -0
  162. package/packages/contracts/src/diagnostics.ts +318 -0
  163. package/packages/contracts/src/effects.ts +49 -0
  164. package/packages/contracts/src/errors.ts +83 -0
  165. package/packages/contracts/src/events.ts +46 -0
  166. package/packages/contracts/src/executionDiagnostics.ts +116 -0
  167. package/packages/contracts/src/identity.ts +68 -0
  168. package/packages/contracts/src/index.ts +20 -0
  169. package/packages/contracts/src/invocation.ts +96 -0
  170. package/packages/contracts/src/lifecycle.ts +169 -0
  171. package/packages/contracts/src/plugin.ts +174 -0
  172. package/packages/contracts/src/projectRead.ts +179 -0
  173. package/packages/contracts/src/secure.ts +136 -0
  174. package/provenance.json +179 -9
  175. package/source.zip +0 -0
@@ -0,0 +1,70 @@
1
+ import { z } from 'zod';
2
+ import { SchemaVersionV1Schema } from './identity.js';
3
+ /**
4
+ * Normalized transport and operational error codes.
5
+ * Invariant: Never mix transport failure, process outcome, and implementation validation into one status.
6
+ */
7
+ export const ContractErrorCodeSchema = z.enum([
8
+ 'UNSUPPORTED_PROTOCOL_VERSION',
9
+ 'INVALID_PAYLOAD',
10
+ 'MISSING_OR_INVALID_AUTHORIZATION',
11
+ 'UNAUTHORIZED_PROJECT_OR_OPERATION',
12
+ 'STALE_REQUEST_OR_SELECTION',
13
+ 'OFFLINE_OR_UNAVAILABLE_SERVICE',
14
+ 'DUPLICATE_OR_CONFLICTING_INVOCATION',
15
+ 'DUPLICATE_REQUEST',
16
+ 'IDEMPOTENCY_CONFLICT',
17
+ 'WORKTREE_BUSY',
18
+ 'TIMEOUT',
19
+ 'NATIVE_CLI_FAILURE',
20
+ 'CANCELLED',
21
+ 'UNKNOWN_PROCESS_OUTCOME',
22
+ 'CONTENT_BOUNDS_OR_PATH_DENIAL',
23
+ 'INTERNAL_ERROR',
24
+ ]);
25
+ /**
26
+ * Structured transport error contract.
27
+ * Invariant: Preserves correlation identity and explicit error categorization.
28
+ */
29
+ export const ContractErrorV1Schema = z.object({
30
+ schemaVersion: SchemaVersionV1Schema,
31
+ errorCode: ContractErrorCodeSchema,
32
+ message: z.string().min(1),
33
+ correlationId: z.string().min(1),
34
+ runId: z.string().optional(),
35
+ projectId: z.string().optional(),
36
+ timestamp: z.string().datetime(),
37
+ details: z.record(z.string(), z.unknown()).optional(),
38
+ });
39
+ export class ContractError extends Error {
40
+ schemaVersion = 1;
41
+ errorCode;
42
+ correlationId;
43
+ runId;
44
+ projectId;
45
+ timestamp;
46
+ details;
47
+ constructor(payload) {
48
+ super(payload.message);
49
+ this.name = 'ContractError';
50
+ this.errorCode = payload.errorCode;
51
+ this.correlationId = payload.correlationId;
52
+ this.runId = payload.runId;
53
+ this.projectId = payload.projectId;
54
+ this.timestamp = new Date().toISOString();
55
+ this.details = payload.details;
56
+ }
57
+ toJSON() {
58
+ return ContractErrorV1Schema.parse({
59
+ schemaVersion: this.schemaVersion,
60
+ errorCode: this.errorCode,
61
+ message: this.message,
62
+ correlationId: this.correlationId,
63
+ runId: this.runId,
64
+ projectId: this.projectId,
65
+ timestamp: this.timestamp,
66
+ details: this.details,
67
+ });
68
+ }
69
+ }
70
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1,50 @@
1
+ import { z } from 'zod';
2
+ export declare const EventKindSchema: z.ZodEnum<{
3
+ run_started: "run_started";
4
+ stdout_chunk: "stdout_chunk";
5
+ stderr_chunk: "stderr_chunk";
6
+ agent_turn_started: "agent_turn_started";
7
+ agent_turn_completed: "agent_turn_completed";
8
+ agent_message: "agent_message";
9
+ tool_call: "tool_call";
10
+ approval_requested: "approval_requested";
11
+ approval_granted: "approval_granted";
12
+ approval_denied: "approval_denied";
13
+ run_completed: "run_completed";
14
+ run_failed: "run_failed";
15
+ run_cancelled: "run_cancelled";
16
+ }>;
17
+ export type EventKind = z.infer<typeof EventKindSchema>;
18
+ /**
19
+ * Normalized driver event record.
20
+ * Invariant: Every event carries provenance identities, schema version, timestamp, and typed payload.
21
+ */
22
+ export declare const NormalizedEventV1Schema: z.ZodObject<{
23
+ schemaVersion: z.ZodLiteral<1>;
24
+ eventId: z.core.$ZodBranded<z.ZodString, "EventId", "out">;
25
+ runId: z.core.$ZodBranded<z.ZodString, "RunId", "out">;
26
+ projectId: z.core.$ZodBranded<z.ZodString, "ProjectId", "out">;
27
+ pluginId: z.core.$ZodBranded<z.ZodString, "PluginId", "out">;
28
+ timestamp: z.ZodString;
29
+ eventKind: z.ZodEnum<{
30
+ run_started: "run_started";
31
+ stdout_chunk: "stdout_chunk";
32
+ stderr_chunk: "stderr_chunk";
33
+ agent_turn_started: "agent_turn_started";
34
+ agent_turn_completed: "agent_turn_completed";
35
+ agent_message: "agent_message";
36
+ tool_call: "tool_call";
37
+ approval_requested: "approval_requested";
38
+ approval_granted: "approval_granted";
39
+ approval_denied: "approval_denied";
40
+ run_completed: "run_completed";
41
+ run_failed: "run_failed";
42
+ run_cancelled: "run_cancelled";
43
+ }>;
44
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
45
+ nativeSessionId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AgentSessionId", "out">>;
46
+ nativeTurnId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AgentTurnId", "out">>;
47
+ }, z.core.$strip>;
48
+ export type NormalizedEventV1 = z.infer<typeof NormalizedEventV1Schema>;
49
+ export type NormalizedEvent = NormalizedEventV1;
50
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1,34 @@
1
+ import { z } from 'zod';
2
+ import { SchemaVersionV1Schema, EventIdSchema, RunIdSchema, ProjectIdSchema, PluginIdSchema, AgentSessionIdSchema, AgentTurnIdSchema, } from './identity.js';
3
+ export const EventKindSchema = z.enum([
4
+ 'run_started',
5
+ 'stdout_chunk',
6
+ 'stderr_chunk',
7
+ 'agent_turn_started',
8
+ 'agent_turn_completed',
9
+ 'agent_message',
10
+ 'tool_call',
11
+ 'approval_requested',
12
+ 'approval_granted',
13
+ 'approval_denied',
14
+ 'run_completed',
15
+ 'run_failed',
16
+ 'run_cancelled',
17
+ ]);
18
+ /**
19
+ * Normalized driver event record.
20
+ * Invariant: Every event carries provenance identities, schema version, timestamp, and typed payload.
21
+ */
22
+ export const NormalizedEventV1Schema = z.object({
23
+ schemaVersion: SchemaVersionV1Schema,
24
+ eventId: EventIdSchema,
25
+ runId: RunIdSchema,
26
+ projectId: ProjectIdSchema,
27
+ pluginId: PluginIdSchema,
28
+ timestamp: z.string().datetime(),
29
+ eventKind: EventKindSchema,
30
+ payload: z.record(z.string(), z.unknown()),
31
+ nativeSessionId: AgentSessionIdSchema.optional(),
32
+ nativeTurnId: AgentTurnIdSchema.optional(),
33
+ });
34
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1,212 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * SW-068 execution observability contract (shared by C05 coordinator, C06 process host + provider adapters, C09 storage and the presentation layers).
4
+ *
5
+ * Failure taxonomy: ONE generic vocabulary for every external CLI (Codex today; Claude and custom drivers later). A classification always says HOW the category
6
+ * was reached, because "a known exit code" is not "a known reason":
7
+ * OBSERVED_ERROR_TEXT a structured CLI event, stderr or host fact states the problem (the matched evidence is referenced by sequence number);
8
+ * OBSERVED_HOST_FACT the process host/supervisor itself observed it (timeout, cancel, spawn failure, stdin not delivered, tree not confirmed);
9
+ * INFERRED a cause is suggested by circumstances only (never presented as proven);
10
+ * NOT_DETERMINED the failure is real but its cause is not known (for example: exit code 1 and nothing explanatory was emitted).
11
+ */
12
+ export declare const EXECUTION_FAILURE_CATEGORIES: readonly ["EXECUTABLE_INVALID", "AUTHENTICATION_FAILURE", "AUTHORIZATION_FAILURE", "NETWORK_OR_TLS_FAILURE", "PROVIDER_REJECTION", "RATE_OR_USAGE_LIMIT", "SANDBOX_FAILURE", "PROCESS_START_FAILURE", "PROCESS_EXIT_FAILURE", "TIMEOUT", "CANCELLED", "EVENT_PROTOCOL_ERROR", "UNKNOWN_OUTCOME", "UNCLASSIFIED_FAILURE"];
13
+ export declare const ExecutionFailureCategorySchema: z.ZodEnum<{
14
+ CANCELLED: "CANCELLED";
15
+ EXECUTABLE_INVALID: "EXECUTABLE_INVALID";
16
+ AUTHENTICATION_FAILURE: "AUTHENTICATION_FAILURE";
17
+ AUTHORIZATION_FAILURE: "AUTHORIZATION_FAILURE";
18
+ NETWORK_OR_TLS_FAILURE: "NETWORK_OR_TLS_FAILURE";
19
+ PROVIDER_REJECTION: "PROVIDER_REJECTION";
20
+ RATE_OR_USAGE_LIMIT: "RATE_OR_USAGE_LIMIT";
21
+ SANDBOX_FAILURE: "SANDBOX_FAILURE";
22
+ PROCESS_START_FAILURE: "PROCESS_START_FAILURE";
23
+ PROCESS_EXIT_FAILURE: "PROCESS_EXIT_FAILURE";
24
+ TIMEOUT: "TIMEOUT";
25
+ EVENT_PROTOCOL_ERROR: "EVENT_PROTOCOL_ERROR";
26
+ UNKNOWN_OUTCOME: "UNKNOWN_OUTCOME";
27
+ UNCLASSIFIED_FAILURE: "UNCLASSIFIED_FAILURE";
28
+ }>;
29
+ export type ExecutionFailureCategory = z.infer<typeof ExecutionFailureCategorySchema>;
30
+ export declare const CLASSIFICATION_BASES: readonly ["OBSERVED_ERROR_TEXT", "OBSERVED_HOST_FACT", "INFERRED", "NOT_DETERMINED"];
31
+ export declare const ClassificationBasisSchema: z.ZodEnum<{
32
+ OBSERVED_ERROR_TEXT: "OBSERVED_ERROR_TEXT";
33
+ OBSERVED_HOST_FACT: "OBSERVED_HOST_FACT";
34
+ INFERRED: "INFERRED";
35
+ NOT_DETERMINED: "NOT_DETERMINED";
36
+ }>;
37
+ export type ClassificationBasis = z.infer<typeof ClassificationBasisSchema>;
38
+ export declare const ExecutionClassificationSchema: z.ZodObject<{
39
+ category: z.ZodNullable<z.ZodEnum<{
40
+ CANCELLED: "CANCELLED";
41
+ EXECUTABLE_INVALID: "EXECUTABLE_INVALID";
42
+ AUTHENTICATION_FAILURE: "AUTHENTICATION_FAILURE";
43
+ AUTHORIZATION_FAILURE: "AUTHORIZATION_FAILURE";
44
+ NETWORK_OR_TLS_FAILURE: "NETWORK_OR_TLS_FAILURE";
45
+ PROVIDER_REJECTION: "PROVIDER_REJECTION";
46
+ RATE_OR_USAGE_LIMIT: "RATE_OR_USAGE_LIMIT";
47
+ SANDBOX_FAILURE: "SANDBOX_FAILURE";
48
+ PROCESS_START_FAILURE: "PROCESS_START_FAILURE";
49
+ PROCESS_EXIT_FAILURE: "PROCESS_EXIT_FAILURE";
50
+ TIMEOUT: "TIMEOUT";
51
+ EVENT_PROTOCOL_ERROR: "EVENT_PROTOCOL_ERROR";
52
+ UNKNOWN_OUTCOME: "UNKNOWN_OUTCOME";
53
+ UNCLASSIFIED_FAILURE: "UNCLASSIFIED_FAILURE";
54
+ }>>;
55
+ basis: z.ZodEnum<{
56
+ OBSERVED_ERROR_TEXT: "OBSERVED_ERROR_TEXT";
57
+ OBSERVED_HOST_FACT: "OBSERVED_HOST_FACT";
58
+ INFERRED: "INFERRED";
59
+ NOT_DETERMINED: "NOT_DETERMINED";
60
+ }>;
61
+ causeDetermined: z.ZodBoolean;
62
+ rule: z.ZodString;
63
+ evidenceSeq: z.ZodArray<z.ZodNumber>;
64
+ lastConfirmedStage: z.ZodString;
65
+ providerDetail: z.ZodNullable<z.ZodString>;
66
+ }, z.core.$strict>;
67
+ export type ExecutionClassification = z.infer<typeof ExecutionClassificationSchema>;
68
+ /** What the application shows about a failed execution, directly: the category and the correlation id under which the evidence is stored. */
69
+ export declare const ExecutionFailureViewSchema: z.ZodObject<{
70
+ category: z.ZodEnum<{
71
+ CANCELLED: "CANCELLED";
72
+ EXECUTABLE_INVALID: "EXECUTABLE_INVALID";
73
+ AUTHENTICATION_FAILURE: "AUTHENTICATION_FAILURE";
74
+ AUTHORIZATION_FAILURE: "AUTHORIZATION_FAILURE";
75
+ NETWORK_OR_TLS_FAILURE: "NETWORK_OR_TLS_FAILURE";
76
+ PROVIDER_REJECTION: "PROVIDER_REJECTION";
77
+ RATE_OR_USAGE_LIMIT: "RATE_OR_USAGE_LIMIT";
78
+ SANDBOX_FAILURE: "SANDBOX_FAILURE";
79
+ PROCESS_START_FAILURE: "PROCESS_START_FAILURE";
80
+ PROCESS_EXIT_FAILURE: "PROCESS_EXIT_FAILURE";
81
+ TIMEOUT: "TIMEOUT";
82
+ EVENT_PROTOCOL_ERROR: "EVENT_PROTOCOL_ERROR";
83
+ UNKNOWN_OUTCOME: "UNKNOWN_OUTCOME";
84
+ UNCLASSIFIED_FAILURE: "UNCLASSIFIED_FAILURE";
85
+ }>;
86
+ basis: z.ZodEnum<{
87
+ OBSERVED_ERROR_TEXT: "OBSERVED_ERROR_TEXT";
88
+ OBSERVED_HOST_FACT: "OBSERVED_HOST_FACT";
89
+ INFERRED: "INFERRED";
90
+ NOT_DETERMINED: "NOT_DETERMINED";
91
+ }>;
92
+ causeDetermined: z.ZodBoolean;
93
+ correlationId: z.ZodString;
94
+ }, z.core.$strict>;
95
+ export type ExecutionFailureView = z.infer<typeof ExecutionFailureViewSchema>;
96
+ export declare const EVIDENCE_EVENT_KINDS: readonly ["LIFECYCLE", "STDOUT", "STDERR", "PARSER", "NOTE"];
97
+ export type EvidenceEventKind = (typeof EVIDENCE_EVENT_KINDS)[number];
98
+ /** Hard bounds of the evidence store (per run). Output beyond them is COUNTED, never silently dropped, and the truncation is itself evidence. */
99
+ export declare const EVIDENCE_LIMITS: Readonly<{
100
+ maxEventsPerRun: 400;
101
+ maxLineChars: 600;
102
+ maxStreamCharsPerRun: 32768;
103
+ maxConfigJsonChars: 4096;
104
+ /** Retention: evidence older than this is deleted by the daemon at start. */
105
+ retentionDays: 30;
106
+ }>;
107
+ /** The shareable (redacted) export of one execution's evidence. */
108
+ export declare const ExecutionEvidenceExportSchema: z.ZodObject<{
109
+ schemaVersion: z.ZodLiteral<1>;
110
+ correlationId: z.ZodString;
111
+ runId: z.ZodString;
112
+ exportedAt: z.ZodString;
113
+ driver: z.ZodString;
114
+ outputProfile: z.ZodNullable<z.ZodString>;
115
+ operationId: z.ZodString;
116
+ executableSha256: z.ZodString;
117
+ launch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
118
+ lifecycleState: z.ZodString;
119
+ lastStage: z.ZodString;
120
+ classification: z.ZodNullable<z.ZodObject<{
121
+ category: z.ZodNullable<z.ZodEnum<{
122
+ CANCELLED: "CANCELLED";
123
+ EXECUTABLE_INVALID: "EXECUTABLE_INVALID";
124
+ AUTHENTICATION_FAILURE: "AUTHENTICATION_FAILURE";
125
+ AUTHORIZATION_FAILURE: "AUTHORIZATION_FAILURE";
126
+ NETWORK_OR_TLS_FAILURE: "NETWORK_OR_TLS_FAILURE";
127
+ PROVIDER_REJECTION: "PROVIDER_REJECTION";
128
+ RATE_OR_USAGE_LIMIT: "RATE_OR_USAGE_LIMIT";
129
+ SANDBOX_FAILURE: "SANDBOX_FAILURE";
130
+ PROCESS_START_FAILURE: "PROCESS_START_FAILURE";
131
+ PROCESS_EXIT_FAILURE: "PROCESS_EXIT_FAILURE";
132
+ TIMEOUT: "TIMEOUT";
133
+ EVENT_PROTOCOL_ERROR: "EVENT_PROTOCOL_ERROR";
134
+ UNKNOWN_OUTCOME: "UNKNOWN_OUTCOME";
135
+ UNCLASSIFIED_FAILURE: "UNCLASSIFIED_FAILURE";
136
+ }>>;
137
+ basis: z.ZodEnum<{
138
+ OBSERVED_ERROR_TEXT: "OBSERVED_ERROR_TEXT";
139
+ OBSERVED_HOST_FACT: "OBSERVED_HOST_FACT";
140
+ INFERRED: "INFERRED";
141
+ NOT_DETERMINED: "NOT_DETERMINED";
142
+ }>;
143
+ causeDetermined: z.ZodBoolean;
144
+ rule: z.ZodString;
145
+ evidenceSeq: z.ZodArray<z.ZodNumber>;
146
+ lastConfirmedStage: z.ZodString;
147
+ providerDetail: z.ZodNullable<z.ZodString>;
148
+ }, z.core.$strict>>;
149
+ classificationComputedAt: z.ZodEnum<{
150
+ FINALIZATION: "FINALIZATION";
151
+ EXPORT: "EXPORT";
152
+ }>;
153
+ events: z.ZodArray<z.ZodObject<{
154
+ seq: z.ZodNumber;
155
+ ts: z.ZodString;
156
+ kind: z.ZodString;
157
+ stage: z.ZodNullable<z.ZodString>;
158
+ data: z.ZodString;
159
+ truncated: z.ZodBoolean;
160
+ }, z.core.$strict>>;
161
+ notes: z.ZodArray<z.ZodString>;
162
+ }, z.core.$strict>;
163
+ export type ExecutionEvidenceExport = z.infer<typeof ExecutionEvidenceExportSchema>;
164
+ /**
165
+ * SW-071 TASK VERDICT: four SEPARATE dimensions that must never be collapsed into one "success". An exit code of 0 proves only that the process ended; it does not prove the model
166
+ * finished the task, that a tool request was permitted, or that the answer is right. `repositoryInspection` is PROVEN only when a tool call that read the repository actually
167
+ * completed AND the independently computed answer matches; a refused tool call can never be reported as an inspection, whatever the answer says.
168
+ */
169
+ export declare const TASK_VERDICT_PROCESS: readonly ["SUCCEEDED", "FAILED", "NOT_OBSERVED"];
170
+ export declare const TASK_VERDICT_MODEL: readonly ["COMPLETED", "NO_FINAL_MESSAGE", "NOT_OBSERVED"];
171
+ export declare const TASK_VERDICT_TOOL: readonly ["NOT_REQUESTED", "SUCCEEDED", "PARTIAL", "REFUSED", "FAILED", "NOT_OBSERVED"];
172
+ export declare const TASK_VERDICT_ANSWER: readonly ["CORRECT", "INCORRECT", "NOT_CHECKED"];
173
+ export declare const TASK_VERDICT_INSPECTION: readonly ["PROVEN", "REFUSED", "NOT_PROVEN"];
174
+ export declare const TaskVerdictSchema: z.ZodObject<{
175
+ process: z.ZodEnum<{
176
+ FAILED: "FAILED";
177
+ SUCCEEDED: "SUCCEEDED";
178
+ NOT_OBSERVED: "NOT_OBSERVED";
179
+ }>;
180
+ model: z.ZodEnum<{
181
+ COMPLETED: "COMPLETED";
182
+ NOT_OBSERVED: "NOT_OBSERVED";
183
+ NO_FINAL_MESSAGE: "NO_FINAL_MESSAGE";
184
+ }>;
185
+ tool: z.ZodEnum<{
186
+ FAILED: "FAILED";
187
+ SUCCEEDED: "SUCCEEDED";
188
+ NOT_OBSERVED: "NOT_OBSERVED";
189
+ NOT_REQUESTED: "NOT_REQUESTED";
190
+ PARTIAL: "PARTIAL";
191
+ REFUSED: "REFUSED";
192
+ }>;
193
+ answer: z.ZodEnum<{
194
+ CORRECT: "CORRECT";
195
+ INCORRECT: "INCORRECT";
196
+ NOT_CHECKED: "NOT_CHECKED";
197
+ }>;
198
+ repositoryInspection: z.ZodEnum<{
199
+ REFUSED: "REFUSED";
200
+ PROVEN: "PROVEN";
201
+ NOT_PROVEN: "NOT_PROVEN";
202
+ }>;
203
+ toolCounts: z.ZodObject<{
204
+ requested: z.ZodNumber;
205
+ completed: z.ZodNumber;
206
+ refused: z.ZodNumber;
207
+ failed: z.ZodNumber;
208
+ }, z.core.$strict>;
209
+ toolEvidenceSeq: z.ZodArray<z.ZodNumber>;
210
+ }, z.core.$strict>;
211
+ export type TaskVerdict = z.infer<typeof TaskVerdictSchema>;
212
+ //# sourceMappingURL=executionDiagnostics.d.ts.map
@@ -0,0 +1,101 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * SW-068 execution observability contract (shared by C05 coordinator, C06 process host + provider adapters, C09 storage and the presentation layers).
4
+ *
5
+ * Failure taxonomy: ONE generic vocabulary for every external CLI (Codex today; Claude and custom drivers later). A classification always says HOW the category
6
+ * was reached, because "a known exit code" is not "a known reason":
7
+ * OBSERVED_ERROR_TEXT a structured CLI event, stderr or host fact states the problem (the matched evidence is referenced by sequence number);
8
+ * OBSERVED_HOST_FACT the process host/supervisor itself observed it (timeout, cancel, spawn failure, stdin not delivered, tree not confirmed);
9
+ * INFERRED a cause is suggested by circumstances only (never presented as proven);
10
+ * NOT_DETERMINED the failure is real but its cause is not known (for example: exit code 1 and nothing explanatory was emitted).
11
+ */
12
+ export const EXECUTION_FAILURE_CATEGORIES = [
13
+ 'EXECUTABLE_INVALID',
14
+ 'AUTHENTICATION_FAILURE',
15
+ 'AUTHORIZATION_FAILURE',
16
+ 'NETWORK_OR_TLS_FAILURE',
17
+ 'PROVIDER_REJECTION',
18
+ 'RATE_OR_USAGE_LIMIT',
19
+ 'SANDBOX_FAILURE',
20
+ 'PROCESS_START_FAILURE',
21
+ 'PROCESS_EXIT_FAILURE',
22
+ 'TIMEOUT',
23
+ 'CANCELLED',
24
+ 'EVENT_PROTOCOL_ERROR',
25
+ 'UNKNOWN_OUTCOME',
26
+ 'UNCLASSIFIED_FAILURE',
27
+ ];
28
+ export const ExecutionFailureCategorySchema = z.enum(EXECUTION_FAILURE_CATEGORIES);
29
+ export const CLASSIFICATION_BASES = ['OBSERVED_ERROR_TEXT', 'OBSERVED_HOST_FACT', 'INFERRED', 'NOT_DETERMINED'];
30
+ export const ClassificationBasisSchema = z.enum(CLASSIFICATION_BASES);
31
+ export const ExecutionClassificationSchema = z.strictObject({
32
+ /** null = the execution did not fail (no category applies). */
33
+ category: ExecutionFailureCategorySchema.nullable(),
34
+ basis: ClassificationBasisSchema,
35
+ /** True only when an observed message or host fact names the cause. A bare exit code never makes this true. */
36
+ causeDetermined: z.boolean(),
37
+ /** Stable rule id that matched (for example "text:tls-certificate") or the host fact ("host:timeout"). */
38
+ rule: z.string().regex(/^[A-Za-z0-9:_.-]{1,64}$/),
39
+ /** Sequence numbers of the evidence events that support the classification (bounded). */
40
+ evidenceSeq: z.array(z.number().int().min(1)).max(8),
41
+ /** The last stage confirmed to have succeeded before the failure. */
42
+ lastConfirmedStage: z.string().regex(/^[A-Z][A-Z0-9_]{1,40}$/),
43
+ /** Provider-specific, already redacted, bounded detail (never a generic field: the category is the contract). */
44
+ providerDetail: z.string().max(300).nullable(),
45
+ });
46
+ /** What the application shows about a failed execution, directly: the category and the correlation id under which the evidence is stored. */
47
+ export const ExecutionFailureViewSchema = z.strictObject({
48
+ category: ExecutionFailureCategorySchema,
49
+ basis: ClassificationBasisSchema,
50
+ causeDetermined: z.boolean(),
51
+ correlationId: z.string().regex(/^corr\.[A-Za-z0-9_-]{8,40}$/),
52
+ });
53
+ export const EVIDENCE_EVENT_KINDS = ['LIFECYCLE', 'STDOUT', 'STDERR', 'PARSER', 'NOTE'];
54
+ /** Hard bounds of the evidence store (per run). Output beyond them is COUNTED, never silently dropped, and the truncation is itself evidence. */
55
+ export const EVIDENCE_LIMITS = Object.freeze({
56
+ maxEventsPerRun: 400,
57
+ maxLineChars: 600,
58
+ maxStreamCharsPerRun: 32_768,
59
+ maxConfigJsonChars: 4096,
60
+ /** Retention: evidence older than this is deleted by the daemon at start. */
61
+ retentionDays: 30,
62
+ });
63
+ /** The shareable (redacted) export of one execution's evidence. */
64
+ export const ExecutionEvidenceExportSchema = z.strictObject({
65
+ schemaVersion: z.literal(1),
66
+ correlationId: z.string(),
67
+ runId: z.string(),
68
+ exportedAt: z.string(),
69
+ driver: z.string(),
70
+ outputProfile: z.string().nullable(),
71
+ operationId: z.string(),
72
+ executableSha256: z.string(),
73
+ launch: z.record(z.string(), z.unknown()),
74
+ lifecycleState: z.string(),
75
+ lastStage: z.string(),
76
+ classification: ExecutionClassificationSchema.nullable(),
77
+ classificationComputedAt: z.enum(['FINALIZATION', 'EXPORT']),
78
+ events: z.array(z.strictObject({ seq: z.number(), ts: z.string(), kind: z.string(), stage: z.string().nullable(), data: z.string(), truncated: z.boolean() })).max(EVIDENCE_LIMITS.maxEventsPerRun),
79
+ notes: z.array(z.string()).max(20),
80
+ });
81
+ /**
82
+ * SW-071 TASK VERDICT: four SEPARATE dimensions that must never be collapsed into one "success". An exit code of 0 proves only that the process ended; it does not prove the model
83
+ * finished the task, that a tool request was permitted, or that the answer is right. `repositoryInspection` is PROVEN only when a tool call that read the repository actually
84
+ * completed AND the independently computed answer matches; a refused tool call can never be reported as an inspection, whatever the answer says.
85
+ */
86
+ export const TASK_VERDICT_PROCESS = ['SUCCEEDED', 'FAILED', 'NOT_OBSERVED'];
87
+ export const TASK_VERDICT_MODEL = ['COMPLETED', 'NO_FINAL_MESSAGE', 'NOT_OBSERVED'];
88
+ export const TASK_VERDICT_TOOL = ['NOT_REQUESTED', 'SUCCEEDED', 'PARTIAL', 'REFUSED', 'FAILED', 'NOT_OBSERVED'];
89
+ export const TASK_VERDICT_ANSWER = ['CORRECT', 'INCORRECT', 'NOT_CHECKED'];
90
+ export const TASK_VERDICT_INSPECTION = ['PROVEN', 'REFUSED', 'NOT_PROVEN'];
91
+ export const TaskVerdictSchema = z.strictObject({
92
+ process: z.enum(TASK_VERDICT_PROCESS),
93
+ model: z.enum(TASK_VERDICT_MODEL),
94
+ tool: z.enum(TASK_VERDICT_TOOL),
95
+ answer: z.enum(TASK_VERDICT_ANSWER),
96
+ repositoryInspection: z.enum(TASK_VERDICT_INSPECTION),
97
+ toolCounts: z.strictObject({ requested: z.number().int().min(0), completed: z.number().int().min(0), refused: z.number().int().min(0), failed: z.number().int().min(0) }),
98
+ /** Evidence sequence numbers behind the tool dimension (bounded). */
99
+ toolEvidenceSeq: z.array(z.number().int().min(1)).max(8),
100
+ });
101
+ //# sourceMappingURL=executionDiagnostics.js.map
@@ -0,0 +1,54 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Explicit schema version 1 for initial transport and persisted payload contracts.
4
+ */
5
+ export declare const SCHEMA_VERSION_V1: 1;
6
+ export declare const SchemaVersionV1Schema: z.ZodLiteral<1>;
7
+ export type SchemaVersionV1 = z.infer<typeof SchemaVersionV1Schema>;
8
+ /**
9
+ * Distinct identity schemas and branded types.
10
+ * Invariant: Never reuse one identity type to represent another.
11
+ */
12
+ export declare const ProjectIdSchema: z.core.$ZodBranded<z.ZodString, "ProjectId", "out">;
13
+ export type ProjectId = z.infer<typeof ProjectIdSchema>;
14
+ export declare const PluginIdSchema: z.core.$ZodBranded<z.ZodString, "PluginId", "out">;
15
+ export type PluginId = z.infer<typeof PluginIdSchema>;
16
+ export declare const OperationIdSchema: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
17
+ export type OperationId = z.infer<typeof OperationIdSchema>;
18
+ export declare const AuthorizationGrantIdSchema: z.core.$ZodBranded<z.ZodString, "AuthorizationGrantId", "out">;
19
+ export type AuthorizationGrantId = z.infer<typeof AuthorizationGrantIdSchema>;
20
+ export declare const BrowserRequestIdSchema: z.core.$ZodBranded<z.ZodString, "BrowserRequestId", "out">;
21
+ export type BrowserRequestId = z.infer<typeof BrowserRequestIdSchema>;
22
+ export declare const IdempotencyKeySchema: z.core.$ZodBranded<z.ZodString, "IdempotencyKey", "out">;
23
+ export type IdempotencyKey = z.infer<typeof IdempotencyKeySchema>;
24
+ export declare const RunIdSchema: z.core.$ZodBranded<z.ZodString, "RunId", "out">;
25
+ export type RunId = z.infer<typeof RunIdSchema>;
26
+ export declare const AgentSessionIdSchema: z.core.$ZodBranded<z.ZodString, "AgentSessionId", "out">;
27
+ export type AgentSessionId = z.infer<typeof AgentSessionIdSchema>;
28
+ export declare const AgentTurnIdSchema: z.core.$ZodBranded<z.ZodString, "AgentTurnId", "out">;
29
+ export type AgentTurnId = z.infer<typeof AgentTurnIdSchema>;
30
+ export declare const EventIdSchema: z.core.$ZodBranded<z.ZodString, "EventId", "out">;
31
+ export type EventId = z.infer<typeof EventIdSchema>;
32
+ export declare const ArtifactIdSchema: z.core.$ZodBranded<z.ZodString, "ArtifactId", "out">;
33
+ export type ArtifactId = z.infer<typeof ArtifactIdSchema>;
34
+ export declare const ShipmentIdSchema: z.core.$ZodBranded<z.ZodString, "ShipmentId", "out">;
35
+ export type ShipmentId = z.infer<typeof ShipmentIdSchema>;
36
+ export declare const PromptSnapshotIdSchema: z.core.$ZodBranded<z.ZodString, "PromptSnapshotId", "out">;
37
+ export type PromptSnapshotId = z.infer<typeof PromptSnapshotIdSchema>;
38
+ /**
39
+ * Helper builders with runtime validation.
40
+ */
41
+ export declare const createProjectId: (id: string) => ProjectId;
42
+ export declare const createPluginId: (id: string) => PluginId;
43
+ export declare const createOperationId: (id: string) => OperationId;
44
+ export declare const createAuthorizationGrantId: (id: string) => AuthorizationGrantId;
45
+ export declare const createBrowserRequestId: (id: string) => BrowserRequestId;
46
+ export declare const createIdempotencyKey: (id: string) => IdempotencyKey;
47
+ export declare const createRunId: (id: string) => RunId;
48
+ export declare const createAgentSessionId: (id: string) => AgentSessionId;
49
+ export declare const createAgentTurnId: (id: string) => AgentTurnId;
50
+ export declare const createEventId: (id: string) => EventId;
51
+ export declare const createArtifactId: (id: string) => ArtifactId;
52
+ export declare const createShipmentId: (id: string) => ShipmentId;
53
+ export declare const createPromptSnapshotId: (id: string) => PromptSnapshotId;
54
+ //# sourceMappingURL=identity.d.ts.map
@@ -0,0 +1,40 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Explicit schema version 1 for initial transport and persisted payload contracts.
4
+ */
5
+ export const SCHEMA_VERSION_V1 = 1;
6
+ export const SchemaVersionV1Schema = z.literal(SCHEMA_VERSION_V1);
7
+ /**
8
+ * Distinct identity schemas and branded types.
9
+ * Invariant: Never reuse one identity type to represent another.
10
+ */
11
+ export const ProjectIdSchema = z.string().min(1).brand();
12
+ export const PluginIdSchema = z.string().min(1).brand();
13
+ export const OperationIdSchema = z.string().min(1).brand();
14
+ export const AuthorizationGrantIdSchema = z.string().min(1).brand();
15
+ export const BrowserRequestIdSchema = z.string().min(1).brand();
16
+ export const IdempotencyKeySchema = z.string().min(1).brand();
17
+ export const RunIdSchema = z.string().min(1).brand();
18
+ export const AgentSessionIdSchema = z.string().min(1).brand();
19
+ export const AgentTurnIdSchema = z.string().min(1).brand();
20
+ export const EventIdSchema = z.string().min(1).brand();
21
+ export const ArtifactIdSchema = z.string().min(1).brand();
22
+ export const ShipmentIdSchema = z.string().min(1).brand();
23
+ export const PromptSnapshotIdSchema = z.string().min(1).brand();
24
+ /**
25
+ * Helper builders with runtime validation.
26
+ */
27
+ export const createProjectId = (id) => ProjectIdSchema.parse(id);
28
+ export const createPluginId = (id) => PluginIdSchema.parse(id);
29
+ export const createOperationId = (id) => OperationIdSchema.parse(id);
30
+ export const createAuthorizationGrantId = (id) => AuthorizationGrantIdSchema.parse(id);
31
+ export const createBrowserRequestId = (id) => BrowserRequestIdSchema.parse(id);
32
+ export const createIdempotencyKey = (id) => IdempotencyKeySchema.parse(id);
33
+ export const createRunId = (id) => RunIdSchema.parse(id);
34
+ export const createAgentSessionId = (id) => AgentSessionIdSchema.parse(id);
35
+ export const createAgentTurnId = (id) => AgentTurnIdSchema.parse(id);
36
+ export const createEventId = (id) => EventIdSchema.parse(id);
37
+ export const createArtifactId = (id) => ArtifactIdSchema.parse(id);
38
+ export const createShipmentId = (id) => ShipmentIdSchema.parse(id);
39
+ export const createPromptSnapshotId = (id) => PromptSnapshotIdSchema.parse(id);
40
+ //# sourceMappingURL=identity.js.map
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Shared cross-component contract authority for my-centcom.
3
+ * Governs all K01-K12 connection boundaries.
4
+ */
5
+ export * from './identity.js';
6
+ export * from './effects.js';
7
+ export * from './errors.js';
8
+ export * from './plugin.js';
9
+ export * from './invocation.js';
10
+ export * from './events.js';
11
+ export * from './lifecycle.js';
12
+ export * from './browser.js';
13
+ export * from './context.js';
14
+ export * from './artifacts.js';
15
+ export * from './secure.js';
16
+ export * from './diagnostics.js';
17
+ export * from './automation.js';
18
+ export * from './executionDiagnostics.js';
19
+ export * from './projectRead.js';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Shared cross-component contract authority for my-centcom.
3
+ * Governs all K01-K12 connection boundaries.
4
+ */
5
+ export * from './identity.js';
6
+ export * from './effects.js';
7
+ export * from './errors.js';
8
+ export * from './plugin.js';
9
+ export * from './invocation.js';
10
+ export * from './events.js';
11
+ export * from './lifecycle.js';
12
+ export * from './browser.js';
13
+ export * from './context.js';
14
+ export * from './artifacts.js';
15
+ export * from './secure.js';
16
+ export * from './diagnostics.js';
17
+ export * from './automation.js';
18
+ export * from './executionDiagnostics.js';
19
+ export * from './projectRead.js';
20
+ //# sourceMappingURL=index.js.map