veryfront 0.1.623 → 0.1.625

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 (151) hide show
  1. package/README.md +3 -3
  2. package/esm/cli/commands/knowledge/command-help.d.ts.map +1 -1
  3. package/esm/cli/commands/knowledge/command-help.js +2 -3
  4. package/esm/cli/commands/knowledge/command.d.ts +2 -47
  5. package/esm/cli/commands/knowledge/command.d.ts.map +1 -1
  6. package/esm/cli/commands/knowledge/command.js +22 -124
  7. package/esm/cli/commands/knowledge/parser.d.ts +40 -0
  8. package/esm/cli/commands/knowledge/parser.d.ts.map +1 -0
  9. package/esm/cli/commands/knowledge/parser.js +353 -0
  10. package/esm/cli/commands/knowledge/result.d.ts +3 -3
  11. package/esm/cli/commands/knowledge/result.js +1 -1
  12. package/esm/cli/commands/styles/command.js +2 -2
  13. package/esm/cli/commands/task/command.js +4 -4
  14. package/esm/cli/commands/worker/command-help.js +4 -4
  15. package/esm/cli/commands/worker/command.d.ts +1 -1
  16. package/esm/cli/commands/worker/command.js +9 -9
  17. package/esm/cli/commands/workflow/command.js +4 -4
  18. package/esm/cli/utils/sanitize-run-output.d.ts +2 -0
  19. package/esm/cli/utils/sanitize-run-output.d.ts.map +1 -0
  20. package/esm/cli/utils/{sanitize-job-output.js → sanitize-run-output.js} +1 -1
  21. package/esm/cli/utils/write-run-result.d.ts +2 -0
  22. package/esm/cli/utils/write-run-result.d.ts.map +1 -0
  23. package/esm/cli/utils/write-run-result.js +16 -0
  24. package/esm/deno.d.ts +4 -3
  25. package/esm/deno.js +6 -5
  26. package/esm/src/build/production-build/static-generation.d.ts.map +1 -1
  27. package/esm/src/build/production-build/static-generation.js +85 -0
  28. package/esm/src/html/hydration-script-builder/templates/renderer.d.ts.map +1 -1
  29. package/esm/src/html/hydration-script-builder/templates/renderer.js +37 -4
  30. package/esm/src/integrations/_data.js +1 -1
  31. package/esm/src/integrations/schema.d.ts +8 -0
  32. package/esm/src/integrations/schema.d.ts.map +1 -1
  33. package/esm/src/integrations/schema.js +3 -0
  34. package/esm/src/internal-agents/run-stream.d.ts.map +1 -1
  35. package/esm/src/internal-agents/run-stream.js +20 -3
  36. package/esm/src/platform/adapters/veryfront-api-client/operations.d.ts +2 -2
  37. package/esm/src/platform/adapters/veryfront-api-client/operations.d.ts.map +1 -1
  38. package/esm/src/platform/adapters/veryfront-api-client/operations.js +2 -2
  39. package/esm/src/platform/adapters/veryfront-api-client/schemas/api.schema.d.ts +1 -1
  40. package/esm/src/platform/adapters/veryfront-api-client/schemas/api.schema.js +1 -1
  41. package/esm/src/react/components/chat/chat/components/attachment-pill.js +1 -1
  42. package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts +1 -0
  43. package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts.map +1 -1
  44. package/esm/src/react/components/chat/chat/composition/chat-composer.js +27 -11
  45. package/esm/src/react/components/chat/chat/index.d.ts +1 -0
  46. package/esm/src/react/components/chat/chat/index.d.ts.map +1 -1
  47. package/esm/src/react/components/chat/chat/index.js +2 -2
  48. package/esm/src/react/components/chat/theme.js +1 -1
  49. package/esm/src/rendering/layouts/utils/applicator.d.ts.map +1 -1
  50. package/esm/src/rendering/layouts/utils/applicator.js +1 -1
  51. package/esm/src/rendering/layouts/utils/component-loader.d.ts +8 -0
  52. package/esm/src/rendering/layouts/utils/component-loader.d.ts.map +1 -1
  53. package/esm/src/rendering/layouts/utils/component-loader.js +19 -0
  54. package/esm/src/rendering/rsc/client-boot.ts +23 -6
  55. package/esm/src/runs/index.d.ts +27 -0
  56. package/esm/src/runs/index.d.ts.map +1 -0
  57. package/esm/src/runs/index.js +26 -0
  58. package/esm/src/runs/runs-client.d.ts +95 -0
  59. package/esm/src/runs/runs-client.d.ts.map +1 -0
  60. package/esm/src/runs/runs-client.js +181 -0
  61. package/esm/src/{jobs → runs}/runtime-env.d.ts.map +1 -1
  62. package/esm/src/{jobs → runs}/runtime-env.js +2 -2
  63. package/esm/src/runs/schemas.d.ts +236 -0
  64. package/esm/src/runs/schemas.d.ts.map +1 -0
  65. package/esm/src/runs/schemas.js +61 -0
  66. package/esm/src/security/deno-permissions.d.ts +2 -2
  67. package/esm/src/security/deno-permissions.js +2 -2
  68. package/esm/src/security/index.d.ts +1 -1
  69. package/esm/src/security/index.js +1 -1
  70. package/esm/src/server/build-app-route-renderer.d.ts +2 -0
  71. package/esm/src/server/build-app-route-renderer.d.ts.map +1 -1
  72. package/esm/src/server/build-app-route-renderer.js +51 -28
  73. package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
  74. package/esm/src/server/handlers/dev/framework-candidates.generated.js +54 -8
  75. package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
  76. package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +1 -1
  77. package/esm/src/server/services/static/static-file.service.d.ts.map +1 -1
  78. package/esm/src/server/services/static/static-file.service.js +9 -4
  79. package/esm/src/skill/index.d.ts +1 -1
  80. package/esm/src/skill/index.d.ts.map +1 -1
  81. package/esm/src/skill/index.js +1 -1
  82. package/esm/src/skill/prompt-augmentation.js +2 -2
  83. package/esm/src/skill/tools.d.ts +1 -1
  84. package/esm/src/skill/tools.d.ts.map +1 -1
  85. package/esm/src/skill/tools.js +11 -9
  86. package/esm/src/skill/types.d.ts +1 -0
  87. package/esm/src/skill/types.d.ts.map +1 -1
  88. package/esm/src/skill/types.js +1 -0
  89. package/esm/src/task/runner.js +1 -1
  90. package/esm/src/task/types.d.ts +4 -4
  91. package/esm/src/task/types.d.ts.map +1 -1
  92. package/esm/src/task/types.js +1 -1
  93. package/esm/src/tool/factory.d.ts.map +1 -1
  94. package/esm/src/tool/factory.js +10 -0
  95. package/esm/src/tool/types.d.ts +5 -4
  96. package/esm/src/tool/types.d.ts.map +1 -1
  97. package/esm/src/utils/index.d.ts +1 -1
  98. package/esm/src/utils/index.js +1 -1
  99. package/esm/src/utils/logger/index.d.ts +1 -1
  100. package/esm/src/utils/logger/index.js +1 -1
  101. package/esm/src/utils/logger/logger.d.ts +6 -6
  102. package/esm/src/utils/logger/logger.d.ts.map +1 -1
  103. package/esm/src/utils/logger/logger.js +10 -10
  104. package/esm/src/utils/version-constant.d.ts +1 -1
  105. package/esm/src/utils/version-constant.js +1 -1
  106. package/esm/src/workflow/executor/workflow-executor.js +3 -3
  107. package/esm/src/workflow/worker/{dynamic-job-entrypoint.d.ts → dynamic-run-entrypoint.d.ts} +2 -2
  108. package/esm/src/workflow/worker/{dynamic-job-entrypoint.d.ts.map → dynamic-run-entrypoint.d.ts.map} +1 -1
  109. package/esm/src/workflow/worker/{dynamic-job-entrypoint.js → dynamic-run-entrypoint.js} +1 -1
  110. package/esm/src/workflow/worker/executors/index.d.ts +8 -8
  111. package/esm/src/workflow/worker/executors/index.d.ts.map +1 -1
  112. package/esm/src/workflow/worker/executors/index.js +5 -5
  113. package/esm/src/workflow/worker/executors/k8s.d.ts +34 -34
  114. package/esm/src/workflow/worker/executors/k8s.d.ts.map +1 -1
  115. package/esm/src/workflow/worker/executors/k8s.js +59 -58
  116. package/esm/src/workflow/worker/executors/process.d.ts +15 -15
  117. package/esm/src/workflow/worker/executors/process.d.ts.map +1 -1
  118. package/esm/src/workflow/worker/executors/process.js +86 -86
  119. package/esm/src/workflow/worker/executors/types.d.ts +38 -39
  120. package/esm/src/workflow/worker/executors/types.d.ts.map +1 -1
  121. package/esm/src/workflow/worker/executors/types.js +9 -10
  122. package/esm/src/workflow/worker/index.d.ts +7 -7
  123. package/esm/src/workflow/worker/index.d.ts.map +1 -1
  124. package/esm/src/workflow/worker/index.js +9 -9
  125. package/esm/src/workflow/worker/{job-entrypoint.d.ts → run-entrypoint.d.ts} +3 -3
  126. package/esm/src/workflow/worker/{job-entrypoint.d.ts.map → run-entrypoint.d.ts.map} +1 -1
  127. package/esm/src/workflow/worker/{job-entrypoint.js → run-entrypoint.js} +2 -2
  128. package/esm/src/workflow/worker/{job-manager.d.ts → run-manager.d.ts} +32 -32
  129. package/esm/src/workflow/worker/run-manager.d.ts.map +1 -0
  130. package/esm/src/workflow/worker/{job-manager.js → run-manager.js} +63 -63
  131. package/esm/src/workflow/worker/shared.js +1 -1
  132. package/package.json +4 -4
  133. package/esm/cli/commands/knowledge/parser-source.d.ts +0 -2
  134. package/esm/cli/commands/knowledge/parser-source.d.ts.map +0 -1
  135. package/esm/cli/commands/knowledge/parser-source.js +0 -641
  136. package/esm/cli/utils/sanitize-job-output.d.ts +0 -2
  137. package/esm/cli/utils/sanitize-job-output.d.ts.map +0 -1
  138. package/esm/cli/utils/write-job-result.d.ts +0 -2
  139. package/esm/cli/utils/write-job-result.d.ts.map +0 -1
  140. package/esm/cli/utils/write-job-result.js +0 -16
  141. package/esm/src/jobs/index.d.ts +0 -25
  142. package/esm/src/jobs/index.d.ts.map +0 -1
  143. package/esm/src/jobs/index.js +0 -24
  144. package/esm/src/jobs/jobs-client.d.ts +0 -182
  145. package/esm/src/jobs/jobs-client.d.ts.map +0 -1
  146. package/esm/src/jobs/jobs-client.js +0 -255
  147. package/esm/src/jobs/schemas.d.ts +0 -1146
  148. package/esm/src/jobs/schemas.d.ts.map +0 -1
  149. package/esm/src/jobs/schemas.js +0 -294
  150. package/esm/src/workflow/worker/job-manager.d.ts.map +0 -1
  151. /package/esm/src/{jobs → runs}/runtime-env.d.ts +0 -0
