@qontinui/shared-types 0.4.0 → 0.6.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.
@@ -17,6 +17,7 @@ export type SpecApiEvent =
17
17
  type: "spec-changed";
18
18
  })
19
19
  | {
20
+ app_id: string;
20
21
  at_ms: number;
21
22
  /**
22
23
  * "http" | "mcp" | "workflow-step"
@@ -28,6 +29,7 @@ export type SpecApiEvent =
28
29
  [k: string]: unknown;
29
30
  }
30
31
  | {
32
+ app_id: string;
31
33
  at_ms: number;
32
34
  eval_error_count: number;
33
35
  no_match_count: number;
@@ -41,6 +43,7 @@ export type SpecApiEvent =
41
43
  [k: string]: unknown;
42
44
  }
43
45
  | {
46
+ app_id: string;
44
47
  at_ms: number;
45
48
  conjunct_name: string;
46
49
  /**
@@ -59,6 +62,7 @@ export type SpecApiEvent =
59
62
  [k: string]: unknown;
60
63
  }
61
64
  | {
65
+ app_id: string;
62
66
  at_ms: number;
63
67
  /**
64
68
  * Expected 2 per design §6.4.
@@ -74,6 +78,7 @@ export type SpecApiEvent =
74
78
  [k: string]: unknown;
75
79
  }
76
80
  | {
81
+ app_id: string;
77
82
  at_ms: number;
78
83
  failing_assertion_id: string;
79
84
  failing_state_id: string;
@@ -46,6 +46,19 @@ export interface SpecCheckResult {
46
46
  * Caller-minted snapshot ID. Format: `"scs_" + ULID()`. See §5.8.
47
47
  */
48
48
  snapshotId: string;
49
+ /**
50
+ * JCS-canonicalized SHA-256 of the raw snapshot payload, as
51
+ * `"sha256-<hex>"`. Available on adapter calls that went through
52
+ * `wrap_snapshot` (HTTP / MCP fresh-fetch path); `None` for in-process
53
+ * evaluator calls (validator, distinctness check, supplied-snapshot
54
+ * path that doesn't precompute it) which either don't have raw bytes
55
+ * to hash or chose to skip the JCS round-trip.
56
+ *
57
+ * Consumers that join spec-check results back to a stored snapshot
58
+ * blob should prefer this over `bridge_fingerprint.snapshot_timestamp`
59
+ * (timestamps collide; content hashes don't).
60
+ */
61
+ snapshotSha256?: string | null;
49
62
  /**
50
63
  * Hash of the spec IR document at evaluation time. `"sha256-<hex>"`.
51
64
  */
@@ -0,0 +1,12 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ export interface UpdateAppRequest {
9
+ displayName?: string | null;
10
+ uiBridgeUrl?: string | null;
11
+ [k: string]: unknown;
12
+ }
@@ -26,7 +26,10 @@ export type { ApiAssertionOperator } from './ApiAssertionOperator';
26
26
  export type { ApiAssertionType } from './ApiAssertionType';
27
27
  export type { ApiContentType } from './ApiContentType';
28
28
  export type { ApiVariableExtraction } from './ApiVariableExtraction';
29
+ export type { App } from './App';
30
+ export type { AppError } from './AppError';
29
31
  export type { AppEvent } from './AppEvent';
32
+ export type { AppListResponse } from './AppListResponse';
30
33
  export type { AssertionMiss } from './AssertionMiss';
31
34
  export type { AssertionOutcome } from './AssertionOutcome';
32
35
  export type { AssertionResult } from './AssertionResult';
@@ -90,6 +93,7 @@ export type { DagCancelStep } from './DagCancelStep';
90
93
  export type { DagLoopStep } from './DagLoopStep';
91
94
  export type { DecomposerConfig } from './DecomposerConfig';
92
95
  export type { DevSeedFindingPayload } from './DevSeedFindingPayload';
96
+ export type { DeviceBranchSummary } from './DeviceBranchSummary';
93
97
  export type { DiagnosePhaseConfig } from './DiagnosePhaseConfig';
94
98
  export type { DiagnosticResult } from './DiagnosticResult';
95
99
  export type { DiscoveredElement } from './DiscoveredElement';
@@ -167,6 +171,8 @@ export type { FlowEvent } from './FlowEvent';
167
171
  export type { FullRunnerStep } from './FullRunnerStep';
168
172
  export type { GUIElementChunk } from './GUIElementChunk';
169
173
  export type { GateEvaluationResult } from './GateEvaluationResult';
174
+ export type { GitOpListResponse } from './GitOpListResponse';
175
+ export type { GitOpRecord } from './GitOpRecord';
170
176
  export type { HealthCheckUrl } from './HealthCheckUrl';
171
177
  export type { HistoricalActionQuery } from './HistoricalActionQuery';
172
178
  export type { HistoricalActionResult } from './HistoricalActionResult';
@@ -227,6 +233,14 @@ export type { McpToolCallResult } from './McpToolCallResult';
227
233
  export type { McpToolInfo } from './McpToolInfo';
228
234
  export type { McpToolInputSchema } from './McpToolInputSchema';
229
235
  export type { McpTransport } from './McpTransport';
236
+ export type { MemoryListQuery } from './MemoryListQuery';
237
+ export type { MemoryListResponse } from './MemoryListResponse';
238
+ export type { MemoryRestoreRequest } from './MemoryRestoreRequest';
239
+ export type { MemoryRow } from './MemoryRow';
240
+ export type { MemorySummary } from './MemorySummary';
241
+ export type { MemoryUpsertRequest } from './MemoryUpsertRequest';
242
+ export type { MemoryUpsertResponse } from './MemoryUpsertResponse';
243
+ export type { MemoryWithHistory } from './MemoryWithHistory';
230
244
  export type { MissReason } from './MissReason';
231
245
  export type { ModelCostBreakdown } from './ModelCostBreakdown';
232
246
  export type { ModelOverrideConfig } from './ModelOverrideConfig';
@@ -279,8 +293,10 @@ export type { RagProgressEvent } from './RagProgressEvent';
279
293
  export type { ReadConfigResponse } from './ReadConfigResponse';
280
294
  export type { RecommendationReviewDecisionPayload } from './RecommendationReviewDecisionPayload';
281
295
  export type { RecommendedState } from './RecommendedState';
296
+ export type { RecordGitOpRequest } from './RecordGitOpRequest';
282
297
  export type { ReflectionFixOutput } from './ReflectionFixOutput';
283
298
  export type { Region } from './Region';
299
+ export type { RegisterAppRequest } from './RegisterAppRequest';
284
300
  export type { RepositoryInactiveCondition } from './RepositoryInactiveCondition';
285
301
  export type { RepositoryWatch } from './RepositoryWatch';
286
302
  export type { ResolvedInitialStates } from './ResolvedInitialStates';
@@ -437,6 +453,7 @@ export type { UiBridgeStepPhase } from './UiBridgeStepPhase';
437
453
  export type { UiBridgeVisualAssertionStep } from './UiBridgeVisualAssertionStep';
438
454
  export type { UnifiedStep } from './UnifiedStep';
439
455
  export type { UnifiedWorkflow } from './UnifiedWorkflow';
456
+ export type { UpdateAppRequest } from './UpdateAppRequest';
440
457
  export type { UpdateMcpServerInput } from './UpdateMcpServerInput';
441
458
  export type { UpdateOlConfigRequest } from './UpdateOlConfigRequest';
442
459
  export type { UpdateScheduledTaskRequest } from './UpdateScheduledTaskRequest';
package/src/index.ts CHANGED
@@ -32,6 +32,10 @@ export * from "./scheduler/_api";
32
32
  // Runner types (canonical Runner entity)
33
33
  export * from "./runner/_api";
34
34
 
35
+ // Memory types — coord-mediated memory federation (plan
36
+ // `2026-05-22-memories-on-coord-cross-machine.md` Phase 6).
37
+ export * from "./memory/_api";
38
+
35
39
  // Library types
36
40
  export * from "./library/_api";
37
41
 
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Memory Types
3
+ *
4
+ * Canonical wire-format types for coord-mediated memory federation.
5
+ * Promoted from inline definitions in `qontinui-coord/src/memories.rs`
6
+ * by plan `2026-05-22-memories-on-coord-cross-machine.md` Phase 6 so
7
+ * coord (HTTP routes), runner-side memory bridge, and qontinui-web
8
+ * (proxy + dashboard browser) all speak one shape.
9
+ *
10
+ * Types generated from Rust (source of truth:
11
+ * `qontinui-schemas/rust/src/memory.rs`). Do not edit by hand —
12
+ * regenerate via `qontinui-runner/src-tauri/scripts/generate_types.sh`.
13
+ */
14
+ export type { MemoryUpsertRequest } from "../generated/MemoryUpsertRequest";
15
+ export type { MemoryUpsertResponse } from "../generated/MemoryUpsertResponse";
16
+ export type { MemoryRestoreRequest } from "../generated/MemoryRestoreRequest";
17
+ export type { MemoryListQuery } from "../generated/MemoryListQuery";
18
+ export type { MemoryRow } from "../generated/MemoryRow";
19
+ export type { MemorySummary } from "../generated/MemorySummary";
20
+ export type { MemoryWithHistory } from "../generated/MemoryWithHistory";
21
+ export type { MemoryListResponse } from "../generated/MemoryListResponse";
@@ -0,0 +1 @@
1
+ export * from "./_api";