@qontinui/shared-types 2.4.1 → 3.0.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 (57) hide show
  1. package/dist/scheduler.d.cts +81 -0
  2. package/dist/scheduler.d.ts +81 -0
  3. package/package.json +1 -1
  4. package/src/generated/ChangeTimeline.d.ts +484 -0
  5. package/src/generated/CriterionVerification.d.ts +11 -0
  6. package/src/generated/DetectedAnimation.d.ts +32 -0
  7. package/src/generated/EarsPattern.d.ts +20 -0
  8. package/src/generated/EdgeTiming.d.ts +156 -0
  9. package/src/generated/ExecutePlaybookStep.d.ts +5 -4
  10. package/src/generated/ExternalRef.d.ts +22 -0
  11. package/src/generated/InterfaceMappingFrontmatter.d.ts +21 -0
  12. package/src/generated/JourneyArrivalDoubt.d.ts +26 -0
  13. package/src/generated/JourneyCoverage.d.ts +91 -0
  14. package/src/generated/JourneyDeadEnds.d.ts +109 -0
  15. package/src/generated/JourneyEdgeObservation.d.ts +3 -2
  16. package/src/generated/JourneyEdgeTimingAnswer.d.ts +88 -0
  17. package/src/generated/JourneyFilter.d.ts +35 -0
  18. package/src/generated/JourneyFrontier.d.ts +51 -0
  19. package/src/generated/JourneyGraph.d.ts +165 -0
  20. package/src/generated/JourneyGraphEdge.d.ts +45 -0
  21. package/src/generated/JourneyPriorKnowledge.d.ts +112 -0
  22. package/src/generated/JourneyReachable.d.ts +64 -0
  23. package/src/generated/JourneySearchFrontier.d.ts +59 -0
  24. package/src/generated/JourneySearchFrontierNode.d.ts +37 -0
  25. package/src/generated/JourneySteps.d.ts +65 -0
  26. package/src/generated/JourneyUnmeasuredDepartures.d.ts +84 -0
  27. package/src/generated/ManagedBy.d.ts +45 -0
  28. package/src/generated/MappingRow.d.ts +23 -0
  29. package/src/generated/MetricDistribution.d.ts +54 -0
  30. package/src/generated/RecurringAgentDispatchRole.d.ts +11 -0
  31. package/src/generated/RecurringAgentExcludedValue.d.ts +20 -0
  32. package/src/generated/RecurringAgentOs.d.ts +11 -0
  33. package/src/generated/RecurringAgentOverride.d.ts +48 -0
  34. package/src/generated/RecurringAgentParamDef.d.ts +100 -0
  35. package/src/generated/RecurringAgentParamKind.d.ts +89 -0
  36. package/src/generated/RecurringAgentParamSchema.d.ts +16 -0
  37. package/src/generated/RecurringAgentSpec.d.ts +91 -0
  38. package/src/generated/RecurringAgentState.d.ts +13 -0
  39. package/src/generated/RecurringAgentStatus.d.ts +79 -0
  40. package/src/generated/RecurringAgentStatusReport.d.ts +48 -0
  41. package/src/generated/RecurringAgentTarget.d.ts +78 -0
  42. package/src/generated/RequestFrontmatter.d.ts +30 -0
  43. package/src/generated/RequirementFrontmatter.d.ts +31 -0
  44. package/src/generated/ScheduledTask.d.ts +15 -0
  45. package/src/generated/ScheduledTaskType.d.ts +21 -0
  46. package/src/generated/SourceCitation.d.ts +25 -0
  47. package/src/generated/SourceCitationKind.d.ts +12 -0
  48. package/src/generated/SpecAcceptanceCriterion.d.ts +28 -0
  49. package/src/generated/SpecFrontmatter.d.ts +36 -0
  50. package/src/generated/SpecLanguage.d.ts +11 -0
  51. package/src/generated/StoryFrontmatter.d.ts +26 -0
  52. package/src/generated/TemplateRef.d.ts +17 -0
  53. package/src/generated/UnknownCode.d.ts +8 -1
  54. package/src/generated/index.ts +45 -3
  55. package/src/generated/CapabilityState.d.ts +0 -25
  56. package/src/generated/CliProfile.d.ts +0 -492
  57. package/src/generated/SessionFailure.d.ts +0 -129
