veryfront 0.1.1219 → 0.1.1221
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/conversation/hosted-lifecycle.d.ts +5 -1
- package/esm/src/agent/conversation/hosted-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/conversation/hosted-lifecycle.js +9 -1
- package/esm/src/agent/hosted/child-lifecycle.d.ts +6 -0
- package/esm/src/agent/hosted/child-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-lifecycle.js +74 -2
- package/esm/src/agent/hosted/durable-run-event-sink.d.ts.map +1 -1
- package/esm/src/agent/hosted/durable-run-event-sink.js +134 -4
- package/esm/src/errors/error-registry/general.d.ts +3 -0
- package/esm/src/errors/error-registry/general.d.ts.map +1 -1
- package/esm/src/errors/error-registry/general.js +9 -0
- package/esm/src/errors/error-registry.d.ts +1 -0
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/errors/index.d.ts +1 -1
- package/esm/src/errors/index.d.ts.map +1 -1
- package/esm/src/errors/index.js +1 -1
- package/esm/src/html/hydration-script-builder/hydration-runtime.generated.js +1 -1
- package/esm/src/platform/compat/http/pinned-fetch.d.ts +1 -1
- package/esm/src/server/project-env/production-environment-resolver.d.ts.map +1 -1
- package/esm/src/server/project-env/production-environment-resolver.js +6 -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/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +8 -8
package/esm/deno.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ConversationAgentRunUsage, type ConversationRunProjection } from "./durable.js";
|
|
2
|
+
import { ConversationRunEventEncoder } from "./run-events.js";
|
|
2
3
|
import { type InvokeAgentChildRunProgressEvent, type InvokeAgentChildRunProgressInput } from "../child-run/invoke-agent-child-runs.js";
|
|
3
4
|
import type { ChatStreamEvent } from "../../chat/protocol.js";
|
|
4
5
|
import type { HostedChildLifecycleAdapter } from "../hosted/child-lifecycle.js";
|
|
@@ -27,7 +28,10 @@ export interface CreateConversationHostedLifecycleAdapterOptions<TChunk> {
|
|
|
27
28
|
/** Create conversation hosted lifecycle adapter. */
|
|
28
29
|
export declare function createConversationHostedLifecycleAdapter<TChunk>(options: CreateConversationHostedLifecycleAdapterOptions<TChunk>): HostedLifecycleAdapter<ConversationRunProjection, TChunk>;
|
|
29
30
|
/** Create conversation hosted stream lifecycle adapter. */
|
|
30
|
-
export declare function createConversationHostedStreamLifecycleAdapter(options: Omit<CreateConversationHostedLifecycleAdapterOptions<ChatStreamEvent>, "mapChunkToEvents">
|
|
31
|
+
export declare function createConversationHostedStreamLifecycleAdapter(options: Omit<CreateConversationHostedLifecycleAdapterOptions<ChatStreamEvent>, "mapChunkToEvents"> & {
|
|
32
|
+
/** Encoder to reuse for the run. Defaults to a clocked run-scoped encoder. */
|
|
33
|
+
encoder?: ConversationRunEventEncoder;
|
|
34
|
+
}): HostedLifecycleAdapter<ConversationRunProjection, ChatStreamEvent>;
|
|
31
35
|
/** Context for conversation child lifecycle. */
|
|
32
36
|
export interface ConversationChildLifecycleContext {
|
|
33
37
|
authToken: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/conversation/hosted-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAE/B,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EAEtC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EACV,2BAA2B,EAE5B,MAAM,8BAA8B,CAAC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CAC9C;AAED,oDAAoD;AACpD,wBAAgB,wCAAwC,CAAC,MAAM,EAC7D,OAAO,EAAE,+CAA+C,CAAC,MAAM,CAAC,GAC/D,sBAAsB,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAiF3D;AAED,2DAA2D;AAC3D,wBAAgB,8CAA8C,CAC5D,OAAO,EACH,IAAI,CACJ,+CAA+C,CAAC,eAAe,CAAC,EAChE,kBAAkB,CACnB,GACC;IACA,8EAA8E;IAC9E,OAAO,CAAC,EAAE,2BAA2B,CAAC;CACvC,GACF,sBAAsB,CAAC,yBAAyB,EAAE,eAAe,CAAC,CAapE;AAED,gDAAgD;AAChD,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,sBAAsB,CAAC,EAAE,CAAC,MAAM,EAAE,gCAAgC,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC9F,QAAQ,EAAE,IAAI,CAAC,gCAAgC,EAAE,QAAQ,CAAC,CAAC;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAwDD,mDAAmD;AACnD,wBAAgB,uCAAuC,CACrD,GAAG,EAAE,iCAAiC,GACrC,2BAA2B,CA+C7B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { appendConversationRunEvents, finalizeConversationAgentRun, } from "./durable.js";
|
|
2
2
|
import { prepareConversationRunStreamEvents } from "./run-event-preparation.js";
|
|
3
|
+
import { ConversationRunEventEncoder } from "./run-events.js";
|
|
3
4
|
import { publishInvokeAgentChildRunProgress, } from "../child-run/invoke-agent-child-runs.js";
|
|
4
5
|
import { agentLogger } from "../../utils/index.js";
|
|
5
6
|
/** Create conversation hosted lifecycle adapter. */
|
|
@@ -80,9 +81,16 @@ export function createConversationHostedLifecycleAdapter(options) {
|
|
|
80
81
|
}
|
|
81
82
|
/** Create conversation hosted stream lifecycle adapter. */
|
|
82
83
|
export function createConversationHostedStreamLifecycleAdapter(options) {
|
|
84
|
+
// One encoder for the whole run, not one per chunk. It carries stepCount and
|
|
85
|
+
// the active message across chunks, so a per-chunk encoder restarts every step
|
|
86
|
+
// at step-1 and loses the message identity the events are grouped by. Its
|
|
87
|
+
// creation is also the anchor `elapsedMs` is measured from, so a fresh encoder
|
|
88
|
+
// would reset elapsed to zero on every event.
|
|
89
|
+
const encoder = options.encoder ??
|
|
90
|
+
new ConversationRunEventEncoder({ nowMs: () => performance.now() });
|
|
83
91
|
return createConversationHostedLifecycleAdapter({
|
|
84
92
|
...options,
|
|
85
|
-
mapChunkToEvents: (chunk) => prepareConversationRunStreamEvents([chunk]),
|
|
93
|
+
mapChunkToEvents: (chunk) => prepareConversationRunStreamEvents([chunk], encoder),
|
|
86
94
|
});
|
|
87
95
|
}
|
|
88
96
|
function toConversationChildUsage(usage) {
|
|
@@ -65,6 +65,12 @@ export interface HostedChildExecutionLifecycleOptions<TLocalResult extends Child
|
|
|
65
65
|
onLifecycleError?: (error: unknown) => Promise<void> | void;
|
|
66
66
|
skipTerminalPersistence?: (terminalState: HostedChildLifecycleTerminalState) => boolean;
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Terminal error code for a child whose work finished but whose terminal state
|
|
70
|
+
* could not be persisted. Distinct from an execution failure code on purpose:
|
|
71
|
+
* the child produced its result, the run record did not survive it.
|
|
72
|
+
*/
|
|
73
|
+
export declare const HOSTED_CHILD_FINALIZATION_FAILED_CODE = "CHILD_FINALIZATION_FAILED";
|
|
68
74
|
/** Run hosted child lifecycle. */
|
|
69
75
|
export declare function runHostedChildLifecycle<TResult>(options: HostedChildLifecycleRunnerOptions<TResult>): Promise<HostedChildLifecycleRunResult<TResult>>;
|
|
70
76
|
/** Run hosted child execution lifecycle. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"child-lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/child-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAE/B,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"child-lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/child-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAE/B,MAAM,oCAAoC,CAAC;AAU5C,iDAAiD;AACjD,MAAM,WAAW,iCAAiC;IAChD,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IAC7C,KAAK,CAAC,EAAE;QACN,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,kCACf,SAAQ,IAAI,CAAC,iCAAiC,EAAE,QAAQ,CAAC;IACzD,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,8DAA8D;AAC9D,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACrC,SAAS,CAAC,EAAE,CACV,aAAa,EAAE,iCAAiC,KAC7C,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,CACP,aAAa,EAAE,iCAAiC,KAC7C,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAA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AAK,EAAE,OAAO,CAAC;IACf,aAAa,EAAE,iCAAiC,CAAC;CAClD,CAAC;AAEJ,4DAA4D;AAC5D,wBAAgB,wCAAwC,CACtD,aAAa,EAAE,IAAI,CAAC,iCAAiC,EAAE,mBAAmB,CAAC,GAC1E,OAAO,CAET;AAED,4DAA4D;AAC5D,MAAM,WAAW,oCAAoC,CACnD,YAAY,SAAS,uBAAuB;IAE5C,OAAO,EAAE,2BAA2B,CAAC;IACrC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACtC,OAAO,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC;IACpD,oBAAoB,EAAE,MAAM,yBAAyB,GAAG,IAAI,CAAC;IAC7D,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC5D,uBAAuB,CAAC,EAAE,CAAC,aAAa,EAAE,iCAAiC,KAAK,OAAO,CAAC;CACzF;AAgBD;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,8BAA8B,CAAC;AA+BjF,kCAAkC;AAClC,wBAAsB,uBAAuB,CAAC,OAAO,EACnD,OAAO,EAAE,iCAAiC,CAAC,OAAO,CAAC,GAClD,OAAO,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC,CAkEjD;AA6HD,4CAA4C;AAC5C,wBAAsB,gCAAgC,CACpD,YAAY,SAAS,uBAAuB,EAE5C,OAAO,EAAE,oCAAoC,CAAC,YAAY,CAAC,GAC1D,OAAO,CAAC,mCAAmC,CAAC,YAAY,CAAC,CAAC,CA4E5D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { buildChildRunExecutionSnapshot, getChildRunSnapshotUsage, } from "../child-run/execution-snapshot.js";
|
|
2
|
+
import { sanitizeUrlCredentials } from "../../utils/index.js";
|
|
2
3
|
import { resolveKnownProviderTerminalError } from "../streaming/stream-outcome.js";
|
|
3
4
|
import { isChildRunAbortError } from "../child-run/execution-support.js";
|
|
4
5
|
import { HostedChildTerminalStateError, isHostedChildTerminalErrorCode, resolveHostedChildTerminalErrorCode, } from "./child-status.js";
|
|
@@ -14,6 +15,20 @@ class HostedChildExecutionFailure extends Error {
|
|
|
14
15
|
this.name = "HostedChildExecutionFailure";
|
|
15
16
|
}
|
|
16
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Terminal error code for a child whose work finished but whose terminal state
|
|
20
|
+
* could not be persisted. Distinct from an execution failure code on purpose:
|
|
21
|
+
* the child produced its result, the run record did not survive it.
|
|
22
|
+
*/
|
|
23
|
+
export const HOSTED_CHILD_FINALIZATION_FAILED_CODE = "CHILD_FINALIZATION_FAILED";
|
|
24
|
+
function buildFinalizationFailureState(completedState, error) {
|
|
25
|
+
return {
|
|
26
|
+
status: "failed",
|
|
27
|
+
usage: completedState.usage,
|
|
28
|
+
terminalErrorCode: HOSTED_CHILD_FINALIZATION_FAILED_CODE,
|
|
29
|
+
terminalErrorMessage: error instanceof Error ? error.message : String(error),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
17
32
|
async function dispatchTerminalState(adapter, terminalState) {
|
|
18
33
|
if (terminalState.status === "cancelled") {
|
|
19
34
|
await adapter.cancelled?.(terminalState);
|
|
@@ -55,7 +70,35 @@ export async function runHostedChildLifecycle(options) {
|
|
|
55
70
|
const terminalState = options.resolveCompletedState
|
|
56
71
|
? await options.resolveCompletedState(result)
|
|
57
72
|
: { status: "completed" };
|
|
58
|
-
|
|
73
|
+
try {
|
|
74
|
+
await dispatchTerminalState(options.adapter, terminalState);
|
|
75
|
+
}
|
|
76
|
+
catch (lifecycleError) {
|
|
77
|
+
// Same guard the failure path above uses. Without a handler the error still
|
|
78
|
+
// propagates, which is the long-standing contract for this function.
|
|
79
|
+
if (!options.onLifecycleError) {
|
|
80
|
+
throw lifecycleError;
|
|
81
|
+
}
|
|
82
|
+
try {
|
|
83
|
+
await options.onLifecycleError(lifecycleError);
|
|
84
|
+
}
|
|
85
|
+
catch {
|
|
86
|
+
// An observability callback must not change the outcome. Letting it throw
|
|
87
|
+
// here would reach the outer catch, which relabels with executionFailedCode
|
|
88
|
+
// and dispatches `failed` — the double dispatch this guard exists to stop.
|
|
89
|
+
// Same reasoning as durable-child-fork-execution.ts:884-888.
|
|
90
|
+
}
|
|
91
|
+
// Deliberately not re-dispatched: the adapter has already rejected this
|
|
92
|
+
// run's terminal state, so dispatching `failed` on top would write a second
|
|
93
|
+
// terminal state. Reporting through the return value keeps a persistence
|
|
94
|
+
// failure distinguishable from an execution failure, which the caller's
|
|
95
|
+
// `executionFailedCode` would not.
|
|
96
|
+
return {
|
|
97
|
+
status: "failed",
|
|
98
|
+
error: lifecycleError,
|
|
99
|
+
terminalState: buildFinalizationFailureState(terminalState, lifecycleError),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
59
102
|
return {
|
|
60
103
|
status: "completed",
|
|
61
104
|
result,
|
|
@@ -92,6 +135,35 @@ function wrapSkippableTerminalPersistence(adapter, skipTerminalPersistence) {
|
|
|
92
135
|
},
|
|
93
136
|
};
|
|
94
137
|
}
|
|
138
|
+
const CANCELLED_TERMINAL_MESSAGE = "Child run cancelled";
|
|
139
|
+
const MAX_CANCELLED_CAUSE_LENGTH = 200;
|
|
140
|
+
/**
|
|
141
|
+
* A run torn down mid-flight reports `cancelled`, but the error that surfaced is
|
|
142
|
+
* not always the abort itself — an aborted signal makes any error in flight look
|
|
143
|
+
* like a cancellation. Keep the cancelled status and append the real cause, so a
|
|
144
|
+
* failure that merely coincided with teardown is still diagnosable.
|
|
145
|
+
*
|
|
146
|
+
* The cause reaches a durable run record, so it is sanitized and bounded before
|
|
147
|
+
* it is carried: credential-bearing URLs are stripped, and a bulk payload such as
|
|
148
|
+
* a provider response body is cut to an excerpt rather than persisted whole. Same
|
|
149
|
+
* treatment `sanitizeDiscoveryErrorMessage` applies to surfaced error text.
|
|
150
|
+
*
|
|
151
|
+
* Only the code is contractual here; `shouldBlockHostedChildSameTurnRetry`
|
|
152
|
+
* matches on `terminalErrorCode` precisely because the message is not.
|
|
153
|
+
*/
|
|
154
|
+
function resolveCancelledTerminalMessage(error) {
|
|
155
|
+
if (isChildRunAbortError(error)) {
|
|
156
|
+
return CANCELLED_TERMINAL_MESSAGE;
|
|
157
|
+
}
|
|
158
|
+
const sanitized = sanitizeUrlCredentials(error instanceof Error ? error.message : String(error));
|
|
159
|
+
if (sanitized.length === 0) {
|
|
160
|
+
return CANCELLED_TERMINAL_MESSAGE;
|
|
161
|
+
}
|
|
162
|
+
const cause = sanitized.length <= MAX_CANCELLED_CAUSE_LENGTH
|
|
163
|
+
? sanitized
|
|
164
|
+
: `${sanitized.slice(0, MAX_CANCELLED_CAUSE_LENGTH - 3)}...`;
|
|
165
|
+
return `${CANCELLED_TERMINAL_MESSAGE}: ${cause}`;
|
|
166
|
+
}
|
|
95
167
|
function resolveHostedChildExecutionErrorState(error, input) {
|
|
96
168
|
if (error instanceof HostedChildTerminalStateError) {
|
|
97
169
|
if (error.status === "completed") {
|
|
@@ -116,7 +188,7 @@ function resolveHostedChildExecutionErrorState(error, input) {
|
|
|
116
188
|
return {
|
|
117
189
|
status: "cancelled",
|
|
118
190
|
terminalErrorCode: "CANCELLED",
|
|
119
|
-
terminalErrorMessage:
|
|
191
|
+
terminalErrorMessage: resolveCancelledTerminalMessage(error),
|
|
120
192
|
usage: toHostedChildLifecycleUsage(getChildRunSnapshotUsage(input.getExecutionSnapshot())),
|
|
121
193
|
};
|
|
122
194
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durable-run-event-sink.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/durable-run-event-sink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAOtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"durable-run-event-sink.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/durable-run-event-sink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAOtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAM7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAuPvF,wEAAwE;AACxE,wBAAgB,yBAAyB,CAAC,KAAK,EAAE;IAC/C,MAAM,EAAE,0BAA0B,CAAC;IACnC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,iBAAiB,CAwDpB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { getPrivateRunEventAppendRequestByteLength, MAX_CONVERSATION_RUN_EVENT_APPEND_REQUEST_BYTES, } from "../conversation/run-event-limits.js";
|
|
2
2
|
import { DurableRunEventPersistenceError } from "../conversation/private-run-event.js";
|
|
3
|
+
import { agentLogger } from "../../utils/index.js";
|
|
3
4
|
const DEFAULT_DURABLE_RUN_EVENT_PERSISTENCE_TIMEOUT_MS = 30_000;
|
|
4
5
|
const persistenceTails = new WeakMap();
|
|
5
6
|
export { DurableRunEventPersistenceError } from "../conversation/private-run-event.js";
|
|
@@ -31,14 +32,128 @@ async function serializePersistence(mirror, operation) {
|
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function isRecord(value) {
|
|
36
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
37
|
+
}
|
|
38
|
+
const TRUNCATED_TEXT_SUFFIX = "… [truncated]";
|
|
39
|
+
const OMITTED_MESSAGE_NOTICE = "[veryfront] Model call context truncated for audit.";
|
|
40
|
+
const utf8Encoder = new TextEncoder();
|
|
41
|
+
function getUtf8ByteLength(value) {
|
|
42
|
+
return utf8Encoder.encode(value).byteLength;
|
|
43
|
+
}
|
|
44
|
+
/** Clamp to a UTF-8 byte budget without splitting a surrogate pair. */
|
|
45
|
+
function truncateTextToBytes(value, maxBytes) {
|
|
46
|
+
if (getUtf8ByteLength(value) <= maxBytes)
|
|
47
|
+
return value;
|
|
48
|
+
const budget = Math.max(0, maxBytes - getUtf8ByteLength(TRUNCATED_TEXT_SUFFIX));
|
|
49
|
+
let low = 0;
|
|
50
|
+
let high = value.length;
|
|
51
|
+
while (low < high) {
|
|
52
|
+
const mid = Math.ceil((low + high) / 2);
|
|
53
|
+
if (getUtf8ByteLength(value.slice(0, mid)) <= budget)
|
|
54
|
+
low = mid;
|
|
55
|
+
else
|
|
56
|
+
high = mid - 1;
|
|
57
|
+
}
|
|
58
|
+
// Never cut between a surrogate pair; step back onto a whole code point.
|
|
59
|
+
const end = low > 0 && /[\uD800-\uDBFF]/.test(value[low - 1] ?? "") ? low - 1 : low;
|
|
60
|
+
return `${value.slice(0, end)}${TRUNCATED_TEXT_SUFFIX}`;
|
|
61
|
+
}
|
|
62
|
+
function truncateMessageTextParts(message, maxTextBytes) {
|
|
63
|
+
if (!isRecord(message) || !Array.isArray(message.content))
|
|
64
|
+
return message;
|
|
65
|
+
return {
|
|
66
|
+
...message,
|
|
67
|
+
content: message.content.map((part) => isRecord(part) && typeof part.text === "string"
|
|
68
|
+
? { ...part, text: truncateTextToBytes(part.text, maxTextBytes) }
|
|
69
|
+
: part),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function buildTruncationNotice(input) {
|
|
73
|
+
return {
|
|
74
|
+
role: "system",
|
|
75
|
+
content: [{
|
|
76
|
+
type: "text",
|
|
77
|
+
text: `${OMITTED_MESSAGE_NOTICE} Original ${formatMebibytes(input.originalByteLength)} exceeded the ${formatMebibytes(MAX_CONVERSATION_RUN_EVENT_APPEND_REQUEST_BYTES)} append limit; ${input.omittedMessageCount} message(s) omitted. The model call was not ` +
|
|
78
|
+
`dispatched — this record is an excerpt, not the context that was sent.`,
|
|
79
|
+
}],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Fit an oversized model call context inside the append budget.
|
|
84
|
+
*
|
|
85
|
+
* Private run events are exempt from `normalizeConversationRunEvent`'s size clamp,
|
|
86
|
+
* so nothing upstream shrinks them and the raw event is what gets sent. Rather
|
|
87
|
+
* than lose the run's remaining events by disposing the mirror, the context is
|
|
88
|
+
* reduced to fit and led by a notice message saying what was cut, so it can never
|
|
89
|
+
* be read as the context that was actually sent. Newest messages are kept — they
|
|
90
|
+
* are what someone reading a failed run is looking for.
|
|
91
|
+
*
|
|
92
|
+
* The notice lives inside `messages` rather than in new top-level fields on
|
|
93
|
+
* purpose: `isPrivateConversationRunEvent` allows only `type`, `messages` and
|
|
94
|
+
* `tools`, and any extra key makes normalization throw — which this sink would
|
|
95
|
+
* then treat as a persistence failure and dispose the mirror, reintroducing the
|
|
96
|
+
* exact loss this function exists to prevent.
|
|
97
|
+
*/
|
|
98
|
+
function truncatePrivateRunEventToLimit(event, originalByteLength) {
|
|
99
|
+
const messages = Array.isArray(event.messages) ? event.messages : [];
|
|
100
|
+
const tools = Array.isArray(event.tools) ? event.tools : undefined;
|
|
101
|
+
const build = (kept, omittedMessageCount, keepTools) => ({
|
|
102
|
+
type: event.type,
|
|
103
|
+
messages: [buildTruncationNotice({ originalByteLength, omittedMessageCount }), ...kept],
|
|
104
|
+
...(tools === undefined ? {} : { tools: keepTools ? tools : [] }),
|
|
105
|
+
});
|
|
106
|
+
const fits = (candidate) => getPrivateRunEventAppendRequestByteLength(candidate) <=
|
|
107
|
+
MAX_CONVERSATION_RUN_EVENT_APPEND_REQUEST_BYTES;
|
|
108
|
+
// Clamp message text progressively; each pass quarters the per-part budget.
|
|
109
|
+
for (let maxTextBytes = 64 * 1024; maxTextBytes >= 256; maxTextBytes = Math.floor(maxTextBytes / 4)) {
|
|
110
|
+
const candidate = build(messages.map((message) => truncateMessageTextParts(message, maxTextBytes)), 0, true);
|
|
111
|
+
if (fits(candidate))
|
|
112
|
+
return { event: candidate, omittedMessageCount: 0 };
|
|
113
|
+
}
|
|
114
|
+
// Still over: drop the oldest messages, keeping the most recent ones.
|
|
115
|
+
const clamped = messages.map((message) => truncateMessageTextParts(message, 256));
|
|
116
|
+
for (let keep = Math.min(clamped.length, 8); keep >= 1; keep--) {
|
|
117
|
+
const candidate = build(clamped.slice(-keep), clamped.length - keep, true);
|
|
118
|
+
if (fits(candidate))
|
|
119
|
+
return { event: candidate, omittedMessageCount: clamped.length - keep };
|
|
120
|
+
}
|
|
121
|
+
// Last resort: notice only, and drop tools — the remaining bulk can only be there.
|
|
122
|
+
const bare = build([], clamped.length, false);
|
|
123
|
+
if (!fits(bare)) {
|
|
124
|
+
throw new DurableRunEventPersistenceError("Run event append request exceeds the supported payload size and could not be reduced");
|
|
125
|
+
}
|
|
126
|
+
return { event: bare, omittedMessageCount: clamped.length };
|
|
127
|
+
}
|
|
128
|
+
function formatMebibytes(bytes) {
|
|
129
|
+
return `${(bytes / (1024 * 1024)).toFixed(1)} MiB`;
|
|
130
|
+
}
|
|
131
|
+
function resolvePersistableEvent(event) {
|
|
35
132
|
const requestByteLength = getPrivateRunEventAppendRequestByteLength(event);
|
|
36
133
|
if (!Number.isFinite(requestByteLength)) {
|
|
37
134
|
throw new DurableRunEventPersistenceError("Run event is not serializable");
|
|
38
135
|
}
|
|
39
|
-
if (requestByteLength
|
|
136
|
+
if (requestByteLength <= MAX_CONVERSATION_RUN_EVENT_APPEND_REQUEST_BYTES) {
|
|
137
|
+
return { event };
|
|
138
|
+
}
|
|
139
|
+
if (!isRecord(event)) {
|
|
40
140
|
throw new DurableRunEventPersistenceError("Run event append request exceeds the supported payload size");
|
|
41
141
|
}
|
|
142
|
+
const truncated = truncatePrivateRunEventToLimit(event, requestByteLength);
|
|
143
|
+
return {
|
|
144
|
+
event: truncated.event,
|
|
145
|
+
oversize: {
|
|
146
|
+
originalByteLength: requestByteLength,
|
|
147
|
+
omittedMessageCount: truncated.omittedMessageCount,
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
function buildOversizeError(oversize) {
|
|
152
|
+
return new DurableRunEventPersistenceError(`Run event append request exceeds the supported payload size: model call context was ` +
|
|
153
|
+
`${formatMebibytes(oversize.originalByteLength)}, limit is ` +
|
|
154
|
+
`${formatMebibytes(MAX_CONVERSATION_RUN_EVENT_APPEND_REQUEST_BYTES)}. ` +
|
|
155
|
+
`A truncated record was persisted for audit and the model call was not dispatched. ` +
|
|
156
|
+
`Reduce conversation history or large tool results before retrying.`);
|
|
42
157
|
}
|
|
43
158
|
function getAbortReason(signal) {
|
|
44
159
|
return signal.reason ?? new DOMException("This operation was aborted", "AbortError");
|
|
@@ -67,9 +182,12 @@ async function withPersistenceDeadline(input) {
|
|
|
67
182
|
/** Create the internal fail-closed sink used by hosted durable runs. */
|
|
68
183
|
export function createDurableRunEventSink(input) {
|
|
69
184
|
return async (event) => {
|
|
185
|
+
let oversize;
|
|
70
186
|
try {
|
|
71
187
|
assertEnabled(input.mirror.getSnapshot());
|
|
72
|
-
|
|
188
|
+
const resolved = resolvePersistableEvent(event);
|
|
189
|
+
oversize = resolved.oversize;
|
|
190
|
+
const persistableEvent = resolved.event;
|
|
73
191
|
await serializePersistence(input.mirror, async () => {
|
|
74
192
|
await withPersistenceDeadline({
|
|
75
193
|
abortSignal: input.abortSignal,
|
|
@@ -83,7 +201,7 @@ export function createDurableRunEventSink(input) {
|
|
|
83
201
|
throwOnTimeoutRetry: true,
|
|
84
202
|
}));
|
|
85
203
|
}
|
|
86
|
-
await input.mirror.appendEvents([{ ...
|
|
204
|
+
await input.mirror.appendEvents([{ ...persistableEvent }]);
|
|
87
205
|
abortSignal.throwIfAborted();
|
|
88
206
|
assertDrained(await input.mirror.flush({
|
|
89
207
|
abortSignal,
|
|
@@ -98,5 +216,17 @@ export function createDurableRunEventSink(input) {
|
|
|
98
216
|
input.mirror.dispose();
|
|
99
217
|
throw error;
|
|
100
218
|
}
|
|
219
|
+
if (oversize) {
|
|
220
|
+
// The gate, deliberately after a successful write: the truncated record is
|
|
221
|
+
// durable so an operator can see what the run tried to send, and the mirror
|
|
222
|
+
// stays alive so the run's later events — including its failure — still
|
|
223
|
+
// persist. Only the model dispatch is refused.
|
|
224
|
+
agentLogger.warn("[durableRunEventSink] Model call context exceeded the append limit; dispatch refused", {
|
|
225
|
+
originalByteLength: oversize.originalByteLength,
|
|
226
|
+
limitByteLength: MAX_CONVERSATION_RUN_EVENT_APPEND_REQUEST_BYTES,
|
|
227
|
+
omittedMessageCount: oversize.omittedMessageCount,
|
|
228
|
+
});
|
|
229
|
+
throw buildOversizeError(oversize);
|
|
230
|
+
}
|
|
101
231
|
};
|
|
102
232
|
}
|
|
@@ -13,6 +13,8 @@ export declare const SECURITY_VIOLATION: import("../types.js").RegisteredError;
|
|
|
13
13
|
/** HTTP request input validation failures (replaces ValidationError) */
|
|
14
14
|
export declare const INPUT_VALIDATION_FAILED: import("../types.js").RegisteredError;
|
|
15
15
|
export declare const PROJECT_SOURCE_EMPTY: import("../types.js").RegisteredError;
|
|
16
|
+
/** A scope that owns the process working directory was opened inside another one. */
|
|
17
|
+
export declare const NESTED_CWD_SCOPE: import("../types.js").RegisteredError;
|
|
16
18
|
/**
|
|
17
19
|
* All registered errors for lookup by slug
|
|
18
20
|
*/
|
|
@@ -30,5 +32,6 @@ export declare const GENERAL_REGISTRY: {
|
|
|
30
32
|
readonly "security-violation": import("../types.js").RegisteredError;
|
|
31
33
|
readonly "input-validation-failed": import("../types.js").RegisteredError;
|
|
32
34
|
readonly "project-source-empty": import("../types.js").RegisteredError;
|
|
35
|
+
readonly "nested-cwd-scope": import("../types.js").RegisteredError;
|
|
33
36
|
};
|
|
34
37
|
//# sourceMappingURL=general.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/general.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC;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uCAO3B,CAAC;AAMH;;GAEG;AAEH,gEAAgE;AAChE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;CAcnB,CAAC"}
|
|
@@ -87,6 +87,14 @@ export const PROJECT_SOURCE_EMPTY = defineError({
|
|
|
87
87
|
title: "Project source is empty",
|
|
88
88
|
suggestion: "Add project files or run 'veryfront init'",
|
|
89
89
|
});
|
|
90
|
+
/** A scope that owns the process working directory was opened inside another one. */
|
|
91
|
+
export const NESTED_CWD_SCOPE = defineError({
|
|
92
|
+
slug: "nested-cwd-scope",
|
|
93
|
+
category: "GENERAL",
|
|
94
|
+
status: 500,
|
|
95
|
+
title: "Working directory scope nested inside another",
|
|
96
|
+
suggestion: "Do the inner work directly in the outer scope's callback instead of opening a second one",
|
|
97
|
+
});
|
|
90
98
|
// =============================================================================
|
|
91
99
|
// Registry exports
|
|
92
100
|
// =============================================================================
|
|
@@ -107,4 +115,5 @@ export const GENERAL_REGISTRY = {
|
|
|
107
115
|
"security-violation": SECURITY_VIOLATION,
|
|
108
116
|
"input-validation-failed": INPUT_VALIDATION_FAILED,
|
|
109
117
|
"project-source-empty": PROJECT_SOURCE_EMPTY,
|
|
118
|
+
"nested-cwd-scope": NESTED_CWD_SCOPE,
|
|
110
119
|
};
|
|
@@ -130,6 +130,7 @@ export declare const ERROR_REGISTRY: Readonly<{
|
|
|
130
130
|
readonly "security-violation": import("./types.js").RegisteredError;
|
|
131
131
|
readonly "input-validation-failed": import("./types.js").RegisteredError;
|
|
132
132
|
readonly "project-source-empty": import("./types.js").RegisteredError;
|
|
133
|
+
readonly "nested-cwd-scope": import("./types.js").RegisteredError;
|
|
133
134
|
}>;
|
|
134
135
|
export type ErrorSlug = keyof typeof ERROR_REGISTRY;
|
|
135
136
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-registry.d.ts","sourceRoot":"","sources":["../../../src/src/errors/error-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE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AAE,CAEzC"}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
import "../../_dnt.polyfills.js";
|
|
20
20
|
export { defineError, VeryfrontError } from "./types.js";
|
|
21
21
|
export type { ErrorCategory, ErrorCreateOptions, ErrorDefinition, RegisteredError, RFC9457Response, VeryfrontErrorOptions, } from "./types.js";
|
|
22
|
-
export { AGENT_ERROR, AGENT_INTENT_ERROR, AGENT_NOT_FOUND, AGENT_TIMEOUT, API_CLIENT_ERROR, API_ERROR, API_ROUTE_ERROR, ASSET_OPTIMIZATION_ERROR, AUTHENTICATION_REQUIRED, BRANCH_NOT_FOUND, BUILD_FAILED, BUNDLE_ERROR, CACHE_ERROR, CACHE_INVARIANT_VIOLATION, CACHE_PATH_MISMATCH, CIRCUIT_BREAKER_OPEN, CIRCULAR_DEPENDENCY, CLIENT_BOUNDARY_VIOLATION, CLIENT_ONLY_IN_SERVER, COMPILATION_ERROR, COMPONENT_ERROR, CONFIG_INVALID, CONFIG_NOT_FOUND, CONFIG_PARSE_ERROR, CONFIG_TYPE_ERROR, CONFIG_VALIDATION_ERROR, CONFIG_VALIDATION_FAILED, CORS_CONFIG_INVALID, COST_LIMIT_EXCEEDED, DEPENDENCY_MISSING, DEPLOYMENT_ERROR, DEPLOYMENT_VERIFICATION_TIMEOUT, DEV_SERVER_ERROR, DURABLE_RUN_EVENT_PERSISTENCE_FAILED, DYNAMIC_ROUTE_ERROR, ENV_VAR_MISSING, ENVIRONMENT_NOT_FOUND, ERROR_OVERLAY_ERROR, ERROR_REGISTRY, type ErrorSlug, FALLBACK_EXHAUSTED, FAST_REFRESH_ERROR, FILE_NOT_FOUND, FILE_WATCH_ERROR, getAllSlugs, getErrorBySlug, getErrorsByCategory, HMR_ERROR, HYDRATION_MISMATCH, IMPORT_MAP_INVALID, IMPORT_RESOLUTION_ERROR, INITIALIZATION_ERROR, INPUT_VALIDATION_FAILED, INVALID_ARGUMENT, INVALID_IMPORT, INVALID_ROUTE_FILE, INVALID_USE_CLIENT, INVALID_USE_SERVER, LAYOUT_NOT_FOUND, LOCKFILE_FORMAT_MISMATCH, LOCKFILE_READ_ERROR, MDX_COMPILE_ERROR, MIDDLEWARE_ERROR, MODULE_NOT_FOUND, NETWORK_ERROR, NOT_SUPPORTED, ORCHESTRATION_ERROR, PAGE_NOT_FOUND, PERMISSION_DENIED, PLATFORM_ERROR, PORT_IN_USE, PREVIEW_HOSTNAME_TOO_LONG, PRODUCTION_BUILD_REQUIRED, PROJECT_EXECUTION_UNAVAILABLE, PROJECT_SOURCE_EMPTY, PUSH_RECEIPT_MISSING, RAG_STORE_CORRUPT, RAG_STORE_UNAVAILABLE, RELEASE_BUILD_TIMEOUT, RELEASE_MISSING_VERSION, RELEASE_NOT_FOUND, RENDER_ERROR, REQUEST_ERROR, RESOURCE_NOT_FOUND, ROUTE_CONFLICT, ROUTE_HANDLER_INVALID, ROUTE_PARAMS_ERROR, RSC_PAYLOAD_ERROR, SCHEDULE_CONFIG_INVALID, SECURITY_VIOLATION, SEMAPHORE_TIMEOUT, SERVER_ONLY_IN_CLIENT, SERVER_START_ERROR, SERVICE_OVERLOADED, SOURCE_DIGEST_MISMATCH, SOURCE_MAP_ERROR, SOURCEMAP_ERROR, SSG_GENERATION_ERROR, SSR_OUTPUT_LIMIT_EXCEEDED, TIMEOUT_ERROR, TOKEN_STORAGE_ERROR, TOOL_ID_CONFLICT, TRIGGER_CONFIG_INVALID, TRIGGER_EXECUTION_FAILED, TRIGGER_NOT_SUPPORTED, TRIGGER_TARGET_NOT_FOUND, TYPESCRIPT_ERROR, UNKNOWN_ERROR, VERSION_MISMATCH, WEBHOOK_CONFIG_INVALID, } from "./error-registry.js";
|
|
22
|
+
export { AGENT_ERROR, AGENT_INTENT_ERROR, AGENT_NOT_FOUND, AGENT_TIMEOUT, API_CLIENT_ERROR, API_ERROR, API_ROUTE_ERROR, ASSET_OPTIMIZATION_ERROR, AUTHENTICATION_REQUIRED, BRANCH_NOT_FOUND, BUILD_FAILED, BUNDLE_ERROR, CACHE_ERROR, CACHE_INVARIANT_VIOLATION, CACHE_PATH_MISMATCH, CIRCUIT_BREAKER_OPEN, CIRCULAR_DEPENDENCY, CLIENT_BOUNDARY_VIOLATION, CLIENT_ONLY_IN_SERVER, COMPILATION_ERROR, COMPONENT_ERROR, CONFIG_INVALID, CONFIG_NOT_FOUND, CONFIG_PARSE_ERROR, CONFIG_TYPE_ERROR, CONFIG_VALIDATION_ERROR, CONFIG_VALIDATION_FAILED, CORS_CONFIG_INVALID, COST_LIMIT_EXCEEDED, DEPENDENCY_MISSING, DEPLOYMENT_ERROR, DEPLOYMENT_VERIFICATION_TIMEOUT, DEV_SERVER_ERROR, DURABLE_RUN_EVENT_PERSISTENCE_FAILED, DYNAMIC_ROUTE_ERROR, ENV_VAR_MISSING, ENVIRONMENT_NOT_FOUND, ERROR_OVERLAY_ERROR, ERROR_REGISTRY, type ErrorSlug, FALLBACK_EXHAUSTED, FAST_REFRESH_ERROR, FILE_NOT_FOUND, FILE_WATCH_ERROR, getAllSlugs, getErrorBySlug, getErrorsByCategory, HMR_ERROR, HYDRATION_MISMATCH, IMPORT_MAP_INVALID, IMPORT_RESOLUTION_ERROR, INITIALIZATION_ERROR, INPUT_VALIDATION_FAILED, INVALID_ARGUMENT, INVALID_IMPORT, INVALID_ROUTE_FILE, INVALID_USE_CLIENT, INVALID_USE_SERVER, LAYOUT_NOT_FOUND, LOCKFILE_FORMAT_MISMATCH, LOCKFILE_READ_ERROR, MDX_COMPILE_ERROR, MIDDLEWARE_ERROR, MODULE_NOT_FOUND, NESTED_CWD_SCOPE, NETWORK_ERROR, NOT_SUPPORTED, ORCHESTRATION_ERROR, PAGE_NOT_FOUND, PERMISSION_DENIED, PLATFORM_ERROR, PORT_IN_USE, PREVIEW_HOSTNAME_TOO_LONG, PRODUCTION_BUILD_REQUIRED, PROJECT_EXECUTION_UNAVAILABLE, PROJECT_SOURCE_EMPTY, PUSH_RECEIPT_MISSING, RAG_STORE_CORRUPT, RAG_STORE_UNAVAILABLE, RELEASE_BUILD_TIMEOUT, RELEASE_MISSING_VERSION, RELEASE_NOT_FOUND, RENDER_ERROR, REQUEST_ERROR, RESOURCE_NOT_FOUND, ROUTE_CONFLICT, ROUTE_HANDLER_INVALID, ROUTE_PARAMS_ERROR, RSC_PAYLOAD_ERROR, SCHEDULE_CONFIG_INVALID, SECURITY_VIOLATION, SEMAPHORE_TIMEOUT, SERVER_ONLY_IN_CLIENT, SERVER_START_ERROR, SERVICE_OVERLOADED, SOURCE_DIGEST_MISMATCH, SOURCE_MAP_ERROR, SOURCEMAP_ERROR, SSG_GENERATION_ERROR, SSR_OUTPUT_LIMIT_EXCEEDED, TIMEOUT_ERROR, TOKEN_STORAGE_ERROR, TOOL_ID_CONFLICT, TRIGGER_CONFIG_INVALID, TRIGGER_EXECUTION_FAILED, TRIGGER_NOT_SUPPORTED, TRIGGER_TARGET_NOT_FOUND, TYPESCRIPT_ERROR, UNKNOWN_ERROR, VERSION_MISMATCH, WEBHOOK_CONFIG_INVALID, } from "./error-registry.js";
|
|
23
23
|
export { createErrorHandler, createErrorResponse, createErrorResponseFromDefinition, createProblemResponse, errorToResponse, formatErrorLog, isVeryfrontError, PROBLEM_JSON_CONTENT_TYPE, } from "./http-error.js";
|
|
24
24
|
export { cliErrorBoundary, cliErrorBoundarySync, errorToRFC9457Response, formatCLIError, httpErrorBoundary, wrapHandlerWithErrorBoundary, wrapUnknownError, wrapWithContext, } from "./middleware/index.js";
|
|
25
25
|
export { logError, logErrorWithMessage } from "./logging.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/errors/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,yBAAyB,CAAC;AAGjC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACzD,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,e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,EACjB,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,EACZ,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE3F,OAAO,EACL,eAAe,EACf,eAAe,EACf,aAAa,EACb,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAElC,YAAY,EAAE,aAAa,IAAI,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE3F,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1F,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/errors/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,yBAAyB,CAAC;AAGjC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACzD,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,eAAe,EACf,qBAAqB,GACtB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAEL,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EAEvB,gBAAgB,EAEhB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EAEnB,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,cAAc,EAEd,gBAAgB,EAChB,kBAAkB,EAClB,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,0BAA0B,CAAC;AAE3F,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1F,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC"}
|
package/esm/src/errors/index.js
CHANGED
|
@@ -37,7 +37,7 @@ HMR_ERROR,
|
|
|
37
37
|
// RUNTIME
|
|
38
38
|
HYDRATION_MISMATCH, IMPORT_MAP_INVALID, IMPORT_RESOLUTION_ERROR, INITIALIZATION_ERROR, INPUT_VALIDATION_FAILED, INVALID_ARGUMENT, INVALID_IMPORT, INVALID_ROUTE_FILE, INVALID_USE_CLIENT, INVALID_USE_SERVER, LAYOUT_NOT_FOUND, LOCKFILE_FORMAT_MISMATCH, LOCKFILE_READ_ERROR, MDX_COMPILE_ERROR, MIDDLEWARE_ERROR,
|
|
39
39
|
// MODULE
|
|
40
|
-
MODULE_NOT_FOUND, NETWORK_ERROR, NOT_SUPPORTED, ORCHESTRATION_ERROR, PAGE_NOT_FOUND, PERMISSION_DENIED, PLATFORM_ERROR,
|
|
40
|
+
MODULE_NOT_FOUND, NESTED_CWD_SCOPE, NETWORK_ERROR, NOT_SUPPORTED, ORCHESTRATION_ERROR, PAGE_NOT_FOUND, PERMISSION_DENIED, PLATFORM_ERROR,
|
|
41
41
|
// SERVER
|
|
42
42
|
PORT_IN_USE, PREVIEW_HOSTNAME_TOO_LONG, PRODUCTION_BUILD_REQUIRED, PROJECT_EXECUTION_UNAVAILABLE, PROJECT_SOURCE_EMPTY, PUSH_RECEIPT_MISSING, RAG_STORE_CORRUPT, RAG_STORE_UNAVAILABLE, RELEASE_BUILD_TIMEOUT, RELEASE_MISSING_VERSION, RELEASE_NOT_FOUND, RENDER_ERROR, REQUEST_ERROR, RESOURCE_NOT_FOUND,
|
|
43
43
|
// ROUTE
|