@interf/compiler 0.9.4 → 0.9.5

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 (103) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/README.md +2 -1
  3. package/agent-skills/interf-actions/SKILL.md +17 -11
  4. package/agent-skills/interf-actions/references/cli.md +8 -22
  5. package/dist/cli/commands/action-input-cli.d.ts +25 -0
  6. package/dist/cli/commands/action-input-cli.js +73 -0
  7. package/dist/cli/commands/compile.d.ts +3 -8
  8. package/dist/cli/commands/compile.js +13 -41
  9. package/dist/cli/commands/create-method-wizard.d.ts +0 -12
  10. package/dist/cli/commands/create-method-wizard.js +95 -126
  11. package/dist/cli/commands/create.d.ts +0 -2
  12. package/dist/cli/commands/create.js +16 -22
  13. package/dist/cli/commands/doctor.js +1 -1
  14. package/dist/cli/commands/executor-flow.js +1 -1
  15. package/dist/cli/commands/init.d.ts +16 -1
  16. package/dist/cli/commands/init.js +40 -53
  17. package/dist/cli/commands/list.js +1 -1
  18. package/dist/cli/commands/preparation-action.d.ts +8 -0
  19. package/dist/cli/commands/preparation-action.js +29 -0
  20. package/dist/cli/commands/preparation-picker.d.ts +5 -0
  21. package/dist/cli/commands/preparation-picker.js +36 -0
  22. package/dist/cli/commands/preparation-selection.js +2 -2
  23. package/dist/cli/commands/reset.js +15 -4
  24. package/dist/cli/commands/service-action-flow.d.ts +9 -0
  25. package/dist/cli/commands/service-action-flow.js +19 -0
  26. package/dist/cli/commands/source-config-wizard.d.ts +0 -1
  27. package/dist/cli/commands/source-config-wizard.js +43 -53
  28. package/dist/cli/commands/status.js +7 -123
  29. package/dist/cli/commands/test.d.ts +1 -2
  30. package/dist/cli/commands/test.js +40 -203
  31. package/dist/cli/commands/web.js +8 -262
  32. package/dist/compiler-ui/404.html +1 -1
  33. package/dist/compiler-ui/__next.__PAGE__.txt +2 -2
  34. package/dist/compiler-ui/__next._full.txt +3 -3
  35. package/dist/compiler-ui/__next._head.txt +1 -1
  36. package/dist/compiler-ui/__next._index.txt +2 -2
  37. package/dist/compiler-ui/__next._tree.txt +2 -2
  38. package/dist/compiler-ui/_next/static/chunks/177mvn4rse235.js +89 -0
  39. package/dist/compiler-ui/_next/static/chunks/18a8f2jkv3z.c.css +3 -0
  40. package/dist/compiler-ui/_not-found/__next._full.txt +2 -2
  41. package/dist/compiler-ui/_not-found/__next._head.txt +1 -1
  42. package/dist/compiler-ui/_not-found/__next._index.txt +2 -2
  43. package/dist/compiler-ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
  44. package/dist/compiler-ui/_not-found/__next._not-found.txt +1 -1
  45. package/dist/compiler-ui/_not-found/__next._tree.txt +2 -2
  46. package/dist/compiler-ui/_not-found.html +1 -1
  47. package/dist/compiler-ui/_not-found.txt +2 -2
  48. package/dist/compiler-ui/index.html +1 -1
  49. package/dist/compiler-ui/index.txt +3 -3
  50. package/dist/index.d.ts +0 -23
  51. package/dist/index.js +0 -16
  52. package/dist/packages/agents/lib/shells.js +2 -2
  53. package/dist/packages/compiler/lib/schema.d.ts +1 -1
  54. package/dist/packages/compiler/lib/schema.js +1 -1
  55. package/dist/packages/contracts/lib/schema.d.ts +0 -1
  56. package/dist/packages/contracts/lib/schema.js +0 -1
  57. package/dist/packages/execution/lib/schema.d.ts +0 -7
  58. package/dist/packages/execution/lib/schema.js +0 -1
  59. package/dist/packages/local-service/action-definitions.d.ts +246 -0
  60. package/dist/packages/local-service/action-definitions.js +1148 -0
  61. package/dist/packages/local-service/action-planner.d.ts +9 -0
  62. package/dist/packages/local-service/action-planner.js +134 -0
  63. package/dist/packages/local-service/action-values.d.ts +1 -23
  64. package/dist/packages/local-service/action-values.js +1 -31
  65. package/dist/packages/local-service/client.d.ts +48 -17
  66. package/dist/packages/local-service/client.js +95 -52
  67. package/dist/packages/local-service/index.d.ts +8 -5
  68. package/dist/packages/local-service/index.js +5 -3
  69. package/dist/packages/local-service/lib/schema.d.ts +301 -295
  70. package/dist/packages/local-service/lib/schema.js +114 -39
  71. package/dist/packages/local-service/native-run-handlers.d.ts +23 -0
  72. package/dist/{cli/commands/compile-controller.js → packages/local-service/native-run-handlers.js} +203 -19
  73. package/dist/{cli/commands/check-draft.d.ts → packages/local-service/readiness-check-draft.d.ts} +2 -2
  74. package/dist/packages/local-service/routes.d.ts +6 -1
  75. package/dist/packages/local-service/routes.js +7 -2
  76. package/dist/packages/local-service/run-observability.js +15 -17
  77. package/dist/packages/local-service/runtime.d.ts +10 -7
  78. package/dist/packages/local-service/runtime.js +427 -297
  79. package/dist/packages/local-service/server.js +94 -44
  80. package/dist/packages/method-package/method-review-paths.d.ts +1 -1
  81. package/dist/packages/method-package/method-review-paths.js +5 -5
  82. package/dist/packages/project-model/index.d.ts +1 -0
  83. package/dist/packages/project-model/index.js +1 -0
  84. package/dist/packages/project-model/preparation-entries.d.ts +11 -0
  85. package/dist/packages/project-model/preparation-entries.js +49 -0
  86. package/dist/packages/project-model/source-config.d.ts +1 -0
  87. package/dist/packages/project-model/source-config.js +12 -1
  88. package/dist/packages/testing/lib/schema.d.ts +2 -3
  89. package/dist/packages/testing/lib/schema.js +2 -3
  90. package/dist/packages/testing/readiness-check-run.d.ts +3 -3
  91. package/dist/packages/testing/readiness-check-run.js +12 -17
  92. package/package.json +5 -24
  93. package/dist/cli/commands/compile-controller.d.ts +0 -17
  94. package/dist/cli/commands/compiled-flow.d.ts +0 -25
  95. package/dist/cli/commands/compiled-flow.js +0 -112
  96. package/dist/cli/commands/test-flow.d.ts +0 -58
  97. package/dist/cli/commands/test-flow.js +0 -231
  98. package/dist/compiler-ui/_next/static/chunks/0d~8t0zm6545p.js +0 -118
  99. package/dist/compiler-ui/_next/static/chunks/0xnel.ax9a.2c.css +0 -3
  100. /package/dist/compiler-ui/_next/static/{j7pdoqWrl4YJrJUVnksbl → 84FaeF3EzBF9kKTMjSEVN}/_buildManifest.js +0 -0
  101. /package/dist/compiler-ui/_next/static/{j7pdoqWrl4YJrJUVnksbl → 84FaeF3EzBF9kKTMjSEVN}/_clientMiddlewareManifest.js +0 -0
  102. /package/dist/compiler-ui/_next/static/{j7pdoqWrl4YJrJUVnksbl → 84FaeF3EzBF9kKTMjSEVN}/_ssgManifest.js +0 -0
  103. /package/dist/{cli/commands/check-draft.js → packages/local-service/readiness-check-draft.js} +0 -0
