@leitwerk-dev/test-support 0.2.0 → 0.3.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 (130) hide show
  1. package/dist/{chunk-KPSK7EMY.js → chunk-5BZSJ4OO.js} +22 -157
  2. package/dist/chunk-5BZSJ4OO.js.map +1 -0
  3. package/dist/{chunk-2IICIB6D.js → chunk-E4Y7XND5.js} +40 -4
  4. package/dist/chunk-E4Y7XND5.js.map +1 -0
  5. package/dist/{chunk-JUH3LUYK.js → chunk-EXHTWQAE.js} +5 -1
  6. package/dist/chunk-EXHTWQAE.js.map +1 -0
  7. package/dist/chunk-KJVNI2UP.js +17 -0
  8. package/dist/chunk-KJVNI2UP.js.map +1 -0
  9. package/dist/{chunk-7I4OCTF3.js → chunk-OE4NHDVS.js} +15 -4
  10. package/dist/chunk-OE4NHDVS.js.map +1 -0
  11. package/dist/chunk-P2FF4AP7.js +72 -0
  12. package/dist/chunk-P2FF4AP7.js.map +1 -0
  13. package/dist/chunk-RY6Y6V5E.js +54 -0
  14. package/dist/chunk-RY6Y6V5E.js.map +1 -0
  15. package/dist/compact-process-detail-fixture.d.ts +3 -0
  16. package/dist/compact-process-detail-fixture.d.ts.map +1 -1
  17. package/dist/extension-integration-harness.d.ts +357 -0
  18. package/dist/extension-integration-harness.d.ts.map +1 -0
  19. package/dist/fakes/fake-git-ops.d.ts +12 -0
  20. package/dist/fakes/fake-git-ops.d.ts.map +1 -1
  21. package/dist/fakes/fake-llm.d.ts +11 -0
  22. package/dist/fakes/fake-llm.d.ts.map +1 -1
  23. package/dist/fakes/index.d.ts +1 -1
  24. package/dist/fakes/index.d.ts.map +1 -1
  25. package/dist/fakes/index.js +105 -4
  26. package/dist/fakes/index.js.map +1 -1
  27. package/dist/fixtures.d.ts +2 -0
  28. package/dist/fixtures.d.ts.map +1 -1
  29. package/dist/fixtures.js +157 -2
  30. package/dist/fixtures.js.map +1 -1
  31. package/dist/http-launch.d.ts +2 -1
  32. package/dist/http-launch.d.ts.map +1 -1
  33. package/dist/index.d.ts +6 -13
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +13 -119
  36. package/dist/index.js.map +1 -1
  37. package/dist/integration-harness.d.ts +36 -1
  38. package/dist/integration-harness.d.ts.map +1 -1
  39. package/dist/integration.d.ts +3 -3
  40. package/dist/integration.d.ts.map +1 -1
  41. package/dist/integration.js +693 -13
  42. package/dist/integration.js.map +1 -1
  43. package/dist/local-git.d.ts +105 -8
  44. package/dist/local-git.d.ts.map +1 -1
  45. package/dist/local-git.js +155 -24
  46. package/dist/local-git.js.map +1 -1
  47. package/dist/model-provider-fixtures.d.ts +9 -1
  48. package/dist/model-provider-fixtures.d.ts.map +1 -1
  49. package/dist/observations.d.ts +7 -0
  50. package/dist/observations.d.ts.map +1 -0
  51. package/dist/polling.d.ts +1 -0
  52. package/dist/polling.d.ts.map +1 -1
  53. package/dist/process-driver.d.ts +5 -1
  54. package/dist/process-driver.d.ts.map +1 -1
  55. package/dist/process-fixtures.d.ts +56 -0
  56. package/dist/process-fixtures.d.ts.map +1 -0
  57. package/dist/process.d.ts +440 -0
  58. package/dist/process.d.ts.map +1 -0
  59. package/dist/process.js +484 -0
  60. package/dist/process.js.map +1 -0
  61. package/dist/question-fixtures.d.ts +2 -0
  62. package/dist/question-fixtures.d.ts.map +1 -1
  63. package/dist/server-extension-test-harness.d.ts +43 -3
  64. package/dist/server-extension-test-harness.d.ts.map +1 -1
  65. package/dist/stub-worker-entry.js +1 -1
  66. package/dist/supported-question-fixtures.d.ts +96 -0
  67. package/dist/supported-question-fixtures.d.ts.map +1 -0
  68. package/dist/test-capability.d.ts +9 -0
  69. package/dist/test-capability.d.ts.map +1 -0
  70. package/dist/test-diagnostics.d.ts +14 -0
  71. package/dist/test-diagnostics.d.ts.map +1 -0
  72. package/dist/worker-testing/in-process-worker-spawn.d.ts +19 -1
  73. package/dist/worker-testing/in-process-worker-spawn.d.ts.map +1 -1
  74. package/dist/worker-testing/index.d.ts +6 -7
  75. package/dist/worker-testing/index.d.ts.map +1 -1
  76. package/dist/worker-testing/index.js +32 -22
  77. package/dist/worker-testing/index.js.map +1 -1
  78. package/dist/worker-testing/schema-driven-stub-pi.d.ts +5 -0
  79. package/dist/worker-testing/schema-driven-stub-pi.d.ts.map +1 -1
  80. package/dist/worker-testing/stub-pi-controls.d.ts +4 -0
  81. package/dist/worker-testing/stub-pi-controls.d.ts.map +1 -1
  82. package/dist/worker-testing/stub-pi-tree-handle.d.ts +78 -2
  83. package/dist/worker-testing/stub-pi-tree-handle.d.ts.map +1 -1
  84. package/dist/worker-testing/worker-runtime-harness.d.ts +37 -2
  85. package/dist/worker-testing/worker-runtime-harness.d.ts.map +1 -1
  86. package/dist/worker-testing/worker-start-payload.d.ts +17 -1
  87. package/dist/worker-testing/worker-start-payload.d.ts.map +1 -1
  88. package/package.json +14 -8
  89. package/src/compact-process-detail-fixture.ts +9 -1
  90. package/src/extension-integration-harness.ts +1059 -0
  91. package/src/fakes/fake-git-ops.ts +12 -0
  92. package/src/fakes/fake-llm.ts +11 -0
  93. package/src/fakes/index.ts +1 -1
  94. package/src/fixtures.ts +16 -0
  95. package/src/http-launch.ts +2 -1
  96. package/src/index.ts +13 -42
  97. package/src/integration-harness.ts +100 -9
  98. package/src/integration.ts +23 -9
  99. package/src/local-git.ts +196 -45
  100. package/src/model-provider-fixtures.ts +15 -2
  101. package/src/observations.ts +19 -0
  102. package/src/polling.ts +1 -0
  103. package/src/process-driver.ts +7 -1
  104. package/src/process-fixtures.ts +123 -0
  105. package/src/process.ts +768 -0
  106. package/src/question-fixtures.ts +2 -0
  107. package/src/server-extension-test-harness.ts +64 -7
  108. package/src/supported-question-fixtures.ts +168 -0
  109. package/src/test-capability.ts +9 -0
  110. package/src/test-diagnostics.ts +69 -0
  111. package/src/worker-testing/in-process-worker-spawn.ts +44 -4
  112. package/src/worker-testing/index.ts +4 -30
  113. package/src/worker-testing/schema-driven-stub-pi.ts +8 -1
  114. package/src/worker-testing/stub-pi-controls.ts +4 -0
  115. package/src/worker-testing/stub-pi-tree-handle.ts +87 -3
  116. package/src/worker-testing/worker-runtime-harness.ts +57 -6
  117. package/src/worker-testing/worker-start-payload.ts +17 -1
  118. package/dist/chunk-2IICIB6D.js.map +0 -1
  119. package/dist/chunk-3MQO3NCX.js +0 -15
  120. package/dist/chunk-3MQO3NCX.js.map +0 -1
  121. package/dist/chunk-7I4OCTF3.js.map +0 -1
  122. package/dist/chunk-7ZK5QRGP.js +0 -98
  123. package/dist/chunk-7ZK5QRGP.js.map +0 -1
  124. package/dist/chunk-JUH3LUYK.js.map +0 -1
  125. package/dist/chunk-KPSK7EMY.js.map +0 -1
  126. package/dist/chunk-MV4W6NOO.js +0 -105
  127. package/dist/chunk-MV4W6NOO.js.map +0 -1
  128. package/dist/test-app.d.ts +0 -23
  129. package/dist/test-app.d.ts.map +0 -1
  130. package/src/test-app.ts +0 -82
