@paperclipai/shared 2026.824.0 → 2026.825.0-beta.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.
- package/dist/adapter-auth-check-code.d.ts +13 -0
- package/dist/adapter-auth-check-code.d.ts.map +1 -0
- package/dist/adapter-auth-check-code.js +13 -0
- package/dist/adapter-auth-check-code.js.map +1 -0
- package/dist/adapter-auth-check-code.test.d.ts +2 -0
- package/dist/adapter-auth-check-code.test.d.ts.map +1 -0
- package/dist/adapter-auth-check-code.test.js +8 -0
- package/dist/adapter-auth-check-code.test.js.map +1 -0
- package/dist/company-import-transfer.d.ts +3 -37
- package/dist/company-import-transfer.d.ts.map +1 -1
- package/dist/config-schema.d.ts +130 -1570
- package/dist/config-schema.d.ts.map +1 -1
- package/dist/config-schema.js +3 -7
- package/dist/config-schema.js.map +1 -1
- package/dist/constants.d.ts +3 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +3 -0
- package/dist/constants.js.map +1 -1
- package/dist/environment-support.d.ts +1 -1
- package/dist/environment-support.d.ts.map +1 -1
- package/dist/environment-support.js +3 -2
- package/dist/environment-support.js.map +1 -1
- package/dist/environment-support.test.js +19 -0
- package/dist/environment-support.test.js.map +1 -1
- package/dist/feature-catalog.d.ts +7 -17
- package/dist/feature-catalog.d.ts.map +1 -1
- package/dist/feature-catalog.js +9 -2
- package/dist/feature-catalog.js.map +1 -1
- package/dist/frontmatter.d.ts +3 -13
- package/dist/frontmatter.d.ts.map +1 -1
- package/dist/frontmatter.js +2 -2
- package/dist/frontmatter.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/markdown-work-products.d.ts +26 -0
- package/dist/markdown-work-products.d.ts.map +1 -0
- package/dist/markdown-work-products.js +70 -0
- package/dist/markdown-work-products.js.map +1 -0
- package/dist/markdown-work-products.test.d.ts +2 -0
- package/dist/markdown-work-products.test.d.ts.map +1 -0
- package/dist/markdown-work-products.test.js +122 -0
- package/dist/markdown-work-products.test.js.map +1 -0
- package/dist/node-version.d.ts +6 -0
- package/dist/node-version.d.ts.map +1 -0
- package/dist/node-version.js +46 -0
- package/dist/node-version.js.map +1 -0
- package/dist/runtime-exposure/loopback-bind.d.ts +2 -2
- package/dist/runtime-exposure/loopback-bind.d.ts.map +1 -1
- package/dist/runtime-exposure/loopback-bind.js +3 -3
- package/dist/runtime-exposure/loopback-bind.js.map +1 -1
- package/dist/runtime-exposure/loopback-bind.test.js +11 -10
- package/dist/runtime-exposure/loopback-bind.test.js.map +1 -1
- package/dist/settings-visibility.d.ts +62 -0
- package/dist/settings-visibility.d.ts.map +1 -0
- package/dist/settings-visibility.js +102 -0
- package/dist/settings-visibility.js.map +1 -0
- package/dist/settings-visibility.test.d.ts +2 -0
- package/dist/settings-visibility.test.d.ts.map +1 -0
- package/dist/settings-visibility.test.js +51 -0
- package/dist/settings-visibility.test.js.map +1 -0
- package/dist/telemetry/generated/paperclip-telemetry.d.ts +4 -2
- package/dist/telemetry/generated/paperclip-telemetry.d.ts.map +1 -1
- package/dist/telemetry/generated/paperclip-telemetry.js +2 -0
- package/dist/telemetry/generated/paperclip-telemetry.js.map +1 -1
- package/dist/types/environment.d.ts +20 -0
- package/dist/types/environment.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/instance.d.ts +7 -0
- package/dist/types/instance.d.ts.map +1 -1
- package/dist/types/instance.js.map +1 -1
- package/dist/types/issue.d.ts +19 -0
- package/dist/types/issue.d.ts.map +1 -1
- package/dist/types/plugin.d.ts +34 -4
- package/dist/types/plugin.d.ts.map +1 -1
- package/dist/types/workspace-operation.d.ts +1 -1
- package/dist/types/workspace-operation.d.ts.map +1 -1
- package/dist/types/workspace-readiness.d.ts +62 -0
- package/dist/types/workspace-readiness.d.ts.map +1 -0
- package/dist/types/workspace-readiness.js +28 -0
- package/dist/types/workspace-readiness.js.map +1 -0
- package/dist/types/workspace-runtime.d.ts +6 -8
- package/dist/types/workspace-runtime.d.ts.map +1 -1
- package/dist/validators/access.d.ts +143 -277
- package/dist/validators/access.d.ts.map +1 -1
- package/dist/validators/access.js +5 -5
- package/dist/validators/adapter-auth-session.d.ts +50 -97
- package/dist/validators/adapter-auth-session.d.ts.map +1 -1
- package/dist/validators/adapter-auth-session.js +3 -3
- package/dist/validators/adapter-registry.d.ts +8 -40
- package/dist/validators/adapter-registry.d.ts.map +1 -1
- package/dist/validators/adapter-registry.js +1 -1
- package/dist/validators/adapter-registry.js.map +1 -1
- package/dist/validators/adapter-skills.d.ts +71 -170
- package/dist/validators/adapter-skills.d.ts.map +1 -1
- package/dist/validators/adapter-skills.js +3 -3
- package/dist/validators/agent.d.ts +412 -4798
- package/dist/validators/agent.d.ts.map +1 -1
- package/dist/validators/agent.js +13 -13
- package/dist/validators/agent.js.map +1 -1
- package/dist/validators/app-definition.d.ts +270 -2315
- package/dist/validators/app-definition.d.ts.map +1 -1
- package/dist/validators/approval.d.ts +15 -36
- package/dist/validators/approval.d.ts.map +1 -1
- package/dist/validators/approval.js +2 -2
- package/dist/validators/artifact.d.ts +162 -893
- package/dist/validators/artifact.d.ts.map +1 -1
- package/dist/validators/artifact.js +6 -6
- package/dist/validators/asset.d.ts +1 -5
- package/dist/validators/asset.d.ts.map +1 -1
- package/dist/validators/budget.d.ts +19 -43
- package/dist/validators/budget.d.ts.map +1 -1
- package/dist/validators/budget.js +1 -1
- package/dist/validators/claude-setup-token-session.d.ts +61 -181
- package/dist/validators/claude-setup-token-session.d.ts.map +1 -1
- package/dist/validators/claude-setup-token-session.js +4 -4
- package/dist/validators/company-portability.d.ts +318 -3616
- package/dist/validators/company-portability.d.ts.map +1 -1
- package/dist/validators/company-portability.js +2 -2
- package/dist/validators/company-skill.d.ts +722 -2934
- package/dist/validators/company-skill.d.ts.map +1 -1
- package/dist/validators/company-skill.js +63 -63
- package/dist/validators/company.d.ts +162 -289
- package/dist/validators/company.d.ts.map +1 -1
- package/dist/validators/company.js +4 -3
- package/dist/validators/company.js.map +1 -1
- package/dist/validators/cost.d.ts +29 -57
- package/dist/validators/cost.d.ts.map +1 -1
- package/dist/validators/cost.js +5 -5
- package/dist/validators/decision-queue.d.ts +60 -108
- package/dist/validators/decision-queue.d.ts.map +1 -1
- package/dist/validators/decision.d.ts +230 -1884
- package/dist/validators/decision.d.ts.map +1 -1
- package/dist/validators/decision.js +9 -9
- package/dist/validators/document-annotation.d.ts +37 -203
- package/dist/validators/document-annotation.d.ts.map +1 -1
- package/dist/validators/document-annotation.js +3 -3
- package/dist/validators/environment-custom-images.d.ts +79 -173
- package/dist/validators/environment-custom-images.d.ts.map +1 -1
- package/dist/validators/environment-custom-images.js +14 -11
- package/dist/validators/environment-custom-images.js.map +1 -1
- package/dist/validators/environment.d.ts +82 -259
- package/dist/validators/environment.d.ts.map +1 -1
- package/dist/validators/execution-workspace.d.ts +173 -513
- package/dist/validators/execution-workspace.d.ts.map +1 -1
- package/dist/validators/execution-workspace.js +13 -13
- package/dist/validators/execution-workspace.js.map +1 -1
- package/dist/validators/external-object.d.ts +55 -27
- package/dist/validators/external-object.d.ts.map +1 -1
- package/dist/validators/external-object.js +1 -1
- package/dist/validators/external-object.js.map +1 -1
- package/dist/validators/feedback.d.ts +28 -19
- package/dist/validators/feedback.d.ts.map +1 -1
- package/dist/validators/feedback.js +1 -1
- package/dist/validators/finance.d.ts +69 -74
- package/dist/validators/finance.d.ts.map +1 -1
- package/dist/validators/finance.js +6 -6
- package/dist/validators/folder.d.ts +44 -205
- package/dist/validators/folder.d.ts.map +1 -1
- package/dist/validators/folder.js +7 -7
- package/dist/validators/goal.d.ts +26 -34
- package/dist/validators/goal.d.ts.map +1 -1
- package/dist/validators/goal.js +4 -3
- package/dist/validators/goal.js.map +1 -1
- package/dist/validators/inbox-agent-policy.d.ts +12 -16
- package/dist/validators/inbox-agent-policy.d.ts.map +1 -1
- package/dist/validators/inbox-agent-policy.js +1 -1
- package/dist/validators/index.d.ts +2 -2
- package/dist/validators/index.d.ts.map +1 -1
- package/dist/validators/index.js +2 -2
- package/dist/validators/index.js.map +1 -1
- package/dist/validators/instance.d.ts +50 -563
- package/dist/validators/instance.d.ts.map +1 -1
- package/dist/validators/instance.js +16 -6
- package/dist/validators/instance.js.map +1 -1
- package/dist/validators/instance.test.js +13 -0
- package/dist/validators/instance.test.js.map +1 -1
- package/dist/validators/issue-tree-control.d.ts +41 -80
- package/dist/validators/issue-tree-control.d.ts.map +1 -1
- package/dist/validators/issue.d.ts +1772 -12251
- package/dist/validators/issue.d.ts.map +1 -1
- package/dist/validators/issue.js +150 -84
- package/dist/validators/issue.js.map +1 -1
- package/dist/validators/onboarding-seed.d.ts +3 -37
- package/dist/validators/onboarding-seed.d.ts.map +1 -1
- package/dist/validators/partial.d.ts +4 -0
- package/dist/validators/partial.d.ts.map +1 -0
- package/dist/validators/partial.js +35 -0
- package/dist/validators/partial.js.map +1 -0
- package/dist/validators/pipeline.d.ts +218 -3882
- package/dist/validators/pipeline.d.ts.map +1 -1
- package/dist/validators/pipeline.js +11 -11
- package/dist/validators/plugin.d.ts +725 -2597
- package/dist/validators/plugin.d.ts.map +1 -1
- package/dist/validators/plugin.js +38 -6
- package/dist/validators/plugin.js.map +1 -1
- package/dist/validators/plugin.test.js +54 -10
- package/dist/validators/plugin.test.js.map +1 -1
- package/dist/validators/project.d.ts +345 -2406
- package/dist/validators/project.d.ts.map +1 -1
- package/dist/validators/project.js +8 -7
- package/dist/validators/project.js.map +1 -1
- package/dist/validators/resource-memberships.d.ts +11 -27
- package/dist/validators/resource-memberships.d.ts.map +1 -1
- package/dist/validators/routine.d.ts +362 -1297
- package/dist/validators/routine.d.ts.map +1 -1
- package/dist/validators/routine.js +21 -20
- package/dist/validators/routine.js.map +1 -1
- package/dist/validators/runtime-exposure.d.ts +31 -80
- package/dist/validators/runtime-exposure.d.ts.map +1 -1
- package/dist/validators/search.d.ts +25 -93
- package/dist/validators/search.d.ts.map +1 -1
- package/dist/validators/secret.d.ts +174 -655
- package/dist/validators/secret.d.ts.map +1 -1
- package/dist/validators/secret.js +14 -14
- package/dist/validators/secret.js.map +1 -1
- package/dist/validators/sidebar-preferences.d.ts +5 -15
- package/dist/validators/sidebar-preferences.d.ts.map +1 -1
- package/dist/validators/sidebar-preferences.js +1 -1
- package/dist/validators/skill-policy.d.ts +184 -561
- package/dist/validators/skill-policy.d.ts.map +1 -1
- package/dist/validators/skill-policy.js +4 -4
- package/dist/validators/smoke-lab.d.ts +53 -37
- package/dist/validators/smoke-lab.d.ts.map +1 -1
- package/dist/validators/status-card.d.ts +139 -994
- package/dist/validators/status-card.d.ts.map +1 -1
- package/dist/validators/status-card.js +21 -21
- package/dist/validators/status-card.js.map +1 -1
- package/dist/validators/summary-slot.d.ts +28 -50
- package/dist/validators/summary-slot.d.ts.map +1 -1
- package/dist/validators/summary-slot.js +3 -3
- package/dist/validators/teams-catalog.d.ts +209 -472
- package/dist/validators/teams-catalog.d.ts.map +1 -1
- package/dist/validators/text.d.ts +1 -1
- package/dist/validators/text.d.ts.map +1 -1
- package/dist/validators/tool-access.d.ts +1088 -4670
- package/dist/validators/tool-access.d.ts.map +1 -1
- package/dist/validators/tool-access.js +96 -95
- package/dist/validators/tool-access.js.map +1 -1
- package/dist/validators/trust-policy.d.ts +62 -358
- package/dist/validators/trust-policy.d.ts.map +1 -1
- package/dist/validators/trust-policy.js +12 -12
- package/dist/validators/work-product.d.ts +110 -536
- package/dist/validators/work-product.d.ts.map +1 -1
- package/dist/validators/work-product.js +7 -6
- package/dist/validators/work-product.js.map +1 -1
- package/dist/validators/workspace-file-resource.d.ts +163 -618
- package/dist/validators/workspace-file-resource.d.ts.map +1 -1
- package/dist/validators/workspace-file-resource.js +11 -11
- package/dist/workspace-commands.d.ts +4 -2
- package/dist/workspace-commands.d.ts.map +1 -1
- package/dist/workspace-commands.js +9 -1
- package/dist/workspace-commands.js.map +1 -1
- package/dist/workspace-commands.test.js +45 -0
- package/dist/workspace-commands.test.js.map +1 -1
- package/dist/worktree-port-registry.d.ts +5 -0
- package/dist/worktree-port-registry.d.ts.map +1 -0
- package/dist/worktree-port-registry.js +382 -0
- package/dist/worktree-port-registry.js.map +1 -0
- package/dist/worktree-port-registry.test.d.ts +2 -0
- package/dist/worktree-port-registry.test.d.ts.map +1 -0
- package/dist/worktree-port-registry.test.js +118 -0
- package/dist/worktree-port-registry.test.js.map +1 -0
- package/dist/worktree-seed-source.d.ts +43 -0
- package/dist/worktree-seed-source.d.ts.map +1 -0
- package/dist/worktree-seed-source.js +180 -0
- package/dist/worktree-seed-source.js.map +1 -0
- package/dist/worktree-seed-source.test.d.ts +2 -0
- package/dist/worktree-seed-source.test.d.ts.map +1 -0
- package/dist/worktree-seed-source.test.js +166 -0
- package/dist/worktree-seed-source.test.js.map +1 -0
- package/package.json +6 -3
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const executionWorkspaceStatusSchema: z.ZodEnum<
|
|
3
|
-
|
|
2
|
+
export declare const executionWorkspaceStatusSchema: z.ZodEnum<{
|
|
3
|
+
active: "active";
|
|
4
|
+
archived: "archived";
|
|
5
|
+
idle: "idle";
|
|
6
|
+
in_review: "in_review";
|
|
7
|
+
cleanup_failed: "cleanup_failed";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const executionWorkspaceDeliveryStateSchema: z.ZodEnum<{
|
|
10
|
+
unknown: "unknown";
|
|
11
|
+
merged_via_pr: "merged_via_pr";
|
|
12
|
+
merged_by_ancestry: "merged_by_ancestry";
|
|
13
|
+
unmerged: "unmerged";
|
|
14
|
+
}>;
|
|
4
15
|
export declare const workspaceOverviewQuerySchema: z.ZodObject<{
|
|
5
16
|
projectId: z.ZodOptional<z.ZodString>;
|
|
6
|
-
status: z.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
projectId?: string | undefined;
|
|
17
|
-
offset?: number | undefined;
|
|
18
|
-
limit?: number | undefined;
|
|
19
|
-
}>;
|
|
17
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
18
|
+
active: "active";
|
|
19
|
+
archived: "archived";
|
|
20
|
+
idle: "idle";
|
|
21
|
+
in_review: "in_review";
|
|
22
|
+
cleanup_failed: "cleanup_failed";
|
|
23
|
+
}>>>>;
|
|
24
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
25
|
+
offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
26
|
+
}, z.core.$strict>;
|
|
20
27
|
export declare const executionWorkspaceConfigSchema: z.ZodObject<{
|
|
21
28
|
environmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22
29
|
provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -24,77 +31,57 @@ export declare const executionWorkspaceConfigSchema: z.ZodObject<{
|
|
|
24
31
|
teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
25
32
|
cleanupCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
26
33
|
workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
27
|
-
desiredState: z.ZodNullable<z.ZodOptional<z.ZodEnum<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}, {
|
|
39
|
-
environmentId?: string | null | undefined;
|
|
40
|
-
provisionCommand?: string | null | undefined;
|
|
41
|
-
runtimeProvisionCommand?: string | null | undefined;
|
|
42
|
-
teardownCommand?: string | null | undefined;
|
|
43
|
-
workspaceRuntime?: Record<string, unknown> | null | undefined;
|
|
44
|
-
cleanupCommand?: string | null | undefined;
|
|
45
|
-
desiredState?: "running" | "manual" | "stopped" | null | undefined;
|
|
46
|
-
serviceStates?: Record<string, "running" | "manual" | "stopped"> | null | undefined;
|
|
47
|
-
}>;
|
|
34
|
+
desiredState: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
running: "running";
|
|
36
|
+
manual: "manual";
|
|
37
|
+
stopped: "stopped";
|
|
38
|
+
}>>>;
|
|
39
|
+
serviceStates: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
40
|
+
running: "running";
|
|
41
|
+
manual: "manual";
|
|
42
|
+
stopped: "stopped";
|
|
43
|
+
}>>>>;
|
|
44
|
+
}, z.core.$strict>;
|
|
48
45
|
export declare const workspaceRuntimeControlTargetSchema: z.ZodObject<{
|
|
49
46
|
workspaceCommandId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
50
47
|
runtimeServiceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
51
48
|
serviceIndex: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
export declare const executionWorkspaceCloseReadinessStateSchema: z.ZodEnum<{
|
|
51
|
+
blocked: "blocked";
|
|
52
|
+
ready: "ready";
|
|
53
|
+
ready_with_warnings: "ready_with_warnings";
|
|
54
|
+
}>;
|
|
55
|
+
export declare const executionWorkspaceCloseActionKindSchema: z.ZodEnum<{
|
|
56
|
+
archive_record: "archive_record";
|
|
57
|
+
stop_runtime_services: "stop_runtime_services";
|
|
58
|
+
cleanup_command: "cleanup_command";
|
|
59
|
+
teardown_command: "teardown_command";
|
|
60
|
+
git_worktree_remove: "git_worktree_remove";
|
|
61
|
+
git_branch_delete: "git_branch_delete";
|
|
62
|
+
remove_local_directory: "remove_local_directory";
|
|
60
63
|
}>;
|
|
61
|
-
export declare const executionWorkspaceCloseReadinessStateSchema: z.ZodEnum<["ready", "ready_with_warnings", "blocked"]>;
|
|
62
|
-
export declare const executionWorkspaceCloseActionKindSchema: z.ZodEnum<["archive_record", "stop_runtime_services", "cleanup_command", "teardown_command", "git_worktree_remove", "git_branch_delete", "remove_local_directory"]>;
|
|
63
64
|
export declare const executionWorkspaceCloseActionSchema: z.ZodObject<{
|
|
64
|
-
kind: z.ZodEnum<
|
|
65
|
+
kind: z.ZodEnum<{
|
|
66
|
+
archive_record: "archive_record";
|
|
67
|
+
stop_runtime_services: "stop_runtime_services";
|
|
68
|
+
cleanup_command: "cleanup_command";
|
|
69
|
+
teardown_command: "teardown_command";
|
|
70
|
+
git_worktree_remove: "git_worktree_remove";
|
|
71
|
+
git_branch_delete: "git_branch_delete";
|
|
72
|
+
remove_local_directory: "remove_local_directory";
|
|
73
|
+
}>;
|
|
65
74
|
label: z.ZodString;
|
|
66
75
|
description: z.ZodString;
|
|
67
76
|
command: z.ZodNullable<z.ZodString>;
|
|
68
|
-
},
|
|
69
|
-
description: string;
|
|
70
|
-
label: string;
|
|
71
|
-
kind: "archive_record" | "stop_runtime_services" | "cleanup_command" | "teardown_command" | "git_worktree_remove" | "git_branch_delete" | "remove_local_directory";
|
|
72
|
-
command: string | null;
|
|
73
|
-
}, {
|
|
74
|
-
description: string;
|
|
75
|
-
label: string;
|
|
76
|
-
kind: "archive_record" | "stop_runtime_services" | "cleanup_command" | "teardown_command" | "git_worktree_remove" | "git_branch_delete" | "remove_local_directory";
|
|
77
|
-
command: string | null;
|
|
78
|
-
}>;
|
|
77
|
+
}, z.core.$strict>;
|
|
79
78
|
export declare const executionWorkspaceCloseLinkedIssueSchema: z.ZodObject<{
|
|
80
79
|
id: z.ZodString;
|
|
81
80
|
identifier: z.ZodNullable<z.ZodString>;
|
|
82
81
|
title: z.ZodString;
|
|
83
82
|
status: z.ZodString;
|
|
84
83
|
isTerminal: z.ZodBoolean;
|
|
85
|
-
},
|
|
86
|
-
title: string;
|
|
87
|
-
status: string;
|
|
88
|
-
id: string;
|
|
89
|
-
identifier: string | null;
|
|
90
|
-
isTerminal: boolean;
|
|
91
|
-
}, {
|
|
92
|
-
title: string;
|
|
93
|
-
status: string;
|
|
94
|
-
id: string;
|
|
95
|
-
identifier: string | null;
|
|
96
|
-
isTerminal: boolean;
|
|
97
|
-
}>;
|
|
84
|
+
}, z.core.$strict>;
|
|
98
85
|
export declare const executionWorkspaceCloseGitReadinessSchema: z.ZodObject<{
|
|
99
86
|
repoRoot: z.ZodNullable<z.ZodString>;
|
|
100
87
|
workspacePath: z.ZodNullable<z.ZodString>;
|
|
@@ -108,33 +95,7 @@ export declare const executionWorkspaceCloseGitReadinessSchema: z.ZodObject<{
|
|
|
108
95
|
behindCount: z.ZodNullable<z.ZodNumber>;
|
|
109
96
|
isMergedIntoBase: z.ZodNullable<z.ZodBoolean>;
|
|
110
97
|
createdByRuntime: z.ZodBoolean;
|
|
111
|
-
},
|
|
112
|
-
baseRef: string | null;
|
|
113
|
-
repoRoot: string | null;
|
|
114
|
-
workspacePath: string | null;
|
|
115
|
-
branchName: string | null;
|
|
116
|
-
hasDirtyTrackedFiles: boolean;
|
|
117
|
-
hasUntrackedFiles: boolean;
|
|
118
|
-
dirtyEntryCount: number;
|
|
119
|
-
untrackedEntryCount: number;
|
|
120
|
-
aheadCount: number | null;
|
|
121
|
-
behindCount: number | null;
|
|
122
|
-
isMergedIntoBase: boolean | null;
|
|
123
|
-
createdByRuntime: boolean;
|
|
124
|
-
}, {
|
|
125
|
-
baseRef: string | null;
|
|
126
|
-
repoRoot: string | null;
|
|
127
|
-
workspacePath: string | null;
|
|
128
|
-
branchName: string | null;
|
|
129
|
-
hasDirtyTrackedFiles: boolean;
|
|
130
|
-
hasUntrackedFiles: boolean;
|
|
131
|
-
dirtyEntryCount: number;
|
|
132
|
-
untrackedEntryCount: number;
|
|
133
|
-
aheadCount: number | null;
|
|
134
|
-
behindCount: number | null;
|
|
135
|
-
isMergedIntoBase: boolean | null;
|
|
136
|
-
createdByRuntime: boolean;
|
|
137
|
-
}>;
|
|
98
|
+
}, z.core.$strict>;
|
|
138
99
|
export declare const workspaceRuntimeServiceSchema: z.ZodObject<{
|
|
139
100
|
id: z.ZodString;
|
|
140
101
|
companyId: z.ZodString;
|
|
@@ -142,128 +103,86 @@ export declare const workspaceRuntimeServiceSchema: z.ZodObject<{
|
|
|
142
103
|
projectWorkspaceId: z.ZodNullable<z.ZodString>;
|
|
143
104
|
executionWorkspaceId: z.ZodNullable<z.ZodString>;
|
|
144
105
|
issueId: z.ZodNullable<z.ZodString>;
|
|
145
|
-
scopeType: z.ZodEnum<
|
|
106
|
+
scopeType: z.ZodEnum<{
|
|
107
|
+
project_workspace: "project_workspace";
|
|
108
|
+
execution_workspace: "execution_workspace";
|
|
109
|
+
agent: "agent";
|
|
110
|
+
run: "run";
|
|
111
|
+
}>;
|
|
146
112
|
scopeId: z.ZodNullable<z.ZodString>;
|
|
147
113
|
serviceName: z.ZodString;
|
|
148
|
-
status: z.ZodEnum<
|
|
149
|
-
|
|
114
|
+
status: z.ZodEnum<{
|
|
115
|
+
running: "running";
|
|
116
|
+
failed: "failed";
|
|
117
|
+
starting: "starting";
|
|
118
|
+
stopped: "stopped";
|
|
119
|
+
provisioning: "provisioning";
|
|
120
|
+
}>;
|
|
121
|
+
lifecycle: z.ZodEnum<{
|
|
122
|
+
ephemeral: "ephemeral";
|
|
123
|
+
shared: "shared";
|
|
124
|
+
}>;
|
|
150
125
|
reuseKey: z.ZodNullable<z.ZodString>;
|
|
151
126
|
command: z.ZodNullable<z.ZodString>;
|
|
152
127
|
cwd: z.ZodNullable<z.ZodString>;
|
|
153
128
|
port: z.ZodNullable<z.ZodNumber>;
|
|
154
129
|
url: z.ZodNullable<z.ZodString>;
|
|
155
|
-
provider: z.ZodEnum<
|
|
130
|
+
provider: z.ZodEnum<{
|
|
131
|
+
adapter_managed: "adapter_managed";
|
|
132
|
+
local_process: "local_process";
|
|
133
|
+
}>;
|
|
156
134
|
providerRef: z.ZodNullable<z.ZodString>;
|
|
157
135
|
ownerAgentId: z.ZodNullable<z.ZodString>;
|
|
158
136
|
startedByRunId: z.ZodNullable<z.ZodString>;
|
|
159
|
-
lastUsedAt: z.
|
|
160
|
-
startedAt: z.
|
|
161
|
-
stoppedAt: z.ZodNullable<z.
|
|
137
|
+
lastUsedAt: z.ZodCoercedDate<unknown>;
|
|
138
|
+
startedAt: z.ZodCoercedDate<unknown>;
|
|
139
|
+
stoppedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
162
140
|
stopPolicy: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
163
|
-
healthStatus: z.ZodEnum<
|
|
141
|
+
healthStatus: z.ZodEnum<{
|
|
142
|
+
unknown: "unknown";
|
|
143
|
+
healthy: "healthy";
|
|
144
|
+
unhealthy: "unhealthy";
|
|
145
|
+
}>;
|
|
164
146
|
configIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
165
|
-
createdAt: z.
|
|
166
|
-
updatedAt: z.
|
|
167
|
-
},
|
|
168
|
-
cwd: string | null;
|
|
169
|
-
companyId: string;
|
|
170
|
-
status: "running" | "failed" | "starting" | "stopped" | "provisioning";
|
|
171
|
-
provider: "adapter_managed" | "local_process";
|
|
172
|
-
projectId: string | null;
|
|
173
|
-
url: string | null;
|
|
174
|
-
issueId: string | null;
|
|
175
|
-
id: string;
|
|
176
|
-
healthStatus: "unknown" | "healthy" | "unhealthy";
|
|
177
|
-
projectWorkspaceId: string | null;
|
|
178
|
-
executionWorkspaceId: string | null;
|
|
179
|
-
startedAt: Date;
|
|
180
|
-
createdAt: Date;
|
|
181
|
-
updatedAt: Date;
|
|
182
|
-
serviceName: string;
|
|
183
|
-
ownerAgentId: string | null;
|
|
184
|
-
scopeId: string | null;
|
|
185
|
-
lastUsedAt: Date;
|
|
186
|
-
command: string | null;
|
|
187
|
-
scopeType: "project_workspace" | "execution_workspace" | "agent" | "run";
|
|
188
|
-
lifecycle: "ephemeral" | "shared";
|
|
189
|
-
reuseKey: string | null;
|
|
190
|
-
port: number | null;
|
|
191
|
-
providerRef: string | null;
|
|
192
|
-
startedByRunId: string | null;
|
|
193
|
-
stoppedAt: Date | null;
|
|
194
|
-
stopPolicy: Record<string, unknown> | null;
|
|
195
|
-
configIndex?: number | null | undefined;
|
|
196
|
-
}, {
|
|
197
|
-
cwd: string | null;
|
|
198
|
-
companyId: string;
|
|
199
|
-
status: "running" | "failed" | "starting" | "stopped" | "provisioning";
|
|
200
|
-
provider: "adapter_managed" | "local_process";
|
|
201
|
-
projectId: string | null;
|
|
202
|
-
url: string | null;
|
|
203
|
-
issueId: string | null;
|
|
204
|
-
id: string;
|
|
205
|
-
healthStatus: "unknown" | "healthy" | "unhealthy";
|
|
206
|
-
projectWorkspaceId: string | null;
|
|
207
|
-
executionWorkspaceId: string | null;
|
|
208
|
-
startedAt: Date;
|
|
209
|
-
createdAt: Date;
|
|
210
|
-
updatedAt: Date;
|
|
211
|
-
serviceName: string;
|
|
212
|
-
ownerAgentId: string | null;
|
|
213
|
-
scopeId: string | null;
|
|
214
|
-
lastUsedAt: Date;
|
|
215
|
-
command: string | null;
|
|
216
|
-
scopeType: "project_workspace" | "execution_workspace" | "agent" | "run";
|
|
217
|
-
lifecycle: "ephemeral" | "shared";
|
|
218
|
-
reuseKey: string | null;
|
|
219
|
-
port: number | null;
|
|
220
|
-
providerRef: string | null;
|
|
221
|
-
startedByRunId: string | null;
|
|
222
|
-
stoppedAt: Date | null;
|
|
223
|
-
stopPolicy: Record<string, unknown> | null;
|
|
224
|
-
configIndex?: number | null | undefined;
|
|
225
|
-
}>;
|
|
147
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
148
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
149
|
+
}, z.core.$strict>;
|
|
226
150
|
export declare const executionWorkspaceCloseReadinessSchema: z.ZodObject<{
|
|
227
151
|
workspaceId: z.ZodString;
|
|
228
|
-
deliveryState: z.ZodEnum<
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
152
|
+
deliveryState: z.ZodEnum<{
|
|
153
|
+
unknown: "unknown";
|
|
154
|
+
merged_via_pr: "merged_via_pr";
|
|
155
|
+
merged_by_ancestry: "merged_by_ancestry";
|
|
156
|
+
unmerged: "unmerged";
|
|
157
|
+
}>;
|
|
158
|
+
state: z.ZodEnum<{
|
|
159
|
+
blocked: "blocked";
|
|
160
|
+
ready: "ready";
|
|
161
|
+
ready_with_warnings: "ready_with_warnings";
|
|
162
|
+
}>;
|
|
163
|
+
blockingReasons: z.ZodArray<z.ZodString>;
|
|
164
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
232
165
|
linkedIssues: z.ZodArray<z.ZodObject<{
|
|
233
166
|
id: z.ZodString;
|
|
234
167
|
identifier: z.ZodNullable<z.ZodString>;
|
|
235
168
|
title: z.ZodString;
|
|
236
169
|
status: z.ZodString;
|
|
237
170
|
isTerminal: z.ZodBoolean;
|
|
238
|
-
},
|
|
239
|
-
title: string;
|
|
240
|
-
status: string;
|
|
241
|
-
id: string;
|
|
242
|
-
identifier: string | null;
|
|
243
|
-
isTerminal: boolean;
|
|
244
|
-
}, {
|
|
245
|
-
title: string;
|
|
246
|
-
status: string;
|
|
247
|
-
id: string;
|
|
248
|
-
identifier: string | null;
|
|
249
|
-
isTerminal: boolean;
|
|
250
|
-
}>, "many">;
|
|
171
|
+
}, z.core.$strict>>;
|
|
251
172
|
plannedActions: z.ZodArray<z.ZodObject<{
|
|
252
|
-
kind: z.ZodEnum<
|
|
173
|
+
kind: z.ZodEnum<{
|
|
174
|
+
archive_record: "archive_record";
|
|
175
|
+
stop_runtime_services: "stop_runtime_services";
|
|
176
|
+
cleanup_command: "cleanup_command";
|
|
177
|
+
teardown_command: "teardown_command";
|
|
178
|
+
git_worktree_remove: "git_worktree_remove";
|
|
179
|
+
git_branch_delete: "git_branch_delete";
|
|
180
|
+
remove_local_directory: "remove_local_directory";
|
|
181
|
+
}>;
|
|
253
182
|
label: z.ZodString;
|
|
254
183
|
description: z.ZodString;
|
|
255
184
|
command: z.ZodNullable<z.ZodString>;
|
|
256
|
-
},
|
|
257
|
-
description: string;
|
|
258
|
-
label: string;
|
|
259
|
-
kind: "archive_record" | "stop_runtime_services" | "cleanup_command" | "teardown_command" | "git_worktree_remove" | "git_branch_delete" | "remove_local_directory";
|
|
260
|
-
command: string | null;
|
|
261
|
-
}, {
|
|
262
|
-
description: string;
|
|
263
|
-
label: string;
|
|
264
|
-
kind: "archive_record" | "stop_runtime_services" | "cleanup_command" | "teardown_command" | "git_worktree_remove" | "git_branch_delete" | "remove_local_directory";
|
|
265
|
-
command: string | null;
|
|
266
|
-
}>, "many">;
|
|
185
|
+
}, z.core.$strict>>;
|
|
267
186
|
isDestructiveCloseAllowed: z.ZodBoolean;
|
|
268
187
|
isSharedWorkspace: z.ZodBoolean;
|
|
269
188
|
isProjectPrimaryWorkspace: z.ZodBoolean;
|
|
@@ -280,33 +199,7 @@ export declare const executionWorkspaceCloseReadinessSchema: z.ZodObject<{
|
|
|
280
199
|
behindCount: z.ZodNullable<z.ZodNumber>;
|
|
281
200
|
isMergedIntoBase: z.ZodNullable<z.ZodBoolean>;
|
|
282
201
|
createdByRuntime: z.ZodBoolean;
|
|
283
|
-
},
|
|
284
|
-
baseRef: string | null;
|
|
285
|
-
repoRoot: string | null;
|
|
286
|
-
workspacePath: string | null;
|
|
287
|
-
branchName: string | null;
|
|
288
|
-
hasDirtyTrackedFiles: boolean;
|
|
289
|
-
hasUntrackedFiles: boolean;
|
|
290
|
-
dirtyEntryCount: number;
|
|
291
|
-
untrackedEntryCount: number;
|
|
292
|
-
aheadCount: number | null;
|
|
293
|
-
behindCount: number | null;
|
|
294
|
-
isMergedIntoBase: boolean | null;
|
|
295
|
-
createdByRuntime: boolean;
|
|
296
|
-
}, {
|
|
297
|
-
baseRef: string | null;
|
|
298
|
-
repoRoot: string | null;
|
|
299
|
-
workspacePath: string | null;
|
|
300
|
-
branchName: string | null;
|
|
301
|
-
hasDirtyTrackedFiles: boolean;
|
|
302
|
-
hasUntrackedFiles: boolean;
|
|
303
|
-
dirtyEntryCount: number;
|
|
304
|
-
untrackedEntryCount: number;
|
|
305
|
-
aheadCount: number | null;
|
|
306
|
-
behindCount: number | null;
|
|
307
|
-
isMergedIntoBase: boolean | null;
|
|
308
|
-
createdByRuntime: boolean;
|
|
309
|
-
}>>;
|
|
202
|
+
}, z.core.$strict>>;
|
|
310
203
|
runtimeServices: z.ZodArray<z.ZodObject<{
|
|
311
204
|
id: z.ZodString;
|
|
312
205
|
companyId: z.ZodString;
|
|
@@ -314,220 +207,51 @@ export declare const executionWorkspaceCloseReadinessSchema: z.ZodObject<{
|
|
|
314
207
|
projectWorkspaceId: z.ZodNullable<z.ZodString>;
|
|
315
208
|
executionWorkspaceId: z.ZodNullable<z.ZodString>;
|
|
316
209
|
issueId: z.ZodNullable<z.ZodString>;
|
|
317
|
-
scopeType: z.ZodEnum<
|
|
210
|
+
scopeType: z.ZodEnum<{
|
|
211
|
+
project_workspace: "project_workspace";
|
|
212
|
+
execution_workspace: "execution_workspace";
|
|
213
|
+
agent: "agent";
|
|
214
|
+
run: "run";
|
|
215
|
+
}>;
|
|
318
216
|
scopeId: z.ZodNullable<z.ZodString>;
|
|
319
217
|
serviceName: z.ZodString;
|
|
320
|
-
status: z.ZodEnum<
|
|
321
|
-
|
|
218
|
+
status: z.ZodEnum<{
|
|
219
|
+
running: "running";
|
|
220
|
+
failed: "failed";
|
|
221
|
+
starting: "starting";
|
|
222
|
+
stopped: "stopped";
|
|
223
|
+
provisioning: "provisioning";
|
|
224
|
+
}>;
|
|
225
|
+
lifecycle: z.ZodEnum<{
|
|
226
|
+
ephemeral: "ephemeral";
|
|
227
|
+
shared: "shared";
|
|
228
|
+
}>;
|
|
322
229
|
reuseKey: z.ZodNullable<z.ZodString>;
|
|
323
230
|
command: z.ZodNullable<z.ZodString>;
|
|
324
231
|
cwd: z.ZodNullable<z.ZodString>;
|
|
325
232
|
port: z.ZodNullable<z.ZodNumber>;
|
|
326
233
|
url: z.ZodNullable<z.ZodString>;
|
|
327
|
-
provider: z.ZodEnum<
|
|
234
|
+
provider: z.ZodEnum<{
|
|
235
|
+
adapter_managed: "adapter_managed";
|
|
236
|
+
local_process: "local_process";
|
|
237
|
+
}>;
|
|
328
238
|
providerRef: z.ZodNullable<z.ZodString>;
|
|
329
239
|
ownerAgentId: z.ZodNullable<z.ZodString>;
|
|
330
240
|
startedByRunId: z.ZodNullable<z.ZodString>;
|
|
331
|
-
lastUsedAt: z.
|
|
332
|
-
startedAt: z.
|
|
333
|
-
stoppedAt: z.ZodNullable<z.
|
|
241
|
+
lastUsedAt: z.ZodCoercedDate<unknown>;
|
|
242
|
+
startedAt: z.ZodCoercedDate<unknown>;
|
|
243
|
+
stoppedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
334
244
|
stopPolicy: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
335
|
-
healthStatus: z.ZodEnum<
|
|
245
|
+
healthStatus: z.ZodEnum<{
|
|
246
|
+
unknown: "unknown";
|
|
247
|
+
healthy: "healthy";
|
|
248
|
+
unhealthy: "unhealthy";
|
|
249
|
+
}>;
|
|
336
250
|
configIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
337
|
-
createdAt: z.
|
|
338
|
-
updatedAt: z.
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
companyId: string;
|
|
342
|
-
status: "running" | "failed" | "starting" | "stopped" | "provisioning";
|
|
343
|
-
provider: "adapter_managed" | "local_process";
|
|
344
|
-
projectId: string | null;
|
|
345
|
-
url: string | null;
|
|
346
|
-
issueId: string | null;
|
|
347
|
-
id: string;
|
|
348
|
-
healthStatus: "unknown" | "healthy" | "unhealthy";
|
|
349
|
-
projectWorkspaceId: string | null;
|
|
350
|
-
executionWorkspaceId: string | null;
|
|
351
|
-
startedAt: Date;
|
|
352
|
-
createdAt: Date;
|
|
353
|
-
updatedAt: Date;
|
|
354
|
-
serviceName: string;
|
|
355
|
-
ownerAgentId: string | null;
|
|
356
|
-
scopeId: string | null;
|
|
357
|
-
lastUsedAt: Date;
|
|
358
|
-
command: string | null;
|
|
359
|
-
scopeType: "project_workspace" | "execution_workspace" | "agent" | "run";
|
|
360
|
-
lifecycle: "ephemeral" | "shared";
|
|
361
|
-
reuseKey: string | null;
|
|
362
|
-
port: number | null;
|
|
363
|
-
providerRef: string | null;
|
|
364
|
-
startedByRunId: string | null;
|
|
365
|
-
stoppedAt: Date | null;
|
|
366
|
-
stopPolicy: Record<string, unknown> | null;
|
|
367
|
-
configIndex?: number | null | undefined;
|
|
368
|
-
}, {
|
|
369
|
-
cwd: string | null;
|
|
370
|
-
companyId: string;
|
|
371
|
-
status: "running" | "failed" | "starting" | "stopped" | "provisioning";
|
|
372
|
-
provider: "adapter_managed" | "local_process";
|
|
373
|
-
projectId: string | null;
|
|
374
|
-
url: string | null;
|
|
375
|
-
issueId: string | null;
|
|
376
|
-
id: string;
|
|
377
|
-
healthStatus: "unknown" | "healthy" | "unhealthy";
|
|
378
|
-
projectWorkspaceId: string | null;
|
|
379
|
-
executionWorkspaceId: string | null;
|
|
380
|
-
startedAt: Date;
|
|
381
|
-
createdAt: Date;
|
|
382
|
-
updatedAt: Date;
|
|
383
|
-
serviceName: string;
|
|
384
|
-
ownerAgentId: string | null;
|
|
385
|
-
scopeId: string | null;
|
|
386
|
-
lastUsedAt: Date;
|
|
387
|
-
command: string | null;
|
|
388
|
-
scopeType: "project_workspace" | "execution_workspace" | "agent" | "run";
|
|
389
|
-
lifecycle: "ephemeral" | "shared";
|
|
390
|
-
reuseKey: string | null;
|
|
391
|
-
port: number | null;
|
|
392
|
-
providerRef: string | null;
|
|
393
|
-
startedByRunId: string | null;
|
|
394
|
-
stoppedAt: Date | null;
|
|
395
|
-
stopPolicy: Record<string, unknown> | null;
|
|
396
|
-
configIndex?: number | null | undefined;
|
|
397
|
-
}>, "many">;
|
|
398
|
-
}, "strict", z.ZodTypeAny, {
|
|
399
|
-
state: "blocked" | "ready" | "ready_with_warnings";
|
|
400
|
-
warnings: string[];
|
|
401
|
-
workspaceId: string;
|
|
402
|
-
deliveryState: "unknown" | "merged_via_pr" | "merged_by_ancestry" | "unmerged";
|
|
403
|
-
blockingReasons: string[];
|
|
404
|
-
linkedIssues: {
|
|
405
|
-
title: string;
|
|
406
|
-
status: string;
|
|
407
|
-
id: string;
|
|
408
|
-
identifier: string | null;
|
|
409
|
-
isTerminal: boolean;
|
|
410
|
-
}[];
|
|
411
|
-
plannedActions: {
|
|
412
|
-
description: string;
|
|
413
|
-
label: string;
|
|
414
|
-
kind: "archive_record" | "stop_runtime_services" | "cleanup_command" | "teardown_command" | "git_worktree_remove" | "git_branch_delete" | "remove_local_directory";
|
|
415
|
-
command: string | null;
|
|
416
|
-
}[];
|
|
417
|
-
isDestructiveCloseAllowed: boolean;
|
|
418
|
-
isSharedWorkspace: boolean;
|
|
419
|
-
isProjectPrimaryWorkspace: boolean;
|
|
420
|
-
git: {
|
|
421
|
-
baseRef: string | null;
|
|
422
|
-
repoRoot: string | null;
|
|
423
|
-
workspacePath: string | null;
|
|
424
|
-
branchName: string | null;
|
|
425
|
-
hasDirtyTrackedFiles: boolean;
|
|
426
|
-
hasUntrackedFiles: boolean;
|
|
427
|
-
dirtyEntryCount: number;
|
|
428
|
-
untrackedEntryCount: number;
|
|
429
|
-
aheadCount: number | null;
|
|
430
|
-
behindCount: number | null;
|
|
431
|
-
isMergedIntoBase: boolean | null;
|
|
432
|
-
createdByRuntime: boolean;
|
|
433
|
-
} | null;
|
|
434
|
-
runtimeServices: {
|
|
435
|
-
cwd: string | null;
|
|
436
|
-
companyId: string;
|
|
437
|
-
status: "running" | "failed" | "starting" | "stopped" | "provisioning";
|
|
438
|
-
provider: "adapter_managed" | "local_process";
|
|
439
|
-
projectId: string | null;
|
|
440
|
-
url: string | null;
|
|
441
|
-
issueId: string | null;
|
|
442
|
-
id: string;
|
|
443
|
-
healthStatus: "unknown" | "healthy" | "unhealthy";
|
|
444
|
-
projectWorkspaceId: string | null;
|
|
445
|
-
executionWorkspaceId: string | null;
|
|
446
|
-
startedAt: Date;
|
|
447
|
-
createdAt: Date;
|
|
448
|
-
updatedAt: Date;
|
|
449
|
-
serviceName: string;
|
|
450
|
-
ownerAgentId: string | null;
|
|
451
|
-
scopeId: string | null;
|
|
452
|
-
lastUsedAt: Date;
|
|
453
|
-
command: string | null;
|
|
454
|
-
scopeType: "project_workspace" | "execution_workspace" | "agent" | "run";
|
|
455
|
-
lifecycle: "ephemeral" | "shared";
|
|
456
|
-
reuseKey: string | null;
|
|
457
|
-
port: number | null;
|
|
458
|
-
providerRef: string | null;
|
|
459
|
-
startedByRunId: string | null;
|
|
460
|
-
stoppedAt: Date | null;
|
|
461
|
-
stopPolicy: Record<string, unknown> | null;
|
|
462
|
-
configIndex?: number | null | undefined;
|
|
463
|
-
}[];
|
|
464
|
-
}, {
|
|
465
|
-
state: "blocked" | "ready" | "ready_with_warnings";
|
|
466
|
-
warnings: string[];
|
|
467
|
-
workspaceId: string;
|
|
468
|
-
deliveryState: "unknown" | "merged_via_pr" | "merged_by_ancestry" | "unmerged";
|
|
469
|
-
blockingReasons: string[];
|
|
470
|
-
linkedIssues: {
|
|
471
|
-
title: string;
|
|
472
|
-
status: string;
|
|
473
|
-
id: string;
|
|
474
|
-
identifier: string | null;
|
|
475
|
-
isTerminal: boolean;
|
|
476
|
-
}[];
|
|
477
|
-
plannedActions: {
|
|
478
|
-
description: string;
|
|
479
|
-
label: string;
|
|
480
|
-
kind: "archive_record" | "stop_runtime_services" | "cleanup_command" | "teardown_command" | "git_worktree_remove" | "git_branch_delete" | "remove_local_directory";
|
|
481
|
-
command: string | null;
|
|
482
|
-
}[];
|
|
483
|
-
isDestructiveCloseAllowed: boolean;
|
|
484
|
-
isSharedWorkspace: boolean;
|
|
485
|
-
isProjectPrimaryWorkspace: boolean;
|
|
486
|
-
git: {
|
|
487
|
-
baseRef: string | null;
|
|
488
|
-
repoRoot: string | null;
|
|
489
|
-
workspacePath: string | null;
|
|
490
|
-
branchName: string | null;
|
|
491
|
-
hasDirtyTrackedFiles: boolean;
|
|
492
|
-
hasUntrackedFiles: boolean;
|
|
493
|
-
dirtyEntryCount: number;
|
|
494
|
-
untrackedEntryCount: number;
|
|
495
|
-
aheadCount: number | null;
|
|
496
|
-
behindCount: number | null;
|
|
497
|
-
isMergedIntoBase: boolean | null;
|
|
498
|
-
createdByRuntime: boolean;
|
|
499
|
-
} | null;
|
|
500
|
-
runtimeServices: {
|
|
501
|
-
cwd: string | null;
|
|
502
|
-
companyId: string;
|
|
503
|
-
status: "running" | "failed" | "starting" | "stopped" | "provisioning";
|
|
504
|
-
provider: "adapter_managed" | "local_process";
|
|
505
|
-
projectId: string | null;
|
|
506
|
-
url: string | null;
|
|
507
|
-
issueId: string | null;
|
|
508
|
-
id: string;
|
|
509
|
-
healthStatus: "unknown" | "healthy" | "unhealthy";
|
|
510
|
-
projectWorkspaceId: string | null;
|
|
511
|
-
executionWorkspaceId: string | null;
|
|
512
|
-
startedAt: Date;
|
|
513
|
-
createdAt: Date;
|
|
514
|
-
updatedAt: Date;
|
|
515
|
-
serviceName: string;
|
|
516
|
-
ownerAgentId: string | null;
|
|
517
|
-
scopeId: string | null;
|
|
518
|
-
lastUsedAt: Date;
|
|
519
|
-
command: string | null;
|
|
520
|
-
scopeType: "project_workspace" | "execution_workspace" | "agent" | "run";
|
|
521
|
-
lifecycle: "ephemeral" | "shared";
|
|
522
|
-
reuseKey: string | null;
|
|
523
|
-
port: number | null;
|
|
524
|
-
providerRef: string | null;
|
|
525
|
-
startedByRunId: string | null;
|
|
526
|
-
stoppedAt: Date | null;
|
|
527
|
-
stopPolicy: Record<string, unknown> | null;
|
|
528
|
-
configIndex?: number | null | undefined;
|
|
529
|
-
}[];
|
|
530
|
-
}>;
|
|
251
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
252
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
253
|
+
}, z.core.$strict>>;
|
|
254
|
+
}, z.core.$strict>;
|
|
531
255
|
export declare const updateExecutionWorkspaceSchema: z.ZodObject<{
|
|
532
256
|
name: z.ZodOptional<z.ZodString>;
|
|
533
257
|
cwd: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -535,7 +259,13 @@ export declare const updateExecutionWorkspaceSchema: z.ZodObject<{
|
|
|
535
259
|
baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
536
260
|
branchName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
537
261
|
providerRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
538
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
262
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
263
|
+
active: "active";
|
|
264
|
+
archived: "archived";
|
|
265
|
+
idle: "idle";
|
|
266
|
+
in_review: "in_review";
|
|
267
|
+
cleanup_failed: "cleanup_failed";
|
|
268
|
+
}>>;
|
|
539
269
|
cleanupEligibleAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
540
270
|
cleanupReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
541
271
|
config: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -545,99 +275,29 @@ export declare const updateExecutionWorkspaceSchema: z.ZodObject<{
|
|
|
545
275
|
teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
546
276
|
cleanupCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
547
277
|
workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
548
|
-
desiredState: z.ZodNullable<z.ZodOptional<z.ZodEnum<
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
}, {
|
|
560
|
-
environmentId?: string | null | undefined;
|
|
561
|
-
provisionCommand?: string | null | undefined;
|
|
562
|
-
runtimeProvisionCommand?: string | null | undefined;
|
|
563
|
-
teardownCommand?: string | null | undefined;
|
|
564
|
-
workspaceRuntime?: Record<string, unknown> | null | undefined;
|
|
565
|
-
cleanupCommand?: string | null | undefined;
|
|
566
|
-
desiredState?: "running" | "manual" | "stopped" | null | undefined;
|
|
567
|
-
serviceStates?: Record<string, "running" | "manual" | "stopped"> | null | undefined;
|
|
568
|
-
}>>>;
|
|
278
|
+
desiredState: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
279
|
+
running: "running";
|
|
280
|
+
manual: "manual";
|
|
281
|
+
stopped: "stopped";
|
|
282
|
+
}>>>;
|
|
283
|
+
serviceStates: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
284
|
+
running: "running";
|
|
285
|
+
manual: "manual";
|
|
286
|
+
stopped: "stopped";
|
|
287
|
+
}>>>>;
|
|
288
|
+
}, z.core.$strict>>>;
|
|
569
289
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
570
|
-
},
|
|
571
|
-
|
|
572
|
-
status?: "active" | "archived" | "idle" | "in_review" | "cleanup_failed" | undefined;
|
|
573
|
-
name?: string | undefined;
|
|
574
|
-
config?: {
|
|
575
|
-
environmentId?: string | null | undefined;
|
|
576
|
-
provisionCommand?: string | null | undefined;
|
|
577
|
-
runtimeProvisionCommand?: string | null | undefined;
|
|
578
|
-
teardownCommand?: string | null | undefined;
|
|
579
|
-
workspaceRuntime?: Record<string, unknown> | null | undefined;
|
|
580
|
-
cleanupCommand?: string | null | undefined;
|
|
581
|
-
desiredState?: "running" | "manual" | "stopped" | null | undefined;
|
|
582
|
-
serviceStates?: Record<string, "running" | "manual" | "stopped"> | null | undefined;
|
|
583
|
-
} | null | undefined;
|
|
584
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
585
|
-
baseRef?: string | null | undefined;
|
|
586
|
-
branchName?: string | null | undefined;
|
|
587
|
-
providerRef?: string | null | undefined;
|
|
588
|
-
repoUrl?: string | null | undefined;
|
|
589
|
-
cleanupEligibleAt?: string | null | undefined;
|
|
590
|
-
cleanupReason?: string | null | undefined;
|
|
591
|
-
}, {
|
|
592
|
-
cwd?: string | null | undefined;
|
|
593
|
-
status?: "active" | "archived" | "idle" | "in_review" | "cleanup_failed" | undefined;
|
|
594
|
-
name?: string | undefined;
|
|
595
|
-
config?: {
|
|
596
|
-
environmentId?: string | null | undefined;
|
|
597
|
-
provisionCommand?: string | null | undefined;
|
|
598
|
-
runtimeProvisionCommand?: string | null | undefined;
|
|
599
|
-
teardownCommand?: string | null | undefined;
|
|
600
|
-
workspaceRuntime?: Record<string, unknown> | null | undefined;
|
|
601
|
-
cleanupCommand?: string | null | undefined;
|
|
602
|
-
desiredState?: "running" | "manual" | "stopped" | null | undefined;
|
|
603
|
-
serviceStates?: Record<string, "running" | "manual" | "stopped"> | null | undefined;
|
|
604
|
-
} | null | undefined;
|
|
605
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
606
|
-
baseRef?: string | null | undefined;
|
|
607
|
-
branchName?: string | null | undefined;
|
|
608
|
-
providerRef?: string | null | undefined;
|
|
609
|
-
repoUrl?: string | null | undefined;
|
|
610
|
-
cleanupEligibleAt?: string | null | undefined;
|
|
611
|
-
cleanupReason?: string | null | undefined;
|
|
612
|
-
}>;
|
|
613
|
-
export declare const reconcileExecutionWorkspaceBranchSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
290
|
+
}, z.core.$strict>;
|
|
291
|
+
export declare const reconcileExecutionWorkspaceBranchSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
614
292
|
mode: z.ZodLiteral<"forward">;
|
|
615
293
|
reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
616
|
-
},
|
|
617
|
-
mode: "forward";
|
|
618
|
-
reason?: string | null | undefined;
|
|
619
|
-
}, {
|
|
620
|
-
mode: "forward";
|
|
621
|
-
reason?: string | null | undefined;
|
|
622
|
-
}>, z.ZodObject<{
|
|
294
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
623
295
|
mode: z.ZodLiteral<"override">;
|
|
624
296
|
reason: z.ZodString;
|
|
625
|
-
},
|
|
626
|
-
mode: "override";
|
|
627
|
-
reason: string;
|
|
628
|
-
}, {
|
|
629
|
-
mode: "override";
|
|
630
|
-
reason: string;
|
|
631
|
-
}>, z.ZodObject<{
|
|
297
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
632
298
|
mode: z.ZodLiteral<"quarantine_restore">;
|
|
633
299
|
reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
634
|
-
},
|
|
635
|
-
mode: "quarantine_restore";
|
|
636
|
-
reason?: string | null | undefined;
|
|
637
|
-
}, {
|
|
638
|
-
mode: "quarantine_restore";
|
|
639
|
-
reason?: string | null | undefined;
|
|
640
|
-
}>]>;
|
|
300
|
+
}, z.core.$strict>], "mode">;
|
|
641
301
|
export type UpdateExecutionWorkspace = z.infer<typeof updateExecutionWorkspaceSchema>;
|
|
642
302
|
export type ReconcileExecutionWorkspaceBranch = z.infer<typeof reconcileExecutionWorkspaceBranchSchema>;
|
|
643
303
|
export type WorkspaceOverviewQuery = z.infer<typeof workspaceOverviewQuerySchema>;
|