@sentry/junior 0.222.0 → 0.224.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-hooks-DkriF84n.js → agent-hooks-DNLBwmsh.js} +60 -16
- package/dist/{agent-7kKtDe-6.js → agent-runner-9g6TQk9y.js} +879 -69
- package/dist/api/schema.d.ts +160 -11
- package/dist/api/schema.js +2 -2
- package/dist/api.js +16 -16
- package/dist/{app-C0zbsnr7.d.ts → app-BbSD6EtD.d.ts} +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.js +1598 -69
- package/dist/{briefs-CNH1ztn5.js → briefs-CjXnGKzZ.js} +6 -6
- package/dist/{catalog-runtime-XH_LFA_7.js → catalog-runtime-CVZ9TEuK.js} +1 -1
- package/dist/{checkpoint-CRod8es5.js → checkpoint-Ceck_fLO.js} +12 -9
- package/dist/cli/chat.js +14 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +1 -1
- package/dist/cli/plugins.js +3 -3
- package/dist/cli/snapshot-create.js +3 -3
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-CcSboWx_.js → client-B27ufhzl.js} +56 -6
- package/dist/{config-CGYv-YPE.js → config-BAhl7-RC.js} +6 -7
- package/dist/{conversation-BBDt88di.js → conversation-1HUoZr2l.js} +33 -5
- package/dist/{conversation-privacy-BGjdDVWD.js → conversation-privacy-C-4JQzKD.js} +1 -1
- package/dist/credential-sync-BXHIxbtS.js +940 -0
- package/dist/{execution-stats-D97ePWuM.js → execution-stats-DikPOxJ1.js} +3 -3
- package/dist/{executor-BLBZ-UB8.js → executor-BG2Armby.js} +1 -1
- package/dist/{history-CaV8Ww7M.d.ts → history-yaSjGMD_.d.ts} +18 -0
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-_8gxwDzt.js → job-queue-D4oAVrL9.js} +1 -1
- package/dist/{logging-qmsMdU0y.js → logging-iY0ssa2q.js} +1 -1
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{pending-auth-_1Ry-_Bw.js → oauth-authorization-BIijVS2N.js} +6 -48
- package/dist/{oauth-callback-server-Mjfm46A5.js → oauth-callback-server-DPkK3kzi.js} +4 -4
- package/dist/{profile-DbG8AlNd.js → profile-6KWhg_-U.js} +5 -9
- package/dist/{prompt-B8rCQI7K.js → prompt-90miy8VV.js} +1 -1
- package/dist/{registry-DGyQCsiy.js → registry-Ctgdjt-W.js} +1 -1
- package/dist/{resolve-D5SqDbCA.js → resolve-CB45ZukQ.js} +2 -2
- package/dist/{runner-BRAFjJhe.js → runner-BwKCqoF3.js} +9 -10
- package/dist/{sandbox-egress-signals-CdI1aVHT.js → sandbox-egress-signals-Cmy8ODat.js} +1 -1
- package/dist/{schema-CTOODa3L.js → schema-RpbW5Od2.js} +1 -1
- package/dist/{short-title-CB2fxEyx.js → short-title-xEkZwkcV.js} +2 -2
- package/dist/{skills-BoS3b8cg.js → skills-c2bMDVRS.js} +2 -2
- package/dist/{spawn-BXCU1udr.js → spawn-Cg6lyjE7.js} +2 -2
- package/dist/{stats-qUXQZq-w.js → stats-DP9zl3Jg.js} +19 -17
- package/dist/{task-queue-Di_q8922.js → task-queue-SL4uLfBB.js} +3 -3
- package/dist/{task-runner-4rCppQMo.js → task-runner-fntmnqzx.js} +9 -84
- package/dist/{thread-state-2Paza8DV.js → thread-state-Wfr0GdKS.js} +5 -5
- package/dist/{auth-pause-state-3OT67TA8.js → turn-failure-response-DLjSEm-R.js} +74 -84
- package/dist/{turn-lifecycle-f-y0Irpi.js → turn-lifecycle-5_jvLqRz.js} +1 -1
- package/dist/turn-session-routing-CQaysLoe.js +77 -0
- package/dist/{validation-Be9lSORU.js → validation-CnZkCN7o.js} +1 -1
- package/dist/{version-BydrOZMQ.js → version-C6lA-h_o.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{web-authorization-BdfOkTuG.js → web-authorization-Bbx999_q.js} +1 -1
- package/dist/{web-input-DegYUyKU.js → web-input-BoE1xE-K.js} +7 -7
- package/dist/{work-Citqpnfc.js → work-4Nhz9mVv.js} +52 -10
- package/dist/{worker-Bn_HFyvM.js → worker-CdWPsNL2.js} +5 -5
- package/package.json +4 -4
- package/dist/agent-runner-D0ImXS7U.js +0 -679
- package/dist/credential-sync-BfzGNruT.js +0 -2757
- package/dist/experimental-CIXf7Uye.js +0 -46
- package/dist/turn-execution--F7a9kEU.js +0 -47
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
//#region src/chat/experimental.ts
|
|
3
|
-
var experimental_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
-
EXPERIMENTAL_FEATURES: () => EXPERIMENTAL_FEATURES,
|
|
5
|
-
getExperimentalFeatures: () => getExperimentalFeatures,
|
|
6
|
-
isExperimentalFeatureEnabled: () => isExperimentalFeatureEnabled,
|
|
7
|
-
setExperimentalFeatures: () => setExperimentalFeatures
|
|
8
|
-
});
|
|
9
|
-
/**
|
|
10
|
-
* Known unstable product features that must be opted into explicitly.
|
|
11
|
-
* Add new keys here as features graduate from private experiments; remove them
|
|
12
|
-
* once they become stable defaults.
|
|
13
|
-
*/
|
|
14
|
-
const EXPERIMENTAL_FEATURES = ["passive-routing", "subagents"];
|
|
15
|
-
const EXPERIMENTAL_FEATURE_SET = new Set(EXPERIMENTAL_FEATURES);
|
|
16
|
-
let configuredExperimental = {};
|
|
17
|
-
function isExperimentalFeature(value) {
|
|
18
|
-
return EXPERIMENTAL_FEATURE_SET.has(value);
|
|
19
|
-
}
|
|
20
|
-
/** Replace app-level experimental opt-ins and return the previous setting. */
|
|
21
|
-
function setExperimentalFeatures(config) {
|
|
22
|
-
const previous = { ...configuredExperimental };
|
|
23
|
-
if (config === void 0) {
|
|
24
|
-
configuredExperimental = {};
|
|
25
|
-
return previous;
|
|
26
|
-
}
|
|
27
|
-
const next = {};
|
|
28
|
-
for (const [rawName, enabled] of Object.entries(config)) {
|
|
29
|
-
if (enabled === void 0) continue;
|
|
30
|
-
if (typeof enabled !== "boolean") throw new Error(`experimental.${rawName} must be a boolean when provided`);
|
|
31
|
-
if (!isExperimentalFeature(rawName)) throw new Error(`experimental.${rawName} is not a known experimental feature. Known features: ${EXPERIMENTAL_FEATURES.join(", ")}`);
|
|
32
|
-
next[rawName] = enabled;
|
|
33
|
-
}
|
|
34
|
-
configuredExperimental = next;
|
|
35
|
-
return previous;
|
|
36
|
-
}
|
|
37
|
-
/** Return a copy of the app-level experimental opt-ins configured by createApp(). */
|
|
38
|
-
function getExperimentalFeatures() {
|
|
39
|
-
return { ...configuredExperimental };
|
|
40
|
-
}
|
|
41
|
-
/** Return whether one experimental feature is enabled via createApp({ experimental }). */
|
|
42
|
-
function isExperimentalFeatureEnabled(feature) {
|
|
43
|
-
return configuredExperimental[feature] === true;
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
export { setExperimentalFeatures as i, getExperimentalFeatures as n, isExperimentalFeatureEnabled as r, experimental_exports as t };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Ht as getConversationEventStore } from "./agent-hooks-DkriF84n.js";
|
|
2
|
-
import { n as runAgentWithTimeout } from "./agent-runner-D0ImXS7U.js";
|
|
3
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-f-y0Irpi.js";
|
|
4
|
-
//#region src/chat/runtime/turn-execution.ts
|
|
5
|
-
/** An error thrown while the agent advances a Run. */
|
|
6
|
-
var AgentRunError = class extends Error {
|
|
7
|
-
constructor(cause) {
|
|
8
|
-
super(cause instanceof Error ? cause.message : "Agent Run failed", { cause });
|
|
9
|
-
this.name = "AgentRunError";
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Run the agent and finish the Turn after the caller saves its result.
|
|
14
|
-
*
|
|
15
|
-
* A paused Run, or a Run waiting for authorization, leaves the Turn open. A
|
|
16
|
-
* save error also leaves the Turn open so the worker can retry or recover it.
|
|
17
|
-
* A timeout aborts the Run before this function reports the failure.
|
|
18
|
-
*/
|
|
19
|
-
async function executeTurn(agentRunner, run, saveResult, timeoutMs) {
|
|
20
|
-
let outcome;
|
|
21
|
-
try {
|
|
22
|
-
outcome = await runAgentWithTimeout(agentRunner, run, timeoutMs);
|
|
23
|
-
} catch (error) {
|
|
24
|
-
throw new AgentRunError(error);
|
|
25
|
-
}
|
|
26
|
-
if (outcome.status !== "completed") return outcome;
|
|
27
|
-
const saved = await saveResult(outcome.result);
|
|
28
|
-
const lifecycle = new ConversationTurnLifecycleService(getConversationEventStore());
|
|
29
|
-
const common = {
|
|
30
|
-
conversationId: run.conversationId,
|
|
31
|
-
createdAtMs: saved.finishedAtMs ?? Date.now(),
|
|
32
|
-
turnId: run.turnId
|
|
33
|
-
};
|
|
34
|
-
if (saved.outcome === "failed") await lifecycle.fail({
|
|
35
|
-
...common,
|
|
36
|
-
...saved.eventId ? { eventId: saved.eventId } : void 0,
|
|
37
|
-
failureCode: saved.failureCode,
|
|
38
|
-
...saved.failureReason ? { failureReason: saved.failureReason } : void 0
|
|
39
|
-
});
|
|
40
|
-
else await lifecycle.complete({
|
|
41
|
-
...common,
|
|
42
|
-
outcome: saved.outcome
|
|
43
|
-
});
|
|
44
|
-
return { status: "completed" };
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
|
-
export { executeTurn as n, AgentRunError as t };
|