@interf/compiler 0.9.4 → 0.13.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 (222) hide show
  1. package/README.md +96 -91
  2. package/TRADEMARKS.md +2 -13
  3. package/agent-skills/interf-actions/SKILL.md +97 -32
  4. package/agent-skills/interf-actions/references/cli.md +124 -71
  5. package/builtin-methods/interf-default/README.md +3 -4
  6. package/builtin-methods/interf-default/compile/stages/shape/SKILL.md +2 -2
  7. package/builtin-methods/interf-default/compile/stages/summarize/SKILL.md +2 -1
  8. package/builtin-methods/interf-default/improve/SKILL.md +1 -1
  9. package/builtin-methods/interf-default/method.json +10 -4
  10. package/builtin-methods/interf-default/method.schema.json +0 -9
  11. package/builtin-methods/interf-default/use/query/SKILL.md +5 -5
  12. package/dist/cli/commands/compile.d.ts +9 -31
  13. package/dist/cli/commands/compile.js +75 -388
  14. package/dist/cli/commands/doctor.js +1 -1
  15. package/dist/cli/commands/login.d.ts +7 -0
  16. package/dist/cli/commands/login.js +39 -0
  17. package/dist/cli/commands/logout.d.ts +2 -0
  18. package/dist/cli/commands/logout.js +16 -0
  19. package/dist/cli/commands/method.d.ts +2 -0
  20. package/dist/cli/commands/method.js +113 -0
  21. package/dist/cli/commands/prep.d.ts +2 -0
  22. package/dist/cli/commands/prep.js +134 -0
  23. package/dist/cli/commands/reset.d.ts +8 -1
  24. package/dist/cli/commands/reset.js +47 -15
  25. package/dist/cli/commands/runs.d.ts +2 -0
  26. package/dist/cli/commands/runs.js +120 -0
  27. package/dist/cli/commands/status.d.ts +6 -1
  28. package/dist/cli/commands/status.js +61 -220
  29. package/dist/cli/commands/test.d.ts +6 -15
  30. package/dist/cli/commands/test.js +63 -342
  31. package/dist/cli/commands/web.d.ts +0 -9
  32. package/dist/cli/commands/web.js +140 -367
  33. package/dist/cli/commands/wizard.d.ts +9 -0
  34. package/dist/cli/commands/wizard.js +442 -0
  35. package/dist/cli/index.d.ts +7 -6
  36. package/dist/cli/index.js +13 -10
  37. package/dist/compiler-ui/404.html +1 -1
  38. package/dist/compiler-ui/__next.__PAGE__.txt +2 -2
  39. package/dist/compiler-ui/__next._full.txt +3 -3
  40. package/dist/compiler-ui/__next._head.txt +1 -1
  41. package/dist/compiler-ui/__next._index.txt +2 -2
  42. package/dist/compiler-ui/__next._tree.txt +2 -2
  43. package/dist/compiler-ui/_next/static/chunks/045gole2ojo3g.css +3 -0
  44. package/dist/compiler-ui/_next/static/chunks/17t-lulmyawg5.js +89 -0
  45. package/dist/compiler-ui/_not-found/__next._full.txt +2 -2
  46. package/dist/compiler-ui/_not-found/__next._head.txt +1 -1
  47. package/dist/compiler-ui/_not-found/__next._index.txt +2 -2
  48. package/dist/compiler-ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
  49. package/dist/compiler-ui/_not-found/__next._not-found.txt +1 -1
  50. package/dist/compiler-ui/_not-found/__next._tree.txt +2 -2
  51. package/dist/compiler-ui/_not-found.html +1 -1
  52. package/dist/compiler-ui/_not-found.txt +2 -2
  53. package/dist/compiler-ui/index.html +1 -1
  54. package/dist/compiler-ui/index.txt +3 -3
  55. package/dist/index.d.ts +0 -23
  56. package/dist/index.js +0 -16
  57. package/dist/packages/agents/lib/shells.d.ts +1 -1
  58. package/dist/packages/agents/lib/shells.js +113 -54
  59. package/dist/packages/agents/lib/user-config.d.ts +4 -2
  60. package/dist/packages/agents/lib/user-config.js +15 -7
  61. package/dist/packages/compiler/compiled-paths.d.ts +9 -2
  62. package/dist/packages/compiler/compiled-paths.js +30 -15
  63. package/dist/packages/compiler/compiled-pipeline.js +23 -3
  64. package/dist/packages/compiler/compiled-stage-plan.js +4 -0
  65. package/dist/packages/compiler/compiled-target.d.ts +1 -1
  66. package/dist/packages/compiler/compiled-target.js +1 -1
  67. package/dist/packages/compiler/index.d.ts +1 -0
  68. package/dist/packages/compiler/index.js +1 -0
  69. package/dist/packages/compiler/lib/schema.d.ts +27 -32
  70. package/dist/packages/compiler/lib/schema.js +2 -13
  71. package/dist/packages/compiler/method-runs.d.ts +2 -3
  72. package/dist/packages/compiler/method-runs.js +2 -3
  73. package/dist/packages/compiler/reset.js +3 -1
  74. package/dist/packages/compiler/runtime-contracts.js +0 -3
  75. package/dist/packages/compiler/runtime-prompt.js +1 -1
  76. package/dist/packages/compiler/source-files.d.ts +46 -0
  77. package/dist/packages/compiler/source-files.js +149 -0
  78. package/dist/packages/compiler/state-artifacts.d.ts +3 -2
  79. package/dist/packages/compiler/state-artifacts.js +4 -3
  80. package/dist/packages/compiler/state-io.d.ts +3 -2
  81. package/dist/packages/compiler/state-io.js +11 -5
  82. package/dist/packages/compiler/state-paths.d.ts +2 -1
  83. package/dist/packages/compiler/state-paths.js +6 -3
  84. package/dist/packages/compiler/state-view.d.ts +3 -2
  85. package/dist/packages/compiler/state-view.js +18 -28
  86. package/dist/packages/compiler/state.d.ts +4 -4
  87. package/dist/packages/compiler/state.js +3 -3
  88. package/dist/packages/contracts/index.d.ts +1 -1
  89. package/dist/packages/contracts/lib/preparation-paths.d.ts +117 -0
  90. package/dist/packages/contracts/lib/preparation-paths.js +177 -0
  91. package/dist/packages/contracts/lib/schema.d.ts +85 -6
  92. package/dist/packages/contracts/lib/schema.js +46 -2
  93. package/dist/packages/execution/lib/schema.d.ts +50 -57
  94. package/dist/packages/execution/lib/schema.js +1 -2
  95. package/dist/packages/local-service/action-definitions.d.ts +246 -0
  96. package/dist/packages/local-service/action-definitions.js +1147 -0
  97. package/dist/packages/local-service/action-planner.d.ts +9 -0
  98. package/dist/packages/local-service/action-planner.js +135 -0
  99. package/dist/packages/local-service/action-values.d.ts +1 -23
  100. package/dist/packages/local-service/action-values.js +1 -31
  101. package/dist/packages/local-service/client.d.ts +76 -46
  102. package/dist/packages/local-service/client.js +184 -149
  103. package/dist/packages/local-service/connection-config.d.ts +38 -0
  104. package/dist/packages/local-service/connection-config.js +75 -0
  105. package/dist/packages/local-service/index.d.ts +14 -7
  106. package/dist/packages/local-service/index.js +8 -4
  107. package/dist/packages/local-service/instance-paths.d.ts +100 -0
  108. package/dist/packages/local-service/instance-paths.js +165 -0
  109. package/dist/packages/local-service/lib/schema.d.ts +689 -2575
  110. package/dist/packages/local-service/lib/schema.js +260 -101
  111. package/dist/packages/local-service/native-run-handlers.d.ts +23 -0
  112. package/dist/{cli/commands/compile-controller.js → packages/local-service/native-run-handlers.js} +204 -20
  113. package/dist/packages/local-service/preparation-store.d.ts +92 -0
  114. package/dist/packages/local-service/preparation-store.js +171 -0
  115. package/dist/{cli/commands/check-draft.d.ts → packages/local-service/readiness-check-draft.d.ts} +2 -2
  116. package/dist/packages/local-service/routes.d.ts +33 -11
  117. package/dist/packages/local-service/routes.js +44 -15
  118. package/dist/packages/local-service/run-observability.js +25 -27
  119. package/dist/packages/local-service/runtime-caches.d.ts +76 -0
  120. package/dist/packages/local-service/runtime-caches.js +191 -0
  121. package/dist/packages/local-service/runtime-event-applier.d.ts +12 -0
  122. package/dist/packages/local-service/runtime-event-applier.js +177 -0
  123. package/dist/packages/local-service/runtime-persistence.d.ts +47 -0
  124. package/dist/packages/local-service/runtime-persistence.js +137 -0
  125. package/dist/packages/local-service/runtime-proposal-helpers.d.ts +35 -0
  126. package/dist/packages/local-service/runtime-proposal-helpers.js +251 -0
  127. package/dist/packages/local-service/runtime-resource-builders.d.ts +52 -0
  128. package/dist/packages/local-service/runtime-resource-builders.js +149 -0
  129. package/dist/packages/local-service/runtime.d.ts +201 -44
  130. package/dist/packages/local-service/runtime.js +1062 -1106
  131. package/dist/packages/local-service/server.d.ts +15 -0
  132. package/dist/packages/local-service/server.js +651 -233
  133. package/dist/packages/local-service/service-registry.d.ts +47 -0
  134. package/dist/packages/local-service/service-registry.js +137 -0
  135. package/dist/packages/method-authoring/method-authoring.d.ts +1 -1
  136. package/dist/packages/method-authoring/method-authoring.js +2 -2
  137. package/dist/packages/method-authoring/method-improvement.js +1 -1
  138. package/dist/packages/method-package/builtin-compiled-method.d.ts +4 -5
  139. package/dist/packages/method-package/builtin-compiled-method.js +8 -14
  140. package/dist/packages/method-package/context-interface.d.ts +4 -40
  141. package/dist/packages/method-package/context-interface.js +1 -23
  142. package/dist/packages/method-package/interf-method-package.d.ts +4 -4
  143. package/dist/packages/method-package/interf-method-package.js +21 -33
  144. package/dist/packages/method-package/local-methods.d.ts +10 -6
  145. package/dist/packages/method-package/local-methods.js +57 -39
  146. package/dist/packages/method-package/method-definitions.d.ts +8 -34
  147. package/dist/packages/method-package/method-definitions.js +49 -37
  148. package/dist/packages/method-package/method-helpers.d.ts +1 -13
  149. package/dist/packages/method-package/method-helpers.js +8 -42
  150. package/dist/packages/method-package/method-review-paths.d.ts +1 -1
  151. package/dist/packages/method-package/method-review-paths.js +5 -5
  152. package/dist/packages/method-package/method-stage-runner.js +2 -2
  153. package/dist/packages/method-package/user-methods.d.ts +17 -0
  154. package/dist/packages/method-package/user-methods.js +77 -0
  155. package/dist/packages/project-model/index.d.ts +1 -1
  156. package/dist/packages/project-model/index.js +1 -1
  157. package/dist/packages/project-model/interf-detect.d.ts +8 -3
  158. package/dist/packages/project-model/interf-detect.js +34 -34
  159. package/dist/packages/project-model/interf-scaffold.d.ts +3 -3
  160. package/dist/packages/project-model/interf-scaffold.js +23 -32
  161. package/dist/packages/project-model/lib/schema.js +38 -1
  162. package/dist/packages/project-model/preparation-entries.d.ts +11 -0
  163. package/dist/packages/project-model/preparation-entries.js +49 -0
  164. package/dist/packages/project-model/source-config.d.ts +11 -10
  165. package/dist/packages/project-model/source-config.js +83 -44
  166. package/dist/packages/project-model/source-folders.d.ts +5 -5
  167. package/dist/packages/project-model/source-folders.js +14 -14
  168. package/dist/packages/shared/filesystem.d.ts +7 -0
  169. package/dist/packages/shared/filesystem.js +97 -10
  170. package/dist/packages/testing/lib/schema.d.ts +12 -13
  171. package/dist/packages/testing/lib/schema.js +4 -5
  172. package/dist/packages/testing/readiness-check-run.d.ts +7 -7
  173. package/dist/packages/testing/readiness-check-run.js +46 -51
  174. package/dist/packages/testing/test-execution.js +6 -6
  175. package/dist/packages/testing/test-paths.js +4 -3
  176. package/dist/packages/testing/test-sandbox.d.ts +0 -1
  177. package/dist/packages/testing/test-sandbox.js +14 -30
  178. package/dist/packages/testing/test-targets.d.ts +1 -1
  179. package/dist/packages/testing/test-targets.js +6 -6
  180. package/dist/packages/testing/test.d.ts +1 -1
  181. package/dist/packages/testing/test.js +1 -1
  182. package/package.json +6 -26
  183. package/LICENSE +0 -183
  184. package/dist/cli/commands/compile-controller.d.ts +0 -17
  185. package/dist/cli/commands/compiled-flow.d.ts +0 -25
  186. package/dist/cli/commands/compiled-flow.js +0 -112
  187. package/dist/cli/commands/control-path.d.ts +0 -11
  188. package/dist/cli/commands/control-path.js +0 -72
  189. package/dist/cli/commands/create-method-wizard.d.ts +0 -76
  190. package/dist/cli/commands/create-method-wizard.js +0 -465
  191. package/dist/cli/commands/create.d.ts +0 -8
  192. package/dist/cli/commands/create.js +0 -189
  193. package/dist/cli/commands/default.d.ts +0 -2
  194. package/dist/cli/commands/default.js +0 -39
  195. package/dist/cli/commands/executor-flow.d.ts +0 -29
  196. package/dist/cli/commands/executor-flow.js +0 -163
  197. package/dist/cli/commands/init.d.ts +0 -11
  198. package/dist/cli/commands/init.js +0 -784
  199. package/dist/cli/commands/list.d.ts +0 -2
  200. package/dist/cli/commands/list.js +0 -30
  201. package/dist/cli/commands/preparation-selection.d.ts +0 -6
  202. package/dist/cli/commands/preparation-selection.js +0 -11
  203. package/dist/cli/commands/source-config-wizard.d.ts +0 -52
  204. package/dist/cli/commands/source-config-wizard.js +0 -680
  205. package/dist/cli/commands/test-flow.d.ts +0 -58
  206. package/dist/cli/commands/test-flow.js +0 -231
  207. package/dist/cli/commands/verify.d.ts +0 -2
  208. package/dist/cli/commands/verify.js +0 -94
  209. package/dist/compiler-ui/_next/static/chunks/0d~8t0zm6545p.js +0 -118
  210. package/dist/compiler-ui/_next/static/chunks/0xnel.ax9a.2c.css +0 -3
  211. package/dist/packages/compiler/raw-snapshot.d.ts +0 -49
  212. package/dist/packages/compiler/raw-snapshot.js +0 -101
  213. package/dist/packages/method-package/index.d.ts +0 -11
  214. package/dist/packages/method-package/index.js +0 -11
  215. package/dist/packages/method-package/method-stage-policy.d.ts +0 -5
  216. package/dist/packages/method-package/method-stage-policy.js +0 -31
  217. package/dist/packages/project-model/project-paths.d.ts +0 -12
  218. package/dist/packages/project-model/project-paths.js +0 -33
  219. /package/dist/compiler-ui/_next/static/{j7pdoqWrl4YJrJUVnksbl → C6vVfy3aeYuIO3d2AoNvC}/_buildManifest.js +0 -0
  220. /package/dist/compiler-ui/_next/static/{j7pdoqWrl4YJrJUVnksbl → C6vVfy3aeYuIO3d2AoNvC}/_clientMiddlewareManifest.js +0 -0
  221. /package/dist/compiler-ui/_next/static/{j7pdoqWrl4YJrJUVnksbl → C6vVfy3aeYuIO3d2AoNvC}/_ssgManifest.js +0 -0
  222. /package/dist/{cli/commands/check-draft.js → packages/local-service/readiness-check-draft.js} +0 -0