@@ -0,0 +1,181 @@
1
+ import { getVeryfrontCloudBootstrap } from "../platform/cloud/resolver.js";
2
+ import { requestWithRetry, } from "../platform/adapters/veryfront-api-client/retry-handler.js";
3
+ import { API_CLIENT_ERROR } from "../platform/adapters/veryfront-api-client/types.js";
4
+ import { CancelRunResponseSchema, CreateRunResponseSchema, RunEventListSchema, RunListSchema, RunSchema, } from "./schemas.js";
5
+ const DEFAULT_MAX_RETRIES = 3;
6
+ const DEFAULT_INITIAL_RETRY_DELAY_MS = 1_000;
7
+ const DEFAULT_MAX_RETRY_DELAY_MS = 10_000;
8
+ const DEFAULT_KNOWLEDGE_INGEST_RUN_NAME = "Ingest knowledge";
9
+ function toQueryParams(values) {
10
+ const params = new URLSearchParams();
11
+ for (const [key, value] of Object.entries(values)) {
12
+ if (value != null) {
13
+ params.set(key, String(value));
14
+ }
15
+ }
16
+ return params;
17
+ }
18
+ function withQuery(path, params) {
19
+ const query = params.toString();
20
+ return query.length > 0 ? `${path}?${query}` : path;
21
+ }
22
+ function runtimeTargetBody(input) {
23
+ return {
24
+ runtime_target_kind: input.runtimeTargetKind,
25
+ runtime_target_environment_id: input.runtimeTargetEnvironmentId,
26
+ runtime_target_branch_id: input.runtimeTargetBranchId,
27
+ };
28
+ }
29
+ /** Public client for canonical durable runs. */
30
+ export class VeryfrontRunsClient {
31
+ config;
32
+ retryConfig;
33
+ requestToken;
34
+ requestProjectReference;
35
+ knowledge;
36
+ constructor(config = {}) {
37
+ this.config = config;
38
+ this.retryConfig = {
39
+ maxRetries: config.retry?.maxRetries ?? DEFAULT_MAX_RETRIES,
40
+ initialDelay: config.retry?.initialDelay ?? DEFAULT_INITIAL_RETRY_DELAY_MS,
41
+ maxDelay: config.retry?.maxDelay ?? DEFAULT_MAX_RETRY_DELAY_MS,
42
+ };
43
+ this.knowledge = {
44
+ ingestByUploadIds: (input) => this.ingestKnowledgeByUploadIds(input),
45
+ ingestByUploadPaths: (input) => this.ingestKnowledgeByUploadPaths(input),
46
+ ingestByUploadPrefix: (input) => this.ingestKnowledgeByUploadPrefix(input),
47
+ };
48
+ }
49
+ setRequestToken(token) {
50
+ this.requestToken = token;
51
+ }
52
+ clearRequestToken() {
53
+ this.requestToken = undefined;
54
+ }
55
+ setProjectReference(projectReference) {
56
+ this.requestProjectReference = projectReference;
57
+ }
58
+ clearProjectReference() {
59
+ this.requestProjectReference = undefined;
60
+ }
61
+ createTaskRun(input) {
62
+ const { projectId, publicId, parentRunId, name, target, batchId, config, timeoutSeconds, backoffLimit, ...runtimeTarget } = input;
63
+ return this.requestJson("/runs", CreateRunResponseSchema, {
64
+ method: "POST",
65
+ body: {
66
+ kind: "task",
67
+ owner: { kind: "project", id: projectId },
68
+ public_id: publicId,
69
+ parent_run_id: parentRunId,
70
+ request: {
71
+ name,
72
+ target,
73
+ batch_id: batchId,
74
+ ...runtimeTargetBody(runtimeTarget),
75
+ config,
76
+ timeout_seconds: timeoutSeconds,
77
+ backoff_limit: backoffLimit,
78
+ },
79
+ },
80
+ });
81
+ }
82
+ createWorkflowRun(input) {
83
+ const { projectId, publicId, parentRunId, workflowId, target, input: workflowInput, startMode, ...runtimeTarget } = input;
84
+ return this.requestJson("/runs", CreateRunResponseSchema, {
85
+ method: "POST",
86
+ body: {
87
+ kind: "workflow",
88
+ owner: { kind: "project", id: projectId },
89
+ public_id: publicId,
90
+ parent_run_id: parentRunId,
91
+ request: {
92
+ workflow_id: workflowId,
93
+ target,
94
+ ...runtimeTargetBody(runtimeTarget),
95
+ input: workflowInput,
96
+ start_mode: startMode,
97
+ },
98
+ },
99
+ });
100
+ }
101
+ async list(options = {}) {
102
+ const { projectReference, cursor, limit } = options;
103
+ return await this.requestJson(withQuery(`/projects/${encodeURIComponent(this.resolveProjectReference(projectReference))}/runs`, toQueryParams({ cursor, limit })), RunListSchema);
104
+ }
105
+ get(runId) {
106
+ return this.requestJson(`/runs/${encodeURIComponent(runId)}`, RunSchema);
107
+ }
108
+ events(runId, options = {}) {
109
+ const { afterEventId, limit } = options;
110
+ return this.requestJson(withQuery(`/runs/${encodeURIComponent(runId)}/events`, toQueryParams({ after_event_id: afterEventId, limit })), RunEventListSchema);
111
+ }
112
+ cancel(runId) {
113
+ return this.requestJson(`/runs/${encodeURIComponent(runId)}/cancel`, CancelRunResponseSchema, {
114
+ method: "POST",
115
+ });
116
+ }
117
+ ingestKnowledgeByUploadIds(input) {
118
+ const { uploadIds, ...options } = input;
119
+ return this.createTaskRun({
120
+ ...options,
121
+ name: options.name ?? DEFAULT_KNOWLEDGE_INGEST_RUN_NAME,
122
+ target: "task:knowledge-ingest",
123
+ config: { upload_ids: uploadIds },
124
+ });
125
+ }
126
+ ingestKnowledgeByUploadPaths(input) {
127
+ const { uploadPaths, ...options } = input;
128
+ return this.createTaskRun({
129
+ ...options,
130
+ name: options.name ?? DEFAULT_KNOWLEDGE_INGEST_RUN_NAME,
131
+ target: "task:knowledge-ingest",
132
+ config: { paths: uploadPaths },
133
+ });
134
+ }
135
+ ingestKnowledgeByUploadPrefix(input) {
136
+ const { uploadPrefix, ...options } = input;
137
+ return this.createTaskRun({
138
+ ...options,
139
+ name: options.name ?? DEFAULT_KNOWLEDGE_INGEST_RUN_NAME,
140
+ target: "task:knowledge-ingest",
141
+ config: { path_prefix: uploadPrefix },
142
+ });
143
+ }
144
+ resolveApiUrl() {
145
+ return this.config.apiUrl ?? getVeryfrontCloudBootstrap().apiBaseUrl;
146
+ }
147
+ resolveAuthToken() {
148
+ const token = this.requestToken ?? this.config.authToken ??
149
+ getVeryfrontCloudBootstrap().apiToken;
150
+ if (token) {
151
+ return token;
152
+ }
153
+ throw API_CLIENT_ERROR.create({
154
+ detail: "Runs auth not configured. Set VERYFRONT_API_TOKEN, provide request-scoped Veryfront credentials, or pass authToken explicitly.",
155
+ status: 401,
156
+ });
157
+ }
158
+ resolveProjectReference(projectReference) {
159
+ const resolved = projectReference ?? this.requestProjectReference ??
160
+ this.config.projectReference ??
161
+ getVeryfrontCloudBootstrap().projectSlug;
162
+ if (resolved) {
163
+ return resolved;
164
+ }
165
+ throw API_CLIENT_ERROR.create({
166
+ detail: "Runs project reference not configured. Pass projectReference explicitly, set VERYFRONT_PROJECT_SLUG, or provide request-scoped Veryfront project context.",
167
+ status: 400,
168
+ });
169
+ }
170
+ async requestJson(path, schema, options = {}) {
171
+ const raw = await requestWithRetry(`${this.resolveApiUrl()}${path}`, this.resolveAuthToken(), this.retryConfig, {
172
+ method: options.method,
173
+ body: options.body == null ? undefined : JSON.stringify(options.body),
174
+ });
175
+ return schema.parse(raw);
176
+ }
177
+ }
178
+ /** Create a runs client. */
179
+ export function createRunsClient(config) {
180
+ return new VeryfrontRunsClient(config);
181
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-env.d.ts","sourceRoot":"","sources":["../../../src/src/jobs/runtime-env.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAuChE,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAqBxB;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,YAAY,CAAC,EAAE,MAAM,EAAE,GACtB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAsBxB;AAED,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EAC/C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAOpC"}
1
+ {"version":3,"file":"runtime-env.d.ts","sourceRoot":"","sources":["../../../src/src/runs/runtime-env.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAuChE,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAqBxB;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,YAAY,CAAC,EAAE,MAAM,EAAE,GACtB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAsBxB;AAED,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EAC/C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAOpC"}
@@ -1,5 +1,5 @@
1
1
  import { logger as baseLogger } from "../utils/index.js";
2
- const logger = baseLogger.component("job-runtime-env");
2
+ const logger = baseLogger.component("run-runtime-env");
3
3
  export const INJECTED_TASK_ENV_JSON = "VERYFRONT_TASK_ENV_JSON";
4
4
  const UNSAFE_INJECTED_ENV_KEYS = new Set(["__proto__", "constructor", "prototype"]);
5
5
  const RESERVED_TASK_ENV_KEYS = new Set([
@@ -12,7 +12,7 @@ const RESERVED_TASK_ENV_KEYS = new Set([
12
12
  "VERYFRONT_BRANCH_REF",
13
13
  "VERYFRONT_API_USER",
14
14
  "VERYFRONT_API_PASS",
15
- "VERYFRONT_JOB_RESULT_PATH",
15
+ "VERYFRONT_RUN_RESULT_PATH",
16
16
  INJECTED_TASK_ENV_JSON,
17
17
  ]);
18
18
  function isReservedTaskEnvKey(key) {
@@ -0,0 +1,236 @@
1
+ import type { InferSchema } from "../extensions/schema/index.js";
2
+ export declare const getRunKindSchema: () => import("../internal-agents/schema.js").Schema<"agent" | "task" | "workflow">;
3
+ export declare const getRunStatusSchema: () => import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
4
+ export declare const getRunOwnerSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
5
+ kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
6
+ id: import("../internal-agents/schema.js").Schema<string>;
7
+ }>>;
8
+ export declare const getRunSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
9
+ run_id: import("../internal-agents/schema.js").Schema<string>;
10
+ kind: import("../internal-agents/schema.js").Schema<"agent" | "task" | "workflow">;
11
+ status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
12
+ owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
13
+ kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
14
+ id: import("../internal-agents/schema.js").Schema<string>;
15
+ }>>;
16
+ parent_run_id: import("../internal-agents/schema.js").Schema<string | null>;
17
+ root_run_id: import("../internal-agents/schema.js").Schema<string>;
18
+ waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
19
+ metadata: import("../internal-agents/schema.js").Schema<unknown>;
20
+ created_at: import("../internal-agents/schema.js").Schema<string>;
21
+ started_at: import("../internal-agents/schema.js").Schema<string | null>;
22
+ completed_at: import("../internal-agents/schema.js").Schema<string | null>;
23
+ }>>;
24
+ export declare const getCreateRunResponseSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
25
+ accepted: import("../internal-agents/schema.js").Schema<boolean>;
26
+ duplicate: import("../internal-agents/schema.js").Schema<boolean | undefined>;
27
+ run: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
28
+ run_id: import("../internal-agents/schema.js").Schema<string>;
29
+ kind: import("../internal-agents/schema.js").Schema<"agent" | "task" | "workflow">;
30
+ status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
31
+ owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
32
+ kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
33
+ id: import("../internal-agents/schema.js").Schema<string>;
34
+ }>>;
35
+ parent_run_id: import("../internal-agents/schema.js").Schema<string | null>;
36
+ root_run_id: import("../internal-agents/schema.js").Schema<string>;
37
+ waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
38
+ metadata: import("../internal-agents/schema.js").Schema<unknown>;
39
+ created_at: import("../internal-agents/schema.js").Schema<string>;
40
+ started_at: import("../internal-agents/schema.js").Schema<string | null>;
41
+ completed_at: import("../internal-agents/schema.js").Schema<string | null>;
42
+ }>>;
43
+ }>>;
44
+ export declare const getCancelRunResponseSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
45
+ cancelled: import("../internal-agents/schema.js").Schema<boolean>;
46
+ run: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
47
+ run_id: import("../internal-agents/schema.js").Schema<string>;
48
+ kind: import("../internal-agents/schema.js").Schema<"agent" | "task" | "workflow">;
49
+ status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
50
+ owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
51
+ kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
52
+ id: import("../internal-agents/schema.js").Schema<string>;
53
+ }>>;
54
+ parent_run_id: import("../internal-agents/schema.js").Schema<string | null>;
55
+ root_run_id: import("../internal-agents/schema.js").Schema<string>;
56
+ waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
57
+ metadata: import("../internal-agents/schema.js").Schema<unknown>;
58
+ created_at: import("../internal-agents/schema.js").Schema<string>;
59
+ started_at: import("../internal-agents/schema.js").Schema<string | null>;
60
+ completed_at: import("../internal-agents/schema.js").Schema<string | null>;
61
+ }>>;
62
+ }>>;
63
+ export declare const getRunEventSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
64
+ event_id: import("../internal-agents/schema.js").Schema<number>;
65
+ event_type: import("../internal-agents/schema.js").Schema<string>;
66
+ payload: import("../internal-agents/schema.js").Schema<unknown>;
67
+ created_at: import("../internal-agents/schema.js").Schema<string>;
68
+ }>>;
69
+ export declare const getPageInfoSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
70
+ self: import("../internal-agents/schema.js").Schema<string | null>;
71
+ first: import("../internal-agents/schema.js").Schema<null>;
72
+ next: import("../internal-agents/schema.js").Schema<string | null>;
73
+ prev: import("../internal-agents/schema.js").Schema<string | null>;
74
+ }>>;
75
+ export declare const getRunEventListSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
76
+ data: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
77
+ event_id: import("../internal-agents/schema.js").Schema<number>;
78
+ event_type: import("../internal-agents/schema.js").Schema<string>;
79
+ payload: import("../internal-agents/schema.js").Schema<unknown>;
80
+ created_at: import("../internal-agents/schema.js").Schema<string>;
81
+ }>[]>;
82
+ page_info: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
83
+ self: import("../internal-agents/schema.js").Schema<string | null>;
84
+ first: import("../internal-agents/schema.js").Schema<null>;
85
+ next: import("../internal-agents/schema.js").Schema<string | null>;
86
+ prev: import("../internal-agents/schema.js").Schema<string | null>;
87
+ }>>;
88
+ }>>;
89
+ export declare const getRunListSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
90
+ data: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
91
+ run_id: import("../internal-agents/schema.js").Schema<string>;
92
+ kind: import("../internal-agents/schema.js").Schema<"agent" | "task" | "workflow">;
93
+ status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
94
+ owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
95
+ kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
96
+ id: import("../internal-agents/schema.js").Schema<string>;
97
+ }>>;
98
+ parent_run_id: import("../internal-agents/schema.js").Schema<string | null>;
99
+ root_run_id: import("../internal-agents/schema.js").Schema<string>;
100
+ waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
101
+ metadata: import("../internal-agents/schema.js").Schema<unknown>;
102
+ created_at: import("../internal-agents/schema.js").Schema<string>;
103
+ started_at: import("../internal-agents/schema.js").Schema<string | null>;
104
+ completed_at: import("../internal-agents/schema.js").Schema<string | null>;
105
+ }>[]>;
106
+ page_info: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
107
+ self: import("../internal-agents/schema.js").Schema<string | null>;
108
+ first: import("../internal-agents/schema.js").Schema<null>;
109
+ next: import("../internal-agents/schema.js").Schema<string | null>;
110
+ prev: import("../internal-agents/schema.js").Schema<string | null>;
111
+ }>>;
112
+ }>>;
113
+ /** Zod schema for a canonical durable run. */
114
+ export declare const RunSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
115
+ run_id: import("../internal-agents/schema.js").Schema<string>;
116
+ kind: import("../internal-agents/schema.js").Schema<"agent" | "task" | "workflow">;
117
+ status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
118
+ owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
119
+ kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
120
+ id: import("../internal-agents/schema.js").Schema<string>;
121
+ }>>;
122
+ parent_run_id: import("../internal-agents/schema.js").Schema<string | null>;
123
+ root_run_id: import("../internal-agents/schema.js").Schema<string>;
124
+ waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
125
+ metadata: import("../internal-agents/schema.js").Schema<unknown>;
126
+ created_at: import("../internal-agents/schema.js").Schema<string>;
127
+ started_at: import("../internal-agents/schema.js").Schema<string | null>;
128
+ completed_at: import("../internal-agents/schema.js").Schema<string | null>;
129
+ }>>;
130
+ /** Zod schema for a create-run response. */
131
+ export declare const CreateRunResponseSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
132
+ accepted: import("../internal-agents/schema.js").Schema<boolean>;
133
+ duplicate: import("../internal-agents/schema.js").Schema<boolean | undefined>;
134
+ run: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
135
+ run_id: import("../internal-agents/schema.js").Schema<string>;
136
+ kind: import("../internal-agents/schema.js").Schema<"agent" | "task" | "workflow">;
137
+ status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
138
+ owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
139
+ kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
140
+ id: import("../internal-agents/schema.js").Schema<string>;
141
+ }>>;
142
+ parent_run_id: import("../internal-agents/schema.js").Schema<string | null>;
143
+ root_run_id: import("../internal-agents/schema.js").Schema<string>;
144
+ waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
145
+ metadata: import("../internal-agents/schema.js").Schema<unknown>;
146
+ created_at: import("../internal-agents/schema.js").Schema<string>;
147
+ started_at: import("../internal-agents/schema.js").Schema<string | null>;
148
+ completed_at: import("../internal-agents/schema.js").Schema<string | null>;
149
+ }>>;
150
+ }>>;
151
+ /** Zod schema for a cancel-run response. */
152
+ export declare const CancelRunResponseSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
153
+ cancelled: import("../internal-agents/schema.js").Schema<boolean>;
154
+ run: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
155
+ run_id: import("../internal-agents/schema.js").Schema<string>;
156
+ kind: import("../internal-agents/schema.js").Schema<"agent" | "task" | "workflow">;
157
+ status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
158
+ owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
159
+ kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
160
+ id: import("../internal-agents/schema.js").Schema<string>;
161
+ }>>;
162
+ parent_run_id: import("../internal-agents/schema.js").Schema<string | null>;
163
+ root_run_id: import("../internal-agents/schema.js").Schema<string>;
164
+ waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
165
+ metadata: import("../internal-agents/schema.js").Schema<unknown>;
166
+ created_at: import("../internal-agents/schema.js").Schema<string>;
167
+ started_at: import("../internal-agents/schema.js").Schema<string | null>;
168
+ completed_at: import("../internal-agents/schema.js").Schema<string | null>;
169
+ }>>;
170
+ }>>;
171
+ /** Zod schema for a run event. */
172
+ export declare const RunEventSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
173
+ event_id: import("../internal-agents/schema.js").Schema<number>;
174
+ event_type: import("../internal-agents/schema.js").Schema<string>;
175
+ payload: import("../internal-agents/schema.js").Schema<unknown>;
176
+ created_at: import("../internal-agents/schema.js").Schema<string>;
177
+ }>>;
178
+ /** Zod schema for a paginated run-event response. */
179
+ export declare const RunEventListSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
180
+ data: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
181
+ event_id: import("../internal-agents/schema.js").Schema<number>;
182
+ event_type: import("../internal-agents/schema.js").Schema<string>;
183
+ payload: import("../internal-agents/schema.js").Schema<unknown>;
184
+ created_at: import("../internal-agents/schema.js").Schema<string>;
185
+ }>[]>;
186
+ page_info: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
187
+ self: import("../internal-agents/schema.js").Schema<string | null>;
188
+ first: import("../internal-agents/schema.js").Schema<null>;
189
+ next: import("../internal-agents/schema.js").Schema<string | null>;
190
+ prev: import("../internal-agents/schema.js").Schema<string | null>;
191
+ }>>;
192
+ }>>;
193
+ /** Zod schema for a paginated project-run response. */
194
+ export declare const RunListSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
195
+ data: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
196
+ run_id: import("../internal-agents/schema.js").Schema<string>;
197
+ kind: import("../internal-agents/schema.js").Schema<"agent" | "task" | "workflow">;
198
+ status: import("../internal-agents/schema.js").Schema<"waiting" | "failed" | "completed" | "pending" | "cancelled" | "running">;
199
+ owner: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
200
+ kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
201
+ id: import("../internal-agents/schema.js").Schema<string>;
202
+ }>>;
203
+ parent_run_id: import("../internal-agents/schema.js").Schema<string | null>;
204
+ root_run_id: import("../internal-agents/schema.js").Schema<string>;
205
+ waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
206
+ metadata: import("../internal-agents/schema.js").Schema<unknown>;
207
+ created_at: import("../internal-agents/schema.js").Schema<string>;
208
+ started_at: import("../internal-agents/schema.js").Schema<string | null>;
209
+ completed_at: import("../internal-agents/schema.js").Schema<string | null>;
210
+ }>[]>;
211
+ page_info: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
212
+ self: import("../internal-agents/schema.js").Schema<string | null>;
213
+ first: import("../internal-agents/schema.js").Schema<null>;
214
+ next: import("../internal-agents/schema.js").Schema<string | null>;
215
+ prev: import("../internal-agents/schema.js").Schema<string | null>;
216
+ }>>;
217
+ }>>;
218
+ /** Canonical durable run kind. */
219
+ export type RunKind = InferSchema<ReturnType<typeof getRunKindSchema>>;
220
+ /** Canonical durable run status. */
221
+ export type RunStatus = InferSchema<ReturnType<typeof getRunStatusSchema>>;
222
+ /** Canonical durable run owner. */
223
+ export type RunOwner = InferSchema<ReturnType<typeof getRunOwnerSchema>>;
224
+ /** Canonical durable run. */
225
+ export type Run = InferSchema<ReturnType<typeof getRunSchema>>;
226
+ /** Response returned when a run is accepted. */
227
+ export type CreateRunResponse = InferSchema<ReturnType<typeof getCreateRunResponseSchema>>;
228
+ /** Response returned when a run is cancelled. */
229
+ export type CancelRunResponse = InferSchema<ReturnType<typeof getCancelRunResponseSchema>>;
230
+ /** Event emitted by a run. */
231
+ export type RunEvent = InferSchema<ReturnType<typeof getRunEventSchema>>;
232
+ /** Paginated run event response. */
233
+ export type RunEventList = InferSchema<ReturnType<typeof getRunEventListSchema>>;
234
+ /** Paginated project run response. */
235
+ export type RunList = InferSchema<ReturnType<typeof getRunListSchema>>;
236
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/src/runs/schemas.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,eAAO,MAAM,gBAAgB,oFAAsE,CAAC;AAEpG,eAAO,MAAM,kBAAkB,+HAE9B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;GAK7B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;GAcxB,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;GAMtC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;GAKtC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;GAO7B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;GAO7B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;GAKjC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;GAK5B,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;GAA2B,CAAC;AAClD,4CAA4C;AAC5C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;GAAyC,CAAC;AAC9E,4CAA4C;AAC5C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;GAAyC,CAAC;AAC9E,kCAAkC;AAClC,eAAO,MAAM,cAAc;;;;;GAAgC,CAAC;AAC5D,qDAAqD;AACrD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;GAAoC,CAAC;AACpE,uDAAuD;AACvD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;GAA+B,CAAC;AAE1D,kCAAkC;AAClC,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC;AACvE,oCAAoC;AACpC,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC;AAC3E,mCAAmC;AACnC,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC;AACzE,6BAA6B;AAC7B,MAAM,MAAM,GAAG,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAC/D,gDAAgD;AAChD,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC;AAC3F,iDAAiD;AACjD,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC;AAC3F,8BAA8B;AAC9B,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC;AACzE,oCAAoC;AACpC,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC;AACjF,sCAAsC;AACtC,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,61 @@
1
+ import { defineSchema, lazySchema } from "../schemas/index.js";
2
+ export const getRunKindSchema = defineSchema((v) => v.enum(["agent", "workflow", "task"]));
3
+ export const getRunStatusSchema = defineSchema((v) => v.enum(["pending", "running", "waiting", "completed", "failed", "cancelled"]));
4
+ export const getRunOwnerSchema = defineSchema((v) => v.object({
5
+ kind: v.enum(["conversation", "project"]),
6
+ id: v.string(),
7
+ }));
8
+ export const getRunSchema = defineSchema((v) => v.object({
9
+ run_id: v.string(),
10
+ kind: getRunKindSchema(),
11
+ status: getRunStatusSchema(),
12
+ owner: getRunOwnerSchema(),
13
+ parent_run_id: v.string().nullable(),
14
+ root_run_id: v.string(),
15
+ waiting_reason: v.string().nullable(),
16
+ metadata: v.unknown().nullable(),
17
+ created_at: v.string(),
18
+ started_at: v.string().nullable(),
19
+ completed_at: v.string().nullable(),
20
+ }));
21
+ export const getCreateRunResponseSchema = defineSchema((v) => v.object({
22
+ accepted: v.boolean(),
23
+ duplicate: v.boolean().optional(),
24
+ run: getRunSchema(),
25
+ }));
26
+ export const getCancelRunResponseSchema = defineSchema((v) => v.object({
27
+ cancelled: v.boolean(),
28
+ run: getRunSchema(),
29
+ }));
30
+ export const getRunEventSchema = defineSchema((v) => v.object({
31
+ event_id: v.number(),
32
+ event_type: v.string(),
33
+ payload: v.unknown(),
34
+ created_at: v.string(),
35
+ }));
36
+ export const getPageInfoSchema = defineSchema((v) => v.object({
37
+ self: v.string().nullable(),
38
+ first: v.literal(null),
39
+ next: v.string().nullable(),
40
+ prev: v.string().nullable(),
41
+ }));
42
+ export const getRunEventListSchema = defineSchema((v) => v.object({
43
+ data: v.array(getRunEventSchema()),
44
+ page_info: getPageInfoSchema(),
45
+ }));
46
+ export const getRunListSchema = defineSchema((v) => v.object({
47
+ data: v.array(getRunSchema()),
48
+ page_info: getPageInfoSchema(),
49
+ }));
50
+ /** Zod schema for a canonical durable run. */
51
+ export const RunSchema = lazySchema(getRunSchema);
52
+ /** Zod schema for a create-run response. */
53
+ export const CreateRunResponseSchema = lazySchema(getCreateRunResponseSchema);
54
+ /** Zod schema for a cancel-run response. */
55
+ export const CancelRunResponseSchema = lazySchema(getCancelRunResponseSchema);
56
+ /** Zod schema for a run event. */
57
+ export const RunEventSchema = lazySchema(getRunEventSchema);
58
+ /** Zod schema for a paginated run-event response. */
59
+ export const RunEventListSchema = lazySchema(getRunEventListSchema);
60
+ /** Zod schema for a paginated project-run response. */
61
+ export const RunListSchema = lazySchema(getRunListSchema);
@@ -12,10 +12,10 @@
12
12
  */