@@ -1,31 +1,38 @@
1
1
  import path from "node:path";
2
2
 
3
+ /** @internal */
3
4
  export type RepoTemplate = Record<string, string>;
4
5
 
5
6
  /**
6
7
  * Structurally compatible with RunRootGitOps — call sites annotate
7
8
  * `const git: RunRootGitOps = new FakeGitOps(...)` so TS catches drift.
8
9
  */
10
+ /** @internal */
9
11
  export class FakeGitOps {
12
+ /** @internal */
10
13
  readonly operations: string[] = [];
11
14
  private readonly files = new Map<string, string>();
12
15
  private readonly repoState = new Map<string, { currentBranch: string; branches: Set<string> }>();
13
16
 
17
+ /** @internal */
14
18
  constructor(private readonly templates: Map<string, RepoTemplate>) {}
15
19
 
16
20
  private abs(repoDir: string, filePath: string): string {
17
21
  return path.normalize(path.join(repoDir, filePath));
18
22
  }
19
23
 
24
+ /** @internal */
20
25
  async writeFile(repoDir: string, filePath: string, content: string): Promise<void> {
21
26
  this.operations.push(`writeFile:${filePath}`);
22
27
  this.files.set(this.abs(repoDir, filePath), content);
23
28
  }
24
29
 
30
+ /** @internal */
25
31
  async readFile(repoDir: string, filePath: string): Promise<string | null> {
26
32
  return this.files.get(this.abs(repoDir, filePath)) ?? null;
27
33
  }
28
34
 
35
+ /** @internal */
29
36
  async clone(repoLocator: string, targetDir: string): Promise<void> {
30
37
  this.operations.push(`clone:${path.basename(targetDir)}`);
31
38
  const n = path.normalize(targetDir);
@@ -48,6 +55,7 @@ export class FakeGitOps {
48
55
  });
49
56
  }
