@qontinui/shared-types 0.5.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.
- package/dist/tauri-events.d.cts +1 -1
- package/dist/tauri-events.d.ts +1 -1
- package/package.json +1 -1
- package/src/generated/AppError.d.ts +4 -4
- package/src/generated/DeviceBranchSummary.d.ts +23 -0
- package/src/generated/GitOpListResponse.d.ts +19 -0
- package/src/generated/GitOpRecord.d.ts +28 -0
- package/src/generated/ProcessState.d.ts +7 -1
- package/src/generated/RecordGitOpRequest.d.ts +46 -0
- package/src/generated/RunnerFindingUserInput.d.ts +1 -1
- package/src/generated/SpecCheckResult.d.ts +13 -0
- package/src/generated/index.ts +4 -0
package/dist/tauri-events.d.cts
CHANGED
|
@@ -872,7 +872,7 @@ interface RunnerFindingCodeContext {
|
|
|
872
872
|
* disambiguate from `qontinui_types::findings::FindingUserInput`.
|
|
873
873
|
*/
|
|
874
874
|
interface RunnerFindingUserInput {
|
|
875
|
-
|
|
875
|
+
inputType: string;
|
|
876
876
|
options?: string[] | null;
|
|
877
877
|
question: string;
|
|
878
878
|
[k: string]: unknown;
|
package/dist/tauri-events.d.ts
CHANGED
|
@@ -872,7 +872,7 @@ interface RunnerFindingCodeContext {
|
|
|
872
872
|
* disambiguate from `qontinui_types::findings::FindingUserInput`.
|
|
873
873
|
*/
|
|
874
874
|
interface RunnerFindingUserInput {
|
|
875
|
-
|
|
875
|
+
inputType: string;
|
|
876
876
|
options?: string[] | null;
|
|
877
877
|
question: string;
|
|
878
878
|
[k: string]: unknown;
|
package/package.json
CHANGED
|
@@ -12,22 +12,22 @@
|
|
|
12
12
|
*/
|
|
13
13
|
export type AppError =
|
|
14
14
|
| {
|
|
15
|
-
|
|
15
|
+
appId: string;
|
|
16
16
|
reason: "not-registered";
|
|
17
17
|
[k: string]: unknown;
|
|
18
18
|
}
|
|
19
19
|
| {
|
|
20
|
-
|
|
20
|
+
appId: string;
|
|
21
21
|
reason: "invalid-app-id";
|
|
22
22
|
[k: string]: unknown;
|
|
23
23
|
}
|
|
24
24
|
| {
|
|
25
25
|
reason: "invalid-repo-root";
|
|
26
|
-
|
|
26
|
+
repoRoot: string;
|
|
27
27
|
[k: string]: unknown;
|
|
28
28
|
}
|
|
29
29
|
| {
|
|
30
|
-
|
|
30
|
+
appId: string;
|
|
31
31
|
reason: "already-registered";
|
|
32
32
|
[k: string]: unknown;
|
|
33
33
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* One entry in the `GET /coord/git-ops/branches` response — the latest
|
|
10
|
+
* branch a given device is on for a given repo, derived from the most
|
|
11
|
+
* recent `checkout`/`branch_create` op per `(device_id, repo)`.
|
|
12
|
+
*/
|
|
13
|
+
export interface DeviceBranchSummary {
|
|
14
|
+
branch?: string | null;
|
|
15
|
+
device_id: string;
|
|
16
|
+
/**
|
|
17
|
+
* ISO 8601 timestamp (RFC 3339) of the op this summary was derived from.
|
|
18
|
+
*/
|
|
19
|
+
recorded_at: string;
|
|
20
|
+
repo: string;
|
|
21
|
+
sha?: string | null;
|
|
22
|
+
[k: string]: unknown;
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
import type { GitOpRecord } from './GitOpRecord';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* `GET /coord/git-ops/list` + `GET /coord/git-ops/by-session/:id`
|
|
12
|
+
* response envelope. Wrapped in a struct (rather than a bare
|
|
13
|
+
* `Vec<GitOpRecord>`) so the generated TS / Python schemas get a named
|
|
14
|
+
* exported interface rather than an anonymous array alias.
|
|
15
|
+
*/
|
|
16
|
+
export interface GitOpListResponse {
|
|
17
|
+
items: GitOpRecord[];
|
|
18
|
+
[k: string]: unknown;
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* One row in `coord.git_ops`. Returned by `GET /coord/git-ops/:op_id`,
|
|
10
|
+
* `GET /coord/git-ops/list`, and `GET /coord/git-ops/by-session/:id`.
|
|
11
|
+
*/
|
|
12
|
+
export interface GitOpRecord {
|
|
13
|
+
branch?: string | null;
|
|
14
|
+
device_id: string;
|
|
15
|
+
message?: string | null;
|
|
16
|
+
metadata: unknown;
|
|
17
|
+
op_id: string;
|
|
18
|
+
op_kind: string;
|
|
19
|
+
/**
|
|
20
|
+
* ISO 8601 timestamp (RFC 3339).
|
|
21
|
+
*/
|
|
22
|
+
recorded_at: string;
|
|
23
|
+
repo: string;
|
|
24
|
+
session_id: string;
|
|
25
|
+
sha?: string | null;
|
|
26
|
+
tenant_id?: string | null;
|
|
27
|
+
[k: string]: unknown;
|
|
28
|
+
}
|
|
@@ -11,5 +11,11 @@
|
|
|
11
11
|
* Ordering mirrors the lifecycle progression:
|
|
12
12
|
* `Stopped → Starting → (Building) → Running → Healthy → Stopping → Stopped`,
|
|
13
13
|
* or to `Failed` on any abnormal exit.
|
|
14
|
+
* `ExternallyOwned` is a special out-of-band state meaning "a process is
|
|
15
|
+
* running on our port, but this runner did not spawn it" — used by the
|
|
16
|
+
* process-reconcile feature to surface port squatters without touching the
|
|
17
|
+
* normal lifecycle.
|
|
14
18
|
*/
|
|
15
|
-
export type ProcessState =
|
|
19
|
+
export type ProcessState =
|
|
20
|
+
| ("stopped" | "starting" | "building" | "running" | "healthy" | "stopping" | "failed")
|
|
21
|
+
| "externally_owned";
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* `POST /coord/git-ops/record` body. `repo` + `op_kind` are the only
|
|
10
|
+
* required fields; the rest is optional metadata.
|
|
11
|
+
*
|
|
12
|
+
* `device_id` / `session_id` are NOT in this body — coord resolves the
|
|
13
|
+
* tenant from the `X-Qontinui-Tenant-Id` header and reads device/session
|
|
14
|
+
* from the request wrapper (mirroring the federation-report surface).
|
|
15
|
+
*/
|
|
16
|
+
export interface RecordGitOpRequest {
|
|
17
|
+
/**
|
|
18
|
+
* Affected branch (null for stash/tag ops).
|
|
19
|
+
*/
|
|
20
|
+
branch?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Commit message or op description.
|
|
23
|
+
*/
|
|
24
|
+
message?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Extensible metadata (files_changed, remote, ahead_count, …).
|
|
27
|
+
*/
|
|
28
|
+
metadata?: {
|
|
29
|
+
[k: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* One of: `commit | push | checkout | branch_create | merge |
|
|
33
|
+
* rebase | reset | stash | tag` (free-form on the wire).
|
|
34
|
+
*/
|
|
35
|
+
op_kind: string;
|
|
36
|
+
/**
|
|
37
|
+
* Repo basename (origin remote URL basename, falling back to the
|
|
38
|
+
* working-dir basename for remote-less clones).
|
|
39
|
+
*/
|
|
40
|
+
repo: string;
|
|
41
|
+
/**
|
|
42
|
+
* Resulting commit SHA (null for branch_create/stash).
|
|
43
|
+
*/
|
|
44
|
+
sha?: string | null;
|
|
45
|
+
[k: string]: unknown;
|
|
46
|
+
}
|
|
@@ -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
|
*/
|
package/src/generated/index.ts
CHANGED
|
@@ -93,6 +93,7 @@ export type { DagCancelStep } from './DagCancelStep';
|
|
|
93
93
|
export type { DagLoopStep } from './DagLoopStep';
|
|
94
94
|
export type { DecomposerConfig } from './DecomposerConfig';
|
|
95
95
|
export type { DevSeedFindingPayload } from './DevSeedFindingPayload';
|
|
96
|
+
export type { DeviceBranchSummary } from './DeviceBranchSummary';
|
|
96
97
|
export type { DiagnosePhaseConfig } from './DiagnosePhaseConfig';
|
|
97
98
|
export type { DiagnosticResult } from './DiagnosticResult';
|
|
98
99
|
export type { DiscoveredElement } from './DiscoveredElement';
|
|
@@ -170,6 +171,8 @@ export type { FlowEvent } from './FlowEvent';
|
|
|
170
171
|
export type { FullRunnerStep } from './FullRunnerStep';
|
|
171
172
|
export type { GUIElementChunk } from './GUIElementChunk';
|
|
172
173
|
export type { GateEvaluationResult } from './GateEvaluationResult';
|
|
174
|
+
export type { GitOpListResponse } from './GitOpListResponse';
|
|
175
|
+
export type { GitOpRecord } from './GitOpRecord';
|
|
173
176
|
export type { HealthCheckUrl } from './HealthCheckUrl';
|
|
174
177
|
export type { HistoricalActionQuery } from './HistoricalActionQuery';
|
|
175
178
|
export type { HistoricalActionResult } from './HistoricalActionResult';
|
|
@@ -290,6 +293,7 @@ export type { RagProgressEvent } from './RagProgressEvent';
|
|
|
290
293
|
export type { ReadConfigResponse } from './ReadConfigResponse';
|
|
291
294
|
export type { RecommendationReviewDecisionPayload } from './RecommendationReviewDecisionPayload';
|
|
292
295
|
export type { RecommendedState } from './RecommendedState';
|
|
296
|
+
export type { RecordGitOpRequest } from './RecordGitOpRequest';
|
|
293
297
|
export type { ReflectionFixOutput } from './ReflectionFixOutput';
|
|
294
298
|
export type { Region } from './Region';
|
|
295
299
|
export type { RegisterAppRequest } from './RegisterAppRequest';
|