13
13
  export declare const SERVER_PERMISSIONS: readonly ["--allow-read", "--allow-write", "--allow-net", "--allow-env", "--allow-run", "--allow-sys", "--unstable-worker-options", "--unstable-net"];
14
14
  /**
15
- * WORKFLOW_JOB — `ProcessJobExecutor` (RESTRICTED).
15
+ * WORKFLOW_RUN — `ProcessRunExecutor` (RESTRICTED).
16
16
  * Runs user-authored code — no `--allow-run`, `--allow-ffi`, or `--allow-sys`.
17
17
  */
18
- export declare const WORKFLOW_JOB_PERMISSIONS: readonly ["--allow-read", "--allow-write", "--allow-net", "--allow-env"];
18
+ export declare const WORKFLOW_RUN_PERMISSIONS: readonly ["--allow-read", "--allow-write", "--allow-net", "--allow-env"];
19
19
  /**
20
20
  * BUILD_HELPER — manifest generators, framework source prep.
21
21
  * Only needs filesystem + env access.
@@ -21,10 +21,10 @@ export const SERVER_PERMISSIONS = [
21
21
  "--unstable-net",
22
22
  ];
23
23
  /**
24
- * WORKFLOW_JOB — `ProcessJobExecutor` (RESTRICTED).
24
+ * WORKFLOW_RUN — `ProcessRunExecutor` (RESTRICTED).
25
25
  * Runs user-authored code — no `--allow-run`, `--allow-ffi`, or `--allow-sys`.
26
26
  */