50
57
 
58
+ /** @internal */
51
59
  async checkout(repoDir: string, branch: string): Promise<void> {
52
60
  const st = this.repoState.get(path.normalize(repoDir));
53
61
  if (!st) {
@@ -57,6 +65,7 @@ export class FakeGitOps {
57
65
  st.currentBranch = branch;
58
66
  }
59
67
 
68
+ /** @internal */
60
69
  async createBranch(repoDir: string, branchName: string, _startPoint: string): Promise<void> {
61
70
  const st = this.repoState.get(path.normalize(repoDir));
62
71
  if (!st) {
@@ -65,11 +74,13 @@ export class FakeGitOps {
65
74
  st.branches.add(branchName);
66
75
  }
67
76
 
77
+ /** @internal */
68
78
  async branchExists(repoDir: string, branchName: string): Promise<boolean> {
69
79
  const st = this.repoState.get(path.normalize(repoDir));
70
80
  return st?.branches.has(branchName) ?? false;
71
81
  }
72
82
 
83
+ /** @internal */
73
84
  async getHeadSha(repoDir: string): Promise<string> {
74
85
  const st = this.repoState.get(path.normalize(repoDir));
75
86
  if (!st) {
@@ -81,6 +92,7 @@ export class FakeGitOps {
81
92
  .padEnd(40, "0");
82
93
  }
83
94
 
95
+ /** @internal */
84
96
  async listFiles(repoDir: string, pattern: string): Promise<string[]> {
85
97
  const normRoot = path.normalize(repoDir);
86
98
  const prefix = normRoot + path.sep;
@@ -1,26 +1,36 @@
1
+ /** @public */
1
2
  export interface LlmResponse {
3
+ /** @public */
2
4
  content: string;
5
+ /** @public */
3
6
  toolCalls?: Array<{
7
+ /** @public */
4
8
  name: string;
9
+ /** @public */
5
10
  arguments: Record<string, unknown>;
6
11
  }>;
7
12
  }
8
13
 
14
+ /** @public */
9
15
  export type LlmHandler = (prompt: string) => LlmResponse;
10
16
 
11
17
  /**
12
18
  * Deterministic in-memory LLM fake for automated system tests.
13
19
  * Responds with scripted outputs based on registered handlers.
14
20
  */
21
+ /** @public */
15
22
  export class FakeLlmProvider {
16
23
  private handlers: LlmHandler[] = [];
17
24
  private callIndex = 0;
25
+ /** @public */
18
26
  readonly calls: string[] = [];
19
27
 
28
+ /** @public */
20
29
  onPrompt(handler: LlmHandler): void {
21
30
  this.handlers.push(handler);
22
31
  }
23
32
 
33
+ /** @public */
24
34
  respond(prompt: string): LlmResponse {
25
35
  this.calls.push(prompt);
26
36
  const handler = this.handlers[this.callIndex % this.handlers.length];
@@ -31,6 +41,7 @@ export class FakeLlmProvider {
31
41
  return { content: "No handler registered for this prompt." };
32
42
  }
33
43
 
44
+ /** @internal */
34
45
  reset(): void {
35
46
  this.handlers = [];
36
47
  this.callIndex = 0;
@@ -1,2 +1,2 @@
1
1
  export { FakeGitOps, type RepoTemplate } from "./fake-git-ops.js";
2
- export { FakeLlmProvider, type LlmResponse } from "./fake-llm.js";
2
+ export { FakeLlmProvider } from "./fake-llm.js";
package/src/fixtures.ts CHANGED
@@ -1,2 +1,18 @@
1
1
  export { createCompactProcessDetailFixtureFactory } from "./compact-process-detail-fixture.js";
2
+ export {
3
+ createProcessFixture,
4
+ createProjectFixture,
5
+ type ProcessFixtureOptions,
6
+ type ProcessFixturePosition,
7
+ type ProjectFixtureOptions,
8
+ } from "./process-fixtures.js";
2
9
  export { createTestQuestion, createTestQuestionRequest } from "./question-fixtures.js";
10
+ export {
11
+ createQuestionFixture,
12
+ createQuestionRequestFixture,
13
+ type QuestionFixture,
14
+ type QuestionFixtureOptions,
15
+ type QuestionFixtureResolution,
16
+ type QuestionRequestFixture,
17
+ type QuestionRequestFixtureOptions,
18
+ } from "./supported-question-fixtures.js";
@@ -1,6 +1,6 @@
1
1
  import type { LaunchRun } from "@leitwerk-dev/domain";
2
2
 
3
- /** Accepts a launch-run request shape and waits for its admitted process commit. */
3
+ /** Accepts a launch-run request shape and waits for its admitted process commit. @internal */
4
4
  export async function postImmediateLaunchRequest(
5
5
  input: string | URL | Request,
6
6
  init?: RequestInit,
@@ -16,6 +16,7 @@ export async function postImmediateLaunchRequest(
16
16
  * Admits an immediate launch through the public asynchronous HTTP contract and waits until the
17
17
  * process commit or a pre-commit failure is observable. Intended for integration-test setup.
18
18
  */
19
+ /** @public */
19
20
  export async function postImmediateLaunch(
20
21
  serverBaseUrl: string,
21
22
  launcherId: string,
package/src/index.ts CHANGED
@@ -1,49 +1,20 @@
1
- export {
2
- createTestConfigSnapshot as testConfigSnapshot,
3
- createTestIpcEnvelopeBase as baseEnvelope,
4
- flushAsyncWork,
5
- } from "@leitwerk-dev/worker-protocol";
6
- export { createCompactProcessDetailFixtureFactory } from "./compact-process-detail-fixture.js";
7
- export { FakeGitOps, type RepoTemplate } from "./fakes/fake-git-ops.js";
8
- export { FakeLlmProvider, type LlmResponse } from "./fakes/fake-llm.js";
1
+ import { createInMemoryExternalWriteLog as createInMemoryExternalWriteLogImpl } from "./server-extension-test-harness.js";
2
+
3
+ export { FakeLlmProvider } from "./fakes/fake-llm.js";
9
4
  export { postImmediateLaunch, postImmediateLaunchRequest } from "./http-launch.js";
10
5
  export {
11
- createInProcessWorkerSpawn,
12
- type InProcessWorkerSpawnOptions,
13
- } from "./in-process-worker.js";
14
- export {
15
- createIntegrationHarness,
16
- type IntegrationHarness,
17
- type IntegrationHarnessOptions,
18
- } from "./integration-harness.js";
19
- export { fixtureModelProviders } from "./model-provider-fixtures.js";
20
- export { waitForValue } from "./polling.js";
6
+ type FixtureModelProviderSet,
7
+ fixtureModelProviders,
8
+ } from "./model-provider-fixtures.js";
21
9
  export {
22
- createInMemoryExternalWriteLog,
23
10
  createPollingTestExtension,
24
11
  createTestServerSetupCapability,
25
12
  createToolCollector,
26
- type InMemoryExternalWriteLog,
27
- type ServerExtensionTestHarness,
28
- setupServerExtensionTest,
29
13
  } from "./server-extension-test-harness.js";
30
- export { createTestApp, type TestApp, type TestAppOptions } from "./test-app.js";
31
- export {
32
- createSchemaDrivenStubPiFactory,
33
- createSchemaDrivenToolCallScriptResolver,
34
- synthesizeStubArgValue,
35
- synthesizeStubToolArgs,
36
- } from "./worker-testing/schema-driven-stub-pi.js";
37
- export {
38
- createStubToolScriptController,
39
- type StubToolScriptController,
40
- } from "./worker-testing/stub-pi-controls.js";
41
- export {
42
- StubPiTreeHandle,
43
- StubPiTreeHandleFactory,
44
- type StubPiTreeHandleFactoryOptions,
45
- type StubToolCallScriptCall,
46
- type StubToolCallScriptItem,
47
- type StubToolCallScriptResolver,
48
- type StubToolCallScriptResolverContext,
49
- } from "./worker-testing/stub-pi-tree-handle.js";
14
+
15
+ /** @internal */
16
+ export function createInMemoryExternalWriteLog(): ReturnType<
17
+ typeof createInMemoryExternalWriteLogImpl
18
+ > {
19
+ return createInMemoryExternalWriteLogImpl();
20
+ }
@@ -1,3 +1,6 @@
1
+ import { mkdtempSync, rmSync } from "node:fs";
2
+ import { tmpdir } from "node:os";
3
+ import path from "node:path";
1
4
  import type { ExtensionCatalog } from "@leitwerk-dev/extension-runtime";
2
5
  import type { ProvidedCapability } from "@leitwerk-dev/process-sdk";
3
6
  import {
@@ -7,30 +10,104 @@ import {
7
10
  getDefaultConfig,
8
11
  type LeitwerkConfig,
9
12
  } from "@leitwerk-dev/server";
10
- import { createInProcessWorkerSpawn } from "./in-process-worker.js";
13
+ import {
14
+ createInProcessWorkerSpawn,
15
+ type InProcessWorkerSpawnOptions,
16
+ } from "./in-process-worker.js";
11
17
 
18
+ /** @public */
12
19
  export interface IntegrationHarness<
13
20
  TResources extends Record<string, unknown> = Record<string, never>,
14
21
  > {
22
+ /** @public */
15
23
  ctx: AppContext;
24
+ /** @public */
25
+ close(): Promise<void>;
26
+ /** @internal */
16
27
  config: LeitwerkConfig;
28
+ /** @public */
17
29
  address: string;
30
+ /** @internal */
18
31
  resources: TResources;
19
32
  }
20
33
 
34
+ /** @public */
21
35
  export interface IntegrationHarnessOptions<
22
36
  TResources extends Record<string, unknown> = Record<string, never>,
23
37
  > {
38
+ /** @internal */
24
39
  config?: LeitwerkConfig;
40
+ /** @public */
25
41
  configOverride?: (config: LeitwerkConfig) => void;
42
+ /** @public */
26
43
  appOverrides?: Partial<AppOptions>;
44
+ /** @internal */
27
45
  listen?: boolean;
28
- inProcessWorkers?: boolean;
46
+ /** Start background services when binding a listener. Defaults to true. @public */
47
+ backgroundServices?: boolean;
48
+ /** @internal */
49
+ inProcessWorkers?: boolean | Omit<InProcessWorkerSpawnOptions, "extensionCatalog">;
50
+ /** @public */
29
51
  extensionCatalog: ExtensionCatalog | Promise<ExtensionCatalog>;
52
+ /** @internal */
30
53
  preProvidedCapabilities?: readonly ProvidedCapability[];
54
+ /** @internal */
31
55
  resources?: TResources;
32
56
  }
33
57
 
58
+ /** Owns disposable file-backed storage; close retains it for the next open, dispose removes it. @internal */
59
+ export function createPersistentIntegrationFixture(
60
+ prefix: string,
61
+ configure?: (config: LeitwerkConfig) => void,
62
+ ) {
63
+ const root = mkdtempSync(path.join(tmpdir(), prefix));
64
+ let harness: IntegrationHarness | undefined;
65
+ /** @internal */
66
+ function createConfig() {
67
+ const config = getDefaultConfig();
68
+ config.storage.sqlite_path = path.join(root, "state.sqlite");
69
+ config.storage.process_workspaces_dir = path.join(root, "workspaces");
70
+ config.storage.tree_files_dir = path.join(root, "trees");
71
+ config.pi.agent_dir = path.join(root, "pi");
72
+ configure?.(config);
73
+ return config;
74
+ }
75
+ /** @internal */
76
+ async function close() {
77
+ await harness?.close();
78
+ harness = undefined;
79
+ }
80
+ return {
81
+ /** @internal */
82
+ root,
83
+ /** @internal */
84
+ createConfig,
85
+ /** @internal */
86
+ context() {
87
+ if (!harness) throw new Error("Fixture is not open");
88
+ return harness.ctx;
89
+ },
90
+ /** @internal */
91
+ async open(options: IntegrationHarnessOptions) {
92
+ harness = await createIntegrationHarness({
93
+ ...options,
94
+ config: options.config ?? createConfig(),
95
+ });
96
+ return harness;
97
+ },
98
+ /** @internal */
99
+ close,
100
+ /** @internal */
101
+ async dispose() {
102
+ try {
103
+ await close();
104
+ } finally {
105
+ rmSync(root, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 });
106
+ }
107
+ },
108
+ };
109
+ }
110
+ /** @public */
34
111
  export async function createIntegrationHarness<
35
112
  TResources extends Record<string, unknown> = Record<string, never>,
36
113
  >(opts: IntegrationHarnessOptions<TResources>): Promise<IntegrationHarness<TResources>> {
@@ -52,24 +129,38 @@ export async function createIntegrationHarness<
52
129
 
53
130
  if (opts.inProcessWorkers !== false && !appOpts.localWorkerSpawnImpl) {
54
131
  appOpts.localWorkerSpawnImpl = createInProcessWorkerSpawn({
132
+ ...(typeof opts.inProcessWorkers === "object" ? opts.inProcessWorkers : {}),
55
133
  extensionCatalog,
56
134
  });
57
135
  }
58
136
  const ctx = await createAppContext(appOpts);
59
137
 
60
138
  let address = "";
61
- if (opts.listen !== false || config.workers.runner === "local") {
62
- await ctx.app.listen({ host: "127.0.0.1", port: 0 });
63
- const info = ctx.app.server.address();
64
- const port = typeof info === "object" && info ? info.port : 0;
65
- address = `http://127.0.0.1:${port}`;
66
- ctx.config.server.base_url = address;
139
+ try {
140
+ if (opts.listen !== false) {
141
+ if (opts.backgroundServices !== false) {
142
+ ({ address } = await ctx.listen({
143
+ host: "127.0.0.1",
144
+ port: 0,
145
+ useBoundAddressAsBaseUrl: true,
146
+ }));
147
+ } else {
148
+ address = await ctx.app.listen({ host: "127.0.0.1", port: 0 });
149
+ ctx.config.server.base_url = address;
150
+ }
151
+ }
152
+ } catch (error) {
153
+ await ctx.close().catch(() => {});
154
+ throw error;
67
155
  }
68
156
 
69
157
  return {
70
158
  ctx,
159
+ close: () => ctx.close(),
71
160
  config,
72
- address,
161
+ get address() {
162
+ return address || (ctx.app.server.listening ? ctx.config.server.base_url : "");
163
+ },
73
164
  resources: opts.resources ?? ({} as TResources),
74
165
  };
75
166
  }
@@ -1,15 +1,29 @@
1
+ export {
2
+ type AcceptedTurnFixture,
3
+ type AcceptedTurnReference,
4
+ createExtensionIntegrationHarness,
5
+ type ExtensionIntegrationHarness,
6
+ type ExtensionIntegrationHarnessOptions,
7
+ type ExtensionIntegrationProcess,
8
+ type ExtensionIntegrationSnapshot,
9
+ type ExtensionTestRequest,
10
+ type ExtensionTestResponse,
11
+ type IntegrationAnnotationObservation,
12
+ type IntegrationApprovalObservation,
13
+ type IntegrationEventObservation,
14
+ type IntegrationInputObservation,
15
+ type IntegrationLeafObservation,
16
+ type IntegrationProcessInput,
17
+ type IntegrationPromptObservation,
18
+ type IntegrationToolCall,
19
+ type IntegrationTurnResult,
20
+ type IntegrationTurnScript,
21
+ } from "./extension-integration-harness.js";
1
22
  export {
2
23
  createIntegrationHarness,
24
+ createPersistentIntegrationFixture,
3
25
  type IntegrationHarness,
4
- type IntegrationHarnessOptions,
5
26
  } from "./integration-harness.js";
6
27
  export { waitForValue } from "./polling.js";
7
28
  export { createProcessDriver } from "./process-driver.js";
8
- export {
9
- createInMemoryExternalWriteLog,
10
- createTestServerSetupCapability,
11
- type InMemoryExternalWriteLog,
12
- type ServerExtensionTestHarness,
13
- setupServerExtensionTest,
14
- } from "./server-extension-test-harness.js";
15
- export { createTestApp, type TestApp, type TestAppOptions } from "./test-app.js";
29
+ export { createTestServerSetupCapability } from "./server-extension-test-harness.js";