@interf/compiler 0.9.5 → 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 (214) hide show
  1. package/README.md +96 -92
  2. package/TRADEMARKS.md +2 -13
  3. package/agent-skills/interf-actions/SKILL.md +95 -36
  4. package/agent-skills/interf-actions/references/cli.md +118 -51
  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 +8 -25
  13. package/dist/cli/commands/compile.js +75 -360
  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 -26
  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 +68 -111
  29. package/dist/cli/commands/test.d.ts +6 -14
  30. package/dist/cli/commands/test.js +65 -181
  31. package/dist/cli/commands/web.d.ts +0 -9
  32. package/dist/cli/commands/web.js +147 -120
  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/{18a8f2jkv3z.c.css → 045gole2ojo3g.css} +1 -1
  44. package/dist/compiler-ui/_next/static/chunks/{177mvn4rse235.js → 17t-lulmyawg5.js} +9 -9
  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/packages/agents/lib/shells.d.ts +1 -1
  56. package/dist/packages/agents/lib/shells.js +111 -52
  57. package/dist/packages/agents/lib/user-config.d.ts +4 -2
  58. package/dist/packages/agents/lib/user-config.js +15 -7
  59. package/dist/packages/compiler/compiled-paths.d.ts +9 -2
  60. package/dist/packages/compiler/compiled-paths.js +30 -15
  61. package/dist/packages/compiler/compiled-pipeline.js +23 -3
  62. package/dist/packages/compiler/compiled-stage-plan.js +4 -0
  63. package/dist/packages/compiler/compiled-target.d.ts +1 -1
  64. package/dist/packages/compiler/compiled-target.js +1 -1
  65. package/dist/packages/compiler/index.d.ts +1 -0
  66. package/dist/packages/compiler/index.js +1 -0
  67. package/dist/packages/compiler/lib/schema.d.ts +26 -31
  68. package/dist/packages/compiler/lib/schema.js +1 -12
  69. package/dist/packages/compiler/method-runs.d.ts +2 -3
  70. package/dist/packages/compiler/method-runs.js +2 -3
  71. package/dist/packages/compiler/reset.js +3 -1
  72. package/dist/packages/compiler/runtime-contracts.js +0 -3
  73. package/dist/packages/compiler/runtime-prompt.js +1 -1
  74. package/dist/packages/compiler/source-files.d.ts +46 -0
  75. package/dist/packages/compiler/source-files.js +149 -0
  76. package/dist/packages/compiler/state-artifacts.d.ts +3 -2
  77. package/dist/packages/compiler/state-artifacts.js +4 -3
  78. package/dist/packages/compiler/state-io.d.ts +3 -2
  79. package/dist/packages/compiler/state-io.js +11 -5
  80. package/dist/packages/compiler/state-paths.d.ts +2 -1
  81. package/dist/packages/compiler/state-paths.js +6 -3
  82. package/dist/packages/compiler/state-view.d.ts +3 -2
  83. package/dist/packages/compiler/state-view.js +18 -28
  84. package/dist/packages/compiler/state.d.ts +4 -4
  85. package/dist/packages/compiler/state.js +3 -3
  86. package/dist/packages/contracts/index.d.ts +1 -1
  87. package/dist/packages/contracts/lib/preparation-paths.d.ts +117 -0
  88. package/dist/packages/contracts/lib/preparation-paths.js +177 -0
  89. package/dist/packages/contracts/lib/schema.d.ts +85 -5
  90. package/dist/packages/contracts/lib/schema.js +46 -1
  91. package/dist/packages/execution/lib/schema.d.ts +50 -50
  92. package/dist/packages/execution/lib/schema.js +1 -1
  93. package/dist/packages/local-service/action-definitions.d.ts +14 -14
  94. package/dist/packages/local-service/action-definitions.js +27 -28
  95. package/dist/packages/local-service/action-planner.js +2 -1
  96. package/dist/packages/local-service/client.d.ts +51 -52
  97. package/dist/packages/local-service/client.js +132 -140
  98. package/dist/packages/local-service/connection-config.d.ts +38 -0
  99. package/dist/packages/local-service/connection-config.js +75 -0
  100. package/dist/packages/local-service/index.d.ts +11 -7
  101. package/dist/packages/local-service/index.js +6 -4
  102. package/dist/packages/local-service/instance-paths.d.ts +100 -0
  103. package/dist/packages/local-service/instance-paths.js +165 -0
  104. package/dist/packages/local-service/lib/schema.d.ts +405 -2297
  105. package/dist/packages/local-service/lib/schema.js +146 -62
  106. package/dist/packages/local-service/native-run-handlers.js +3 -3
  107. package/dist/packages/local-service/preparation-store.d.ts +92 -0
  108. package/dist/packages/local-service/preparation-store.js +171 -0
  109. package/dist/packages/local-service/routes.d.ts +33 -16
  110. package/dist/packages/local-service/routes.js +44 -20
  111. package/dist/packages/local-service/run-observability.js +11 -11
  112. package/dist/packages/local-service/runtime-caches.d.ts +76 -0
  113. package/dist/packages/local-service/runtime-caches.js +191 -0
  114. package/dist/packages/local-service/runtime-event-applier.d.ts +12 -0
  115. package/dist/packages/local-service/runtime-event-applier.js +177 -0
  116. package/dist/packages/local-service/runtime-persistence.d.ts +47 -0
  117. package/dist/packages/local-service/runtime-persistence.js +137 -0
  118. package/dist/packages/local-service/runtime-proposal-helpers.d.ts +35 -0
  119. package/dist/packages/local-service/runtime-proposal-helpers.js +251 -0
  120. package/dist/packages/local-service/runtime-resource-builders.d.ts +52 -0
  121. package/dist/packages/local-service/runtime-resource-builders.js +149 -0
  122. package/dist/packages/local-service/runtime.d.ts +197 -43
  123. package/dist/packages/local-service/runtime.js +800 -974
  124. package/dist/packages/local-service/server.d.ts +15 -0
  125. package/dist/packages/local-service/server.js +641 -273
  126. package/dist/packages/local-service/service-registry.d.ts +47 -0
  127. package/dist/packages/local-service/service-registry.js +137 -0
  128. package/dist/packages/method-authoring/method-authoring.d.ts +1 -1
  129. package/dist/packages/method-authoring/method-authoring.js +2 -2
  130. package/dist/packages/method-authoring/method-improvement.js +1 -1
  131. package/dist/packages/method-package/builtin-compiled-method.d.ts +4 -5
  132. package/dist/packages/method-package/builtin-compiled-method.js +8 -14
  133. package/dist/packages/method-package/context-interface.d.ts +4 -40
  134. package/dist/packages/method-package/context-interface.js +1 -23
  135. package/dist/packages/method-package/interf-method-package.d.ts +4 -4
  136. package/dist/packages/method-package/interf-method-package.js +21 -33
  137. package/dist/packages/method-package/local-methods.d.ts +10 -6
  138. package/dist/packages/method-package/local-methods.js +57 -39
  139. package/dist/packages/method-package/method-definitions.d.ts +8 -34
  140. package/dist/packages/method-package/method-definitions.js +49 -37
  141. package/dist/packages/method-package/method-helpers.d.ts +1 -13
  142. package/dist/packages/method-package/method-helpers.js +8 -42
  143. package/dist/packages/method-package/method-stage-runner.js +2 -2
  144. package/dist/packages/method-package/user-methods.d.ts +17 -0
  145. package/dist/packages/method-package/user-methods.js +77 -0
  146. package/dist/packages/project-model/index.d.ts +0 -1
  147. package/dist/packages/project-model/index.js +0 -1
  148. package/dist/packages/project-model/interf-detect.d.ts +8 -3
  149. package/dist/packages/project-model/interf-detect.js +34 -34
  150. package/dist/packages/project-model/interf-scaffold.d.ts +3 -3
  151. package/dist/packages/project-model/interf-scaffold.js +23 -32
  152. package/dist/packages/project-model/lib/schema.js +38 -1
  153. package/dist/packages/project-model/preparation-entries.d.ts +5 -5
  154. package/dist/packages/project-model/preparation-entries.js +14 -14
  155. package/dist/packages/project-model/source-config.d.ts +11 -11
  156. package/dist/packages/project-model/source-config.js +74 -46
  157. package/dist/packages/project-model/source-folders.d.ts +5 -5
  158. package/dist/packages/project-model/source-folders.js +14 -14
  159. package/dist/packages/shared/filesystem.d.ts +7 -0
  160. package/dist/packages/shared/filesystem.js +97 -10
  161. package/dist/packages/testing/lib/schema.d.ts +10 -10
  162. package/dist/packages/testing/lib/schema.js +2 -2
  163. package/dist/packages/testing/readiness-check-run.d.ts +4 -4
  164. package/dist/packages/testing/readiness-check-run.js +36 -36
  165. package/dist/packages/testing/test-execution.js +6 -6
  166. package/dist/packages/testing/test-paths.js +4 -3
  167. package/dist/packages/testing/test-sandbox.d.ts +0 -1
  168. package/dist/packages/testing/test-sandbox.js +14 -30
  169. package/dist/packages/testing/test-targets.d.ts +1 -1
  170. package/dist/packages/testing/test-targets.js +6 -6
  171. package/dist/packages/testing/test.d.ts +1 -1
  172. package/dist/packages/testing/test.js +1 -1
  173. package/package.json +3 -4
  174. package/CHANGELOG.md +0 -93
  175. package/LICENSE +0 -183
  176. package/dist/cli/commands/action-input-cli.d.ts +0 -25
  177. package/dist/cli/commands/action-input-cli.js +0 -73
  178. package/dist/cli/commands/control-path.d.ts +0 -11
  179. package/dist/cli/commands/control-path.js +0 -72
  180. package/dist/cli/commands/create-method-wizard.d.ts +0 -64
  181. package/dist/cli/commands/create-method-wizard.js +0 -434
  182. package/dist/cli/commands/create.d.ts +0 -6
  183. package/dist/cli/commands/create.js +0 -183
  184. package/dist/cli/commands/default.d.ts +0 -2
  185. package/dist/cli/commands/default.js +0 -39
  186. package/dist/cli/commands/executor-flow.d.ts +0 -29
  187. package/dist/cli/commands/executor-flow.js +0 -163
  188. package/dist/cli/commands/init.d.ts +0 -26
  189. package/dist/cli/commands/init.js +0 -771
  190. package/dist/cli/commands/list.d.ts +0 -2
  191. package/dist/cli/commands/list.js +0 -30
  192. package/dist/cli/commands/preparation-action.d.ts +0 -8
  193. package/dist/cli/commands/preparation-action.js +0 -29
  194. package/dist/cli/commands/preparation-picker.d.ts +0 -5
  195. package/dist/cli/commands/preparation-picker.js +0 -36
  196. package/dist/cli/commands/preparation-selection.d.ts +0 -6
  197. package/dist/cli/commands/preparation-selection.js +0 -11
  198. package/dist/cli/commands/service-action-flow.d.ts +0 -9
  199. package/dist/cli/commands/service-action-flow.js +0 -19
  200. package/dist/cli/commands/source-config-wizard.d.ts +0 -51
  201. package/dist/cli/commands/source-config-wizard.js +0 -670
  202. package/dist/cli/commands/verify.d.ts +0 -2
  203. package/dist/cli/commands/verify.js +0 -94
  204. package/dist/packages/compiler/raw-snapshot.d.ts +0 -49
  205. package/dist/packages/compiler/raw-snapshot.js +0 -101
  206. package/dist/packages/method-package/index.d.ts +0 -11
  207. package/dist/packages/method-package/index.js +0 -11
  208. package/dist/packages/method-package/method-stage-policy.d.ts +0 -5
  209. package/dist/packages/method-package/method-stage-policy.js +0 -31
  210. package/dist/packages/project-model/project-paths.d.ts +0 -12
  211. package/dist/packages/project-model/project-paths.js +0 -33
  212. /package/dist/compiler-ui/_next/static/{84FaeF3EzBF9kKTMjSEVN → C6vVfy3aeYuIO3d2AoNvC}/_buildManifest.js +0 -0
  213. /package/dist/compiler-ui/_next/static/{84FaeF3EzBF9kKTMjSEVN → C6vVfy3aeYuIO3d2AoNvC}/_clientMiddlewareManifest.js +0 -0
  214. /package/dist/compiler-ui/_next/static/{84FaeF3EzBF9kKTMjSEVN → C6vVfy3aeYuIO3d2AoNvC}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  import { createHash } from "node:crypto";
