@sentry/junior 0.130.0 → 0.132.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-LJHLLMFC.js → agent-hooks-ONXOJDR6.js} +8 -8
- package/dist/api/conversations/list.d.ts +13 -2
- package/dist/api/schema/task.d.ts +0 -3
- package/dist/api/schema.js +1 -1
- package/dist/api.js +23 -22
- package/dist/app.js +30 -21
- package/dist/{catalog-runtime-45AHWLJL.js → catalog-runtime-BATAY4R7.js} +5 -5
- package/dist/chat/conversations/location.d.ts +10 -0
- package/dist/chat/conversations/sql/location.d.ts +9 -0
- package/dist/chat/conversations/store.d.ts +2 -0
- package/dist/chat/sandbox/runtime-dependencies.d.ts +2 -1
- package/dist/chat/scheduled-tasks/tool-support.d.ts +2 -5
- package/dist/chat/scheduled-tasks/tools/create.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/delete.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/list.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/run-now.d.ts +2 -2
- package/dist/chat/scheduled-tasks/tools/update.d.ts +3 -3
- package/dist/chat/scheduled-tasks/types.d.ts +1 -1
- package/dist/{chunk-Z72XGIFF.js → chunk-2425Q4OR.js} +1 -1
- package/dist/{chunk-EKZSU2RK.js → chunk-ALDPUN3Z.js} +4 -4
- package/dist/{chunk-HJHTRJKR.js → chunk-AW5Z3T7V.js} +31 -6
- package/dist/{chunk-ATCTPG7J.js → chunk-B7IY6SVJ.js} +1 -1
- package/dist/{chunk-LYEXN7FN.js → chunk-BKE47OOW.js} +2 -2
- package/dist/{chunk-UDYVHDLH.js → chunk-G3WYA2RS.js} +1 -1
- package/dist/{chunk-J6B27DOC.js → chunk-GOEZU33G.js} +1 -1
- package/dist/{chunk-5XDJRSU5.js → chunk-GPXVDJML.js} +4 -4
- package/dist/{chunk-2V7BQAJ6.js → chunk-GTKNPQNN.js} +12 -12
- package/dist/{chunk-DMS2RTEK.js → chunk-ISNRPCPG.js} +1 -1
- package/dist/{chunk-PVHL3274.js → chunk-JYQAE2ZU.js} +1 -1
- package/dist/{chunk-5I4SWLD7.js → chunk-NNHUGGO4.js} +2 -2
- package/dist/{chunk-4X2MZ4FP.js → chunk-O2UXPUVQ.js} +6 -6
- package/dist/{chunk-7OO3LMEP.js → chunk-ODIP5CEM.js} +1 -1
- package/dist/{chunk-BVKP37NE.js → chunk-QVEXYYFM.js} +1 -1
- package/dist/{chunk-H6GDE77O.js → chunk-SKWIIUS7.js} +9 -7
- package/dist/{chunk-XRROAXID.js → chunk-U76PS7AT.js} +2 -2
- package/dist/{chunk-RTJCNKQD.js → chunk-V44FFBO3.js} +1 -1
- package/dist/{chunk-A64VQ4N4.js → chunk-WEJIS7OC.js} +1 -1
- package/dist/{chunk-4AF3XOZI.js → chunk-WYQP7QSB.js} +206 -176
- package/dist/{chunk-GXO3EXBM.js → chunk-XN656LB4.js} +53 -18
- package/dist/{chunk-224V72RX.js → chunk-ZMV2YBT6.js} +21 -21
- package/dist/cli/chat.js +23 -23
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +11 -11
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +6 -6
- package/dist/{db-XE6DXA5Z.js → db-QFFZACXF.js} +6 -6
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-O42UXC7E.js → oauth-callback-server-5WXLD533.js} +16 -16
- package/dist/{runner-BSP3374N.js → runner-Y3LTUNAA.js} +10 -10
- package/dist/{skills-BNLHOZ75.js → skills-7M5C24GM.js} +6 -6
- package/dist/{validation-O7BF3JX6.js → validation-MRILMYDI.js} +6 -6
- package/dist/version.js +1 -1
- package/migrations/0017_drop_paused_scheduled_tasks.sql +19 -0
- package/migrations/meta/0017_snapshot.json +1666 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +4 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
canRouteResourceEvents,
|
|
3
3
|
getPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ALDPUN3Z.js";
|
|
5
5
|
import {
|
|
6
6
|
getDb
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WYQP7QSB.js";
|
|
8
8
|
import {
|
|
9
9
|
juniorEventTasks,
|
|
10
10
|
juniorSchedulerRuns,
|
|
@@ -409,7 +409,7 @@ import {
|
|
|
409
409
|
isNotNull,
|
|
410
410
|
lt,
|
|
411
411
|
lte as lte2,
|
|
412
|
-
|
|
412
|
+
notInArray,
|
|
413
413
|
or as or2,
|
|
414
414
|
sql as sql3
|
|
415
415
|
} from "drizzle-orm";
|
|
@@ -765,7 +765,9 @@ var taskRecordFields = {
|
|
|
765
765
|
originalRequest: z6.string().optional(),
|
|
766
766
|
runNowAtMs: z6.number().optional(),
|
|
767
767
|
schedule: taskScheduleSchema,
|
|
768
|
-
|
|
768
|
+
// TODO(v0.131.0): Remove paused decoding and SQL list filtering after
|
|
769
|
+
// v0.129.x workers can no longer overlap upgrades.
|
|
770
|
+
status: z6.enum(["active", "blocked", "deleted", "paused"]),
|
|
769
771
|
statusReason: z6.string().optional(),
|
|
770
772
|
task: taskSpecSchema,
|
|
771
773
|
updatedAtMs: z6.number(),
|
|
@@ -816,6 +818,15 @@ function buildRunId(taskId, scheduledForMs) {
|
|
|
816
818
|
return `${taskId}:${scheduledForMs}`;
|
|
817
819
|
}
|
|
818
820
|
var schedulerTaskIndexSchema = z6.array(z6.string().min(1));
|
|
821
|
+
function statusAfterTerminalOccurrence(args) {
|
|
822
|
+
if (args.blocked) {
|
|
823
|
+
return "blocked";
|
|
824
|
+
}
|
|
825
|
+
if (args.nextRunAtMs) {
|
|
826
|
+
return args.previousStatus ?? "active";
|
|
827
|
+
}
|
|
828
|
+
return "deleted";
|
|
829
|
+
}
|
|
819
830
|
function isStalePendingRun(run, nowMs) {
|
|
820
831
|
return run?.status === "pending" && run.claimedAtMs + PENDING_CLAIM_STALE_MS <= nowMs;
|
|
821
832
|
}
|
|
@@ -892,8 +903,22 @@ function parseStoredTask(value) {
|
|
|
892
903
|
return parsed.success ? stripLegacyTaskFields(parsed.data) : void 0;
|
|
893
904
|
}
|
|
894
905
|
function stripLegacyTaskFields(task) {
|
|
895
|
-
const { version: _version, ...current } = task;
|
|
896
|
-
|
|
906
|
+
const { version: _version, status, ...current } = task;
|
|
907
|
+
if (status === "paused") {
|
|
908
|
+
const {
|
|
909
|
+
nextRunAtMs: _nextRunAtMs,
|
|
910
|
+
runNowAtMs: _runNowAtMs,
|
|
911
|
+
...rest
|
|
912
|
+
} = current;
|
|
913
|
+
return {
|
|
914
|
+
...rest,
|
|
915
|
+
status: "deleted"
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
return {
|
|
919
|
+
...current,
|
|
920
|
+
status
|
|
921
|
+
};
|
|
897
922
|
}
|
|
898
923
|
function stripLegacyRunFields(run) {
|
|
899
924
|
const {
|
|
@@ -919,6 +944,9 @@ function parseJsonRecord(value) {
|
|
|
919
944
|
function present(value) {
|
|
920
945
|
return value !== void 0;
|
|
921
946
|
}
|
|
947
|
+
function listedScheduledTask(task) {
|
|
948
|
+
return task !== void 0 && task.status !== "deleted";
|
|
949
|
+
}
|
|
922
950
|
function requireStoredTask(task) {
|
|
923
951
|
const parsed = parseStoredTask(task);
|
|
924
952
|
if (!parsed) {
|
|
@@ -1004,11 +1032,11 @@ async function listTasksFromSql(db) {
|
|
|
1004
1032
|
const rows = await db.select({
|
|
1005
1033
|
creatorIdentityId: juniorSchedulerTasks.creatorIdentityId,
|
|
1006
1034
|
record: juniorSchedulerTasks.record
|
|
1007
|
-
}).from(juniorSchedulerTasks).where(
|
|
1035
|
+
}).from(juniorSchedulerTasks).where(notInArray(juniorSchedulerTasks.status, ["deleted", "paused"])).orderBy(
|
|
1008
1036
|
asc3(juniorSchedulerTasks.createdAtMs),
|
|
1009
1037
|
asc3(juniorSchedulerTasks.id)
|
|
1010
1038
|
);
|
|
1011
|
-
return rows.map(parseSqlTaskRow).filter(
|
|
1039
|
+
return rows.map(parseSqlTaskRow).filter(listedScheduledTask);
|
|
1012
1040
|
}
|
|
1013
1041
|
async function listTasksCreatedByFromSql(db, input) {
|
|
1014
1042
|
if (input.identityIds.length === 0) return [];
|
|
@@ -1036,7 +1064,7 @@ async function listTasksCreatedByFromSql(db, input) {
|
|
|
1036
1064
|
record: juniorSchedulerTasks.record
|
|
1037
1065
|
}).from(juniorSchedulerTasks).where(
|
|
1038
1066
|
and3(
|
|
1039
|
-
|
|
1067
|
+
notInArray(juniorSchedulerTasks.status, ["deleted", "paused"]),
|
|
1040
1068
|
inArray2(juniorSchedulerTasks.creatorIdentityId, input.identityIds),
|
|
1041
1069
|
cursor,
|
|
1042
1070
|
search
|
|
@@ -1045,7 +1073,7 @@ async function listTasksCreatedByFromSql(db, input) {
|
|
|
1045
1073
|
desc2(juniorSchedulerTasks.createdAtMs),
|
|
1046
1074
|
desc2(juniorSchedulerTasks.id)
|
|
1047
1075
|
).limit(input.limit);
|
|
1048
|
-
tasks.push(...rows.map(parseSqlTaskRow).filter(
|
|
1076
|
+
tasks.push(...rows.map(parseSqlTaskRow).filter(listedScheduledTask));
|
|
1049
1077
|
if (rows.length < input.limit) {
|
|
1050
1078
|
break;
|
|
1051
1079
|
}
|
|
@@ -1064,13 +1092,13 @@ async function listTasksForTeamFromSql(db, teamId) {
|
|
|
1064
1092
|
}).from(juniorSchedulerTasks).where(
|
|
1065
1093
|
and3(
|
|
1066
1094
|
eq2(juniorSchedulerTasks.teamId, teamId),
|
|
1067
|
-
|
|
1095
|
+
notInArray(juniorSchedulerTasks.status, ["deleted", "paused"])
|
|
1068
1096
|
)
|
|
1069
1097
|
).orderBy(
|
|
1070
1098
|
asc3(juniorSchedulerTasks.createdAtMs),
|
|
1071
1099
|
asc3(juniorSchedulerTasks.id)
|
|
1072
1100
|
);
|
|
1073
|
-
return rows.map(parseSqlTaskRow).filter(
|
|
1101
|
+
return rows.map(parseSqlTaskRow).filter(listedScheduledTask);
|
|
1074
1102
|
}
|
|
1075
1103
|
async function listPublicScheduledTasksForTeams(db, teamIds, limit) {
|
|
1076
1104
|
if (teamIds.length === 0) return [];
|
|
@@ -1087,14 +1115,14 @@ async function listPublicScheduledTasksForTeams(db, teamIds, limit) {
|
|
|
1087
1115
|
).where(
|
|
1088
1116
|
and3(
|
|
1089
1117
|
inArray2(juniorSchedulerTasks.teamId, teamIds),
|
|
1090
|
-
|
|
1118
|
+
notInArray(juniorSchedulerTasks.status, ["deleted", "paused"]),
|
|
1091
1119
|
eq2(juniorDestinations.visibility, "public")
|
|
1092
1120
|
)
|
|
1093
1121
|
).orderBy(
|
|
1094
1122
|
desc2(juniorSchedulerTasks.createdAtMs),
|
|
1095
1123
|
desc2(juniorSchedulerTasks.id)
|
|
1096
1124
|
).limit(limit);
|
|
1097
|
-
return rows.map(parseSqlTaskRow).filter(
|
|
1125
|
+
return rows.map(parseSqlTaskRow).filter(listedScheduledTask);
|
|
1098
1126
|
}
|
|
1099
1127
|
async function listIncompleteRunsForTasksFromSql(db, tasks) {
|
|
1100
1128
|
if (tasks.length === 0) {
|
|
@@ -1259,7 +1287,7 @@ var SqlSchedulerStore = class {
|
|
|
1259
1287
|
if (!duplicateOf) {
|
|
1260
1288
|
nextRunAtMs = isRunNow && current.nextRunAtMs !== args.scheduledForMs ? current.nextRunAtMs : current.schedule.kind === "recurring" ? getNextRunAtMs(current, args.scheduledForMs, args.nowMs) : void 0;
|
|
1261
1289
|
}
|
|
1262
|
-
const nextStatus = nextRunAtMs
|
|
1290
|
+
const nextStatus = statusAfterTerminalOccurrence({ nextRunAtMs });
|
|
1263
1291
|
await this.saveTaskRecord(
|
|
1264
1292
|
db,
|
|
1265
1293
|
{
|
|
@@ -1267,7 +1295,7 @@ var SqlSchedulerStore = class {
|
|
|
1267
1295
|
nextRunAtMs,
|
|
1268
1296
|
runNowAtMs: isRunNow ? void 0 : current.runNowAtMs,
|
|
1269
1297
|
status: nextStatus,
|
|
1270
|
-
statusReason: nextStatus === "
|
|
1298
|
+
statusReason: nextStatus === "deleted" ? errorMessage : void 0,
|
|
1271
1299
|
updatedAtMs: args.nowMs
|
|
1272
1300
|
},
|
|
1273
1301
|
current
|
|
@@ -1371,7 +1399,11 @@ var SqlSchedulerStore = class {
|
|
|
1371
1399
|
lastRunAtMs: args.run.scheduledForMs,
|
|
1372
1400
|
nextRunAtMs: nextRunAtMs2,
|
|
1373
1401
|
runNowAtMs: void 0,
|
|
1374
|
-
status:
|
|
1402
|
+
status: statusAfterTerminalOccurrence({
|
|
1403
|
+
blocked: args.status === "blocked",
|
|
1404
|
+
nextRunAtMs: nextRunAtMs2,
|
|
1405
|
+
previousStatus: current.status
|
|
1406
|
+
}),
|
|
1375
1407
|
statusReason: args.status === "blocked" ? args.errorMessage : void 0,
|
|
1376
1408
|
updatedAtMs: args.nowMs
|
|
1377
1409
|
},
|
|
@@ -1398,7 +1430,10 @@ var SqlSchedulerStore = class {
|
|
|
1398
1430
|
...current,
|
|
1399
1431
|
lastRunAtMs: args.run.scheduledForMs,
|
|
1400
1432
|
nextRunAtMs,
|
|
1401
|
-
status:
|
|
1433
|
+
status: statusAfterTerminalOccurrence({
|
|
1434
|
+
blocked: args.status === "blocked",
|
|
1435
|
+
nextRunAtMs
|
|
1436
|
+
}),
|
|
1402
1437
|
statusReason: args.status === "blocked" ? args.errorMessage : void 0,
|
|
1403
1438
|
updatedAtMs: args.nowMs
|
|
1404
1439
|
},
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
toMcpProviderError,
|
|
31
31
|
toolInvocationDestination,
|
|
32
32
|
uploadFilesToConversation
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-SKWIIUS7.js";
|
|
34
34
|
import {
|
|
35
35
|
CooperativeTurnYieldError,
|
|
36
36
|
JUNIOR_THREAD_STATE_TTL_MS,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
stripRuntimeTurnContext,
|
|
81
81
|
trimTrailingAssistantMessages,
|
|
82
82
|
updateConversationStats
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-GPXVDJML.js";
|
|
84
84
|
import {
|
|
85
85
|
parseSandboxEgressAuthRequiredSignal,
|
|
86
86
|
parseSandboxEgressPermissionDeniedSignal,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
runNonInteractiveCommand,
|
|
105
105
|
throwSandboxOperationError,
|
|
106
106
|
wrapSandboxSetupError
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-AW5Z3T7V.js";
|
|
108
108
|
import {
|
|
109
109
|
SCHEDULED_TASK_SYSTEM_ACTOR,
|
|
110
110
|
ToolInputError,
|
|
@@ -136,10 +136,10 @@ import {
|
|
|
136
136
|
resolveLocalScheduleAtMs,
|
|
137
137
|
saveEventTask,
|
|
138
138
|
writableEventTask
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-XN656LB4.js";
|
|
140
140
|
import {
|
|
141
141
|
parseSlackThreadId
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-G3WYA2RS.js";
|
|
143
143
|
import {
|
|
144
144
|
addAgentTurnUsage,
|
|
145
145
|
hasAgentTurnUsage
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
readActorIdentity,
|
|
163
163
|
resolveChannelCapabilities,
|
|
164
164
|
withSlackRetries
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-ALDPUN3Z.js";
|
|
166
166
|
import {
|
|
167
167
|
KNOWN_CONVERSATION_EVENT_TYPES,
|
|
168
168
|
contextProvenance,
|
|
@@ -173,7 +173,7 @@ import {
|
|
|
173
173
|
instructionActors,
|
|
174
174
|
instructionProvenanceFor,
|
|
175
175
|
sameActorIdentity
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-WYQP7QSB.js";
|
|
177
177
|
import {
|
|
178
178
|
SANDBOX_DATA_ROOT,
|
|
179
179
|
SANDBOX_SKILLS_ROOT,
|
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
sandboxSkillFile,
|
|
184
184
|
sandboxSkillPathResolution,
|
|
185
185
|
sleep
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-ODIP5CEM.js";
|
|
187
187
|
import {
|
|
188
188
|
ACTIVE_TURN_COMPACTION_SUMMARY_PREFIX,
|
|
189
189
|
COMPACTION_SUMMARY_PREFIX,
|
|
@@ -217,7 +217,7 @@ import {
|
|
|
217
217
|
renderCurrentInstruction,
|
|
218
218
|
resolveGatewayModel,
|
|
219
219
|
unwrapCurrentInstruction
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-NNHUGGO4.js";
|
|
221
221
|
import {
|
|
222
222
|
canExposeConversationPayload,
|
|
223
223
|
resolveConversationPrivacy,
|
|
@@ -227,16 +227,16 @@ import {
|
|
|
227
227
|
toGenAiMessagesTraceAttributes,
|
|
228
228
|
toGenAiPayloadMetadata,
|
|
229
229
|
toGenAiPayloadTraceAttributes
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-ISNRPCPG.js";
|
|
231
231
|
import {
|
|
232
232
|
discoverSkills,
|
|
233
233
|
findSkillByName,
|
|
234
234
|
loadSkillsByName,
|
|
235
235
|
parseSkillInvocation
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-BKE47OOW.js";
|
|
237
237
|
import {
|
|
238
238
|
pluginCatalogRuntime
|
|
239
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-B7IY6SVJ.js";
|
|
240
240
|
import {
|
|
241
241
|
CredentialUnavailableError,
|
|
242
242
|
OAuthProviderError,
|
|
@@ -244,7 +244,7 @@ import {
|
|
|
244
244
|
getOAuthProviderErrorAttributes,
|
|
245
245
|
resolveAuthTokenPlaceholder,
|
|
246
246
|
resolvePluginCommandEnv
|
|
247
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-V44FFBO3.js";
|
|
248
248
|
import {
|
|
249
249
|
credentialUserSubjectId
|
|
250
250
|
} from "./chunk-77VDLF3Z.js";
|
|
@@ -273,7 +273,7 @@ import {
|
|
|
273
273
|
summarizeMessageText,
|
|
274
274
|
withLogContext,
|
|
275
275
|
withSpan
|
|
276
|
-
} from "./chunk-
|
|
276
|
+
} from "./chunk-GOEZU33G.js";
|
|
277
277
|
import {
|
|
278
278
|
startInactiveSpan,
|
|
279
279
|
withActiveSpan
|
|
@@ -8727,7 +8727,7 @@ var MAX_LISTED_TASKS = 50;
|
|
|
8727
8727
|
var DEFAULT_SCHEDULE_TIMEZONE = "America/Los_Angeles";
|
|
8728
8728
|
var compactTaskResultSchema = z27.object({
|
|
8729
8729
|
id: z27.string(),
|
|
8730
|
-
status: z27.enum(["active", "
|
|
8730
|
+
status: z27.enum(["active", "blocked", "deleted"]),
|
|
8731
8731
|
task: z27.string(),
|
|
8732
8732
|
schedule: z27.string(),
|
|
8733
8733
|
timezone: z27.string(),
|
|
@@ -8887,7 +8887,7 @@ function schedulerStore(context) {
|
|
|
8887
8887
|
return context.store;
|
|
8888
8888
|
}
|
|
8889
8889
|
function normalizeStatus(value) {
|
|
8890
|
-
if (value === "active" || value === "
|
|
8890
|
+
if (value === "active" || value === "blocked") {
|
|
8891
8891
|
return value;
|
|
8892
8892
|
}
|
|
8893
8893
|
return void 0;
|
|
@@ -9088,7 +9088,7 @@ function createSlackScheduleRunTaskNowTool(context) {
|
|
|
9088
9088
|
const lookup = await getWritableTask({ context, taskId: task_id });
|
|
9089
9089
|
if (lookup.status !== "active") {
|
|
9090
9090
|
throwToolInputError(
|
|
9091
|
-
"Scheduled task must be active before it can be run now.
|
|
9091
|
+
"Scheduled task must be active before it can be run now."
|
|
9092
9092
|
);
|
|
9093
9093
|
}
|
|
9094
9094
|
const nowMs = Date.now();
|
|
@@ -9117,7 +9117,7 @@ function createSlackScheduleUpdateTaskTool(context) {
|
|
|
9117
9117
|
openWorldHint: true,
|
|
9118
9118
|
readOnlyHint: false
|
|
9119
9119
|
},
|
|
9120
|
-
description: "Edit,
|
|
9120
|
+
description: "Edit, reschedule, unblock, or change credential use for an existing Junior scheduled task in the active Slack conversation.",
|
|
9121
9121
|
executionMode: "sequential",
|
|
9122
9122
|
inputSchema: z32.object({
|
|
9123
9123
|
task_id: z32.string().min(1).describe(
|
|
@@ -9127,8 +9127,8 @@ function createSlackScheduleUpdateTaskTool(context) {
|
|
|
9127
9127
|
schedule: scheduleIntentSchema.describe(
|
|
9128
9128
|
"Complete replacement schedule when rescheduling. Omit for task, status, or credential-only changes; the scheduler computes the next run."
|
|
9129
9129
|
).nullable().optional(),
|
|
9130
|
-
status: z32.enum(["active", "
|
|
9131
|
-
"Set to active
|
|
9130
|
+
status: z32.enum(["active", "blocked"]).describe(
|
|
9131
|
+
"Set to active to clear a blocked task, or blocked when dispatch cannot continue."
|
|
9132
9132
|
).optional(),
|
|
9133
9133
|
credential_mode: z32.enum(["system", "creator"]).nullable().describe(
|
|
9134
9134
|
"Set creator to make the task's original creator credentials available, or system to disable them. Creator always means the task's created_by actor, never the current requester. Only that original creator may enable creator mode. Omit or use null to leave unchanged."
|
|
@@ -9166,7 +9166,7 @@ function createSlackScheduleUpdateTaskTool(context) {
|
|
|
9166
9166
|
const nextRunAtMs = compiled?.nextRunAtMs ?? lookup.nextRunAtMs;
|
|
9167
9167
|
const status = normalizeStatus(input.status);
|
|
9168
9168
|
if (input.status && !status) {
|
|
9169
|
-
throwToolInputError("status must be active
|
|
9169
|
+
throwToolInputError("status must be active or blocked.");
|
|
9170
9170
|
}
|
|
9171
9171
|
if (status === "active" && !nextRunAtMs) {
|
|
9172
9172
|
throwToolInputError(
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAgentRunner,
|
|
3
3
|
executeAgentRun
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ZMV2YBT6.js";
|
|
5
5
|
import "../chunk-DIB4GX3G.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-SKWIIUS7.js";
|
|
7
|
+
import "../chunk-GPXVDJML.js";
|
|
8
8
|
import "../chunk-EPBBYMNE.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-AW5Z3T7V.js";
|
|
10
|
+
import "../chunk-XN656LB4.js";
|
|
11
|
+
import "../chunk-G3WYA2RS.js";
|
|
12
12
|
import "../chunk-HX236W2U.js";
|
|
13
13
|
import "../chunk-PDO5BLNM.js";
|
|
14
14
|
import "../chunk-UIE3R5XU.js";
|
|
15
15
|
import {
|
|
16
16
|
loadAppPluginSet
|
|
17
17
|
} from "../chunk-Y2CM7HXH.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-ALDPUN3Z.js";
|
|
19
|
+
import "../chunk-WYQP7QSB.js";
|
|
20
20
|
import "../chunk-KB2M27DL.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-ODIP5CEM.js";
|
|
22
|
+
import "../chunk-NNHUGGO4.js";
|
|
23
23
|
import "../chunk-VFUK3X5B.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-ISNRPCPG.js";
|
|
25
|
+
import "../chunk-BKE47OOW.js";
|
|
26
|
+
import "../chunk-B7IY6SVJ.js";
|
|
27
|
+
import "../chunk-V44FFBO3.js";
|
|
28
28
|
import "../chunk-77VDLF3Z.js";
|
|
29
29
|
import "../chunk-HZF5P5UN.js";
|
|
30
30
|
import "../chunk-F3B2YJ76.js";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-GOEZU33G.js";
|
|
32
32
|
import "../chunk-6GWA276C.js";
|
|
33
33
|
import "../chunk-OOUNJNMR.js";
|
|
34
34
|
import "../chunk-H4HBKISO.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-WEJIS7OC.js";
|
|
36
|
+
import "../chunk-2425Q4OR.js";
|
|
37
37
|
import "../chunk-MLKGABMK.js";
|
|
38
38
|
|
|
39
39
|
// src/cli/chat.ts
|
|
@@ -156,10 +156,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
156
156
|
databaseModule
|
|
157
157
|
] = await Promise.all([
|
|
158
158
|
import("../plugins-HW4VWW6G.js"),
|
|
159
|
-
import("../agent-hooks-
|
|
160
|
-
import("../catalog-runtime-
|
|
161
|
-
import("../validation-
|
|
162
|
-
import("../db-
|
|
159
|
+
import("../agent-hooks-ONXOJDR6.js"),
|
|
160
|
+
import("../catalog-runtime-BATAY4R7.js"),
|
|
161
|
+
import("../validation-MRILMYDI.js"),
|
|
162
|
+
import("../db-QFFZACXF.js")
|
|
163
163
|
]);
|
|
164
164
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
165
165
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -223,8 +223,8 @@ function localDevServerUrl() {
|
|
|
223
223
|
async function prepareLocalChatRun(io, pluginSet) {
|
|
224
224
|
defaultStateAdapterForLocalChat();
|
|
225
225
|
await configureLocalChatPlugins(pluginSet);
|
|
226
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
227
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
226
|
+
const { runLocalAgentTurn } = await import("../runner-Y3LTUNAA.js");
|
|
227
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-5WXLD533.js");
|
|
228
228
|
const { createLocalOAuthState } = await import("../oauth-relay-3ZU72UGL.js");
|
|
229
229
|
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-A5HWIQH4.js");
|
|
230
230
|
const agentRunner = createAgentRunner(executeAgentRun);
|
package/dist/cli/check.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-BKE47OOW.js";
|
|
4
|
+
import "../chunk-B7IY6SVJ.js";
|
|
5
5
|
import {
|
|
6
6
|
parseInlinePluginManifest,
|
|
7
7
|
parsePluginManifest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-V44FFBO3.js";
|
|
9
9
|
import "../chunk-77VDLF3Z.js";
|
|
10
10
|
import "../chunk-HZF5P5UN.js";
|
|
11
11
|
import "../chunk-F3B2YJ76.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-GOEZU33G.js";
|
|
13
13
|
import "../chunk-6GWA276C.js";
|
|
14
14
|
import "../chunk-OOUNJNMR.js";
|
|
15
15
|
import "../chunk-H4HBKISO.js";
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
|
|
18
18
|
JUNIOR_HEARTBEAT_ROUTE,
|
|
19
19
|
LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-WEJIS7OC.js";
|
|
21
|
+
import "../chunk-2425Q4OR.js";
|
|
22
22
|
import "../chunk-MLKGABMK.js";
|
|
23
23
|
|
|
24
24
|
// src/cli/check.ts
|
package/dist/cli/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validatePluginEgressCredentialHooks,
|
|
3
3
|
validatePluginRegistrations
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-JYQAE2ZU.js";
|
|
5
5
|
import {
|
|
6
6
|
pluginCatalogConfigFromPluginSet,
|
|
7
7
|
pluginCliRegistrationsFromPluginSet,
|
|
@@ -14,28 +14,28 @@ import {
|
|
|
14
14
|
createPluginLogger,
|
|
15
15
|
setPlugins,
|
|
16
16
|
validatePlugins
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-ALDPUN3Z.js";
|
|
18
18
|
import {
|
|
19
19
|
getDb
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-WYQP7QSB.js";
|
|
21
21
|
import "../chunk-KB2M27DL.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-ODIP5CEM.js";
|
|
23
|
+
import "../chunk-NNHUGGO4.js";
|
|
24
24
|
import "../chunk-VFUK3X5B.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-ISNRPCPG.js";
|
|
26
26
|
import {
|
|
27
27
|
pluginCatalogRuntime
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-B7IY6SVJ.js";
|
|
29
|
+
import "../chunk-V44FFBO3.js";
|
|
30
30
|
import "../chunk-77VDLF3Z.js";
|
|
31
31
|
import "../chunk-HZF5P5UN.js";
|
|
32
32
|
import "../chunk-F3B2YJ76.js";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-GOEZU33G.js";
|
|
34
34
|
import "../chunk-6GWA276C.js";
|
|
35
35
|
import "../chunk-OOUNJNMR.js";
|
|
36
36
|
import "../chunk-H4HBKISO.js";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-WEJIS7OC.js";
|
|
38
|
+
import "../chunk-2425Q4OR.js";
|
|
39
39
|
import "../chunk-MLKGABMK.js";
|
|
40
40
|
|
|
41
41
|
// src/cli/plugins.ts
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create,
|
|
3
3
|
resolve
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-AW5Z3T7V.js";
|
|
5
5
|
import {
|
|
6
6
|
disconnectStateAdapter
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-ODIP5CEM.js";
|
|
8
|
+
import "../chunk-NNHUGGO4.js";
|
|
9
|
+
import "../chunk-ISNRPCPG.js";
|
|
10
10
|
import {
|
|
11
11
|
pluginCatalogRuntime
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-B7IY6SVJ.js";
|
|
13
|
+
import "../chunk-V44FFBO3.js";
|
|
14
14
|
import "../chunk-77VDLF3Z.js";
|
|
15
15
|
import "../chunk-HZF5P5UN.js";
|
|
16
16
|
import "../chunk-F3B2YJ76.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-GOEZU33G.js";
|
|
18
18
|
import "../chunk-6GWA276C.js";
|
|
19
19
|
import "../chunk-OOUNJNMR.js";
|
|
20
20
|
import "../chunk-H4HBKISO.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-WEJIS7OC.js";
|
|
22
|
+
import "../chunk-2425Q4OR.js";
|
|
23
23
|
import "../chunk-MLKGABMK.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/snapshot-create.ts
|
package/dist/cli/upgrade.js
CHANGED
|
@@ -11,21 +11,21 @@ import {
|
|
|
11
11
|
} from "../chunk-KB2M27DL.js";
|
|
12
12
|
import {
|
|
13
13
|
getChatConfig
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-NNHUGGO4.js";
|
|
15
15
|
import "../chunk-VFUK3X5B.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-ISNRPCPG.js";
|
|
17
17
|
import {
|
|
18
18
|
createPluginCatalogRuntime
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-V44FFBO3.js";
|
|
20
20
|
import "../chunk-77VDLF3Z.js";
|
|
21
21
|
import "../chunk-HZF5P5UN.js";
|
|
22
22
|
import "../chunk-F3B2YJ76.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-GOEZU33G.js";
|
|
24
24
|
import "../chunk-6GWA276C.js";
|
|
25
25
|
import "../chunk-OOUNJNMR.js";
|
|
26
26
|
import "../chunk-H4HBKISO.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-WEJIS7OC.js";
|
|
28
|
+
import "../chunk-2425Q4OR.js";
|
|
29
29
|
import "../chunk-MLKGABMK.js";
|
|
30
30
|
|
|
31
31
|
// src/chat/conversations/sql/migrations.ts
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
getConversationStore,
|
|
6
6
|
getDb,
|
|
7
7
|
getSqlExecutor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WYQP7QSB.js";
|
|
9
9
|
import "./chunk-KB2M27DL.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-NNHUGGO4.js";
|
|
11
11
|
import "./chunk-VFUK3X5B.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-ISNRPCPG.js";
|
|
13
13
|
import "./chunk-F3B2YJ76.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-GOEZU33G.js";
|
|
15
15
|
import "./chunk-6GWA276C.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-WEJIS7OC.js";
|
|
17
|
+
import "./chunk-2425Q4OR.js";
|
|
18
18
|
import "./chunk-MLKGABMK.js";
|
|
19
19
|
export {
|
|
20
20
|
closeDb,
|
package/dist/instrumentation.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
} from "./chunk-UIE3R5XU.js";
|
|
4
4
|
import {
|
|
5
5
|
getCurrentConversationPrivacy
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-ISNRPCPG.js";
|
|
7
|
+
import "./chunk-GOEZU33G.js";
|
|
8
8
|
import {
|
|
9
9
|
getClient,
|
|
10
10
|
getGlobalScope,
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
getDeploymentServiceVersion,
|
|
17
17
|
getDeploymentTelemetryAttributes
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-WEJIS7OC.js";
|
|
19
|
+
import "./chunk-2425Q4OR.js";
|
|
20
20
|
import "./chunk-MLKGABMK.js";
|
|
21
21
|
|
|
22
22
|
// src/chat/sentry-payload-filter.ts
|
package/dist/nitro.js
CHANGED
|
@@ -26,8 +26,8 @@ import {
|
|
|
26
26
|
JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE,
|
|
27
27
|
JUNIOR_RETENTION_CRON_SCHEDULE,
|
|
28
28
|
JUNIOR_RETENTION_ROUTE
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-WEJIS7OC.js";
|
|
30
|
+
import "./chunk-2425Q4OR.js";
|
|
31
31
|
import "./chunk-MLKGABMK.js";
|
|
32
32
|
|
|
33
33
|
// src/nitro.ts
|