@@ -0,0 +1,100 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ import type { RecurringAgentExcludedValue } from "./RecurringAgentExcludedValue";
9
+
10
+ /**
11
+ * One parameter a catalog entry's prompt is rendered from (plan D2), e.g.
12
+ * cleanup-steward's `mode` enum or return-to-main's `daily_cap` integer.
13
+ */
14
+ export type RecurringAgentParamDef = {
15
+ /**
16
+ * Human-readable explanation, shown beside the form control.
17
+ */
18
+ description: string;
19
+ /**
20
+ * The key a value is supplied under in [`RecurringAgentSpec::params`].
21
+ */
22
+ name: string;
23
+ /**
24
+ * A required parameter with no default must be supplied by the tenant
25
+ * row before the entry renders at all (strategic-pulse's tenant slug).
26
+ */
27
+ required: boolean;
28
+ [k: string]: unknown;
29
+ } & (
30
+ | {
31
+ /**
32
+ * The value used when the tenant sets none.
33
+ */
34
+ default: boolean;
35
+ type: "boolean";
36
+ [k: string]: unknown;
37
+ }
38
+ | {
39
+ /**
40
+ * The value used when the tenant sets none. Within the bounds.
41
+ */
42
+ default: number;
43
+ /**
44
+ * Largest allowed value.
45
+ */
46
+ maximum: number;
47
+ /**
48
+ * Smallest allowed value.
49
+ */
50
+ minimum: number;
51
+ type: "integer";
52
+ [k: string]: unknown;
53
+ }
54
+ | {
55
+ /**
56
+ * The value used when the tenant sets none. One of `values`.
57
+ */
58
+ default: string;
59
+ type: "enum";
60
+ /**
61
+ * The allowed values, in display order. Non-empty, no duplicates.
62
+ */
63
+ values: string[];
64
+ [k: string]: unknown;
65
+ }
66
+ | {
67
+ /**
68
+ * The values a tenant may pick from. Non-empty, no duplicates.
69
+ */
70
+ allowed: number[];
71
+ /**
72
+ * The set used when the tenant sets none. Non-empty, drawn from
73
+ * `allowed`, none of it excluded.
74
+ */
75
+ default: number[];
76
+ /**
77
+ * Values that exist but this entry refuses, each with why — shown
78
+ * greyed out in the form rather than hidden.
79
+ */
80
+ excluded: RecurringAgentExcludedValue[];
81
+ type: "integer_set";
82
+ [k: string]: unknown;
83
+ }
84
+ | {
85
+ /**
86
+ * The value used when the tenant sets none.
87
+ */
88
+ default: string | null;
89
+ type: "uuid";
90
+ [k: string]: unknown;
91
+ }
92
+ | {
93
+ /**
94
+ * The value used when the tenant sets none. `None` = no default.
95
+ */
96
+ default: string | null;
97
+ type: "slug";
98
+ [k: string]: unknown;
99
+ }
100
+ );
@@ -0,0 +1,89 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ import type { RecurringAgentExcludedValue } from "./RecurringAgentExcludedValue";
9
+
10
+ /**
11
+ * The type, default and bounds of one catalog parameter — exactly the shape
12
+ * coord serves in each catalog entry's `params` array
13
+ * (`recurring_agents::param_schema_json` in qontinui-coord).
14
+ *
15
+ * Tagged by `type` and FLATTENED into its [`RecurringAgentParamDef`], so one
16
+ * served parameter reads
17
+ * `{"name":"mode","description":"…","required":false,"type":"enum","values":["reap","report"],"default":"reap"}`.
18
+ */
19
+ export type RecurringAgentParamKind =
20
+ | {
21
+ /**
22
+ * The value used when the tenant sets none.
23
+ */
24
+ default: boolean;
25
+ type: "boolean";
26
+ [k: string]: unknown;
27
+ }
28
+ | {
29
+ /**
30
+ * The value used when the tenant sets none. Within the bounds.
31
+ */
32
+ default: number;
33
+ /**
34
+ * Largest allowed value.
35
+ */
36
+ maximum: number;
37
+ /**
38
+ * Smallest allowed value.
39
+ */
40
+ minimum: number;
41
+ type: "integer";
42
+ [k: string]: unknown;
43
+ }
44
+ | {
45
+ /**
46
+ * The value used when the tenant sets none. One of `values`.
47
+ */
48
+ default: string;
49
+ type: "enum";
50
+ /**
51
+ * The allowed values, in display order. Non-empty, no duplicates.
52
+ */
53
+ values: string[];
54
+ [k: string]: unknown;
55
+ }
56
+ | {
57
+ /**
58
+ * The values a tenant may pick from. Non-empty, no duplicates.
59
+ */
60
+ allowed: number[];
61
+ /**
62
+ * The set used when the tenant sets none. Non-empty, drawn from
63
+ * `allowed`, none of it excluded.
64
+ */
65
+ default: number[];
66
+ /**
67
+ * Values that exist but this entry refuses, each with why — shown
68
+ * greyed out in the form rather than hidden.
69
+ */
70
+ excluded: RecurringAgentExcludedValue[];
71
+ type: "integer_set";
72
+ [k: string]: unknown;
73
+ }
74
+ | {
75
+ /**
76
+ * The value used when the tenant sets none.
77
+ */
78
+ default: string | null;
79
+ type: "uuid";
80
+ [k: string]: unknown;
81
+ }
82
+ | {
83
+ /**
84
+ * The value used when the tenant sets none. `None` = no default.
85
+ */
86
+ default: string | null;
87
+ type: "slug";
88
+ [k: string]: unknown;
89
+ };
@@ -0,0 +1,16 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ import type { RecurringAgentExcludedValue } from "./RecurringAgentExcludedValue";
9
+ import type { RecurringAgentParamDef } from "./RecurringAgentParamDef";
10
+
11
+ /**
12
+ * The parameter form of one catalog entry: the typed parameters a tenant may
13
+ * set instead of editing prompt text (plan D2, D10). Serialized as the bare
14
+ * array coord serves under a catalog entry's `params` key.
15
+ */
16
+ export type RecurringAgentParamSchema = RecurringAgentParamDef[];
@@ -0,0 +1,91 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ import type { CatchUpPolicy } from "./CatchUpPolicy";
9
+ import type { ConditionScheduleConfig } from "./ConditionScheduleConfig";
10
+ import type { IdleCondition } from "./IdleCondition";
11
+ import type { McpConnectionRef } from "./McpConnectionRef";
12
+ import type { ProbeCondition } from "./ProbeCondition";
13
+ import type { RecurringAgentDispatchRole } from "./RecurringAgentDispatchRole";
14
+ import type { RecurringAgentOs } from "./RecurringAgentOs";
15
+ import type { RecurringAgentTarget } from "./RecurringAgentTarget";
16
+ import type { RepositoryInactiveCondition } from "./RepositoryInactiveCondition";
17
+ import type { RepositoryWatch } from "./RepositoryWatch";
18
+ import type { ScheduleConditions } from "./ScheduleConditions";
19
+ import type { ScheduleExpression } from "./ScheduleExpression";
20
+ import type { ScheduledTaskType } from "./ScheduledTaskType";
21
+
22
+ /**
23
+ * One recurring agent as coord serves it: a catalog entry merged with the
24
+ * tenant's overrides, or a custom agent's full spec (plan D2).
25
+ *
26
+ * On coord's device read route `task_spec` carries the resolved task (for a
27
+ * catalog agent, the template rendered from `params`; a working directory may
28
+ * still be the `{workspace_root}` token, which the runner resolves). A
29
+ * custom agent (no `catalog_ref`) must carry a `RemoteAgent` task and no
30
+ * `requireProbe` condition (D9): `Script` and probe commands come only from
31
+ * the catalog, and the runner applies them only when they equal its own
32
+ * bundled pin.
33
+ */
34
+ export interface RecurringAgentSpec {
35
+ /**
36
+ * The catalog entry this agent is, or overrides. `None` = a custom agent.
37
+ */
38
+ catalog_ref?: string | null;
39
+ /**
40
+ * What to do about slots missed while a runner was down.
41
+ */
42
+ catch_up_policy?: CatchUpPolicy & string;
43
+ /**
44
+ * Conditions the task waits for before running.
45
+ */
46
+ conditions?: ScheduleConditions | null;
47
+ /**
48
+ * sha256 (64 lowercase hex) of the device-independent resolved spec,
49
+ * computed by coord. What a runner stores as `managed.digest` and echoes
50
+ * back as `applied_digest`.
51
+ */
52
+ digest?: string | null;
53
+ /**
54
+ * Whether the agent is enabled for the tenant.
55
+ */
56
+ enabled: boolean;
57
+ /**
58
+ * The agent's name — unique per tenant, and the join key for device
59
+ * status, run requests and managed tasks (coord forbids renames).
60
+ */
61
+ name: string;
62
+ /**
63
+ * Values for the catalog entry's [`RecurringAgentParamSchema`]. Always a
64
+ * JSON object; empty = every parameter at its default.
65
+ */
66
+ params: {
67
+ [k: string]: unknown;
68
+ };
69
+ /**
70
+ * When the agent runs.
71
+ */
72
+ schedule: ScheduleExpression;
73
+ /**
74
+ * Which devices the agent applies to.
75
+ */
76
+ target: RecurringAgentTarget;
77
+ /**
78
+ * The task to run. Required for a custom agent; for a catalog agent, the
79
+ * resolved template when coord serves it to a device.
80
+ */
81
+ task_spec?: ScheduledTaskType | null;
82
+ /**
83
+ * IANA time zone for `schedule`. `None` = each device's scheduler zone.
84
+ */
85
+ timezone?: string | null;
86
+ /**
87
+ * The declaration's row version (starts at 1). History and display only —
88
+ * compare `digest`, never `version`, to decide whether a device is current.
89
+ */
90
+ version: number;
91
+ }
@@ -0,0 +1,13 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ /**
9
+ * What a device did with one recurring agent — the
10
+ * `coord.recurring_agent_device_status.state` vocabulary.
11
+ */
12
+ export type RecurringAgentState =
13
+ "applied" | "paused" | "overridden" | "unapplied" | "refused";
@@ -0,0 +1,79 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ import type { ConditionScheduleConfig } from "./ConditionScheduleConfig";
9
+ import type { IdleCondition } from "./IdleCondition";
10
+ import type { McpConnectionRef } from "./McpConnectionRef";
11
+ import type { ProbeCondition } from "./ProbeCondition";
12
+ import type { RecurringAgentOverride } from "./RecurringAgentOverride";
13
+ import type { RecurringAgentState } from "./RecurringAgentState";
14
+ import type { RepositoryInactiveCondition } from "./RepositoryInactiveCondition";
15
+ import type { RepositoryWatch } from "./RepositoryWatch";
16
+ import type { ScheduleConditions } from "./ScheduleConditions";
17
+ import type { ScheduleExpression } from "./ScheduleExpression";
18
+ import type { ScheduledTaskStatus } from "./ScheduledTaskStatus";
19
+ import type { ScheduledTaskType } from "./ScheduledTaskType";
20
+ import type { TaskExecutionRecord } from "./TaskExecutionRecord";
21
+
22
+ /**
23
+ * One device's status for one recurring agent — a
24
+ * `coord.recurring_agent_device_status` row (plan D7).
25
+ */
26
+ export interface RecurringAgentStatus {
27
+ /**
28
+ * The `request_id` of the newest "Run now" request the device ran,
29
+ * echoed so coord can stop serving it as pending (plan D10).
30
+ */
31
+ acknowledged_request_id?: string | null;
32
+ /**
33
+ * The digest of the spec applied. `None` = none applied.
34
+ */
35
+ applied_digest?: string | null;
36
+ /**
37
+ * The declaration version applied. Display only.
38
+ */
39
+ applied_version?: number | null;
40
+ /**
41
+ * ISO 8601 end of the newest completed run. `None` = none known.
42
+ */
43
+ last_completed_at?: string | null;
44
+ /**
45
+ * The newest run.
46
+ */
47
+ last_run?: TaskExecutionRecord | null;
48
+ /**
49
+ * ISO 8601 end of the newest successful run. `None` = none known.
50
+ */
51
+ last_success_at?: string | null;
52
+ /**
53
+ * The agent's name.
54
+ */
55
+ name: string;
56
+ /**
57
+ * ISO 8601 next scheduled run.
58
+ */
59
+ next_run?: string | null;
60
+ /**
61
+ * The local override record. Required when `state` is `overridden`; a
62
+ * `paused` task may also carry one.
63
+ */
64
+ override?: RecurringAgentOverride | null;
65
+ /**
66
+ * The last N runs, newest first.
67
+ */
68
+ recent_runs?: TaskExecutionRecord[];
69
+ /**
70
+ * What the device did with the agent.
71
+ */
72
+ state: RecurringAgentState;
73
+ /**
74
+ * Why the agent is `unapplied` or `refused` (e.g.
75
+ * [`UNAPPLIED_WORKSPACE_ROOT_UNSET`], [`REFUSED_COMMAND`]). Present
76
+ * exactly for those two states.
77
+ */
78
+ unapplied_reason?: string | null;
79
+ }
@@ -0,0 +1,48 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ import type { ConditionScheduleConfig } from "./ConditionScheduleConfig";
9
+ import type { IdleCondition } from "./IdleCondition";
10
+ import type { McpConnectionRef } from "./McpConnectionRef";
11
+ import type { ProbeCondition } from "./ProbeCondition";
12
+ import type { RecurringAgentOverride } from "./RecurringAgentOverride";
13
+ import type { RecurringAgentState } from "./RecurringAgentState";
14
+ import type { RecurringAgentStatus } from "./RecurringAgentStatus";
15
+ import type { RepositoryInactiveCondition } from "./RepositoryInactiveCondition";
16
+ import type { RepositoryWatch } from "./RepositoryWatch";
17
+ import type { ScheduleConditions } from "./ScheduleConditions";
18
+ import type { ScheduleExpression } from "./ScheduleExpression";
19
+ import type { ScheduledTaskStatus } from "./ScheduledTaskStatus";
20
+ import type { ScheduledTaskType } from "./ScheduledTaskType";
21
+ import type { TaskExecutionRecord } from "./TaskExecutionRecord";
22
+
23
+ /**
24
+ * What a runner posts to coord after every reconcile and every run
25
+ * (`POST /coord/recurring-agents/status/:device_id`, plan D7): one entry per
26
+ * recurring agent the tenant's declaration targets at this device.
27
+ */
28
+ export interface RecurringAgentStatusReport {
29
+ /**
30
+ * The device's "accept managed tasks" setting (D9; default on). When
31
+ * off, the runner applies nothing and reports each agent `unapplied`
32
+ * with [`UNAPPLIED_MANAGED_TASKS_REFUSED`].
33
+ */
34
+ accepts_managed: boolean;
35
+ /**
36
+ * One entry per agent, names unique.
37
+ */
38
+ agents: RecurringAgentStatus[];
39
+ /**
40
+ * RFC 3339 timestamp when the device built this report.
41
+ */
42
+ reported_at: string;
43
+ /**
44
+ * The tenant (UUID) the reported agents were declared by. A device bound
45
+ * to several tenants posts one report per proven tenant.
46
+ */
47
+ tenant_id: string;
48
+ }
@@ -0,0 +1,78 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ import type { RecurringAgentDispatchRole } from "./RecurringAgentDispatchRole";
9
+ import type { RecurringAgentOs } from "./RecurringAgentOs";
10
+
11
+ /**
12
+ * Which devices a recurring agent applies to (plan D4).
13
+ *
14
+ * Always serialized as a JSON object tagged by `kind` — `{"kind":"all"}`,
15
+ * never the bare string `"all"` — because coord's
16
+ * `ck_recurring_agents_target_object` refuses a non-object. coord resolves the
17
+ * target per device on its read route, so a runner never evaluates it.
18
+ *
19
+ * Unknown fields are refused on deserialization (not only in the schema): a
20
+ * misspelt `exclude_devices` silently ignored would widen the target to
21
+ * devices the author meant to exclude. A runner that cannot parse a target
22
+ * keeps its last-applied set (the reconciler's fail-safe), which is the safe
23
+ * side of that failure.
24
+ */
25
+ export type RecurringAgentTarget =
26
+ | {
27
+ /**
28
+ * Device ids (UUIDs) removed from the target.
29
+ */
30
+ exclude_devices?: string[];
31
+ kind: "all";
32
+ }
33
+ | {
34
+ /**
35
+ * Device ids (UUIDs). May be empty: coord's catalog defaults for a
36
+ * one-box agent are `{"kind":"devices","devices":[]}` — the agent
37
+ * targets no device until an operator picks one.
38
+ */
39
+ devices: string[];
40
+ /**
41
+ * Device ids (UUIDs) removed from the target.
42
+ */
43
+ exclude_devices?: string[];
44
+ kind: "devices";
45
+ }
46
+ | {
47
+ /**
48
+ * Device ids (UUIDs) removed from the target.
49
+ */
50
+ exclude_devices?: string[];
51
+ kind: "dispatch_role";
52
+ /**
53
+ * The role a device must hold.
54
+ */
55
+ role: RecurringAgentDispatchRole;
56
+ }
57
+ | {
58
+ /**
59
+ * Required capabilities (containment). Must be non-empty.
60
+ */
61
+ capabilities: string[];
62
+ /**
63
+ * Device ids (UUIDs) removed from the target.
64
+ */
65
+ exclude_devices?: string[];
66
+ kind: "capabilities";
67
+ }
68
+ | {
69
+ /**
70
+ * Device ids (UUIDs) removed from the target.
71
+ */
72
+ exclude_devices?: string[];
73
+ kind: "os";
74
+ /**
75
+ * Selected operating systems. Must be non-empty.
76
+ */
77
+ os: RecurringAgentOs[];
78
+ };
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ /**
9
+ * An incoming request — the raw ask a requirement is derived from.
10
+ */
11
+ export interface RequestFrontmatter {
12
+ id: string;
13
+ /**
14
+ * ISO 8601.
15
+ */
16
+ received_at?: string | null;
17
+ /**
18
+ * The role of the person asking — a role, never a name.
19
+ */
20
+ requester_role?: string | null;
21
+ /**
22
+ * Its reference there (a message id, a ticket key).
23
+ */
24
+ source_ref?: string | null;
25
+ /**
26
+ * Where the request came from, e.g. `email`, `jira`, `workshop`.
27
+ */
28
+ source_system: string;
29
+ [k: string]: unknown;
30
+ }
@@ -0,0 +1,31 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ import type { CriterionVerification } from "./CriterionVerification";
9
+ import type { EarsPattern } from "./EarsPattern";
10
+ import type { ExternalRef } from "./ExternalRef";
11
+ import type { SourceCitation } from "./SourceCitation";
12
+ import type { SourceCitationKind } from "./SourceCitationKind";
13
+ import type { SpecAcceptanceCriterion } from "./SpecAcceptanceCriterion";
14
+ import type { TemplateRef } from "./TemplateRef";
15
+
16
+ /**
17
+ * A requirement.
18
+ */
19
+ export interface RequirementFrontmatter {
20
+ /**
21
+ * May be empty: completeness is the spec quality gate's verdict, not a
22
+ * parse error.
23
+ */
24
+ acceptance_criteria?: SpecAcceptanceCriterion[];
25
+ ears?: EarsPattern & string;
26
+ external_refs?: ExternalRef[];
27
+ id: string;
28
+ sources?: SourceCitation[];
29
+ template?: TemplateRef | null;
30
+ [k: string]: unknown;
31
+ }
@@ -9,6 +9,7 @@ import type { CatchUpPolicy } from "./CatchUpPolicy";
9
9
  import type { ConditionScheduleConfig } from "./ConditionScheduleConfig";
