veryfront 0.1.631 → 0.1.632
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/esm/deno.js +1 -1
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts.map +1 -1
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.js +16 -3
- package/esm/src/errors/error-registry.d.ts +4 -0
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/errors/error-registry.js +16 -0
- package/esm/src/proxy/handler.d.ts.map +1 -1
- package/esm/src/proxy/handler.js +21 -1
- package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-composer.js +1 -1
- package/esm/src/react/components/chat/markdown.d.ts.map +1 -1
- package/esm/src/react/components/chat/markdown.js +0 -9
- package/esm/src/runs/index.d.ts +1 -1
- package/esm/src/runs/index.d.ts.map +1 -1
- package/esm/src/runs/schemas.d.ts +221 -0
- package/esm/src/runs/schemas.d.ts.map +1 -1
- package/esm/src/runs/schemas.js +29 -0
- package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.js +75 -5
- package/esm/src/server/runtime-handler/index.js +2 -2
- package/esm/src/server/runtime-handler/local-project-discovery.d.ts +0 -10
- package/esm/src/server/runtime-handler/local-project-discovery.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/local-project-discovery.js +0 -10
- package/esm/src/server/runtime-handler/projects-handler.js +3 -3
- package/esm/src/server/services/rsc/endpoints/endpoint-router.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/endpoint-router.js +5 -1
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +2 -2
- package/esm/src/transforms/esm/http-cache-types.d.ts +24 -0
- package/esm/src/transforms/esm/http-cache-types.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache-types.js +30 -1
- package/esm/src/transforms/esm/http-cache-wrapper.d.ts +1 -1
- package/esm/src/transforms/esm/http-cache-wrapper.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache-wrapper.js +14 -13
- package/esm/src/utils/circuit-breaker.d.ts +9 -1
- package/esm/src/utils/circuit-breaker.d.ts.map +1 -1
- package/esm/src/utils/circuit-breaker.js +18 -2
- package/esm/src/utils/semaphore.d.ts +9 -1
- package/esm/src/utils/semaphore.d.ts.map +1 -1
- package/esm/src/utils/semaphore.js +18 -2
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +1 -1
package/esm/deno.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"veryfront-cloud-agent-service.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/veryfront-cloud-agent-service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"veryfront-cloud-agent-service.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/veryfront-cloud-agent-service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAuC9E,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,yBAAyB,CAAC;AAOjC,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAkBzE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAKnF,OAAO,EAML,KAAK,8BAA8B,EAEpC,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAEL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AAI,CAAC,CAiDf"}
|
|
@@ -6,6 +6,7 @@ import { register, tryResolve } from "../../extensions/contracts.js";
|
|
|
6
6
|
import { MISSING_EXTENSION_ERROR } from "../../extensions/errors.js";
|
|
7
7
|
import { dirname, resolve } from "../../platform/compat/path/index.js";
|
|
8
8
|
import { cwd, env } from "../../platform/compat/process.js";
|
|
9
|
+
import { defineSchema } from "../../schemas/index.js";
|
|
9
10
|
import { NodeTelemetryProviderName, } from "../../extensions/observability/index.js";
|
|
10
11
|
import { SandboxShellToolsProviderName, } from "../../extensions/sandbox/index.js";
|
|
11
12
|
import { createRemoteMCPToolSource, createToolsFromRemoteDefinitions, sleepTool, toolRegistry, } from "../../tool/index.js";
|
|
@@ -87,17 +88,29 @@ function resolveProjectDir(options) {
|
|
|
87
88
|
const candidates = uniquePaths([baseDir, dirname(baseDir), dirname(dirname(baseDir))]);
|
|
88
89
|
return candidates.find(hasDiscoveryRoot) ?? baseDir;
|
|
89
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* Schema for the subset of a project manifest (package.json / deno.json) we
|
|
93
|
+
* read. Only `name` is consumed; extra fields are tolerated via passthrough so
|
|
94
|
+
* arbitrary manifests validate. Defined lazily via `defineSchema` so the zod
|
|
95
|
+
* extension is resolved at call time — the cloud-agent options resolver calls
|
|
96
|
+
* `ensureDefaultSchemaValidator()` before reaching service-name resolution, so
|
|
97
|
+
* a validator is registered by the time this runs.
|
|
98
|
+
*/
|
|
99
|
+
const getProjectManifestSchema = defineSchema((v) => v.object({
|
|
100
|
+
name: v.string().optional(),
|
|
101
|
+
}).passthrough());
|
|
90
102
|
function readProjectManifestName(projectDir) {
|
|
103
|
+
const manifestSchema = getProjectManifestSchema();
|
|
91
104
|
for (const fileName of ["package.json", "deno.json"]) {
|
|
92
105
|
const filePath = resolve(projectDir, fileName);
|
|
93
106
|
if (!existsSync(filePath)) {
|
|
94
107
|
continue;
|
|
95
108
|
}
|
|
96
109
|
try {
|
|
97
|
-
const
|
|
98
|
-
if (
|
|
110
|
+
const result = manifestSchema.safeParse(JSON.parse(readFileSync(filePath, "utf8")));
|
|
111
|
+
if (!result.success)
|
|
99
112
|
continue;
|
|
100
|
-
const name =
|
|
113
|
+
const name = result.data.name;
|
|
101
114
|
if (typeof name !== "string")
|
|
102
115
|
continue;
|
|
103
116
|
const trimmedName = name.trim();
|
|
@@ -42,6 +42,8 @@ export declare const CACHE_ERROR: import("./types.js").RegisteredError;
|
|
|
42
42
|
export declare const FILE_WATCH_ERROR: import("./types.js").RegisteredError;
|
|
43
43
|
export declare const REQUEST_ERROR: import("./types.js").RegisteredError;
|
|
44
44
|
export declare const SERVICE_OVERLOADED: import("./types.js").RegisteredError;
|
|
45
|
+
export declare const SEMAPHORE_TIMEOUT: import("./types.js").RegisteredError;
|
|
46
|
+
export declare const CIRCUIT_BREAKER_OPEN: import("./types.js").RegisteredError;
|
|
45
47
|
export declare const CACHE_PATH_MISMATCH: import("./types.js").RegisteredError;
|
|
46
48
|
export declare const NETWORK_ERROR: import("./types.js").RegisteredError;
|
|
47
49
|
/** API client request/response errors (replaces VeryfrontAPIError) */
|
|
@@ -132,6 +134,8 @@ export declare const ERROR_REGISTRY: {
|
|
|
132
134
|
readonly "file-watch-error": import("./types.js").RegisteredError;
|
|
133
135
|
readonly "request-error": import("./types.js").RegisteredError;
|
|
134
136
|
readonly "service-overloaded": import("./types.js").RegisteredError;
|
|
137
|
+
readonly "semaphore-timeout": import("./types.js").RegisteredError;
|
|
138
|
+
readonly "circuit-breaker-open": import("./types.js").RegisteredError;
|
|
135
139
|
readonly "cache-path-mismatch": import("./types.js").RegisteredError;
|
|
136
140
|
readonly "network-error": import("./types.js").RegisteredError;
|
|
137
141
|
readonly "api-client-error": import("./types.js").RegisteredError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-registry.d.ts","sourceRoot":"","sources":["../../../src/src/errors/error-registry.ts"],"names":[],"mappings":"AAKA,OAAO,EAAe,KAAK,aAAa,EAAE,MAAM,Y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309
309
|
});
|
|
310
|
+
export const SEMAPHORE_TIMEOUT = defineError({
|
|
311
|
+
slug: "semaphore-timeout",
|
|
312
|
+
category: "SERVER",
|
|
313
|
+
status: 503,
|
|
314
|
+
title: "Semaphore acquire timeout",
|
|
315
|
+
suggestion: "Reduce concurrency or increase the semaphore acquire timeout",
|
|
316
|
+
});
|
|
317
|
+
export const CIRCUIT_BREAKER_OPEN = defineError({
|
|
318
|
+
slug: "circuit-breaker-open",
|
|
319
|
+
category: "SERVER",
|
|
320
|
+
status: 503,
|
|
321
|
+
title: "Circuit breaker is open",
|
|
322
|
+
suggestion: "Wait for the breaker reset timeout before retrying",
|
|
323
|
+
});
|
|
310
324
|
export const CACHE_PATH_MISMATCH = defineError({
|
|
311
325
|
slug: "cache-path-mismatch",
|
|
312
326
|
category: "SERVER",
|
|
@@ -649,6 +663,8 @@ export const ERROR_REGISTRY = {
|
|
|
649
663
|
"file-watch-error": FILE_WATCH_ERROR,
|
|
650
664
|
"request-error": REQUEST_ERROR,
|
|
651
665
|
"service-overloaded": SERVICE_OVERLOADED,
|
|
666
|
+
"semaphore-timeout": SEMAPHORE_TIMEOUT,
|
|
667
|
+
"circuit-breaker-open": CIRCUIT_BREAKER_OPEN,
|
|
652
668
|
"cache-path-mismatch": CACHE_PATH_MISMATCH,
|
|
653
669
|
"network-error": NETWORK_ERROR,
|
|
654
670
|
"api-client-error": API_CLIENT_ERROR,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/src/proxy/handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,kCAAkC,CAAC;AACzF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/src/proxy/handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,kCAAkC,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IAAI,CAAC;IAC9D,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAC7D,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAC7D,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CAC9E;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAgGD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB;0BA2R1B,OAAO,KAAG,OAAO,CAAC,YAAY,CAAC;0BAmQ/B,OAAO,KAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;;;;0BA1d7C,MAAM,EAAE;;EAsfpC;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEjE,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,GAAG,OAAO,CAwB7E"}
|
package/esm/src/proxy/handler.js
CHANGED
|
@@ -6,6 +6,18 @@ import { join } from "../platform/compat/path/index.js";
|
|
|
6
6
|
import { injectContext, ProxySpanNames, withSpan } from "./tracing.js";
|
|
7
7
|
import { computeContentSourceId } from "../cache/keys.js";
|
|
8
8
|
import { resolve as resolveContract } from "../extensions/contracts.js";
|
|
9
|
+
import { LRUCache } from "../utils/lru-wrapper.js";
|
|
10
|
+
import { registerLRUCache } from "../cache/index.js";
|
|
11
|
+
/**
|
|
12
|
+
* Bounded cache for project paths discovered dynamically at request time
|
|
13
|
+
* (slug → absolute path). Previously these were written into the per-handler
|
|
14
|
+
* `localProjects` config map, which grew without bound. Using a registered
|
|
15
|
+
* LRU keeps the working set capped and exposes it to cache monitoring, while
|
|
16
|
+
* the static `config.localProjects` map continues to reflect *configured*
|
|
17
|
+
* projects for the public `ProxyHandler.localProjects` surface.
|
|
18
|
+
*/
|
|
19
|
+
const discoveredLocalProjects = new LRUCache({ maxEntries: 100 });
|
|
20
|
+
registerLRUCache("proxy-discovered-local-projects", discoveredLocalProjects);
|
|
9
21
|
/**
|
|
10
22
|
* Cache the resolved AuthProvider at module scope so the proxy does not pay
|
|
11
23
|
* the registry lookup on every request. The cache is cleared implicitly when
|
|
@@ -216,6 +228,14 @@ export function createProxyHandler(options) {
|
|
|
216
228
|
return mapped;
|
|
217
229
|
const projectDirs = ["projects", "data/projects", "examples"];
|
|
218
230
|
const basePath = cwd();
|
|
231
|
+
// Key the discovery cache by the filesystem root as well as the slug: the
|
|
232
|
+
// cache is process-wide, so the same slug can resolve to different paths
|
|
233
|
+
// across handlers/workspaces or after a cwd change. Keying by basePath
|
|
234
|
+
// prevents a stale entry from one root being proxied for another.
|
|
235
|
+
const cacheKey = `${basePath}${slug}`;
|
|
236
|
+
const cached = discoveredLocalProjects.get(cacheKey);
|
|
237
|
+
if (cached)
|
|
238
|
+
return cached;
|
|
219
239
|
const candidatePaths = projectDirs.map((dir) => join(basePath, dir, slug));
|
|
220
240
|
const existingPaths = await Promise.all(candidatePaths.map(async (projectPath) => {
|
|
221
241
|
try {
|
|
@@ -237,7 +257,7 @@ export function createProxyHandler(options) {
|
|
|
237
257
|
]);
|
|
238
258
|
if (!hasApp && !hasPages && !hasComponents)
|
|
239
259
|
continue;
|
|
240
|
-
|
|
260
|
+
discoveredLocalProjects.set(cacheKey, projectPath);
|
|
241
261
|
logger?.debug("Dynamically discovered local project", { slug, projectPath });
|
|
242
262
|
return projectPath;
|
|
243
263
|
}
|
|
@@ -12,7 +12,7 @@ import type { ChatMessage } from "../../../../../agent/react/index.js";
|
|
|
12
12
|
export interface ChatComposerProps {
|
|
13
13
|
input: string;
|
|
14
14
|
onChange: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
15
|
-
onSubmit?: (e
|
|
15
|
+
onSubmit?: (e?: React.FormEvent) => void;
|
|
16
16
|
isLoading?: boolean;
|
|
17
17
|
placeholder?: string;
|
|
18
18
|
theme?: ChatTheme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-composer.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/composition/chat-composer.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAI1D,OAAO,EAAE,KAAK,WAAW,EAAiB,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEvE,uCAAuC;AACvC,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,KAAK,IAAI,CAAC;IACjF,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"chat-composer.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/composition/chat-composer.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAI1D,OAAO,EAAE,KAAK,WAAW,EAAiB,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,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S,CAAC;CAC5B;AAED,4BAA4B;AAC5B,eAAO,MAAM,YAAY,0FAyMxB,CAAC"}
|
|
@@ -57,7 +57,7 @@ export const ChatComposer = React.forwardRef(function ChatComposer({ input, onCh
|
|
|
57
57
|
setAttachmentMenuOpen(false);
|
|
58
58
|
onSelectAttachment();
|
|
59
59
|
} }, "Select document")))))),
|
|
60
|
-
React.createElement(InputBox, { value: isListening ? transcript || input : input, onChange: onChange, placeholder: isListening ? "Listening..." : placeholder, disabled: isLoading || isListening, multiline: true, className: cn("min-h-9 flex-1 py-2", theme?.input) }),
|
|
60
|
+
React.createElement(InputBox, { value: isListening ? transcript || input : input, onChange: onChange, onSubmit: () => onSubmit?.(), placeholder: isListening ? "Listening..." : placeholder, disabled: isLoading || isListening, multiline: true, className: cn("min-h-9 flex-1 py-2", theme?.input) }),
|
|
61
61
|
React.createElement("div", { className: "flex items-center gap-2" },
|
|
62
62
|
models && models.length > 0 && onModelChange && (React.createElement(ModelSelector, { models: models, value: model, onChange: onModelChange, disabled: isLoading })),
|
|
63
63
|
showExport && messages && messages.length > 0 && (React.createElement("button", { type: "button", onClick: () => downloadMarkdown(messages), className: "size-9 flex items-center justify-center rounded-full text-[var(--muted-foreground)] hover:text-[var(--foreground)] hover:bg-[var(--foreground)]/5 transition-colors shrink-0", "aria-label": "Export conversation", title: "Export as Markdown" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/components/chat/markdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAMpD,kCAAkC;AAClC,MAAM,WAAW,aAAa;IAC5B,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iCAAiC;IACjC,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,KAAK,CAAC,SAAS,CAAC;CAC9D;AAED,oCAAoC;AACpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/components/chat/markdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAMpD,kCAAkC;AAClC,MAAM,WAAW,aAAa;IAC5B,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iCAAiC;IACjC,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,KAAK,CAAC,SAAS,CAAC;CAC9D;AAED,oCAAoC;AACpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AA+LD,uBAAuB;AACvB,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,SAAS,EACT,aAAoB,EACpB,eAAe,GAChB,EAAE,aAAa,GAAG,KAAK,CAAC,YAAY,CA2FpC"}
|
|
@@ -10,15 +10,10 @@ const ESM_MERMAID = "https://esm.sh/mermaid@11.4.1?pin=v135";
|
|
|
10
10
|
async function importFromUrl(url) {
|
|
11
11
|
return await import(/* @vite-ignore */ url);
|
|
12
12
|
}
|
|
13
|
-
// deno-lint-ignore no-explicit-any
|
|
14
13
|
let ReactMarkdown = null;
|
|
15
|
-
// deno-lint-ignore no-explicit-any
|
|
16
14
|
let remarkGfm = null;
|
|
17
|
-
// deno-lint-ignore no-explicit-any
|
|
18
15
|
let rehypeHighlight = null;
|
|
19
|
-
// deno-lint-ignore no-explicit-any
|
|
20
16
|
let mermaidPromise = null;
|
|
21
|
-
// deno-lint-ignore no-explicit-any
|
|
22
17
|
let mermaidModule = null;
|
|
23
18
|
async function loadMermaid() {
|
|
24
19
|
if (!isBrowserEnvironment())
|
|
@@ -126,7 +121,6 @@ export function Markdown({ children, className, enableMermaid = true, renderCode
|
|
|
126
121
|
}
|
|
127
122
|
return (React.createElement("div", { className: cn("prose prose-sm max-w-none", className) },
|
|
128
123
|
React.createElement(ReactMarkdown, { remarkPlugins: remarkGfm ? [remarkGfm] : [], rehypePlugins: rehypeHighlight ? [rehypeHighlight] : [], components: {
|
|
129
|
-
// deno-lint-ignore no-explicit-any
|
|
130
124
|
code(props) {
|
|
131
125
|
const { className: codeClassName, children: codeChildren, node } = props;
|
|
132
126
|
const match = /language-(\w+)/.exec(codeClassName || "");
|
|
@@ -135,16 +129,13 @@ export function Markdown({ children, className, enableMermaid = true, renderCode
|
|
|
135
129
|
const isInline = !node?.position?.start?.line;
|
|
136
130
|
return (React.createElement(CodeBlock, { language: language, code: code, inline: isInline, enableMermaid: enableMermaid, renderCodeBlock: renderCodeBlock }));
|
|
137
131
|
},
|
|
138
|
-
// deno-lint-ignore no-explicit-any
|
|
139
132
|
table(props) {
|
|
140
133
|
return (React.createElement("div", { className: "my-4 overflow-auto" },
|
|
141
134
|
React.createElement("table", { className: "min-w-full divide-y divide-[var(--border)]" }, props.children)));
|
|
142
135
|
},
|
|
143
|
-
// deno-lint-ignore no-explicit-any
|
|
144
136
|
a(props) {
|
|
145
137
|
return (React.createElement("a", { href: props.href, className: "text-blue-600 hover:underline", target: "_blank", rel: "noopener noreferrer" }, props.children));
|
|
146
138
|
},
|
|
147
|
-
// deno-lint-ignore no-explicit-any
|
|
148
139
|
blockquote(props) {
|
|
149
140
|
return (React.createElement("blockquote", { className: "border-l-4 border-[var(--border)] pl-4 my-4 text-[var(--card-foreground)] italic" }, props.children));
|
|
150
141
|
},
|
package/esm/src/runs/index.d.ts
CHANGED
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import "../../_dnt.polyfills.js";
|
|
25
25
|
export { createRunsClient, type CreateTaskRunInput, type CreateWorkflowRunInput, type KnowledgeIngestByUploadIdsInput, type KnowledgeIngestByUploadPathsInput, type KnowledgeIngestByUploadPrefixInput, type ListRunEventsOptions, type ListRunsOptions, type ProjectScopedOptions, type RunRuntimeTargetKind, type RunRuntimeTargetOptions, VeryfrontRunsClient, type VeryfrontRunsClientConfig, } from "./runs-client.js";
|
|
26
|
-
export { type CancelRunResponse, CancelRunResponseSchema, type CreateRunResponse, CreateRunResponseSchema, type Run, type RunEvent, RunEventListSchema, RunEventSchema, type RunKind, type RunList, RunListSchema, type RunOwner, RunSchema, type RunStatus, } from "./schemas.js";
|
|
26
|
+
export { type CancelRunResponse, CancelRunResponseSchema, type CreateRunResponse, CreateRunResponseSchema, type Run, type RunEvent, RunEventListSchema, RunEventSchema, type RunExecutionError, type RunKind, type RunList, RunListSchema, type RunOwner, RunSchema, type RunStatus, type RunTriggerKind, } from "./schemas.js";
|
|
27
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/runs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,yBAAyB,CAAC;AAGjC,OAAO,EACL,gBAAgB,EAChB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EACvC,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,mBAAmB,EACnB,KAAK,yBAAyB,GAC/B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,GAAG,EACR,KAAK,QAAQ,EACb,kBAAkB,EAClB,cAAc,EACd,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,aAAa,EACb,KAAK,QAAQ,EACb,SAAS,EACT,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/runs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,yBAAyB,CAAC;AAGjC,OAAO,EACL,gBAAgB,EAChB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EACvC,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,mBAAmB,EACnB,KAAK,yBAAyB,GAC/B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,GAAG,EACR,KAAK,QAAQ,EACb,kBAAkB,EAClB,cAAc,EACd,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,aAAa,EACb,KAAK,QAAQ,EACb,SAAS,EACT,KAAK,SAAS,EACd,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC"}
|
|
@@ -5,6 +5,13 @@ export declare const getRunOwnerSchema: () => import("../internal-agents/schema.
|
|
|
5
5
|
kind: import("../internal-agents/schema.js").Schema<"project" | "conversation">;
|
|
6
6
|
id: import("../internal-agents/schema.js").Schema<string>;
|
|
7
7
|
}>>;
|
|
8
|
+
export declare const getRunRuntimeTargetKindSchema: () => import("../internal-agents/schema.js").Schema<"environment" | "main_branch" | "preview_branch">;
|
|
9
|
+
export declare const getRunTriggerKindSchema: () => import("../internal-agents/schema.js").Schema<"api" | "manual" | "schedule" | "webhook">;
|
|
10
|
+
export declare const getRunExecutionErrorSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
11
|
+
message: import("../internal-agents/schema.js").Schema<string>;
|
|
12
|
+
code: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
13
|
+
detail: import("../internal-agents/schema.js").Schema<unknown>;
|
|
14
|
+
}>>;
|
|
8
15
|
export declare const getRunSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
9
16
|
run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
10
17
|
kind: import("../internal-agents/schema.js").Schema<"agent" | "task" | "workflow">;
|
|
@@ -17,6 +24,32 @@ export declare const getRunSchema: () => import("../internal-agents/schema.js").
|
|
|
17
24
|
root_run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
18
25
|
waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
|
|
19
26
|
metadata: import("../internal-agents/schema.js").Schema<unknown>;
|
|
27
|
+
target: import("../internal-agents/schema.js").Schema<string | null>;
|
|
28
|
+
workflow_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
29
|
+
schedule_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
30
|
+
batch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
31
|
+
runtime_target_kind: import("../internal-agents/schema.js").Schema<"environment" | "main_branch" | "preview_branch" | null>;
|
|
32
|
+
runtime_target_environment_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
33
|
+
runtime_target_branch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
34
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
35
|
+
config: import("../internal-agents/schema.js").Schema<unknown>;
|
|
36
|
+
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
37
|
+
error: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
38
|
+
message: import("../internal-agents/schema.js").Schema<string>;
|
|
39
|
+
code: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
40
|
+
detail: import("../internal-agents/schema.js").Schema<unknown>;
|
|
41
|
+
}> | null>;
|
|
42
|
+
logs: import("../internal-agents/schema.js").Schema<string | null>;
|
|
43
|
+
artifacts: import("../internal-agents/schema.js").Schema<unknown[]>;
|
|
44
|
+
duration_ms: import("../internal-agents/schema.js").Schema<number | null>;
|
|
45
|
+
exit_code: import("../internal-agents/schema.js").Schema<number | null>;
|
|
46
|
+
start_mode: import("../internal-agents/schema.js").Schema<string | null>;
|
|
47
|
+
timeout_seconds: import("../internal-agents/schema.js").Schema<number | null>;
|
|
48
|
+
backoff_limit: import("../internal-agents/schema.js").Schema<number | null>;
|
|
49
|
+
trigger_kind: import("../internal-agents/schema.js").Schema<"api" | "manual" | "schedule" | "webhook" | null>;
|
|
50
|
+
trigger_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
51
|
+
created_by: import("../internal-agents/schema.js").Schema<string | null>;
|
|
52
|
+
updated_at: import("../internal-agents/schema.js").Schema<string>;
|
|
20
53
|
created_at: import("../internal-agents/schema.js").Schema<string>;
|
|
21
54
|
started_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
22
55
|
completed_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
@@ -36,6 +69,32 @@ export declare const getCreateRunResponseSchema: () => import("../internal-agent
|
|
|
36
69
|
root_run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
37
70
|
waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
|
|
38
71
|
metadata: import("../internal-agents/schema.js").Schema<unknown>;
|
|
72
|
+
target: import("../internal-agents/schema.js").Schema<string | null>;
|
|
73
|
+
workflow_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
74
|
+
schedule_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
75
|
+
batch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
76
|
+
runtime_target_kind: import("../internal-agents/schema.js").Schema<"environment" | "main_branch" | "preview_branch" | null>;
|
|
77
|
+
runtime_target_environment_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
78
|
+
runtime_target_branch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
79
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
80
|
+
config: import("../internal-agents/schema.js").Schema<unknown>;
|
|
81
|
+
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
82
|
+
error: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
83
|
+
message: import("../internal-agents/schema.js").Schema<string>;
|
|
84
|
+
code: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
85
|
+
detail: import("../internal-agents/schema.js").Schema<unknown>;
|
|
86
|
+
}> | null>;
|
|
87
|
+
logs: import("../internal-agents/schema.js").Schema<string | null>;
|
|
88
|
+
artifacts: import("../internal-agents/schema.js").Schema<unknown[]>;
|
|
89
|
+
duration_ms: import("../internal-agents/schema.js").Schema<number | null>;
|
|
90
|
+
exit_code: import("../internal-agents/schema.js").Schema<number | null>;
|
|
91
|
+
start_mode: import("../internal-agents/schema.js").Schema<string | null>;
|
|
92
|
+
timeout_seconds: import("../internal-agents/schema.js").Schema<number | null>;
|
|
93
|
+
backoff_limit: import("../internal-agents/schema.js").Schema<number | null>;
|
|
94
|
+
trigger_kind: import("../internal-agents/schema.js").Schema<"api" | "manual" | "schedule" | "webhook" | null>;
|
|
95
|
+
trigger_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
96
|
+
created_by: import("../internal-agents/schema.js").Schema<string | null>;
|
|
97
|
+
updated_at: import("../internal-agents/schema.js").Schema<string>;
|
|
39
98
|
created_at: import("../internal-agents/schema.js").Schema<string>;
|
|
40
99
|
started_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
41
100
|
completed_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
@@ -55,6 +114,32 @@ export declare const getCancelRunResponseSchema: () => import("../internal-agent
|
|
|
55
114
|
root_run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
56
115
|
waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
|
|
57
116
|
metadata: import("../internal-agents/schema.js").Schema<unknown>;
|
|
117
|
+
target: import("../internal-agents/schema.js").Schema<string | null>;
|
|
118
|
+
workflow_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
119
|
+
schedule_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
120
|
+
batch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
121
|
+
runtime_target_kind: import("../internal-agents/schema.js").Schema<"environment" | "main_branch" | "preview_branch" | null>;
|
|
122
|
+
runtime_target_environment_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
123
|
+
runtime_target_branch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
124
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
125
|
+
config: import("../internal-agents/schema.js").Schema<unknown>;
|
|
126
|
+
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
127
|
+
error: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
128
|
+
message: import("../internal-agents/schema.js").Schema<string>;
|
|
129
|
+
code: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
130
|
+
detail: import("../internal-agents/schema.js").Schema<unknown>;
|
|
131
|
+
}> | null>;
|
|
132
|
+
logs: import("../internal-agents/schema.js").Schema<string | null>;
|
|
133
|
+
artifacts: import("../internal-agents/schema.js").Schema<unknown[]>;
|
|
134
|
+
duration_ms: import("../internal-agents/schema.js").Schema<number | null>;
|
|
135
|
+
exit_code: import("../internal-agents/schema.js").Schema<number | null>;
|
|
136
|
+
start_mode: import("../internal-agents/schema.js").Schema<string | null>;
|
|
137
|
+
timeout_seconds: import("../internal-agents/schema.js").Schema<number | null>;
|
|
138
|
+
backoff_limit: import("../internal-agents/schema.js").Schema<number | null>;
|
|
139
|
+
trigger_kind: import("../internal-agents/schema.js").Schema<"api" | "manual" | "schedule" | "webhook" | null>;
|
|
140
|
+
trigger_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
141
|
+
created_by: import("../internal-agents/schema.js").Schema<string | null>;
|
|
142
|
+
updated_at: import("../internal-agents/schema.js").Schema<string>;
|
|
58
143
|
created_at: import("../internal-agents/schema.js").Schema<string>;
|
|
59
144
|
started_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
60
145
|
completed_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
@@ -99,6 +184,32 @@ export declare const getRunListSchema: () => import("../internal-agents/schema.j
|
|
|
99
184
|
root_run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
100
185
|
waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
|
|
101
186
|
metadata: import("../internal-agents/schema.js").Schema<unknown>;
|
|
187
|
+
target: import("../internal-agents/schema.js").Schema<string | null>;
|
|
188
|
+
workflow_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
189
|
+
schedule_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
190
|
+
batch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
191
|
+
runtime_target_kind: import("../internal-agents/schema.js").Schema<"environment" | "main_branch" | "preview_branch" | null>;
|
|
192
|
+
runtime_target_environment_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
193
|
+
runtime_target_branch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
194
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
195
|
+
config: import("../internal-agents/schema.js").Schema<unknown>;
|
|
196
|
+
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
197
|
+
error: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
198
|
+
message: import("../internal-agents/schema.js").Schema<string>;
|
|
199
|
+
code: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
200
|
+
detail: import("../internal-agents/schema.js").Schema<unknown>;
|
|
201
|
+
}> | null>;
|
|
202
|
+
logs: import("../internal-agents/schema.js").Schema<string | null>;
|
|
203
|
+
artifacts: import("../internal-agents/schema.js").Schema<unknown[]>;
|
|
204
|
+
duration_ms: import("../internal-agents/schema.js").Schema<number | null>;
|
|
205
|
+
exit_code: import("../internal-agents/schema.js").Schema<number | null>;
|
|
206
|
+
start_mode: import("../internal-agents/schema.js").Schema<string | null>;
|
|
207
|
+
timeout_seconds: import("../internal-agents/schema.js").Schema<number | null>;
|
|
208
|
+
backoff_limit: import("../internal-agents/schema.js").Schema<number | null>;
|
|
209
|
+
trigger_kind: import("../internal-agents/schema.js").Schema<"api" | "manual" | "schedule" | "webhook" | null>;
|
|
210
|
+
trigger_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
211
|
+
created_by: import("../internal-agents/schema.js").Schema<string | null>;
|
|
212
|
+
updated_at: import("../internal-agents/schema.js").Schema<string>;
|
|
102
213
|
created_at: import("../internal-agents/schema.js").Schema<string>;
|
|
103
214
|
started_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
104
215
|
completed_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
@@ -123,6 +234,32 @@ export declare const RunSchema: import("../internal-agents/schema.js").Schema<im
|
|
|
123
234
|
root_run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
124
235
|
waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
|
|
125
236
|
metadata: import("../internal-agents/schema.js").Schema<unknown>;
|
|
237
|
+
target: import("../internal-agents/schema.js").Schema<string | null>;
|
|
238
|
+
workflow_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
239
|
+
schedule_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
240
|
+
batch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
241
|
+
runtime_target_kind: import("../internal-agents/schema.js").Schema<"environment" | "main_branch" | "preview_branch" | null>;
|
|
242
|
+
runtime_target_environment_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
243
|
+
runtime_target_branch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
244
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
245
|
+
config: import("../internal-agents/schema.js").Schema<unknown>;
|
|
246
|
+
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
247
|
+
error: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
248
|
+
message: import("../internal-agents/schema.js").Schema<string>;
|
|
249
|
+
code: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
250
|
+
detail: import("../internal-agents/schema.js").Schema<unknown>;
|
|
251
|
+
}> | null>;
|
|
252
|
+
logs: import("../internal-agents/schema.js").Schema<string | null>;
|
|
253
|
+
artifacts: import("../internal-agents/schema.js").Schema<unknown[]>;
|
|
254
|
+
duration_ms: import("../internal-agents/schema.js").Schema<number | null>;
|
|
255
|
+
exit_code: import("../internal-agents/schema.js").Schema<number | null>;
|
|
256
|
+
start_mode: import("../internal-agents/schema.js").Schema<string | null>;
|
|
257
|
+
timeout_seconds: import("../internal-agents/schema.js").Schema<number | null>;
|
|
258
|
+
backoff_limit: import("../internal-agents/schema.js").Schema<number | null>;
|
|
259
|
+
trigger_kind: import("../internal-agents/schema.js").Schema<"api" | "manual" | "schedule" | "webhook" | null>;
|
|
260
|
+
trigger_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
261
|
+
created_by: import("../internal-agents/schema.js").Schema<string | null>;
|
|
262
|
+
updated_at: import("../internal-agents/schema.js").Schema<string>;
|
|
126
263
|
created_at: import("../internal-agents/schema.js").Schema<string>;
|
|
127
264
|
started_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
128
265
|
completed_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
@@ -143,6 +280,32 @@ export declare const CreateRunResponseSchema: import("../internal-agents/schema.
|
|
|
143
280
|
root_run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
144
281
|
waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
|
|
145
282
|
metadata: import("../internal-agents/schema.js").Schema<unknown>;
|
|
283
|
+
target: import("../internal-agents/schema.js").Schema<string | null>;
|
|
284
|
+
workflow_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
285
|
+
schedule_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
286
|
+
batch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
287
|
+
runtime_target_kind: import("../internal-agents/schema.js").Schema<"environment" | "main_branch" | "preview_branch" | null>;
|
|
288
|
+
runtime_target_environment_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
289
|
+
runtime_target_branch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
290
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
291
|
+
config: import("../internal-agents/schema.js").Schema<unknown>;
|
|
292
|
+
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
293
|
+
error: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
294
|
+
message: import("../internal-agents/schema.js").Schema<string>;
|
|
295
|
+
code: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
296
|
+
detail: import("../internal-agents/schema.js").Schema<unknown>;
|
|
297
|
+
}> | null>;
|
|
298
|
+
logs: import("../internal-agents/schema.js").Schema<string | null>;
|
|
299
|
+
artifacts: import("../internal-agents/schema.js").Schema<unknown[]>;
|
|
300
|
+
duration_ms: import("../internal-agents/schema.js").Schema<number | null>;
|
|
301
|
+
exit_code: import("../internal-agents/schema.js").Schema<number | null>;
|
|
302
|
+
start_mode: import("../internal-agents/schema.js").Schema<string | null>;
|
|
303
|
+
timeout_seconds: import("../internal-agents/schema.js").Schema<number | null>;
|
|
304
|
+
backoff_limit: import("../internal-agents/schema.js").Schema<number | null>;
|
|
305
|
+
trigger_kind: import("../internal-agents/schema.js").Schema<"api" | "manual" | "schedule" | "webhook" | null>;
|
|
306
|
+
trigger_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
307
|
+
created_by: import("../internal-agents/schema.js").Schema<string | null>;
|
|
308
|
+
updated_at: import("../internal-agents/schema.js").Schema<string>;
|
|
146
309
|
created_at: import("../internal-agents/schema.js").Schema<string>;
|
|
147
310
|
started_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
148
311
|
completed_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
@@ -163,6 +326,32 @@ export declare const CancelRunResponseSchema: import("../internal-agents/schema.
|
|
|
163
326
|
root_run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
164
327
|
waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
|
|
165
328
|
metadata: import("../internal-agents/schema.js").Schema<unknown>;
|
|
329
|
+
target: import("../internal-agents/schema.js").Schema<string | null>;
|
|
330
|
+
workflow_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
331
|
+
schedule_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
332
|
+
batch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
333
|
+
runtime_target_kind: import("../internal-agents/schema.js").Schema<"environment" | "main_branch" | "preview_branch" | null>;
|
|
334
|
+
runtime_target_environment_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
335
|
+
runtime_target_branch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
336
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
337
|
+
config: import("../internal-agents/schema.js").Schema<unknown>;
|
|
338
|
+
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
339
|
+
error: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
340
|
+
message: import("../internal-agents/schema.js").Schema<string>;
|
|
341
|
+
code: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
342
|
+
detail: import("../internal-agents/schema.js").Schema<unknown>;
|
|
343
|
+
}> | null>;
|
|
344
|
+
logs: import("../internal-agents/schema.js").Schema<string | null>;
|
|
345
|
+
artifacts: import("../internal-agents/schema.js").Schema<unknown[]>;
|
|
346
|
+
duration_ms: import("../internal-agents/schema.js").Schema<number | null>;
|
|
347
|
+
exit_code: import("../internal-agents/schema.js").Schema<number | null>;
|
|
348
|
+
start_mode: import("../internal-agents/schema.js").Schema<string | null>;
|
|
349
|
+
timeout_seconds: import("../internal-agents/schema.js").Schema<number | null>;
|
|
350
|
+
backoff_limit: import("../internal-agents/schema.js").Schema<number | null>;
|
|
351
|
+
trigger_kind: import("../internal-agents/schema.js").Schema<"api" | "manual" | "schedule" | "webhook" | null>;
|
|
352
|
+
trigger_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
353
|
+
created_by: import("../internal-agents/schema.js").Schema<string | null>;
|
|
354
|
+
updated_at: import("../internal-agents/schema.js").Schema<string>;
|
|
166
355
|
created_at: import("../internal-agents/schema.js").Schema<string>;
|
|
167
356
|
started_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
168
357
|
completed_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
@@ -204,6 +393,32 @@ export declare const RunListSchema: import("../internal-agents/schema.js").Schem
|
|
|
204
393
|
root_run_id: import("../internal-agents/schema.js").Schema<string>;
|
|
205
394
|
waiting_reason: import("../internal-agents/schema.js").Schema<string | null>;
|
|
206
395
|
metadata: import("../internal-agents/schema.js").Schema<unknown>;
|
|
396
|
+
target: import("../internal-agents/schema.js").Schema<string | null>;
|
|
397
|
+
workflow_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
398
|
+
schedule_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
399
|
+
batch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
400
|
+
runtime_target_kind: import("../internal-agents/schema.js").Schema<"environment" | "main_branch" | "preview_branch" | null>;
|
|
401
|
+
runtime_target_environment_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
402
|
+
runtime_target_branch_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
403
|
+
input: import("../internal-agents/schema.js").Schema<unknown>;
|
|
404
|
+
config: import("../internal-agents/schema.js").Schema<unknown>;
|
|
405
|
+
output: import("../internal-agents/schema.js").Schema<unknown>;
|
|
406
|
+
error: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
407
|
+
message: import("../internal-agents/schema.js").Schema<string>;
|
|
408
|
+
code: import("../internal-agents/schema.js").Schema<string | undefined>;
|
|
409
|
+
detail: import("../internal-agents/schema.js").Schema<unknown>;
|
|
410
|
+
}> | null>;
|
|
411
|
+
logs: import("../internal-agents/schema.js").Schema<string | null>;
|
|
412
|
+
artifacts: import("../internal-agents/schema.js").Schema<unknown[]>;
|
|
413
|
+
duration_ms: import("../internal-agents/schema.js").Schema<number | null>;
|
|
414
|
+
exit_code: import("../internal-agents/schema.js").Schema<number | null>;
|
|
415
|
+
start_mode: import("../internal-agents/schema.js").Schema<string | null>;
|
|
416
|
+
timeout_seconds: import("../internal-agents/schema.js").Schema<number | null>;
|
|
417
|
+
backoff_limit: import("../internal-agents/schema.js").Schema<number | null>;
|
|
418
|
+
trigger_kind: import("../internal-agents/schema.js").Schema<"api" | "manual" | "schedule" | "webhook" | null>;
|
|
419
|
+
trigger_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
420
|
+
created_by: import("../internal-agents/schema.js").Schema<string | null>;
|
|
421
|
+
updated_at: import("../internal-agents/schema.js").Schema<string>;
|
|
207
422
|
created_at: import("../internal-agents/schema.js").Schema<string>;
|
|
208
423
|
started_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
209
424
|
completed_at: import("../internal-agents/schema.js").Schema<string | null>;
|
|
@@ -221,6 +436,12 @@ export type RunKind = InferSchema<ReturnType<typeof getRunKindSchema>>;
|
|
|
221
436
|
export type RunStatus = InferSchema<ReturnType<typeof getRunStatusSchema>>;
|
|
222
437
|
/** Canonical durable run owner. */
|
|
223
438
|
export type RunOwner = InferSchema<ReturnType<typeof getRunOwnerSchema>>;
|
|
439
|
+
/** Runtime target kind recorded on task and workflow runs. */
|
|
440
|
+
export type RunRuntimeTargetKind = InferSchema<ReturnType<typeof getRunRuntimeTargetKindSchema>>;
|
|
441
|
+
/** Trigger kind recorded on scheduled or externally-started runs. */
|
|
442
|
+
export type RunTriggerKind = InferSchema<ReturnType<typeof getRunTriggerKindSchema>>;
|
|
443
|
+
/** Error payload recorded for failed task and workflow runs. */
|
|
444
|
+
export type RunExecutionError = InferSchema<ReturnType<typeof getRunExecutionErrorSchema>>;
|
|
224
445
|
/** Canonical durable run. */
|
|
225
446
|
export type Run = InferSchema<ReturnType<typeof getRunSchema>>;
|
|
226
447
|
/** Response returned when a run is accepted. */
|
|
@@ -1 +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
|
|
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,6BAA6B,uGAEzC,CAAC;AAEF,eAAO,MAAM,uBAAuB,gGAEnC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;GAMtC,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCxB,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;G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