@@ -0,0 +1,9 @@
1
+ import type { MethodExecutor } from "../agents/lib/executors.js";
2
+ import type { LocalServiceActionPlanningContext } from "./runtime.js";
3
+ import { type ActionProposalCreateRequest, type ActionProposalPlan } from "./lib/schema.js";
4
+ export declare function buildActionPlannerPrompt(request: ActionProposalCreateRequest, context: LocalServiceActionPlanningContext, outputPath: string): string;
5
+ export declare function planActionProposalWithExecutor(options: {
6
+ request: ActionProposalCreateRequest;
7
+ context: LocalServiceActionPlanningContext;
8
+ executor: MethodExecutor;
9
+ }): Promise<ActionProposalPlan>;
@@ -0,0 +1,134 @@
1
+ import { existsSync, mkdirSync, readFileSync, } from "node:fs";
2
+ import { join } from "node:path";
3
+ import { methodIdForSourcePreparationConfig, } from "../methods/method-resolution.js";
4
+ import { PACKAGE_ROOT } from "../method-package/lib/package-root.js";
5
+ import { ActionProposalPlanSchema, } from "./lib/schema.js";
6
+ function extractJsonObject(text) {
7
+ try {
8
+ return JSON.parse(text);
9
+ }
10
+ catch {
11
+ const match = text.match(/\{[\s\S]*\}/);
12
+ if (!match)
13
+ throw new Error("Planner did not write a JSON object.");
14
+ return JSON.parse(match[0]);
15
+ }
16
+ }
17
+ function readActionSkill() {
18
+ const skillDir = join(PACKAGE_ROOT, "agent-skills", "interf-actions");
19
+ const skillPath = join(skillDir, "SKILL.md");
20
+ const cliReferencePath = join(skillDir, "references", "cli.md");
21
+ try {
22
+ const skill = readFileSync(skillPath, "utf8");
23
+ const cliReference = readFileSync(cliReferencePath, "utf8");
24
+ return [
25
+ skill,
26
+ "## Bundled reference: references/cli.md",
27
+ cliReference,
28
+ ].join("\n\n");
29
+ }
30
+ catch {
31
+ return [
32
+ "# Interf Actions",
33
+ "Use `interf --help`, `interf list`, `interf status`, and command-specific help as the source of truth.",
34
+ "In Interf proposal mode, do not run CLI commands. Write the requested JSON proposal only.",
35
+ ].join("\n\n");
36
+ }
37
+ }
38
+ export function buildActionPlannerPrompt(request, context, outputPath) {
39
+ const actionSkill = readActionSkill();
40
+ const preparations = context.preparations.map((preparation) => ({
41
+ name: preparation.name,
42
+ path: preparation.path,
43
+ about: preparation.about ?? null,
44
+ method: methodIdForSourcePreparationConfig(preparation),
45
+ checks: preparation.checks?.length ?? 0,
46
+ }));
47
+ const recentProposals = context.recentProposals.map((proposal) => ({
48
+ status: proposal.status,
49
+ action_type: proposal.action_type,
50
+ title: proposal.title,
51
+ preparation: proposal.preparation ?? null,
52
+ request: proposal.request,
53
+ command_preview: proposal.command_preview ?? null,
54
+ }));
55
+ const sourceFolders = context.sourceFolders.map((folder) => ({
56
+ path: folder.value,
57
+ label: folder.label,
58
+ hint: folder.hint,
59
+ }));
60
+ return `You are the local Interf action planner.
61
+
62
+ User request:
63
+ ${request.message}
64
+
65
+ Selected Preparation hint: ${request.preparation ?? "(none)"}
66
+
67
+ Structured request values:
68
+ ${JSON.stringify(request.values ?? {}, null, 2)}
69
+
70
+ Available Preparations:
71
+ ${JSON.stringify(preparations, null, 2)}
72
+
73
+ Visible Source Folders:
74
+ ${JSON.stringify(sourceFolders, null, 2)}
75
+
76
+ Action health:
77
+ ${JSON.stringify(context.preparationHealth, null, 2)}
78
+
79
+ Recent proposals, newest first. A short follow-up like "target source only" may be correcting the latest pending proposal:
80
+ ${JSON.stringify(recentProposals, null, 2)}
81
+
82
+ Interf action skill source:
83
+ ${actionSkill}
84
+
85
+ Use the Interf action skill source as the authority for CLI semantics and Interf proposal mode. Preserve user intent over defaults.
86
+ Use Action health to avoid proposing work that cannot run yet. If can_check_readiness is false, prefer the recommended next actions; do not propose a generic readiness check unless the user explicitly asks for a source-files-only baseline.
87
+ If the user is asking a question or making casual conversation, return "clarification" with a helpful assistant_message. Do not invent a CLI command for non-action chat.
88
+ If a field does not apply, omit it instead of writing null or an empty string.
89
+ Do not run any CLI command. Do not edit files except the output JSON file.
90
+
91
+ Write only this JSON object to:
92
+ ${outputPath}
93
+
94
+ JSON schema:
95
+ {
96
+ "action_type": "preparation-setup" | "preparation-change" | "compile" | "test" | "readiness-check-draft" | "method-authoring" | "method-change" | "method-improvement" | "clarification",
97
+ "preparation": "Preparation id if applicable",
98
+ "method": "Method id if applicable",
99
+ "values": {},
100
+ "title": "short approval card title",
101
+ "summary": "one sentence describing what will run",
102
+ "assistant_message": "concise explanation for the user",
103
+ "command_preview": "interf command the user is approving"
104
+ }
105
+ `;
106
+ }
107
+ export async function planActionProposalWithExecutor(options) {
108
+ const planRoot = join(options.context.sourcePath, "interf", ".service", "action-plans", Date.now().toString(36));
109
+ mkdirSync(planRoot, { recursive: true });
110
+ const outputPath = join(planRoot, "proposal.json");
111
+ const prompt = buildActionPlannerPrompt(options.request, options.context, outputPath);
112
+ const exitCode = await options.executor.execute(options.context.sourcePath, prompt, {
113
+ eventLogPath: join(planRoot, "planner.events.ndjson"),
114
+ statusLogPath: join(planRoot, "planner.status.log"),
115
+ completionCheck: () => existsSync(outputPath),
116
+ });
117
+ if (exitCode !== 0 && !existsSync(outputPath)) {
118
+ return ActionProposalPlanSchema.parse({
119
+ action_type: "clarification",
120
+ preparation: options.request.preparation,
121
+ assistant_message: `${options.executor.displayName} could not create a safe Interf proposal.`,
122
+ });
123
+ }
124
+ try {
125
+ return ActionProposalPlanSchema.parse(extractJsonObject(readFileSync(outputPath, "utf8")));
126
+ }
127
+ catch {
128
+ return ActionProposalPlanSchema.parse({
129
+ action_type: "clarification",
130
+ preparation: options.request.preparation,
131
+ assistant_message: "I can help with this Interf Workspace. Ask a question about Interf, or ask me to create a Preparation, prepare, check readiness, improve, or draft a Method and I will prepare an approval proposal.",
132
+ });
133
+ }
134
+ }
@@ -1,23 +1 @@
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 PreparationSetupActionValuesSchema: z.ZodObject<{
6
- name: z.ZodString;
7
- path: z.ZodString;
8
- about: z.ZodString;
9
- method: z.ZodOptional<z.ZodString>;
10
- readiness_notes: z.ZodOptional<z.ZodString>;
11
- prepare_after_setup: z.ZodOptional<z.ZodBoolean>;
12
- }, z.core.$strict>;
13
- export declare const MethodAuthoringActionValuesSchema: z.ZodObject<{
14
- method_id: z.ZodString;
15
- label: z.ZodString;
16
- hint: z.ZodString;
17
- task_prompt: z.ZodString;
18
- portable_output: z.ZodOptional<z.ZodString>;
19
- readiness_notes: z.ZodOptional<z.ZodString>;
20
- }, z.core.$strict>;
21
- export type PreparationSetupActionValues = z.infer<typeof PreparationSetupActionValuesSchema>;
22
- export type MethodAuthoringActionValues = z.infer<typeof MethodAuthoringActionValuesSchema>;
23
- export declare function methodAuthoringTaskPrompt(values: MethodAuthoringActionValues): string;
1
+ export { ActionValueIdPattern, ActionValueIdSchema, MethodAuthoringActionValuesSchema, OptionalActionValueIdSchema, PreparationSetupActionValuesSchema, SourceReadinessCheckActionValueSchema, methodAuthoringRequestFromActionValues, methodAuthoringTaskPrompt, preparationSetupRequestFromActionValues, type MethodAuthoringActionValues, type PreparationSetupActionValues, type SourceReadinessCheckActionValue, } from "./action-definitions.js";
@@ -1,31 +1 @@
1
- import { z } from "zod";
2
- export const ActionValueIdPattern = /^[a-z0-9][a-z0-9-]{0,79}$/;
3
- export const ActionValueIdSchema = z.string().trim().regex(ActionValueIdPattern, "Use lowercase letters, numbers, and dashes.");
4
- export const OptionalActionValueIdSchema = z.string().trim().refine((value) => value === "" || ActionValueIdPattern.test(value), "Use lowercase letters, numbers, and dashes.");
5
- export const PreparationSetupActionValuesSchema = z.object({
6
- name: ActionValueIdSchema,
7
- path: z.string().trim().min(1, "Source Folder is required."),
8
- about: z.string().trim().min(1, "Agent work is required."),
9
- method: OptionalActionValueIdSchema.optional(),
10
- readiness_notes: z.string().trim().optional(),
11
- prepare_after_setup: z.boolean().optional(),
12
- }).strict();
13
- export const MethodAuthoringActionValuesSchema = z.object({
14
- method_id: ActionValueIdSchema,
15
- label: z.string().trim().min(1, "Label is required."),
16
- hint: z.string().trim().min(1, "Summary is required."),
17
- task_prompt: z.string().trim().min(1, "Agent work is required."),
18
- portable_output: z.string().trim().optional(),
19
- readiness_notes: z.string().trim().optional(),
20
- }).strict();
21
- function optionalLine(label, value) {
22
- const trimmed = value?.trim();
23
- return trimmed ? `${label}: ${trimmed}` : null;
24
- }
25
- export function methodAuthoringTaskPrompt(values) {
26
- return [
27
- `Agent work: ${values.task_prompt}`,
28
- optionalLine("Portable-context output", values.portable_output),
29
- optionalLine("Readiness checks", values.readiness_notes),
30
- ].filter((line) => Boolean(line)).join("\n");
31
- }
1
+ export { ActionValueIdPattern, ActionValueIdSchema, MethodAuthoringActionValuesSchema, OptionalActionValueIdSchema, PreparationSetupActionValuesSchema, SourceReadinessCheckActionValueSchema, methodAuthoringRequestFromActionValues, methodAuthoringTaskPrompt, preparationSetupRequestFromActionValues, } from "./action-definitions.js";
@@ -1,4 +1,4 @@
1
- import { type CompileRunCreateRequest, type CompileRunListResponse, type CompileRunResource, type LocalJobEventAppendRequest, type LocalJobRunCreateRequest, type LocalJobRunListResponse, type LocalJobRunResource, type LocalServiceHealth, type ReadinessCheckDraftCreateRequest, type ReadinessCheckDraftResult, type ReadinessListResponse, type TestRunCreateRequest, type TestRunListResponse, type TestRunResource, type MethodAuthoringCreateRequest, type MethodAuthoringResult } from "./lib/schema.js";
1
+ import { type ActionProposalApprovalRequest, type ActionProposalCreateRequest, type ActionProposalResource, type CompileRunCreateRequest, type CompileRunListResponse, type CompileRunResource, type LocalJobRunListResponse, type LocalJobRunResource, type LocalServiceHealth, type MethodChangeCreateRequest, type MethodChangeResult, type PreparationChangeCreateRequest, type PreparationChangeResult, type ReadinessCheckDraftCreateRequest, type ReadinessCheckDraftResult, type ReadinessListResponse, type ResetRequest, type ResetResult, type TestRunCreateRequest, type TestRunListResponse, type TestRunResource, type MethodAuthoringCreateRequest, type MethodAuthoringResult, type PreparationSetupCreateRequest, type PreparationSetupResult } from "./lib/schema.js";
2
2
  export interface LocalServiceConnection {
3
3
  serviceUrl: string;
4
4
  health: LocalServiceHealth;
@@ -37,6 +37,50 @@ export declare function submitTestRunToLocalService(options: {
37
37
  serviceUrl: string;
38
38
  resource: TestRunResource;
39
39
  } | null>;
40
+ export declare function submitPreparationSetupToLocalService(options: {
41
+ projectPath: string;
42
+ request: PreparationSetupCreateRequest;
43
+ }): Promise<{
44
+ serviceUrl: string;
45
+ result: PreparationSetupResult;
46
+ } | null>;
47
+ export declare function submitPreparationChangeToLocalService(options: {
48
+ projectPath: string;
49
+ request: PreparationChangeCreateRequest;
50
+ }): Promise<{
51
+ serviceUrl: string;
52
+ result: PreparationChangeResult;
53
+ } | null>;
54
+ export declare function submitResetToLocalService(options: {
55
+ projectPath: string;
56
+ request: ResetRequest;
57
+ }): Promise<{
58
+ serviceUrl: string;
59
+ result: ResetResult;
60
+ } | null>;
61
+ export declare function createActionProposalInLocalService(options: {
62
+ projectPath: string;
63
+ request: ActionProposalCreateRequest;
64
+ }): Promise<{
65
+ serviceUrl: string;
66
+ resource: ActionProposalResource;
67
+ } | null>;
68
+ export declare function decideActionProposalInLocalService(options: {
69
+ projectPath: string;
70
+ proposalId: string;
71
+ request: ActionProposalApprovalRequest;
72
+ serviceUrl?: string;
73
+ }): Promise<{
74
+ serviceUrl: string;
75
+ resource: ActionProposalResource;
76
+ } | null>;
77
+ export declare function approveActionProposalInLocalService(options: {
78
+ projectPath: string;
79
+ request: ActionProposalCreateRequest;
80
+ }): Promise<{
81
+ serviceUrl: string;
82
+ resource: ActionProposalResource;
83
+ } | null>;
40
84
  export declare function getLocalCompileRun(options: {
41
85
  serviceUrl: string;
42
86
  runId: string;
@@ -100,20 +144,7 @@ export declare function submitMethodAuthoringRunToLocalService(options: {
100
144
  onSubmitted?: (submission: LocalServiceJobSubmitted) => void;
101
145
  onUpdate?: (job: LocalJobRunResource) => void;
102
146
  }): Promise<LocalServiceJobSubmission<MethodAuthoringResult> | null>;
103
- export interface LocalJobTracker {
104
- serviceUrl: string;
105
- runId: string;
106
- resource: LocalJobRunResource;
107
- emit(event: LocalJobEventAppendRequest): void;
108
- complete(message?: string): Promise<void>;
109
- fail(message: string): Promise<void>;
110
- }
111
- export declare function appendLocalJobRunEvent(options: {
112
- projectPath: string;
113
- runId: string;
114
- event: LocalJobEventAppendRequest;
115
- }): Promise<LocalJobRunResource | null>;
116
- export declare function startLocalJobRun(options: {
147
+ export declare function submitMethodChangeToLocalService(options: {
117
148
  projectPath: string;
118
- request: LocalJobRunCreateRequest;
119
- }): Promise<LocalJobTracker | null>;
149
+ request: MethodChangeCreateRequest;
150
+ }): Promise<MethodChangeResult | null>;
@@ -1,7 +1,7 @@
1
1
  import { existsSync, readFileSync } from "node:fs";
2
2
  import { join, resolve } from "node:path";
3
- import { CompileRunCreateRequestSchema, CompileRunListResponseSchema, CompileRunResourceSchema, LocalServiceInstancePointerSchema, LocalJobEventAppendRequestSchema, LocalJobRunCreateRequestSchema, LocalJobRunListResponseSchema, LocalJobRunResourceSchema, LocalServiceHealthSchema, ReadinessCheckDraftCreateRequestSchema, ReadinessCheckDraftResultSchema, ReadinessListResponseSchema, TestRunCreateRequestSchema, TestRunListResponseSchema, TestRunResourceSchema, MethodAuthoringCreateRequestSchema, MethodAuthoringResultSchema, } from "./lib/schema.js";
4
- import { LOCAL_SERVICE_INSTANCE_POINTER_PATH, LOCAL_SERVICE_ROUTES, buildLocalServiceUrl, } from "./routes.js";
3
+ import { CompileRunCreateRequestSchema, CompileRunListResponseSchema, CompileRunResourceSchema, ActionProposalApprovalRequestSchema, ActionProposalCreateRequestSchema, ActionProposalResourceSchema, LocalServicePointerSchema, LocalJobRunListResponseSchema, LocalJobRunResourceSchema, LocalServiceHealthSchema, MethodChangeCreateRequestSchema, MethodChangeResultSchema, PreparationChangeCreateRequestSchema, PreparationChangeResultSchema, PreparationSetupCreateRequestSchema, PreparationSetupResultSchema, ReadinessCheckDraftCreateRequestSchema, ReadinessCheckDraftResultSchema, ReadinessListResponseSchema, ResetRequestSchema, ResetResultSchema, TestRunCreateRequestSchema, TestRunListResponseSchema, TestRunResourceSchema, MethodAuthoringCreateRequestSchema, MethodAuthoringResultSchema, } from "./lib/schema.js";
4
+ import { LOCAL_SERVICE_POINTER_PATH, LOCAL_SERVICE_ROUTES, buildLocalServiceUrl, } from "./routes.js";
5
5
  function trimTrailingSlash(value) {
6
6
  return value.replace(/\/+$/, "");
7
7
  }
@@ -12,11 +12,11 @@ export function configuredLocalServiceUrl() {
12
12
  return buildLocalServiceUrl();
13
13
  }
14
14
  function projectLocalServiceUrl(projectPath) {
15
- const pointerPath = join(projectPath, ...LOCAL_SERVICE_INSTANCE_POINTER_PATH);
15
+ const pointerPath = join(projectPath, ...LOCAL_SERVICE_POINTER_PATH);
16
16
  if (!existsSync(pointerPath))
17
17
  return null;
18
18
  try {
19
- const pointer = LocalServiceInstancePointerSchema.parse(JSON.parse(readFileSync(pointerPath, "utf8")));
19
+ const pointer = LocalServicePointerSchema.parse(JSON.parse(readFileSync(pointerPath, "utf8")));
20
20
  return trimTrailingSlash(pointer.service_url);
21
21
  }
22
22
  catch {
@@ -108,6 +108,92 @@ export async function submitTestRunToLocalService(options) {
108
108
  resource,
109
109
  };
110
110
  }
111
+ export async function submitPreparationSetupToLocalService(options) {
112
+ const connection = await findLocalService({ projectPath: options.projectPath });
113
+ if (!connection)
114
+ return null;
115
+ const request = PreparationSetupCreateRequestSchema.parse(options.request);
116
+ const result = PreparationSetupResultSchema.parse(await fetchJson(`${connection.serviceUrl}${LOCAL_SERVICE_ROUTES.preparationSetups}`, {
117
+ method: "POST",
118
+ body: JSON.stringify(request),
119
+ }));
120
+ return {
121
+ serviceUrl: connection.serviceUrl,
122
+ result,
123
+ };
124
+ }
125
+ export async function submitPreparationChangeToLocalService(options) {
126
+ const connection = await findLocalService({ projectPath: options.projectPath });
127
+ if (!connection)
128
+ return null;
129
+ const request = PreparationChangeCreateRequestSchema.parse(options.request);
130
+ const result = PreparationChangeResultSchema.parse(await fetchJson(`${connection.serviceUrl}${LOCAL_SERVICE_ROUTES.preparationChanges}`, {
131
+ method: "POST",
132
+ body: JSON.stringify(request),
133
+ }));
134
+ return {
135
+ serviceUrl: connection.serviceUrl,
136
+ result,
137
+ };
138
+ }
139
+ export async function submitResetToLocalService(options) {
140
+ const connection = await findLocalService({ projectPath: options.projectPath });
141
+ if (!connection)
142
+ return null;
143
+ const request = ResetRequestSchema.parse(options.request);
144
+ const result = ResetResultSchema.parse(await fetchJson(`${connection.serviceUrl}${LOCAL_SERVICE_ROUTES.reset}`, {
145
+ method: "POST",
146
+ body: JSON.stringify(request),
147
+ }));
148
+ return {
149
+ serviceUrl: connection.serviceUrl,
150
+ result,
151
+ };
152
+ }
153
+ export async function createActionProposalInLocalService(options) {
154
+ const connection = await findLocalService({ projectPath: options.projectPath });
155
+ if (!connection)
156
+ return null;
157
+ const request = ActionProposalCreateRequestSchema.parse(options.request);
158
+ const resource = ActionProposalResourceSchema.parse(await fetchJson(`${connection.serviceUrl}${LOCAL_SERVICE_ROUTES.actionProposals}`, {
159
+ method: "POST",
160
+ body: JSON.stringify(request),
161
+ }));
162
+ return {
163
+ serviceUrl: connection.serviceUrl,
164
+ resource,
165
+ };
166
+ }
167
+ export async function decideActionProposalInLocalService(options) {
168
+ const connection = options.serviceUrl
169
+ ? { serviceUrl: options.serviceUrl }
170
+ : await findLocalService({ projectPath: options.projectPath });
171
+ if (!connection)
172
+ return null;
173
+ const request = ActionProposalApprovalRequestSchema.parse(options.request);
174
+ const resource = ActionProposalResourceSchema.parse(await fetchJson(`${connection.serviceUrl}${LOCAL_SERVICE_ROUTES.actionProposals}/${encodeURIComponent(options.proposalId)}/decision`, {
175
+ method: "POST",
176
+ body: JSON.stringify(request),
177
+ }));
178
+ return {
179
+ serviceUrl: connection.serviceUrl,
180
+ resource,
181
+ };
182
+ }
183
+ export async function approveActionProposalInLocalService(options) {
184
+ const proposal = await createActionProposalInLocalService(options);
185
+ if (!proposal)
186
+ return null;
187
+ if (proposal.resource.status !== "awaiting_approval")
188
+ return proposal;
189
+ const decided = await decideActionProposalInLocalService({
190
+ projectPath: options.projectPath,
191
+ proposalId: proposal.resource.proposal_id,
192
+ request: { approved: true },
193
+ serviceUrl: proposal.serviceUrl,
194
+ });
195
+ return decided ?? proposal;
196
+ }
111
197
  function isTerminalJobStatus(status) {
112
198
  return status === "succeeded" || status === "failed" || status === "cancelled";
113
199
  }
@@ -242,7 +328,7 @@ export async function submitReadinessCheckDraftToLocalService(options) {
242
328
  serviceUrl: connection.serviceUrl,
243
329
  job,
244
330
  result: null,
245
- error: resultError(job, "Readiness-check drafting failed in the local Interf service."),
331
+ error: resultError(job, "Drafting readiness checks failed in the local Interf service."),
246
332
  };
247
333
  }
248
334
  const parsed = ReadinessCheckDraftResultSchema.safeParse(job.result);
@@ -251,7 +337,7 @@ export async function submitReadinessCheckDraftToLocalService(options) {
251
337
  serviceUrl: connection.serviceUrl,
252
338
  job,
253
339
  result: null,
254
- error: "Readiness-check drafting finished without a valid result.",
340
+ error: "Drafting readiness checks finished without a valid result.",
255
341
  };
256
342
  }
257
343
  return {
@@ -301,56 +387,13 @@ export async function submitMethodAuthoringRunToLocalService(options) {
301
387
  result: parsed.data,
302
388
  };
303
389
  }
304
- export async function appendLocalJobRunEvent(options) {
305
- const connection = await findLocalService({ projectPath: options.projectPath });
306
- if (!connection)
307
- return null;
308
- const event = LocalJobEventAppendRequestSchema.parse(options.event);
309
- return LocalJobRunResourceSchema.parse(await fetchJson(`${connection.serviceUrl}${LOCAL_SERVICE_ROUTES.jobs}/${encodeURIComponent(options.runId)}/events`, {
310
- method: "POST",
311
- body: JSON.stringify(event),
312
- }));
313
- }
314
- export async function startLocalJobRun(options) {
390
+ export async function submitMethodChangeToLocalService(options) {
315
391
  const connection = await findLocalService({ projectPath: options.projectPath });
316
392
  if (!connection)
317
393
  return null;
318
- const request = LocalJobRunCreateRequestSchema.parse(options.request);
319
- const resource = LocalJobRunResourceSchema.parse(await fetchJson(`${connection.serviceUrl}${LOCAL_SERVICE_ROUTES.jobs}`, {
394
+ const request = MethodChangeCreateRequestSchema.parse(options.request);
395
+ return MethodChangeResultSchema.parse(await fetchJson(`${connection.serviceUrl}${LOCAL_SERVICE_ROUTES.methodChanges}`, {
320
396
  method: "POST",
321
397
  body: JSON.stringify(request),
322
398
  }));
323
- const emit = (event) => {
324
- void appendLocalJobRunEvent({
325
- projectPath: options.projectPath,
326
- runId: resource.run_id,
327
- event,
328
- }).catch(() => { });
329
- };
330
- return {
331
- serviceUrl: connection.serviceUrl,
332
- runId: resource.run_id,
333
- resource,
334
- emit,
335
- complete: async (message) => {
336
- await appendLocalJobRunEvent({
337
- projectPath: options.projectPath,
338
- runId: resource.run_id,
339
- event: {
340
- type: "job.completed",
341
- ...(message ? { message } : {}),
342
- },
343
- });
344
- },
345
- fail: async (message) => {
346
- await appendLocalJobRunEvent({
347
- projectPath: options.projectPath,
348
- runId: resource.run_id,
349
- event: {
350
- type: "job.failed",
351
- message,
352
- },
353
- });
354
- },
355
- };
356
399
  }
@@ -1,15 +1,18 @@
1
1
  export * as schema from "./lib/schema.js";
2
2
  export * as actionValues from "./action-values.js";
3
+ export * as actionDefinitions from "./action-definitions.js";
3
4
  export * as routes from "./routes.js";
4
5
  export * as client from "./client.js";
5
6
  export * as runtime from "./runtime.js";
6
7
  export * as server from "./server.js";
7
- export type { CompileRunCreateRequest, CompileRunResource, CompileRunSummary, LocalServiceDiscovery, PortableContextMapping, PreparationReadinessState, PreparationRunLinkage, PreparationResource, MethodResource, LocalJobAgent, LocalJobEvent, LocalJobEventAppendRequest, LocalJobEventType, LocalJobRunCreateRequest, LocalJobRunListResponse, LocalJobRunResource, LocalJobStatus, LocalRunHandlerResult, LocalJobStep, LocalJobType, LocalServiceConfig, LocalServiceHealth, LocalServiceInstancePointer, LocalServiceResource, LocalExecutorStatus, ActionProposalApproval, ActionProposalApprovalRequest, ActionProposalCreateRequest, ActionProposalListResponse, ActionProposalPlan, ActionProposalResource, ActionProposalStatus, ActionProposalType, PreparationSetupCreateRequest, PortableContextResource, ReadinessListResponse, ReadinessResource, SourceFileResource, WorkspaceFileResource, ReadinessCheckDraftCreateRequest, ReadinessCheckDraftResult, TestRunCreateRequest, TestRunResource, TestRunStatus, RunCreateRequest, RunObservabilityListResponse, RunObservabilityResource, MethodAuthoringCreateRequest, MethodAuthoringResult, PreparationListResponse, MethodListResponse, CompileRunListResponse, TestRunListResponse, PortableContextListResponse, SourceFileListResponse, WorkspaceFileListResponse, OpenPathRequest, OpenPathResponse, } from "./lib/schema.js";
8
- export { CompileRunCreateRequestSchema, CompileRunResourceSchema, CompileRunSummarySchema, LocalServiceDiscoverySchema, PortableContextMappingSchema, PreparationReadinessStateSchema, PreparationRunLinkageSchema, PreparationResourceSchema, MethodResourceSchema, LocalJobAgentSchema, LocalJobEventAppendRequestSchema, LocalJobEventSchema, LocalJobEventTypeSchema, LocalJobRunCreateRequestSchema, LocalJobRunResourceSchema, LocalJobStatusSchema, LocalRunHandlerResultSchema, LocalJobStepSchema, LocalJobTypeSchema, LocalServiceConfigSchema, LocalServiceHealthSchema, LocalServiceInstancePointerSchema, LocalServiceResourceSchema, PortableContextResourceSchema, ReadinessResourceSchema, SourceFileResourceSchema, WorkspaceFileResourceSchema, ReadinessCheckDraftCreateRequestSchema, ReadinessCheckDraftResultSchema, TestRunCreateRequestSchema, TestRunResourceSchema, TestRunStatusSchema, RunCreateRequestSchema, RunObservabilityResourceSchema, RunObservabilityListResponseSchema, LocalExecutorStatusSchema, ActionProposalApprovalRequestSchema, ActionProposalApprovalSchema, ActionProposalCreateRequestSchema, ActionProposalListResponseSchema, ActionProposalPlanSchema, ActionProposalResourceSchema, ActionProposalStatusSchema, ActionProposalTypeSchema, PreparationSetupCreateRequestSchema, MethodAuthoringCreateRequestSchema, MethodAuthoringResultSchema, PreparationListResponseSchema, MethodListResponseSchema, CompileRunListResponseSchema, LocalJobRunListResponseSchema, TestRunListResponseSchema, PortableContextListResponseSchema, ReadinessListResponseSchema, SourceFileListResponseSchema, WorkspaceFileListResponseSchema, OpenPathRequestSchema, OpenPathResponseSchema, } from "./lib/schema.js";
9
- export { LOCAL_SERVICE_DEFAULT_HOST, LOCAL_SERVICE_DEFAULT_PORT, LOCAL_SERVICE_INSTANCE_POINTER_PATH, LOCAL_SERVICE_ROUTES, buildLocalServiceUrl, } from "./routes.js";
10
- export type { LocalServiceJobSubmission, LocalServiceJobSubmitted, LocalServiceConnection, LocalServiceRunSnapshot, LocalJobTracker, } from "./client.js";
11
- export { appendLocalJobRunEvent, configuredLocalServiceUrl, findLocalService, getLocalJobRun, getLocalCompileRun, getLocalTestRun, listLocalCompileRuns, listLocalJobRuns, listLocalTestRuns, readLocalServiceRunSnapshot, startLocalJobRun, submitCompileRunToLocalService, submitReadinessCheckDraftToLocalService, submitTestRunToLocalService, submitMethodAuthoringRunToLocalService, waitForLocalJobRun, waitForLocalCompileRun, waitForLocalTestRun, } from "./client.js";
8
+ export type { CompileRunCreateRequest, CompileRunResource, CompileRunSummary, LocalServiceDiscovery, PortableContextMapping, PreparationReadinessState, PreparationRunLinkage, PreparationResource, MethodResource, LocalJobAgent, LocalJobEvent, LocalJobEventAppendRequest, LocalJobEventType, LocalJobRunCreateRequest, LocalJobRunListResponse, LocalJobRunResource, LocalJobStatus, LocalRunHandlerResult, LocalJobStep, LocalJobType, LocalServiceConfig, LocalServiceError, LocalServiceHealth, LocalServicePointer, LocalServiceResource, LocalExecutorStatus, ActionClientOrigin, ActionProposalApproval, ActionProposalApprovalRequest, ActionProposalCreateRequest, ActionProposalListResponse, ActionProposalPlan, ActionProposalPlanActionType, ActionProposalResource, ActionProposalStatus, ActionProposalType, MethodChangeCreateRequest, MethodChangeResult, PreparationChangeCreateRequest, PreparationChangeResult, ResetRequest, ResetResult, PreparationSetupCreateRequest, PreparationSetupResult, PortableContextResource, ReadinessListResponse, ReadinessResource, SourceFileResource, WorkspaceFileResource, ReadinessCheckDraftCreateRequest, ReadinessCheckDraftResult, TestRunCreateRequest, TestRunResource, TestRunStatus, RunObservabilityListResponse, RunObservabilityResource, MethodAuthoringCreateRequest, MethodAuthoringResult, PreparationListResponse, MethodListResponse, CompileRunListResponse, TestRunListResponse, PortableContextListResponse, SourceFileListResponse, WorkspaceFileListResponse, OpenPathRequest, OpenPathResponse, } from "./lib/schema.js";
9
+ export { CompileRunCreateRequestSchema, CompileRunResourceSchema, CompileRunSummarySchema, LocalServiceDiscoverySchema, PortableContextMappingSchema, PreparationReadinessStateSchema, PreparationRunLinkageSchema, PreparationResourceSchema, MethodResourceSchema, LocalJobAgentSchema, LocalJobEventAppendRequestSchema, LocalJobEventSchema, LocalJobEventTypeSchema, LocalJobRunCreateRequestSchema, LocalJobRunResourceSchema, LocalJobStatusSchema, LocalRunHandlerResultSchema, LocalJobStepSchema, LocalJobTypeSchema, LocalServiceConfigSchema, LocalServiceErrorSchema, LocalServiceHealthSchema, LocalServicePointerSchema, LocalServiceResourceSchema, PortableContextResourceSchema, ReadinessResourceSchema, SourceFileResourceSchema, WorkspaceFileResourceSchema, ReadinessCheckDraftCreateRequestSchema, ReadinessCheckDraftResultSchema, TestRunCreateRequestSchema, TestRunResourceSchema, TestRunStatusSchema, RunObservabilityResourceSchema, RunObservabilityListResponseSchema, LocalExecutorStatusSchema, ActionClientOriginSchema, ActionProposalApprovalRequestSchema, ActionProposalApprovalSchema, ActionProposalCreateRequestSchema, ActionProposalListResponseSchema, ActionProposalPlanSchema, ActionProposalPlanActionTypeSchema, ActionProposalResourceSchema, ActionProposalStatusSchema, ActionProposalTypeSchema, MethodChangeCreateRequestSchema, MethodChangeResultSchema, PreparationChangeCreateRequestSchema, PreparationChangeResultSchema, ResetRequestSchema, ResetResultSchema, PreparationSetupCreateRequestSchema, PreparationSetupResultSchema, MethodAuthoringCreateRequestSchema, MethodAuthoringResultSchema, PreparationListResponseSchema, MethodListResponseSchema, CompileRunListResponseSchema, LocalJobRunListResponseSchema, TestRunListResponseSchema, PortableContextListResponseSchema, ReadinessListResponseSchema, SourceFileListResponseSchema, WorkspaceFileListResponseSchema, OpenPathRequestSchema, OpenPathResponseSchema, } from "./lib/schema.js";
10
+ export { LOCAL_SERVICE_DEFAULT_HOST, LOCAL_SERVICE_DEFAULT_PORT, LOCAL_SERVICE_POINTER_PATH, LOCAL_SERVICE_ROUTES, buildLocalServiceUrl, } from "./routes.js";
11
+ export type { LocalServiceJobSubmission, LocalServiceJobSubmitted, LocalServiceConnection, LocalServiceRunSnapshot, } from "./client.js";
12
+ export { approveActionProposalInLocalService, configuredLocalServiceUrl, createActionProposalInLocalService, decideActionProposalInLocalService, findLocalService, getLocalJobRun, getLocalCompileRun, getLocalTestRun, listLocalCompileRuns, listLocalJobRuns, listLocalTestRuns, readLocalServiceRunSnapshot, submitCompileRunToLocalService, submitMethodChangeToLocalService, submitPreparationChangeToLocalService, submitPreparationSetupToLocalService, submitReadinessCheckDraftToLocalService, submitResetToLocalService, submitTestRunToLocalService, submitMethodAuthoringRunToLocalService, waitForLocalJobRun, waitForLocalCompileRun, waitForLocalTestRun, } from "./client.js";
12
13
  export type { LocalServiceActionPlanningContext, LocalServiceCompileRunContext, LocalServiceJobRunContext, LocalServiceRunHandlers, LocalServiceRuntimeOptions, LocalServiceTestRunContext, } from "./runtime.js";
13
14
  export { LocalServiceRuntime, createLocalServiceRuntime, } from "./runtime.js";
14
15
  export type { StartedLocalService, StartLocalServiceOptions, } from "./server.js";
15
16
  export { createLocalServiceServer, startLocalService, } from "./server.js";
17
+ export type { NativeLocalServiceRunHandlerOptions, } from "./native-run-handlers.js";
18
+ export { createNativeLocalServiceRunHandlers, } from "./native-run-handlers.js";
@@ -1,11 +1,13 @@
1
1
  export * as schema from "./lib/schema.js";
2
2
  export * as actionValues from "./action-values.js";
3
+ export * as actionDefinitions from "./action-definitions.js";
3
4
  export * as routes from "./routes.js";
4
5
  export * as client from "./client.js";
5
6
  export * as runtime from "./runtime.js";
6
7
  export * as server from "./server.js";
7
- export { CompileRunCreateRequestSchema, CompileRunResourceSchema, CompileRunSummarySchema, LocalServiceDiscoverySchema, PortableContextMappingSchema, PreparationReadinessStateSchema, PreparationRunLinkageSchema, PreparationResourceSchema, MethodResourceSchema, LocalJobAgentSchema, LocalJobEventAppendRequestSchema, LocalJobEventSchema, LocalJobEventTypeSchema, LocalJobRunCreateRequestSchema, LocalJobRunResourceSchema, LocalJobStatusSchema, LocalRunHandlerResultSchema, LocalJobStepSchema, LocalJobTypeSchema, LocalServiceConfigSchema, LocalServiceHealthSchema, LocalServiceInstancePointerSchema, LocalServiceResourceSchema, PortableContextResourceSchema, ReadinessResourceSchema, SourceFileResourceSchema, WorkspaceFileResourceSchema, ReadinessCheckDraftCreateRequestSchema, ReadinessCheckDraftResultSchema, TestRunCreateRequestSchema, TestRunResourceSchema, TestRunStatusSchema, RunCreateRequestSchema, RunObservabilityResourceSchema, RunObservabilityListResponseSchema, LocalExecutorStatusSchema, ActionProposalApprovalRequestSchema, ActionProposalApprovalSchema, ActionProposalCreateRequestSchema, ActionProposalListResponseSchema, ActionProposalPlanSchema, ActionProposalResourceSchema, ActionProposalStatusSchema, ActionProposalTypeSchema, PreparationSetupCreateRequestSchema, MethodAuthoringCreateRequestSchema, MethodAuthoringResultSchema, PreparationListResponseSchema, MethodListResponseSchema, CompileRunListResponseSchema, LocalJobRunListResponseSchema, TestRunListResponseSchema, PortableContextListResponseSchema, ReadinessListResponseSchema, SourceFileListResponseSchema, WorkspaceFileListResponseSchema, OpenPathRequestSchema, OpenPathResponseSchema, } from "./lib/schema.js";
8
- export { LOCAL_SERVICE_DEFAULT_HOST, LOCAL_SERVICE_DEFAULT_PORT, LOCAL_SERVICE_INSTANCE_POINTER_PATH, LOCAL_SERVICE_ROUTES, buildLocalServiceUrl, } from "./routes.js";
9
- export { appendLocalJobRunEvent, configuredLocalServiceUrl, findLocalService, getLocalJobRun, getLocalCompileRun, getLocalTestRun, listLocalCompileRuns, listLocalJobRuns, listLocalTestRuns, readLocalServiceRunSnapshot, startLocalJobRun, submitCompileRunToLocalService, submitReadinessCheckDraftToLocalService, submitTestRunToLocalService, submitMethodAuthoringRunToLocalService, waitForLocalJobRun, waitForLocalCompileRun, waitForLocalTestRun, } from "./client.js";
8
+ export { CompileRunCreateRequestSchema, CompileRunResourceSchema, CompileRunSummarySchema, LocalServiceDiscoverySchema, PortableContextMappingSchema, PreparationReadinessStateSchema, PreparationRunLinkageSchema, PreparationResourceSchema, MethodResourceSchema, LocalJobAgentSchema, LocalJobEventAppendRequestSchema, LocalJobEventSchema, LocalJobEventTypeSchema, LocalJobRunCreateRequestSchema, LocalJobRunResourceSchema, LocalJobStatusSchema, LocalRunHandlerResultSchema, LocalJobStepSchema, LocalJobTypeSchema, LocalServiceConfigSchema, LocalServiceErrorSchema, LocalServiceHealthSchema, LocalServicePointerSchema, LocalServiceResourceSchema, PortableContextResourceSchema, ReadinessResourceSchema, SourceFileResourceSchema, WorkspaceFileResourceSchema, ReadinessCheckDraftCreateRequestSchema, ReadinessCheckDraftResultSchema, TestRunCreateRequestSchema, TestRunResourceSchema, TestRunStatusSchema, RunObservabilityResourceSchema, RunObservabilityListResponseSchema, LocalExecutorStatusSchema, ActionClientOriginSchema, ActionProposalApprovalRequestSchema, ActionProposalApprovalSchema, ActionProposalCreateRequestSchema, ActionProposalListResponseSchema, ActionProposalPlanSchema, ActionProposalPlanActionTypeSchema, ActionProposalResourceSchema, ActionProposalStatusSchema, ActionProposalTypeSchema, MethodChangeCreateRequestSchema, MethodChangeResultSchema, PreparationChangeCreateRequestSchema, PreparationChangeResultSchema, ResetRequestSchema, ResetResultSchema, PreparationSetupCreateRequestSchema, PreparationSetupResultSchema, MethodAuthoringCreateRequestSchema, MethodAuthoringResultSchema, PreparationListResponseSchema, MethodListResponseSchema, CompileRunListResponseSchema, LocalJobRunListResponseSchema, TestRunListResponseSchema, PortableContextListResponseSchema, ReadinessListResponseSchema, SourceFileListResponseSchema, WorkspaceFileListResponseSchema, OpenPathRequestSchema, OpenPathResponseSchema, } from "./lib/schema.js";
9
+ export { LOCAL_SERVICE_DEFAULT_HOST, LOCAL_SERVICE_DEFAULT_PORT, LOCAL_SERVICE_POINTER_PATH, LOCAL_SERVICE_ROUTES, buildLocalServiceUrl, } from "./routes.js";
10
+ export { approveActionProposalInLocalService, configuredLocalServiceUrl, createActionProposalInLocalService, decideActionProposalInLocalService, findLocalService, getLocalJobRun, getLocalCompileRun, getLocalTestRun, listLocalCompileRuns, listLocalJobRuns, listLocalTestRuns, readLocalServiceRunSnapshot, submitCompileRunToLocalService, submitMethodChangeToLocalService, submitPreparationChangeToLocalService, submitPreparationSetupToLocalService, submitReadinessCheckDraftToLocalService, submitResetToLocalService, submitTestRunToLocalService, submitMethodAuthoringRunToLocalService, waitForLocalJobRun, waitForLocalCompileRun, waitForLocalTestRun, } from "./client.js";
10
11
  export { LocalServiceRuntime, createLocalServiceRuntime, } from "./runtime.js";
11
12
  export { createLocalServiceServer, startLocalService, } from "./server.js";
13
+ export { createNativeLocalServiceRunHandlers, } from "./native-run-handlers.js";