@sentry/junior 0.305.0 → 0.306.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-context-BpvbUki8.js → adapter-context-CnY-i32r.js} +2 -2
- package/dist/{admin-CoDt35ny.js → admin-BLLdLnXh.js} +2 -2
- package/dist/{agent-runner-C5d6rY5g.js → agent-runner-BaLjEjPR.js} +261 -190
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -8
- package/dist/api.d.ts +19 -4
- package/dist/api.js +137 -40
- package/dist/{app-Cs157Zc5.d.ts → app-DvYbM9UD.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +487 -434
- package/dist/{background-compaction-queue-BTqMIfTA.js → background-compaction-queue-D2wzxtGU.js} +2 -2
- package/dist/{briefs-BRdznF7c.js → briefs-DvyzXfrF.js} +3 -3
- package/dist/{catalog-runtime-J52Tej47.js → catalog-runtime-B1R-nHd3.js} +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +5 -5
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-CBZp0udd.js → config-DUD-zMvp.js} +111 -13
- package/dist/{connections-BYmuJ6Vm.js → connections-CDhsqPcC.js} +6 -6
- package/dist/{continue-in-slack-Cvot6S38.js → continue-in-slack-BXQizz9o.js} +5 -5
- package/dist/{conversation-BOqdRtUx.js → conversation--f85g4zL.js} +132 -132
- package/dist/{conversation-feed-CgpgP7yi.js → conversation-feed-BNs9KiqC.js} +1 -1
- package/dist/{conversation-privacy-D2pOzBNl.js → conversation-privacy-YE54gMN8.js} +1 -1
- package/dist/{conversation-turn-CI8WDpnK.js → conversation-turn-BzdmrHb0.js} +22 -40
- package/dist/{credential-sync-COqnZ1Dx.js → credential-sync-Cdm-e1vJ.js} +14 -13
- package/dist/{db-DU84dCVu.js → db-DV2ZUb1Y.js} +90 -11
- package/dist/{db-zbN5ZV_o.d.ts → db-pH357Dkt.d.ts} +1 -1
- package/dist/{executor-CFyrgOu1.js → executor-CjNhwwnj.js} +47 -4
- package/dist/{history-m2-ceTTX.js → history-N7IVbUom.js} +5 -1
- package/dist/{install-CQ76CfRw.js → install-DbD7C5td.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-DLd2UxVP.js → lineage-BFdIPb3o.js} +2 -2
- package/dist/{logging-BPNTQVFu.js → logging-oYpJYr-S.js} +1 -1
- package/dist/{message-BWJLeQ5e.js → message-BBPcMKJY.js} +8 -8
- package/dist/{model-input-DoM9Ht-d.js → model-input-DYYF3a8B.js} +3 -3
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +4 -4
- package/dist/{oauth-callback-server-DeHbnAQl.js → oauth-callback-server-C7Q987su.js} +2 -2
- package/dist/{projection-CcFBVFUo.js → projection-CWXDE0f6.js} +7738 -6166
- package/dist/{prompt-C5LREK2p.js → prompt-P3eRqO8C.js} +15 -7
- package/dist/{queue-B2AAL3ym.js → queue-7FSijgqG.js} +4 -4
- package/dist/{registry-BjZZqKqi.js → registry-1pzXmplY.js} +1 -1
- package/dist/{resolve-CeJgXuH1.js → resolve-n87oXY-d.js} +3 -3
- package/dist/{result-icDrueyB.js → result-BmF9v9bv.js} +9 -9
- package/dist/{runner-nVfMkMMB.js → runner-4j7ZsxP5.js} +13 -15
- package/dist/{sandbox-egress-signals-H9vQ5qRf.js → sandbox-egress-signals-BRQI8HvT.js} +1 -1
- package/dist/{automation-CuA3yEcD.js → schedule-CHPWQn-x.js} +347 -5
- package/dist/{schema-CKcu-IK6.d.ts → schema-CVbIjrF3.d.ts} +71 -1
- package/dist/{schema-Bx0Mlo32.js → schema-D7iIEh6t.js} +52 -6
- package/dist/{service-account-Dw06p3zm.js → service-account-BDQ9xzta.js} +3 -3
- package/dist/{service-account-DU5865XA.js → service-account-DzQiOmqa.js} +5 -5
- package/dist/{session-stop-uotLtp4g.js → session-stop-BQxgHR4X.js} +854 -160
- package/dist/{skills-Bex1EaO5.js → skills-CPf4vNuC.js} +2 -2
- package/dist/{slack-conversation-unfurl-EPG3riWF.js → slack-conversation-unfurl-B1KEptUg.js} +10 -9
- package/dist/{spawn-CoD3vDuS.js → spawn-CjGddiAU.js} +6 -6
- package/dist/{state-nCR4Muhn.js → state-9wfj6aSD.js} +4 -4
- package/dist/{stop-BFVd0P0m.js → stop-CsQGuN5n.js} +62 -117
- package/dist/{store-Ca6G962n.js → store-Dz3YZ7gQ.js} +5 -5
- package/dist/{task-queue-BLPZU6kC.js → task-queue-CFlrJguF.js} +3 -3
- package/dist/{task-runner-xsOPIxCZ.js → task-runner-frzlUvFD.js} +8 -9
- package/dist/{thread-context-BOvZhsKK.js → thread-context-C4QuZlM8.js} +8 -91
- package/dist/turn-session-routing-BXaubz2w.js +244 -0
- package/dist/{turn-user-message-BrhuyYrH.js → turn-user-message-DNC0eRZ7.js} +3 -3
- package/dist/users-XCCKn3xW.js +181 -0
- package/dist/{validation-BnY9K5WB.js → validation-L5fdjmFX.js} +1 -1
- package/dist/{version-qROlRQGF.js → version-BFmuwgxP.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-CxUiOraX.js → viewer-DKOeHpv3.js} +3 -3
- package/dist/{warmup--Gkz7iB-.js → warmup-mTMIatCV.js} +267 -272
- package/dist/{web-message-id-lNodcCOI.js → web-message-id-CUaSiGme.js} +16 -1
- package/dist/{worker-DJ8d9fmD.js → worker-Bz4KNxjI.js} +7 -7
- package/migrations/0114_plan_items.sql +22 -0
- package/migrations/meta/0114_snapshot.json +5203 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +6 -6
- package/dist/schedule-cP0AACm1.js +0 -344
- package/dist/turn-session-routing-2bW2qfeb.js +0 -1792
|
@@ -146,6 +146,21 @@ const AGENT_MESSAGE_EVENT_TYPE = "agent.message";
|
|
|
146
146
|
* invocation names.
|
|
147
147
|
*/
|
|
148
148
|
const AGENT_PARENT_MESSAGE_EVENT_TYPE = "agent.parent_message";
|
|
149
|
+
// src/chat/plan/types.ts
|
|
150
|
+
/** Statuses of a Plan item. `done` and `cancelled` close it. */
|
|
151
|
+
const PLAN_ITEM_STATUSES = [
|
|
152
|
+
"pending",
|
|
153
|
+
"in_progress",
|
|
154
|
+
"blocked",
|
|
155
|
+
"done",
|
|
156
|
+
"cancelled"
|
|
157
|
+
];
|
|
158
|
+
/** Whether an item with this status is still work to do. */
|
|
159
|
+
function isOpenPlanItemStatus(status) {
|
|
160
|
+
return status !== "done" && status !== "cancelled";
|
|
161
|
+
}
|
|
162
|
+
/** Assignee text for the plan's own agent, in tool results and blocks. */
|
|
163
|
+
const SELF_PLAN_ASSIGNEE = "self";
|
|
149
164
|
// src/api/schema/user-customization.ts
|
|
150
165
|
/** Longest customization text one user can save. */
|
|
151
166
|
const USER_CUSTOMIZATION_MAX_CHARS = 1e3;
|
|
@@ -400,4 +415,4 @@ async function webMessageId(args) {
|
|
|
400
415
|
const digest = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(`${args.conversationId}\u0000${args.idempotencyKey}`));
|
|
401
416
|
return `api-msg:${Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, "0")).join("").slice(0, 24)}`;
|
|
402
417
|
}
|
|
403
|
-
export {
|
|
418
|
+
export { HOUR_MS as A, utcHourKey as B, AGENT_MESSAGE_EVENT_TYPE as C, isAgentInvocationResultEventType as D, agentInvocationResultEventType as E, sumUtcHoursIntoSixHours as F, trailingUtcDayWindow as I, trailingUtcHourWindow as L, fillUtcHours as M, fillUtcSixHours as N, apiErrorSchema as O, startOfUtcHour as P, trailingUtcSixHourWindow as R, AGENT_INVOCATION_EVENT_NAMESPACE as S, AGENT_REPLY_EVENT_TYPE as T, userCustomizationSchema as _, USER_INPUT_LIMITS as a, SELF_PLAN_ASSIGNEE as b, formatUserInputAnswer as c, userInputRequestSchema as d, INLINE_VIDEO_TYPES as f, USER_CUSTOMIZATION_MAX_CHARS as g, isVisionImageMediaType as h, AGENT_INVOCATION_STATUSES as i, fillUtcDays as j, DAY_MS as k, isEmptyUserInputAnswer as l, detectImageMediaType as m, AGENT_INVOCATION_MAILBOX_STATUSES as n, USER_INPUT_NOTE as o, INPUT_IMAGE_TYPES as p, AGENT_INVOCATION_PARENT_MAILBOX_STATUSES as r, buttonUserInputField as s, webMessageId as t, normalizeUserInputAnswer as u, userCustomizationTextSchema as v, AGENT_PARENT_MESSAGE_EVENT_TYPE as w, isOpenPlanItemStatus as x, PLAN_ITEM_STATUSES as y, utcDayKey as z };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { T as withLogContext, b as setSpanAttributes, h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
5
|
-
import { t as getConversationStoppedAtMs } from "./session-stop-
|
|
6
|
-
import { _ as nudgeIdempotencyKey, m as ConversationQueueMessageRejectedError, p as getTurnRequestDeadline } from "./background-compaction-queue-
|
|
7
|
-
import { C as requestAnotherSlice, S as releaseConversationWork, T as startConversationWork, _ as getConversationWorkState, b as recordAttemptFailure, c as clearConsumedConversationWake, d as completeConversationWork, f as deadLetterAttempt, h as ensureConversationWake, i as beginConversationResume, o as checkInConversationWork, p as drainConversationMailbox, t as ackMessages, u as completeConversationStop, x as recordConversationRetry } from "./store-
|
|
8
|
-
import {
|
|
2
|
+
import { Mt as isInvalidConversationRecordError, jt as isFinalAttempt, kt as hasConversationStop, xt as countPendingConversationMessages } from "./projection-CWXDE0f6.js";
|
|
3
|
+
import { i as getChatConfig, ot as isProviderRetryError } from "./config-DUD-zMvp.js";
|
|
4
|
+
import { T as withLogContext, b as setSpanAttributes, h as logWarn, m as logInfo, p as logException } from "./logging-oYpJYr-S.js";
|
|
5
|
+
import { t as getConversationStoppedAtMs } from "./session-stop-BQxgHR4X.js";
|
|
6
|
+
import { _ as nudgeIdempotencyKey, m as ConversationQueueMessageRejectedError, p as getTurnRequestDeadline } from "./background-compaction-queue-D2wzxtGU.js";
|
|
7
|
+
import { C as requestAnotherSlice, S as releaseConversationWork, T as startConversationWork, _ as getConversationWorkState, b as recordAttemptFailure, c as clearConsumedConversationWake, d as completeConversationWork, f as deadLetterAttempt, h as ensureConversationWake, i as beginConversationResume, o as checkInConversationWork, p as drainConversationMailbox, t as ackMessages, u as completeConversationStop, x as recordConversationRetry } from "./store-Dz3YZ7gQ.js";
|
|
8
|
+
import { Fn as isAttemptInterrupt, In as selectAttemptMessages } from "./warmup-mTMIatCV.js";
|
|
9
9
|
// src/chat/task-execution/lost-lease.ts
|
|
10
10
|
/**
|
|
11
11
|
* Count a slice that lost its Conversation Lease as a failed attempt, then
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
CREATE SEQUENCE "public"."junior_plan_item_version_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 9223372036854775807 START WITH 1 CACHE 1;--> statement-breakpoint
|
|
2
|
+
CREATE TABLE "junior_plan_items" (
|
|
3
|
+
"conversation_id" text NOT NULL,
|
|
4
|
+
"id" bigint NOT NULL,
|
|
5
|
+
"title" text NOT NULL,
|
|
6
|
+
"notes" text,
|
|
7
|
+
"status" text NOT NULL,
|
|
8
|
+
"assignee_conversation_id" text,
|
|
9
|
+
"assignee_user_id" text,
|
|
10
|
+
"version" bigint NOT NULL,
|
|
11
|
+
"changed_by_user_id" text,
|
|
12
|
+
"created_at" timestamp with time zone NOT NULL,
|
|
13
|
+
"updated_at" timestamp with time zone NOT NULL,
|
|
14
|
+
CONSTRAINT "junior_plan_items_pk" PRIMARY KEY("conversation_id","id"),
|
|
15
|
+
CONSTRAINT "junior_plan_items_status_check" CHECK ("junior_plan_items"."status" in ('pending', 'in_progress', 'blocked', 'done', 'cancelled')),
|
|
16
|
+
CONSTRAINT "junior_plan_items_assignee_check" CHECK ("junior_plan_items"."assignee_conversation_id" is null or "junior_plan_items"."assignee_user_id" is null)
|
|
17
|
+
);
|
|
18
|
+
--> statement-breakpoint
|
|
19
|
+
ALTER TABLE "junior_plan_items" ADD CONSTRAINT "junior_plan_items_assignee_user_id_junior_users_id_fk" FOREIGN KEY ("assignee_user_id") REFERENCES "public"."junior_users"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
20
|
+
ALTER TABLE "junior_plan_items" ADD CONSTRAINT "junior_plan_items_changed_by_user_id_junior_users_id_fk" FOREIGN KEY ("changed_by_user_id") REFERENCES "public"."junior_users"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
21
|
+
ALTER TABLE "junior_plan_items" ADD CONSTRAINT "junior_plan_items_conversation_id_fk" FOREIGN KEY ("conversation_id") REFERENCES "public"."junior_conversations"("conversation_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
22
|
+
CREATE UNIQUE INDEX "junior_plan_items_in_progress_uidx" ON "junior_plan_items" USING btree ("conversation_id",coalesce("assignee_conversation_id", "assignee_user_id", "conversation_id")) WHERE "junior_plan_items"."status" = 'in_progress';
|