10
10
  import type { ConditionStatus } from "./ConditionStatus";
11
11
  import type { IdleCondition } from "./IdleCondition";
12
+ import type { ManagedBy } from "./ManagedBy";
12
13
  import type { McpConnectionRef } from "./McpConnectionRef";
13
14
  import type { ProbeCondition } from "./ProbeCondition";
14
15
  import type { RepositoryInactiveCondition } from "./RepositoryInactiveCondition";
@@ -80,6 +81,12 @@ export interface ScheduledTask {
80
81
  * Default 60s.
81
82
  */
82
83
  launchFailureBackoffSeconds: number;
84
+ /**
85
+ * Set when the task was created by the runner's reconciler from a
86
+ * fleet-wide recurring-agent declaration rather than by a user. `None` =
87
+ * an unmanaged, user-created task, which the reconciler never touches.
88
+ */
89
+ managed?: ManagedBy | null;
83
90
  /**
84
91
  * ISO 8601 timestamp of last modification.
85
92
  */
@@ -108,4 +115,12 @@ export interface ScheduledTask {
108
115
  * Task type and its per-type configuration.
109
116
  */
110
117
  task: ScheduledTaskType;
118
+ /**
119
+ * IANA time zone this task's schedule is interpreted in (e.g.
120
+ * `Europe/Berlin`). Takes precedence over the global
121
+ * [`SchedulerSettings::timezone`]; `None` = the scheduler's zone. Lets one
122
+ * fleet-wide declaration mean either "local night on every device" or a
123
+ * fixed instant.
124
+ */
125
+ timezone?: string | null;
111
126
  }
@@ -90,6 +90,21 @@ export type ScheduledTaskType =
90
90
  * Empty = use the runner's default tool allow-list.
91
91
  */
92
92
  allowed_tools?: string[];
93
+ /**
94
+ * Optional reasoning-effort level for the spawned session: one of
95
+ * `low`, `medium`, `high`, `xhigh` or `max`. `None` leaves the level
96
+ * to the runner. A plain string rather than an enum, so a stored
97
+ * task carrying a level this crate does not list still loads; the
98
+ * consumer validates it.
99
+ */
100
+ effort?: string | null;
101
+ /**
102
+ * Optional kebab-case name of a spawn-effort profile (e.g.
103
+ * `research`, `implementation`) that the runner resolves to an
104
+ * effort level and an ultracode setting. `None` leaves the choice
105
+ * to the runner.
106
+ */
107
+ effort_profile?: string | null;
93
108
  /**
94
109
  * Hard cap on Claude turns per run (safety bound). `None` =
95
110
  * runner's default cap (typically 50).
@@ -116,6 +131,12 @@ export type ScheduledTaskType =
116
131
  * (typically 600s = 10 min).
117
132
  */
118
133
  timeout_seconds?: number | null;
134
+ /**
135
+ * Optional ultracode switch (standing dynamic-workflow orchestration)
136
+ * for the spawned session. `Some(true)` turns it on, `Some(false)`
137
+ * keeps it off, and `None` leaves the choice to the runner.
138
+ */
139
+ ultracode?: boolean | null;
119
140
  /**
120
141
  * Working directory for the spawned session. `None` means the
121
142
  * runner's project root. Stored as a string (not `PathBuf`) to keep
@@ -0,0 +1,25 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ import type { SourceCitationKind } from "./SourceCitationKind";
9
+
10
+ /**
11
+ * Evidence a requirement was derived from.
12
+ */
13
+ export interface SourceCitation {
14
+ kind: SourceCitationKind;
15
+ /**
16
+ * Where it is: a path and symbol, a document and heading, a ticket key,
17
+ * an artifact's `spec_ref`.
18
+ */
19
+ locator: string;
20
+ /**
21
+ * The version cited (a commit, a document revision), when one applies.
22
+ */
23
+ version?: string | null;
24
+ [k: string]: unknown;
25
+ }
@@ -0,0 +1,12 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ /**
9
+ * What a source citation points at.
10
+ */
11
+ export type SourceCitationKind =
12
+ "code" | "doc_section" | "ticket" | "incident" | "artifact";