@@ -0,0 +1,246 @@
1
+ import { z } from "zod";
2
+ export declare const ActionValueIdPattern: RegExp;
3
+ export declare const ActionValueIdSchema: z.ZodString;
4
+ export declare const OptionalActionValueIdSchema: z.ZodString;
5
+ export declare const SourceReadinessCheckActionValueSchema: z.ZodObject<{
6
+ question: z.ZodString;
7
+ answer: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strict>;
9
+ export declare const PreparationSetupActionValuesSchema: z.ZodObject<{
10
+ name: z.ZodString;
11
+ path: z.ZodString;
12
+ about: z.ZodString;
13
+ method: z.ZodOptional<z.ZodString>;
14
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
15
+ question: z.ZodString;
16
+ answer: z.ZodOptional<z.ZodString>;
17
+ }, z.core.$strict>>>;
18
+ max_attempts: z.ZodOptional<z.ZodNumber>;
19
+ max_loops: z.ZodOptional<z.ZodNumber>;
20
+ readiness_notes: z.ZodOptional<z.ZodString>;
21
+ prepare_after_setup: z.ZodOptional<z.ZodBoolean>;
22
+ setup_mode: z.ZodOptional<z.ZodEnum<{
23
+ create: "create";
24
+ "select-method": "select-method";
25
+ }>>;
26
+ }, z.core.$strict>;
27
+ export declare const MethodAuthoringActionValuesSchema: z.ZodObject<{
28
+ method_id: z.ZodOptional<z.ZodString>;
29
+ base_method_id: z.ZodOptional<z.ZodString>;
30
+ reference_method_id: z.ZodOptional<z.ZodString>;
31
+ label: z.ZodOptional<z.ZodString>;
32
+ hint: z.ZodOptional<z.ZodString>;
33
+ task_prompt: z.ZodString;
34
+ portable_output: z.ZodOptional<z.ZodString>;
35
+ readiness_notes: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strict>;
37
+ export type PreparationSetupActionValues = z.infer<typeof PreparationSetupActionValuesSchema>;
38
+ export type MethodAuthoringActionValues = z.infer<typeof MethodAuthoringActionValuesSchema>;
39
+ export type SourceReadinessCheckActionValue = z.infer<typeof SourceReadinessCheckActionValueSchema>;
40
+ export declare const INTERF_SERVICE_ACTIONS: {
41
+ readonly createPreparation: {
42
+ readonly id: "create-preparation";
43
+ readonly serviceAction: "preparation-setup";
44
+ readonly title: "Create Preparation";
45
+ readonly description: "Save a Source Folder + Method binding so future runs can be invoked by name.";
46
+ };
47
+ readonly compileRun: {
48
+ readonly id: "compile-run";
49
+ readonly serviceAction: "compile";
50
+ readonly title: "Compile Method";
51
+ readonly description: "Run the chosen Method against this Source Folder and write portable context.";
52
+ };
53
+ readonly selectMethod: {
54
+ readonly id: "select-method";
55
+ readonly serviceAction: "preparation-setup";
56
+ readonly title: "Select Method";
57
+ readonly description: "Choose which Method this saved binding should use for future runs.";
58
+ };
59
+ readonly createMethod: {
60
+ readonly id: "create-method";
61
+ readonly serviceAction: "method-authoring";
62
+ readonly title: "Draft Method";
63
+ readonly description: "Draft a reusable local Method that captures a repeatable agent-work pattern.";
64
+ };
65
+ readonly methodChange: {
66
+ readonly id: "method-change";
67
+ readonly serviceAction: "method-change";
68
+ readonly title: "Method Change";
69
+ readonly description: "Modify, duplicate, or remove an existing Method.";
70
+ };
71
+ readonly preparationChange: {
72
+ readonly id: "preparation-change";
73
+ readonly serviceAction: "preparation-change";
74
+ readonly title: "Preparation Change";
75
+ readonly description: "Modify, duplicate, or remove an existing Preparation.";
76
+ };
77
+ readonly confirmAction: {
78
+ readonly id: "confirm-action";
79
+ readonly serviceAction: "action-proposal";
80
+ readonly title: "Send Request";
81
+ readonly description: "Confirm the typed Interf service request before it runs.";
82
+ };
83
+ readonly checkReadiness: {
84
+ readonly id: "check-readiness";
85
+ readonly serviceAction: "test";
86
+ readonly title: "Check Readiness";
87
+ readonly description: "Run saved readiness checks against this Preparation.";
88
+ };
89
+ readonly draftReadinessChecks: {
90
+ readonly id: "draft-readiness-checks";
91
+ readonly serviceAction: "readiness-check-draft";
92
+ readonly title: "Draft Readiness Checks";
93
+ readonly description: "Ask the configured local executor to draft saved readiness checks.";
94
+ };
95
+ readonly improvePreparation: {
96
+ readonly id: "improve-preparation";
97
+ readonly serviceAction: "method-improvement";
98
+ readonly title: "Improve Method";
99
+ readonly description: "Use readiness evidence to refine the Method this saved binding uses.";
100
+ };
101
+ };
102
+ export type InterfServiceActionKey = keyof typeof INTERF_SERVICE_ACTIONS;
103
+ export type InterfServiceActionId = typeof INTERF_SERVICE_ACTIONS[InterfServiceActionKey]["id"];
104
+ export declare function methodAuthoringTaskPrompt(values: MethodAuthoringActionValues): string;
105
+ export type ActionInputValues = Record<string, string>;
106
+ export type ActionValues = Record<string, unknown>;
107
+ export type ActionInputDraft = {
108
+ confirmed?: boolean;
109
+ preparation: string;
110
+ message: string;
111
+ values?: ActionValues;
112
+ };
113
+ export type ActionFieldOption = {
114
+ label: string;
115
+ value: string;
116
+ };
117
+ export type ActionFieldDefinition = {
118
+ advanced?: boolean;
119
+ context: string;
120
+ help: string;
121
+ label: string;
122
+ name: string;
123
+ options?: ActionFieldOption[];
124
+ placeholder?: string;
125
+ readOnly?: boolean;
126
+ rows?: number;
127
+ type: "text" | "textarea" | "select";
128
+ };
129
+ export type ActionInputDefinition = {
130
+ buildDraft: (values: ActionInputValues) => ActionInputDraft;
131
+ description: string;
132
+ fields: ActionFieldDefinition[];
133
+ id: string;
134
+ initialValues: ActionInputValues;
135
+ normalizeValues?: (values: ActionInputValues) => ActionInputValues;
136
+ schema: z.ZodType<ActionInputValues>;
137
+ submitLabel: string;
138
+ title: string;
139
+ validateRequest?: (values: ActionInputValues) => Record<string, string>;
140
+ valuesPreview: (values: ActionInputValues) => ActionValues;
141
+ };
142
+ export type MethodActionChoice = {
143
+ id: string;
144
+ label?: string | null;
145
+ };
146
+ export type CreatePreparationActionContext = {
147
+ existingNames: string[];
148
+ methods: MethodActionChoice[];
149
+ prepDataDir: string;
150
+ suggestedName: string;
151
+ };
152
+ export type CompileRunActionContext = {
153
+ about: string;
154
+ methodId: string;
155
+ name: string;
156
+ sourceFolderPath: string;
157
+ };
158
+ export type SelectMethodActionContext = {
159
+ about: string;
160
+ checks?: SourceReadinessCheckActionValue[];
161
+ currentMethodId: string;
162
+ maxAttempts?: number;
163
+ maxLoops?: number;
164
+ methods: MethodActionChoice[];
165
+ name: string;
166
+ sourceFolderPath: string;
167
+ };
168
+ export type CreateMethodActionContext = {
169
+ defaultPreparation: string;
170
+ existingMethodIds: string[];
171
+ suggestedMethodId: string;
172
+ };
173
+ export type MethodChangeAction = "modify" | "duplicate" | "remove";
174
+ export type PreparationChangeAction = "modify" | "duplicate" | "remove";
175
+ export type ReadinessAction = "check" | "draft-checks" | "improve";
176
+ export type MethodChangeActionContext = {
177
+ action: MethodChangeAction;
178
+ existingMethodIds: string[];
179
+ hint?: string | null;
180
+ label?: string | null;
181
+ methodId: string;
182
+ preparation: string;
183
+ };
184
+ export type PreparationChangeActionContext = {
185
+ about?: string | null;
186
+ action: PreparationChangeAction;
187
+ existingNames: string[];
188
+ methodId?: string | null;
189
+ preparation: string;
190
+ sourceFolderPath: string;
191
+ };
192
+ export declare function packageSchemaFieldErrors(result: z.ZodSafeParseResult<unknown>, pathMap: Record<string, string>): Record<string, string>;
193
+ export declare function slugForActionId(value: string): string;
194
+ export declare function uniqueActionId(seed: string, usedIds: Set<string>): string;
195
+ export declare function titleFromActionId(value: string): string;
196
+ export declare function maybeActionValue(value: string): string | undefined;
197
+ export declare function methodChoiceOptions(methods: MethodActionChoice[]): ActionFieldOption[];
198
+ export declare function methodTaskPromptFromInput(values: ActionInputValues): string;
199
+ export declare function preparationSetupRequestFromActionValues(input: unknown): {
200
+ preparation: {
201
+ about: string;
202
+ checks: SourceReadinessCheckActionValue[];
203
+ max_attempts?: number;
204
+ max_loops?: number;
205
+ method: string;
206
+ name: string;
207
+ path: string;
208
+ };
209
+ prepare_after_setup: boolean;
210
+ setup_mode: "create" | "select-method";
211
+ };
212
+ export declare function methodAuthoringRequestFromActionValues(input: unknown, context: {
213
+ checks?: SourceReadinessCheckActionValue[];
214
+ preparation?: string | null;
215
+ sourceFolderPath: string;
216
+ }): {
217
+ base_method_id?: string;
218
+ checks: SourceReadinessCheckActionValue[];
219
+ hint: string;
220
+ label: string;
221
+ method_id: string;
222
+ preparation?: string;
223
+ reference_method_id?: string;
224
+ source_folder_path: string;
225
+ task_prompt: string;
226
+ };
227
+ export declare function methodImprovementActionValues(options: {
228
+ checks?: SourceReadinessCheckActionValue[];
229
+ hint?: string;
230
+ label?: string;
231
+ methodId: string;
232
+ preparationName: string;
233
+ }): MethodAuthoringActionValues;
234
+ export declare function buildCreatePreparationActionDefinition(context: CreatePreparationActionContext): ActionInputDefinition;
235
+ export declare function buildCompileRunActionDefinition(context: CompileRunActionContext): ActionInputDefinition;
236
+ export declare function buildCompileRunActionDraft(context: CompileRunActionContext): ActionInputDraft;
237
+ export declare function buildSelectMethodActionDefinition(context: SelectMethodActionContext): ActionInputDefinition;
238
+ export declare function buildCreateMethodActionDefinition(context: CreateMethodActionContext): ActionInputDefinition;
239
+ export declare function buildMethodChangeActionDefinition(context: MethodChangeActionContext): ActionInputDefinition;
240
+ export declare function buildPreparationChangeActionDefinition(context: PreparationChangeActionContext): ActionInputDefinition;
241
+ export declare function buildConfirmActionDefinition(draft: ActionInputDraft): ActionInputDefinition;
242
+ export declare function buildReadinessActionDraft(options: {
243
+ action: ReadinessAction;
244
+ methodId?: string;
245
+ preparation: string;
246
+ }): ActionInputDraft;