27
- export const WORKFLOW_JOB_PERMISSIONS = [
27
+ export const WORKFLOW_RUN_PERMISSIONS = [
28
28
  "--allow-read",
29
29
  "--allow-write",
30
30
  "--allow-net",
@@ -24,5 +24,5 @@ export { createValidator, PathValidationError, sanitizePathForDisplay, validateP
24
24
  export type { ValidationLevel, ValidationOptions, ValidationResult } from "./path-validation.js";
25
25
  export { createSecureFs, SecureFs, SECURITY_VIOLATION, wrapAdapterWithSecurity, } from "./secure-fs.js";
26
26
  export type { SecureFsConfig, SecurityContext, SecurityEvent } from "./secure-fs.js";
27
- export { BUILD_HELPER_PERMISSIONS, SERVER_PERMISSIONS, WORKFLOW_JOB_PERMISSIONS, } from "./deno-permissions.js";
27
+ export { BUILD_HELPER_PERMISSIONS, SERVER_PERMISSIONS, WORKFLOW_RUN_PERMISSIONS, } from "./deno-permissions.js";
28
28
  //# sourceMappingURL=index.d.ts.map
@@ -16,4 +16,4 @@ export { applyCORSHeaders, applyCORSHeadersSync, cors, corsSimple, DEFAULT_HEADE
16
16
  export { applySecurityHeaders, buildCacheControl, CACHE_DURATIONS, createResponseBuilder, generateNonce, getSecurityHeader, ResponseBuilder, } from "./http/response/index.js";
17
17
  export { createValidator, PathValidationError, sanitizePathForDisplay, validatePath, validatePathSync, ValidationPresets, } from "./path-validation.js";
18
18
  export { createSecureFs, SecureFs, SECURITY_VIOLATION, wrapAdapterWithSecurity, } from "./secure-fs.js";
19
- export { BUILD_HELPER_PERMISSIONS, SERVER_PERMISSIONS, WORKFLOW_JOB_PERMISSIONS, } from "./deno-permissions.js";
19
+ export { BUILD_HELPER_PERMISSIONS, SERVER_PERMISSIONS, WORKFLOW_RUN_PERMISSIONS, } from "./deno-permissions.js";
@@ -12,5 +12,7 @@ export declare function renderAppRouteToHTML(args: {
12
12
  pageFile: string;
13
13
  contentSourceId: string;
14
14
  reactVersion?: string;
15
+ stylesheetHref?: string;
16
+ includePreviewStylesheet?: boolean;
15
17
  }): Promise<string>;
16
18
  //# sourceMappingURL=build-app-route-renderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-app-route-renderer.d.ts","sourceRoot":"","sources":["../../../src/src/server/build-app-route-renderer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAgDnE;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE;IAC/C,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC,MAAM,CAAC,CAmFlB"}
1
+ {"version":3,"file":"build-app-route-renderer.d.ts","sourceRoot":"","sources":["../../../src/src/server/build-app-route-renderer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAiEnE;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE;IAC/C,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC,GAAG,OAAO,CAAC,MAAM,CAAC,CAgHlB"}