2
2
  import { existsSync, mkdirSync, writeFileSync } from "node:fs";
3
- import { isAbsolute, join, relative, resolve, sep } from "node:path";
3
+ import { isAbsolute, relative, resolve, sep } from "node:path";
4
4
  import { refreshCompiledBootstrapGuidance } from "../agents/lib/compiled-bootstrap.js";
5
5
  import { readInterfConfig, } from "./interf.js";
6
6
  import { seedCompiledMethodPackage } from "../method-package/interf-method-package.js";
@@ -11,14 +11,14 @@ import { SourceFolderConfigSchema, } from "./lib/schema.js";
11
11
  import { slugify } from "../shared/naming.js";
12
12
  import { assertPathWithinRoot, isPathWithinRoot } from "../shared/path-guards.js";
13
13
  import { defaultControlPathForCompiled, resolveSourceControlPathForCompiled, compiledInterfConfigPath, compiledInterfRoot, } from "../compiler/compiled-paths.js";
14
- import { projectInterfRoot, PROJECT_INTERF_DIR } from "./project-paths.js";
15
- export const SOURCE_FOLDER_CONFIG_FILE = "interf.json";
16
- export const SOURCE_FOLDER_CONFIG_PATH = `${PROJECT_INTERF_DIR}/${SOURCE_FOLDER_CONFIG_FILE}`;
17
- export function sourceFolderConfigPath(sourcePath) {
18
- return join(projectInterfRoot(sourcePath), SOURCE_FOLDER_CONFIG_FILE);
14
+ import { asPreparationDataDir, preparationConfigPath, PREPARATION_CONFIG_FILENAME, } from "../contracts/lib/preparation-paths.js";
15
+ export const SOURCE_FOLDER_CONFIG_FILE = PREPARATION_CONFIG_FILENAME;
16
+ export const SOURCE_FOLDER_CONFIG_PATH = SOURCE_FOLDER_CONFIG_FILE;
17
+ export function sourceFolderConfigPath(prepDataDir) {
18
+ return preparationConfigPath(asPreparationDataDir(prepDataDir));
19
19
  }
20
- export function resolveSourceFolderConfigPath(sourcePath) {
21
- return sourceFolderConfigPath(sourcePath);
20
+ export function resolveSourceFolderConfigPath(prepDataDir) {
21
+ return sourceFolderConfigPath(prepDataDir);
22
22
  }
23
23
  function readSourceFolderConfigFile(filePath) {
24
24
  return readJsonFileWithSchema(filePath, "Interf project config", SourceFolderConfigSchema);
@@ -55,8 +55,8 @@ export function fingerprintReadinessChecks(checks) {
55
55
  .digest("hex")
56
56
  .slice(0, 16);
57
57
  }
58
- export function loadSourceFolderConfig(sourcePath) {
59
- const filePath = resolveSourceFolderConfigPath(sourcePath);
58
+ export function loadSourceFolderConfig(prepDataDir) {
59
+ const filePath = resolveSourceFolderConfigPath(prepDataDir);
60
60
  if (!existsSync(filePath))
61
61
  return null;
62
62
  return readSourceFolderConfigFile(filePath);
@@ -100,9 +100,9 @@ export function findSourcePreparationConfig(config, preparationName) {
100
100
  export function configuredSourceFolderPath(config) {
101
101
  return config?.source_folder?.path ?? null;
102
102
  }
103
- export function resolveConfiguredSourceFolderPath(sourcePath, config = loadSourceFolderConfig(sourcePath)) {
103
+ export function resolveConfiguredSourceFolderPath(prepDataDir, config = loadSourceFolderConfig(prepDataDir)) {
104
104
  const configuredPath = configuredSourceFolderPath(config);
105
- return configuredPath ? resolve(sourcePath, configuredPath) : null;
105
+ return configuredPath ? resolve(prepDataDir, configuredPath) : null;
106
106
  }
107
107
  function toWritableSourceProjectConfig(config) {
108
108
  const preparations = config?.preparations ?? [];
@@ -130,17 +130,17 @@ function toWritableSourcePreparationConfig(preparation) {
130
130
  checks: preparation.checks,
131
131
  };
132
132
  }
133
- export function saveSourceFolderConfig(sourcePath, config) {
134
- const existing = loadSourceFolderConfig(sourcePath);
133
+ export function saveSourceFolderConfig(prepDataDir, config) {
134
+ const existing = loadSourceFolderConfig(prepDataDir);
135
135
  const mergedConfig = {
136
136
  ...(existing?.source_folder && !config.source_folder ? { source_folder: existing.source_folder } : {}),
137
137
  ...config,
138
138
  };
139
- mkdirSync(projectInterfRoot(sourcePath), { recursive: true });
140
- writeFileSync(sourceFolderConfigPath(sourcePath), JSON.stringify(toWritableSourceProjectConfig(mergedConfig), null, 2) + "\n");
139
+ mkdirSync(prepDataDir, { recursive: true });
140
+ writeFileSync(sourceFolderConfigPath(prepDataDir), JSON.stringify(toWritableSourceProjectConfig(mergedConfig), null, 2) + "\n");
141
141
  }
142
- export function appendSourcePreparationChecks(sourcePath, preparationName, checks) {
143
- const existing = loadSourceFolderConfig(sourcePath);
142
+ export function appendSourcePreparationChecks(prepDataDir, preparationName, checks) {
143
+ const existing = loadSourceFolderConfig(prepDataDir);
144
144
  const currentPreparation = findSourcePreparationConfig(existing, preparationName);
145
145
  const otherPreparations = listSourcePreparationConfigs(existing).filter((preparation) => preparation.name !== preparationName);
146
146
  const currentChecks = currentPreparation?.checks ?? [];
@@ -152,15 +152,15 @@ export function appendSourcePreparationChecks(sourcePath, preparationName, check
152
152
  }),
153
153
  checks: [...currentChecks, ...checks],
154
154
  };
155
- saveSourceFolderConfig(sourcePath, {
155
+ saveSourceFolderConfig(prepDataDir, {
156
156
  preparations: [
157
157
  nextPreparation,
158
158
  ...otherPreparations,
159
159
  ],
160
160
  });
161
161
  }
162
- export function upsertSourcePreparationConfig(sourcePath, preparationConfig, options = {}) {
163
- const existing = loadSourceFolderConfig(sourcePath);
162
+ export function upsertSourcePreparationConfig(prepDataDir, preparationConfig, options = {}) {
163
+ const existing = loadSourceFolderConfig(prepDataDir);
164
164
  const preparations = listSourcePreparationConfigs(existing);
165
165
  const candidateNames = Array.from(new Set([preparationConfig.name, options.matchName].filter((value) => Boolean(value))));
166
166
  const existingIndex = preparations.findIndex((entry) => candidateNames.includes(entry.name));
@@ -170,17 +170,17 @@ export function upsertSourcePreparationConfig(sourcePath, preparationConfig, opt
170
170
  else {
171
171
  preparations.push(normalizeSourcePreparationConfig(preparationConfig));
172
172
  }
173
- saveSourceFolderConfig(sourcePath, {
173
+ saveSourceFolderConfig(prepDataDir, {
174
174
  preparations,
175
175
  });
176
176
  }
177
- export function removeSourcePreparationConfig(sourcePath, preparationName) {
178
- const existing = loadSourceFolderConfig(sourcePath);
177
+ export function removeSourcePreparationConfig(prepDataDir, preparationName) {
178
+ const existing = loadSourceFolderConfig(prepDataDir);
179
179
  const preparations = listSourcePreparationConfigs(existing);
180
180
  const nextPreparations = preparations.filter((entry) => entry.name !== preparationName);
181
181
  if (nextPreparations.length === preparations.length)
182
182
  return false;
183
- saveSourceFolderConfig(sourcePath, {
183
+ saveSourceFolderConfig(prepDataDir, {
184
184
  preparations: nextPreparations,
185
185
  });
186
186
  return true;
@@ -214,8 +214,8 @@ export function loadCompiledPreparationConfig(compiledPath) {
214
214
  const config = readInterfConfig(compiledPath);
215
215
  if (!config)
216
216
  return null;
217
- const projectPath = resolveSourceControlPathForCompiled(compiledPath);
218
- const configuredPreparations = listSourcePreparationConfigs(loadSourceFolderConfig(projectPath));
217
+ const prepDataDir = resolveSourceControlPathForCompiled(compiledPath);
218
+ const configuredPreparations = listSourcePreparationConfigs(loadSourceFolderConfig(prepDataDir));
219
219
  const defaultPreparationPath = configuredPreparations.length === 1
220
220
  ? configuredPreparations[0].path
221
221
  : `./${config.name}`;
@@ -225,10 +225,10 @@ export function loadCompiledPreparationConfig(compiledPath) {
225
225
  const preparationPath = sourceBinding
226
226
  ? (() => {
227
227
  const sourceAbsolutePath = resolve(compiledPath, sourceBinding);
228
- if (!isPathWithinRoot(projectPath, sourceAbsolutePath)) {
228
+ if (!isPathWithinRoot(prepDataDir, sourceAbsolutePath)) {
229
229
  return sourceAbsolutePath;
230
230
  }
231
- return relative(projectPath, sourceAbsolutePath).split(sep).join("/") || defaultPreparationPath;
231
+ return relative(prepDataDir, sourceAbsolutePath).split(sep).join("/") || defaultPreparationPath;
232
232
  })()
233
233
  : defaultPreparationPath;
234
234
  return sourcePreparationConfigFromInterfConfig(config, preparationPath);
@@ -240,8 +240,8 @@ export function saveCompiledInterfConfig(compiledPath, config) {
240
240
  }
241
241
  export function syncCompiledInterfConfigFromSourcePreparationConfig(compiledPath, preparationConfig) {
242
242
  const current = readInterfConfig(compiledPath);
243
- const projectPath = resolveSourceControlPathForCompiled(compiledPath);
244
- const preparationAbsolutePath = resolveSourcePreparationPath(projectPath, preparationConfig);
243
+ const prepDataDir = resolveSourceControlPathForCompiled(compiledPath);
244
+ const preparationAbsolutePath = resolveSourcePreparationPath(prepDataDir, preparationConfig);
245
245
  const preparationRelativePath = relative(compiledPath, preparationAbsolutePath).split(sep).join("/") || ".";
246
246
  const methodId = methodIdForSourcePreparationConfig(preparationConfig)
247
247
  ?? methodIdForSourcePreparationConfig(current)
@@ -259,7 +259,7 @@ export function syncCompiledInterfConfigFromSourcePreparationConfig(compiledPath
259
259
  ...(!current ? {
260
260
  type: "compiled",
261
261
  source: {
262
- path: "./raw",
262
+ path: preparationRelativePath,
263
263
  },
264
264
  } : {}),
265
265
  type: "compiled",
@@ -275,18 +275,17 @@ export function syncCompiledInterfConfigFromSourcePreparationConfig(compiledPath
275
275
  checks: preparationConfig.checks,
276
276
  method_origin: methodOrigin,
277
277
  source: {
278
- path: current?.source?.path ?? "./raw",
278
+ path: preparationRelativePath,
279
279
  control_path: defaultControlPathForCompiled(compiledPath),
280
280
  preparation_path: preparationRelativePath,
281
281
  },
282
282
  };
283
283
  const saved = saveCompiledInterfConfig(compiledPath, nextConfig);
284
284
  if (methodChanged) {
285
- const sourcePath = projectPath;
286
- const selectedMethod = getCompiledMethod(methodId, { sourcePath });
285
+ const selectedMethod = getCompiledMethod(methodId, { prepDataDir });
287
286
  seedCompiledMethodPackage({
288
287
  compiledPath,
289
- sourcePath,
288
+ prepDataDir,
290
289
  methodId: selectedMethod.id,
291
290
  });
292
291
  }
@@ -298,7 +297,7 @@ function buildLoadedTestSpec(options) {
298
297
  return null;
299
298
  const testId = options.id ?? slugify(options.name);
300
299
  return {
301
- id: options.targetType === "raw" ? `${testId}-raw` : testId,
300
+ id: options.targetType === "source-files" ? `${testId}-source-files` : testId,
302
301
  filePath: options.filePath,
303
302
  type: options.targetType,
304
303
  name: options.name,
@@ -307,8 +306,8 @@ function buildLoadedTestSpec(options) {
307
306
  };
308
307
  }
309
308
  export function buildTestSpecFromSourceFolderConfig(options) {
310
- const { sourcePath, targetName, targetType = "compiled" } = options;
311
- const config = loadSourceFolderConfig(sourcePath);
309
+ const { prepDataDir, targetName, targetType = "compiled" } = options;
310
+ const config = loadSourceFolderConfig(prepDataDir);
312
311
  if (!config)
313
312
  return null;
314
313
  const preparations = listSourcePreparationConfigs(config);
@@ -321,14 +320,14 @@ export function buildTestSpecFromSourceFolderConfig(options) {
321
320
  : getDefaultSourcePreparationConfig(config);
322
321
  if (!match)
323
322
  return null;
324
- const configPath = resolveSourceFolderConfigPath(sourcePath);
323
+ const configPath = resolveSourceFolderConfigPath(prepDataDir);
325
324
  return buildLoadedTestSpec({
326
325
  id: match.id,
327
326
  name: match.name,
328
327
  about: match.about,
329
328
  checks: match.checks,
330
329
  targetType,
331
- filePath: targetType === "raw"
330
+ filePath: targetType === "source-files"
332
331
  ? `${configPath}#preparations/${match.name}:source-files`
333
332
  : `${configPath}#preparations/${match.name}:portable-context`,
334
333
  defaultDescription: `Derived from saved Preparation checks in ${SOURCE_FOLDER_CONFIG_PATH}`,
@@ -345,17 +344,46 @@ export function buildTestSpecFromCompiledPreparationConfig(options) {
345
344
  about: config.about,
346
345
  checks: config.checks ?? [],
347
346
  targetType,
348
- filePath: targetType === "raw"
349
- ? `${configPath}#checks:file-as-is`
347
+ filePath: targetType === "source-files"
348
+ ? `${configPath}#checks:source-files`
350
349
  : `${configPath}#checks:compiled`,
351
350
  defaultDescription: "Derived from checks in the portable context config.",
352
351
  });
353
352
  }
354
- export function resolveSourcePreparationPath(projectPath, preparationConfig) {
353
+ /**
354
+ * System path prefixes the runtime must never operate on, even when an
355
+ * absolute `preparation.path` was authored by hand. The schema-level
356
+ * refinement in `SourcePreparationConfigSchema` is the primary line of
357
+ * defense; this is the in-process backstop for callers that hand-craft a
358
+ * SourcePreparationConfig at runtime (e.g. method authoring helpers that
359
+ * construct a config from an InterfConfig).
360
+ */
361
+ const FORBIDDEN_PREPARATION_PATH_PREFIXES = [
362
+ "/etc",
363
+ "/sys",
364
+ "/proc",
365
+ "/dev",
366
+ "/var/run",
367
+ "/var/lib",
368
+ "/usr",
369
+ "/bin",
370
+ "/sbin",
371
+ "/boot",
372
+ ];
373
+ function rejectForbiddenPreparationPath(absolutePath) {
374
+ for (const prefix of FORBIDDEN_PREPARATION_PATH_PREFIXES) {
375
+ if (absolutePath === prefix || absolutePath.startsWith(`${prefix}/`)) {
376
+ throw new Error(`Preparation path may not target system directory ${prefix}: ${absolutePath}`);
377
+ }
378
+ }
379
+ }
380
+ export function resolveSourcePreparationPath(prepDataDir, preparationConfig) {
355
381
  const configuredPath = preparationConfig.path.trim();
356
- const resolvedPath = resolve(projectPath, configuredPath);
382
+ const resolvedPath = resolve(prepDataDir, configuredPath);
357
383
  if (isAbsolute(configuredPath)) {
384
+ rejectForbiddenPreparationPath(resolvedPath);
358
385
  return resolvedPath;
359
386
  }
360
- return assertPathWithinRoot(projectPath, resolvedPath, "Source folder path");
387
+ rejectForbiddenPreparationPath(resolvedPath);
388
+ return assertPathWithinRoot(prepDataDir, resolvedPath, "Source folder path");
361
389
  }
@@ -1,11 +1,11 @@
1
- export declare function listVisibleSourceFolders(projectPath: string): string[];
1
+ export declare function listVisibleSourceFolders(prepDataDir: string): string[];
2
2
  export declare function isReservedSourcePreparationPath(relativePath: string): boolean;
3
- export declare function normalizeSourcePreparationPathForConfig(projectPath: string, value: string): string;
3
+ export declare function normalizeSourcePreparationPathForConfig(prepDataDir: string, value: string): string;
4
4
  export declare function defaultPreparationNameForPath(sourceFolderPath: string): string;
5
- export declare function findSingleSourceFolderCandidate(projectPath: string): string | null;
6
- export declare function listSourceFolderChoices(projectPath?: string): Array<{
5
+ export declare function findSingleSourceFolderCandidate(prepDataDir: string): string | null;
6
+ export declare function listSourceFolderChoices(prepDataDir?: string): Array<{
7
7
  value: string;
8
8
  label: string;
9
9
  hint: string;
10
10
  }>;
11
- export declare function defaultSourcePreparationPathForPrompt(name: string, introStyle: "first" | "additional" | "edit", projectPath?: string): string;
11
+ export declare function defaultSourcePreparationPathForPrompt(name: string, introStyle: "first" | "additional" | "edit", prepDataDir?: string): string;
@@ -12,10 +12,10 @@ const IGNORED_SOURCE_FOLDER_ENTRIES = new Set([
12
12
  "interf.json",
13
13
  "node_modules",
14
14
  ]);
15
- export function listVisibleSourceFolders(projectPath) {
15
+ export function listVisibleSourceFolders(prepDataDir) {
16
16
  let rootEntries = [];
17
17
  try {
18
- rootEntries = readdirSync(projectPath);
18
+ rootEntries = readdirSync(prepDataDir);
19
19
  }
20
20
  catch {
21
21
  return [];
@@ -24,7 +24,7 @@ export function listVisibleSourceFolders(projectPath) {
24
24
  const visibleDirectories = [];
25
25
  for (const entry of visibleEntries) {
26
26
  try {
27
- const entryPath = join(projectPath, entry);
27
+ const entryPath = join(prepDataDir, entry);
28
28
  if (statSync(entryPath).isDirectory()) {
29
29
  visibleDirectories.push(entry);
30
30
  }
@@ -42,14 +42,14 @@ export function isReservedSourcePreparationPath(relativePath) {
42
42
  normalized === ".interf" ||
43
43
  normalized.startsWith(".interf/");
44
44
  }
45
- export function normalizeSourcePreparationPathForConfig(projectPath, value) {
45
+ export function normalizeSourcePreparationPathForConfig(prepDataDir, value) {
46
46
  const trimmedValue = value.trim();
47
- const resolvedPath = resolveSourcePreparationPath(projectPath, { path: trimmedValue });
48
- const relativePath = relative(projectPath, resolvedPath).split(sep).join("/") || ".";
47
+ const resolvedPath = resolveSourcePreparationPath(prepDataDir, { path: trimmedValue });
48
+ const relativePath = relative(prepDataDir, resolvedPath).split(sep).join("/") || ".";
49
49
  if (relativePath === ".") {
50
50
  throw new Error("Pick a Source Folder, not the Interf Workspace itself.");
51
51
  }
52
- if (isAbsolute(trimmedValue) && !isPathWithinRoot(projectPath, resolvedPath)) {
52
+ if (isAbsolute(trimmedValue) && !isPathWithinRoot(prepDataDir, resolvedPath)) {
53
53
  if (!existsSync(resolvedPath)) {
54
54
  throw new Error("Pick an existing source folder.");
55
55
  }
@@ -77,22 +77,22 @@ export function defaultPreparationNameForPath(sourceFolderPath) {
77
77
  .filter((segment) => segment.length > 0 && segment !== ".");
78
78
  return slugify(segments[segments.length - 1] ?? "") || DEFAULT_PREPARATION_NAME;
79
79
  }
80
- export function findSingleSourceFolderCandidate(projectPath) {
81
- const visibleDirectories = listVisibleSourceFolders(projectPath);
80
+ export function findSingleSourceFolderCandidate(prepDataDir) {
81
+ const visibleDirectories = listVisibleSourceFolders(prepDataDir);
82
82
  if (visibleDirectories.length !== 1) {
83
83
  return null;
84
84
  }
85
85
  return `./${visibleDirectories[0]}`;
86
86
  }
87
- export function listSourceFolderChoices(projectPath = process.cwd()) {
88
- return listVisibleSourceFolders(projectPath).map((entry) => ({
87
+ export function listSourceFolderChoices(prepDataDir = process.cwd()) {
88
+ return listVisibleSourceFolders(prepDataDir).map((entry) => ({
89
89
  value: `./${entry}`,
90
90
  label: entry,
91
91
  hint: `Use ./${entry} as the source folder`,
92
92
  }));
93
93
  }
94
- export function defaultSourcePreparationPathForPrompt(name, introStyle, projectPath = process.cwd()) {
95
- const namedFolderPath = join(projectPath, name);
94
+ export function defaultSourcePreparationPathForPrompt(name, introStyle, prepDataDir = process.cwd()) {
95
+ const namedFolderPath = join(prepDataDir, name);
96
96
  if (existsSync(namedFolderPath)) {
97
97
  try {
98
98
  if (statSync(namedFolderPath).isDirectory()) {
@@ -104,7 +104,7 @@ export function defaultSourcePreparationPathForPrompt(name, introStyle, projectP
104
104
  }
105
105
  }
106
106
  if (introStyle === "first") {
107
- return findSingleSourceFolderCandidate(projectPath) ?? `./${name}`;
107
+ return findSingleSourceFolderCandidate(prepDataDir) ?? `./${name}`;
108
108
  }
109
109
  return `./${name}`;
110
110
  }
@@ -1,2 +1,9 @@
1
1
  export declare function countFilesRecursive(dirPath: string): number;
2
2
  export declare function listFilesRecursive(dirPath: string, predicate?: (filePath: string) => boolean): string[];
3
+ /**
4
+ * Async variant of {@link listFilesRecursive}. Uses promise-based
5
+ * `readdir` + `realpath` so directory walks on large source folders do
6
+ * not block the event loop. Symlink cycles are skipped via a
7
+ * canonical-path visited set, matching the sync variant.
8
+ */
9
+ export declare function listFilesRecursiveAsync(dirPath: string, predicate?: (filePath: string) => boolean): Promise<string[]>;
@@ -1,4 +1,5 @@
1
- import { existsSync, readdirSync, realpathSync, statSync } from "node:fs";
1
+ import { existsSync, readdirSync, realpathSync } from "node:fs";
2
+ import { readdir, realpath } from "node:fs/promises";
2
3
  import { join } from "node:path";
3
4
  export function countFilesRecursive(dirPath) {
4
5
  if (!existsSync(dirPath))
@@ -20,6 +21,23 @@ export function listFilesRecursive(dirPath, predicate) {
20
21
  });
21
22
  return files;
22
23
  }
24
+ /**
25
+ * Async variant of {@link listFilesRecursive}. Uses promise-based
26
+ * `readdir` + `realpath` so directory walks on large source folders do
27
+ * not block the event loop. Symlink cycles are skipped via a
28
+ * canonical-path visited set, matching the sync variant.
29
+ */
30
+ export async function listFilesRecursiveAsync(dirPath, predicate) {
31
+ const files = [];
32
+ if (!existsSync(dirPath))
33
+ return files;
34
+ await walkFilesRecursiveAsync(dirPath, (filePath) => {
35
+ if (!predicate || predicate(filePath)) {
36
+ files.push(filePath);
37
+ }
38
+ });
39
+ return files;
40
+ }
23
41
  function walkFilesRecursive(dirPath, onFile, visitedDirs = new Set()) {
24
42
  if (!existsSync(dirPath))
25
43
  return;
@@ -36,19 +54,88 @@ function walkFilesRecursiveInternal(dirPath, onFile, visitedDirs) {
36
54
  if (visitedDirs.has(resolvedDir))
37
55
  return;
38
56
  visitedDirs.add(resolvedDir);
39
- for (const entry of readdirSync(dirPath)) {
40
- const fullPath = join(dirPath, entry);
41
- let stat;
42
- try {
43
- stat = statSync(fullPath);
44
- }
45
- catch {
57
+ // `withFileTypes` returns Dirent entries that already encode whether
58
+ // each name is a file/dir/symlink; using them avoids the per-entry
59
+ // statSync that previously dominated the walk on large source folders.
60
+ let entries;
61
+ try {
62
+ entries = readdirSync(dirPath, { withFileTypes: true });
63
+ }
64
+ catch {
65
+ return;
66
+ }
67
+ for (const entry of entries) {
68
+ const fullPath = join(dirPath, entry.name);
69
+ if (entry.isSymbolicLink()) {
70
+ // Symlinks need realpath to detect cycles; if the target reads as
71
+ // a directory we recurse, otherwise treat the link as a file.
72
+ try {
73
+ const target = realpathSync(fullPath);
74
+ if (visitedDirs.has(target))
75
+ continue;
76
+ try {
77
+ readdirSync(target);
78
+ walkFilesRecursiveInternal(fullPath, onFile, visitedDirs);
79
+ }
80
+ catch {
81
+ onFile(fullPath);
82
+ }
83
+ }
84
+ catch {
85
+ // Broken or inaccessible link.
86
+ }
46
87
  continue;
47
88
  }
48
- if (stat.isDirectory()) {
89
+ if (entry.isDirectory()) {
49
90
  walkFilesRecursiveInternal(fullPath, onFile, visitedDirs);
50
91
  }
51
- else if (stat.isFile()) {
92
+ else if (entry.isFile()) {
93
+ onFile(fullPath);
94
+ }
95
+ }
96
+ }
97
+ async function walkFilesRecursiveAsync(dirPath, onFile, visitedDirs = new Set()) {
98
+ let resolvedDir;
99
+ try {
100
+ resolvedDir = await realpath(dirPath);
101
+ }
102
+ catch {
103
+ return;
104
+ }
105
+ if (visitedDirs.has(resolvedDir))
106
+ return;
107
+ visitedDirs.add(resolvedDir);
108
+ let entries;
109
+ try {
110
+ entries = await readdir(dirPath, { withFileTypes: true });
111
+ }
112
+ catch {
113
+ return;
114
+ }
115
+ for (const entry of entries) {
116
+ const fullPath = join(dirPath, entry.name);
117
+ if (entry.isSymbolicLink()) {
118
+ try {
119
+ const target = await realpath(fullPath);
120
+ if (visitedDirs.has(target))
121
+ continue;
122
+ try {
123
+ await readdir(target);
124
+ await walkFilesRecursiveAsync(fullPath, onFile, visitedDirs);
125
+ }
126
+ catch {
127
+ onFile(fullPath);
128
+ }
129
+ }
130
+ catch {
131
+ // Broken or inaccessible link.
132
+ }
133
+ continue;
134
+ }
135
+ if (entry.isDirectory()) {
136
+ await walkFilesRecursiveAsync(fullPath, onFile, visitedDirs);
137
+ }
138
+ else if (entry.isFile()) {
52
139
  onFile(fullPath);
53
140
  }
54
141
  }
@@ -16,8 +16,8 @@ export declare const TestCaseSchema: z.ZodObject<{
16
16
  }, z.core.$strip>;
17
17
  export declare const TestSpecSchema: z.ZodObject<{
18
18
  type: z.ZodEnum<{
19
+ "source-files": "source-files";
19
20
  compiled: "compiled";
20
- raw: "raw";
21
21
  }>;
22
22
  name: z.ZodString;
23
23
  description: z.ZodOptional<z.ZodString>;
@@ -60,8 +60,8 @@ export declare const TestCaseResultSchema: z.ZodObject<{
60
60
  export declare const TestTargetResultSchema: z.ZodObject<{
61
61
  target: z.ZodObject<{
62
62
  type: z.ZodEnum<{
63
+ "source-files": "source-files";
63
64
  compiled: "compiled";
64
- raw: "raw";
65
65
  }>;
66
66
  name: z.ZodString;
67
67
  path: z.ZodString;
@@ -98,8 +98,8 @@ export declare const TestTargetRunSchema: z.ZodObject<{
98
98
  id: z.ZodString;
99
99
  name: z.ZodString;
100
100
  type: z.ZodEnum<{
101
+ "source-files": "source-files";
101
102
  compiled: "compiled";
102
- raw: "raw";
103
103
  }>;
104
104
  file: z.ZodString;
105
105
  description: z.ZodOptional<z.ZodString>;
@@ -138,8 +138,8 @@ export declare const TestTargetRunSchema: z.ZodObject<{
138
138
  results: z.ZodArray<z.ZodObject<{
139
139
  target: z.ZodObject<{
140
140
  type: z.ZodEnum<{
141
+ "source-files": "source-files";
141
142
  compiled: "compiled";
142
- raw: "raw";
143
143
  }>;
144
144
  name: z.ZodString;
145
145
  path: z.ZodString;
@@ -170,8 +170,8 @@ export declare const TestTargetRunSchema: z.ZodObject<{
170
170
  }, z.core.$strip>>;
171
171
  }, z.core.$strip>;
172
172
  export declare const TestRunModeSchema: z.ZodEnum<{
173
+ "source-files": "source-files";
173
174
  compiled: "compiled";
174
- raw: "raw";
175
175
  both: "both";
176
176
  }>;
177
177
  export declare const TestRunTargetSummarySchema: z.ZodObject<{
@@ -184,8 +184,8 @@ export declare const TestRunTargetSummarySchema: z.ZodObject<{
184
184
  total_checks: z.ZodNumber;
185
185
  target: z.ZodObject<{
186
186
  type: z.ZodEnum<{
187
+ "source-files": "source-files";
187
188
  compiled: "compiled";
188
- raw: "raw";
189
189
  }>;
190
190
  name: z.ZodString;
191
191
  path: z.ZodString;
@@ -197,8 +197,8 @@ export declare const ReadinessCheckRunSchema: z.ZodObject<{
197
197
  version: z.ZodLiteral<1>;
198
198
  generated_at: z.ZodString;
199
199
  mode: z.ZodEnum<{
200
+ "source-files": "source-files";
200
201
  compiled: "compiled";
201
- raw: "raw";
202
202
  both: "both";
203
203
  }>;
204
204
  source_path: z.ZodString;
@@ -207,7 +207,7 @@ export declare const ReadinessCheckRunSchema: z.ZodObject<{
207
207
  name: z.ZodString;
208
208
  portable_context_path: z.ZodNullable<z.ZodString>;
209
209
  }, z.core.$strip>;
210
- raw: z.ZodNullable<z.ZodObject<{
210
+ source_files: z.ZodNullable<z.ZodObject<{
211
211
  label: z.ZodString;
212
212
  run_path: z.ZodString;
213
213
  ok: z.ZodBoolean;
@@ -217,8 +217,8 @@ export declare const ReadinessCheckRunSchema: z.ZodObject<{
217
217
  total_checks: z.ZodNumber;
218
218
  target: z.ZodObject<{
219
219
  type: z.ZodEnum<{
220
+ "source-files": "source-files";
220
221
  compiled: "compiled";
221
- raw: "raw";
222
222
  }>;
223
223
  name: z.ZodString;
224
224
  path: z.ZodString;
@@ -235,8 +235,8 @@ export declare const ReadinessCheckRunSchema: z.ZodObject<{
235
235
  total_checks: z.ZodNumber;
236
236
  target: z.ZodObject<{
237
237
  type: z.ZodEnum<{
238
+ "source-files": "source-files";
238
239
  compiled: "compiled";
239
- raw: "raw";
240
240
  }>;
241
241
  name: z.ZodString;
242
242
  path: z.ZodString;
@@ -81,7 +81,7 @@ export const TestTargetRunSchema = z.object({
81
81
  target_count: z.number(),
82
82
  results: z.array(TestTargetResultSchema),
83
83
  });
84
- export const TestRunModeSchema = z.enum(["raw", "compiled", "both"]);
84
+ export const TestRunModeSchema = z.enum(["source-files", "compiled", "both"]);
85
85
  export const TestRunTargetSummarySchema = z.object({
86
86
  label: z.string(),
87
87
  run_path: z.string(),
@@ -108,7 +108,7 @@ export const ReadinessCheckRunSchema = z.object({
108
108
  name: PreparationNameSchema,
109
109
  portable_context_path: z.string().nullable(),
110
110
  }),
111
- raw: TestRunTargetSummarySchema.nullable(),
111
+ source_files: TestRunTargetSummarySchema.nullable(),
112
112
  compiled: TestRunTargetSummarySchema.nullable(),
113
113
  summary: z.object({
114
114
  source_files_pass_rate: z.number().nullable(),
@@ -14,17 +14,17 @@ export interface ReadinessCheckRunResult {
14
14
  preparationConfig: SourcePreparationConfig;
15
15
  portableContextPath: string | null;
16
16
  mode: TestRunMode;
17
- rawOutcome: SavedReadinessCheckOutcome | null;
17
+ sourceFilesOutcome: SavedReadinessCheckOutcome | null;
18
18
  compiledOutcome: SavedReadinessCheckOutcome | null;
19
19
  readinessRunPath: string | null;
20
20
  readinessRun: ReadinessCheckRun | null;
21
21
  }
22
22
  export declare function readinessPassRate(outcome: SavedReadinessCheckOutcome): number;
23
- export declare function readSavedReadinessCheckRun(projectPath: string, preparationName: string): ReadinessCheckRun | null;
23
+ export declare function readSavedReadinessCheckRun(prepDataDir: string, preparationName: string): ReadinessCheckRun | null;
24
24
  export declare function parseReadinessCheckRun(value: unknown): ReadinessCheckRun | null;
25
25
  export declare function readReadinessCheckRunAtPath(filePath: string, label?: string): ReadinessCheckRun | null;
26
26
  export declare function readCurrentSavedReadinessCheckRun(options: {
27
- projectPath: string;
27
+ prepDataDir: string;
28
28
  preparationName: string;
29
29
  checks: SourcePreparationConfig["checks"];
30
30
  }): {
@@ -37,7 +37,7 @@ export declare function saveReadinessCheckRun(options: {
37
37
  preparationName: string;
38
38
  checksFingerprint: string;
39
39
  mode: TestRunMode;
40
- rawOutcome: SavedReadinessCheckOutcome | null;
40
+ sourceFilesOutcome: SavedReadinessCheckOutcome | null;
41
41
  compiledOutcome: SavedReadinessCheckOutcome | null;
42
42
  }): string;
43
43
  export declare function runSavedSourceFilesCheck(options: {