@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,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConversationEventStore,
|
|
3
3
|
getDb
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WYQP7QSB.js";
|
|
5
5
|
import {
|
|
6
6
|
juniorConversationAnnotations,
|
|
7
7
|
juniorConversationEvents,
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
SANDBOX_WORKSPACE_ROOT,
|
|
13
13
|
getStateAdapter,
|
|
14
14
|
sleep
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ODIP5CEM.js";
|
|
16
16
|
import {
|
|
17
17
|
botConfig,
|
|
18
18
|
completeObject,
|
|
19
19
|
embedTexts,
|
|
20
20
|
getSlackBotToken,
|
|
21
21
|
standardModelId
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NNHUGGO4.js";
|
|
23
23
|
import {
|
|
24
24
|
isActorUserId,
|
|
25
25
|
parseActorUserId
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
setSpanAttributes,
|
|
38
38
|
setSpanStatus,
|
|
39
39
|
withSpan
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-GOEZU33G.js";
|
|
41
41
|
|
|
42
42
|
// src/chat/plugins/agent-hooks.ts
|
|
43
43
|
import {
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
SANDBOX_WORKSPACE_ROOT,
|
|
3
3
|
getStateAdapter,
|
|
4
4
|
sleep
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ODIP5CEM.js";
|
|
6
6
|
import {
|
|
7
7
|
toOptionalTrimmed
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NNHUGGO4.js";
|
|
9
9
|
import {
|
|
10
10
|
pluginCatalogRuntime
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-B7IY6SVJ.js";
|
|
12
12
|
import {
|
|
13
13
|
setSpanAttributes,
|
|
14
14
|
setSpanStatus,
|
|
15
15
|
withSpan
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GOEZU33G.js";
|
|
17
17
|
|
|
18
18
|
// src/chat/sandbox/resources.ts
|
|
19
19
|
var configuredResources;
|
|
@@ -56,6 +56,30 @@ var GLOBAL_RUNTIME_DEPENDENCIES = [
|
|
|
56
56
|
{ type: "system", package: "spal-release" },
|
|
57
57
|
{ type: "system", package: "ripgrep" }
|
|
58
58
|
];
|
|
59
|
+
var GLOBAL_RUNTIME_POSTINSTALL = [
|
|
60
|
+
{
|
|
61
|
+
cmd: "sh",
|
|
62
|
+
args: [
|
|
63
|
+
"-c",
|
|
64
|
+
[
|
|
65
|
+
"set -eu",
|
|
66
|
+
'case "$(uname -m)" in',
|
|
67
|
+
' x86_64) asset="x86_64"; sha256="7af95166a730b87e172d4fc9aefea8725d3c6c7327d59149267b452114ddb7d4" ;;',
|
|
68
|
+
' aarch64) asset="aarch64"; sha256="49082844b87f03cdcd5f5bbef1ba8c9c897b7a2dfb80cea18d61ec8ca6117e0c" ;;',
|
|
69
|
+
' *) echo "unsupported Docker Compose architecture: $(uname -m)" >&2; exit 1 ;;',
|
|
70
|
+
"esac",
|
|
71
|
+
'tmp="$(mktemp)"',
|
|
72
|
+
`trap 'rm -f "$tmp"' EXIT`,
|
|
73
|
+
'curl --fail --location --silent --show-error "https://github.com/docker/compose/releases/download/v2.39.4/docker-compose-linux-${asset}" --output "$tmp"',
|
|
74
|
+
'echo "${sha256} ${tmp}" | sha256sum --check --status',
|
|
75
|
+
'install -D -m 0755 "$tmp" /usr/local/bin/docker-compose',
|
|
76
|
+
"mkdir -p /usr/local/lib/docker/cli-plugins",
|
|
77
|
+
"ln -sf /usr/local/bin/docker-compose /usr/local/lib/docker/cli-plugins/docker-compose"
|
|
78
|
+
].join("\n")
|
|
79
|
+
],
|
|
80
|
+
sudo: true
|
|
81
|
+
}
|
|
82
|
+
];
|
|
59
83
|
|
|
60
84
|
// src/chat/sandbox/snapshot/profile.ts
|
|
61
85
|
var VERSION = 1;
|
|
@@ -102,12 +126,13 @@ function create(runtime) {
|
|
|
102
126
|
...GLOBAL_RUNTIME_DEPENDENCIES,
|
|
103
127
|
...pluginCatalogRuntime.getRuntimeDependencies()
|
|
104
128
|
]);
|
|
105
|
-
const
|
|
129
|
+
const pluginPostinstall = pluginCatalogRuntime.getRuntimePostinstall();
|
|
130
|
+
const postinstall2 = [...GLOBAL_RUNTIME_POSTINSTALL, ...pluginPostinstall];
|
|
106
131
|
if (dependencies2.length === 0 && postinstall2.length === 0) {
|
|
107
132
|
return null;
|
|
108
133
|
}
|
|
109
134
|
const rebuildEpoch = process.env.SANDBOX_SNAPSHOT_REBUILD_EPOCH?.trim() ?? "";
|
|
110
|
-
const floating = dependencies2.some((dependency) => isFloating(dependency)) ||
|
|
135
|
+
const floating = dependencies2.some((dependency) => isFloating(dependency)) || pluginPostinstall.length > 0;
|
|
111
136
|
const hash2 = createHash("sha256").update(
|
|
112
137
|
JSON.stringify({
|
|
113
138
|
version: VERSION,
|
|
@@ -16,17 +16,17 @@ import {
|
|
|
16
16
|
instructionProvenanceFor,
|
|
17
17
|
sanitizePostgresJson,
|
|
18
18
|
withConversationEventLock
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WYQP7QSB.js";
|
|
20
20
|
import {
|
|
21
21
|
getStateAdapter,
|
|
22
22
|
sleep
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ODIP5CEM.js";
|
|
24
24
|
import {
|
|
25
25
|
botConfig,
|
|
26
26
|
escapeXml,
|
|
27
27
|
resolveGatewayModel,
|
|
28
28
|
unwrapCurrentInstruction
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NNHUGGO4.js";
|
|
30
30
|
import {
|
|
31
31
|
toStoredSlackActor
|
|
32
32
|
} from "./chunk-HZF5P5UN.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
setSpanAttributes,
|
|
42
42
|
toOptionalNumber,
|
|
43
43
|
toOptionalString
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-GOEZU33G.js";
|
|
45
45
|
|
|
46
46
|
// src/chat/turn-context-tag.ts
|
|
47
47
|
var TURN_CONTEXT_TAG = "runtime-turn-context";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
persistAuthPauseTurnState,
|
|
14
14
|
requireTurnFailureEventId,
|
|
15
15
|
scheduleSessionCompletedPluginTasks
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-O2UXPUVQ.js";
|
|
17
17
|
import {
|
|
18
18
|
buildSentryConversationUrl
|
|
19
19
|
} from "./chunk-4CODA7P5.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
resolveBaseUrl,
|
|
41
41
|
resolvePluginOAuthAccount,
|
|
42
42
|
truncateStatusText
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-SKWIIUS7.js";
|
|
44
44
|
import {
|
|
45
45
|
JUNIOR_THREAD_STATE_TTL_MS,
|
|
46
46
|
TurnSliceLimitExceededError,
|
|
@@ -73,13 +73,13 @@ import {
|
|
|
73
73
|
recordDeliveredAssistantMessage,
|
|
74
74
|
turnHasReply,
|
|
75
75
|
updateConversationStats
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-GPXVDJML.js";
|
|
77
77
|
import {
|
|
78
78
|
parseSlackThreadId,
|
|
79
79
|
readSlackRawMessageContext,
|
|
80
80
|
resolveSlackChannelIdFromMessage,
|
|
81
81
|
resolveSlackChannelIdFromThreadId
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-G3WYA2RS.js";
|
|
83
83
|
import {
|
|
84
84
|
SlackActionError,
|
|
85
85
|
getDashboardConversationLink,
|
|
@@ -88,19 +88,19 @@ import {
|
|
|
88
88
|
getSlackClient,
|
|
89
89
|
isDmChannel,
|
|
90
90
|
normalizeSlackConversationId
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-ALDPUN3Z.js";
|
|
92
92
|
import {
|
|
93
93
|
getConversationEventStore,
|
|
94
94
|
getConversationStore,
|
|
95
95
|
parseDestination,
|
|
96
96
|
requireSlackDestination,
|
|
97
97
|
sameDestination
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-WYQP7QSB.js";
|
|
99
99
|
import {
|
|
100
100
|
acquireActiveLock,
|
|
101
101
|
getDefaultRedisStateAdapterFor,
|
|
102
102
|
getStateAdapter
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-ODIP5CEM.js";
|
|
104
104
|
import {
|
|
105
105
|
FUNCTION_TIMEOUT_BUFFER_SECONDS,
|
|
106
106
|
botConfig,
|
|
@@ -109,18 +109,18 @@ import {
|
|
|
109
109
|
getRuntimeMetadata,
|
|
110
110
|
normalizeSlackEmojiName,
|
|
111
111
|
standardModelId
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-NNHUGGO4.js";
|
|
113
113
|
import {
|
|
114
114
|
discoverSkills
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-BKE47OOW.js";
|
|
116
116
|
import {
|
|
117
117
|
pluginCatalogRuntime
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-B7IY6SVJ.js";
|
|
119
119
|
import {
|
|
120
120
|
buildOAuthTokenRequest,
|
|
121
121
|
hasRequiredOAuthScope,
|
|
122
122
|
parseOAuthTokenResponse
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-V44FFBO3.js";
|
|
124
124
|
import {
|
|
125
125
|
createSlackResumeActor,
|
|
126
126
|
isUserActor,
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
toOptionalNumber,
|
|
140
140
|
toOptionalString,
|
|
141
141
|
withLogContext
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-GOEZU33G.js";
|
|
143
143
|
import {
|
|
144
144
|
homeDir
|
|
145
145
|
} from "./chunk-H4HBKISO.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
toCanonicalInputMessage,
|
|
4
4
|
toCanonicalOutputMessage,
|
|
5
5
|
toGenAiMessagesTraceAttributes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ISNRPCPG.js";
|
|
7
7
|
import {
|
|
8
8
|
extractGenAiUsageAttributes,
|
|
9
9
|
logException,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
normalizeGenAiFinishReason,
|
|
12
12
|
serializeGenAiAttribute,
|
|
13
13
|
withSpan
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GOEZU33G.js";
|
|
15
15
|
|
|
16
16
|
// src/chat/config.ts
|
|
17
17
|
import { getModel as getModel2 } from "@earendil-works/pi-ai/compat";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
persistThreadStateById,
|
|
23
23
|
stripRuntimeTurnContext,
|
|
24
24
|
updateConversationStats
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GPXVDJML.js";
|
|
26
26
|
import {
|
|
27
27
|
createPluginConversationEvents,
|
|
28
28
|
createPluginEmbedder,
|
|
@@ -30,26 +30,26 @@ import {
|
|
|
30
30
|
createPluginModel,
|
|
31
31
|
createPluginState,
|
|
32
32
|
getPlugins
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ALDPUN3Z.js";
|
|
34
34
|
import {
|
|
35
35
|
getDb,
|
|
36
36
|
sameActorIdentity
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-WYQP7QSB.js";
|
|
38
38
|
import {
|
|
39
39
|
getStateAdapter
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-ODIP5CEM.js";
|
|
41
41
|
import {
|
|
42
42
|
ProviderError,
|
|
43
43
|
findProviderError,
|
|
44
44
|
getProviderErrorAttributes,
|
|
45
45
|
getProviderErrorUserMessage
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-NNHUGGO4.js";
|
|
47
47
|
import {
|
|
48
48
|
parseSlackMessageTs
|
|
49
49
|
} from "./chunk-F3B2YJ76.js";
|
|
50
50
|
import {
|
|
51
51
|
buildTurnFailureResponse
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-GOEZU33G.js";
|
|
53
53
|
|
|
54
54
|
// src/chat/runtime/delivered-turn-state.ts
|
|
55
55
|
function buildDeliveredTurnStatePatch(args) {
|
|
@@ -610,7 +610,7 @@ var scheduledTaskSummarySchema = taskSummaryBaseSchema.extend({
|
|
|
610
610
|
kind: z7.literal("scheduled"),
|
|
611
611
|
nextRunAt: z7.string().datetime().optional(),
|
|
612
612
|
schedule: z7.string().min(1),
|
|
613
|
-
status: z7.enum(["active", "
|
|
613
|
+
status: z7.enum(["active", "blocked"])
|
|
614
614
|
}).strict();
|
|
615
615
|
var eventTaskSummarySchema = taskSummaryBaseSchema.extend({
|
|
616
616
|
events: z7.array(z7.string().min(1)).min(1),
|
|
@@ -6,25 +6,25 @@ import {
|
|
|
6
6
|
isDmChannel,
|
|
7
7
|
normalizeSlackConversationId,
|
|
8
8
|
withSlackRetries
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ALDPUN3Z.js";
|
|
10
10
|
import {
|
|
11
11
|
getDb,
|
|
12
12
|
parseDestination
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WYQP7QSB.js";
|
|
14
14
|
import {
|
|
15
15
|
acquireActiveLock,
|
|
16
16
|
getStateAdapter,
|
|
17
17
|
sleep
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ODIP5CEM.js";
|
|
19
19
|
import {
|
|
20
20
|
normalizeSlackEmojiName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NNHUGGO4.js";
|
|
22
22
|
import {
|
|
23
23
|
pluginCatalogRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-B7IY6SVJ.js";
|
|
25
25
|
import {
|
|
26
26
|
fetchWithBoundedOAuthErrorBodies
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-V44FFBO3.js";
|
|
28
28
|
import {
|
|
29
29
|
parseSlackMessageTs,
|
|
30
30
|
parseSlackUserId
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
isRecord,
|
|
34
34
|
logInfo,
|
|
35
35
|
logWarn
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GOEZU33G.js";
|
|
37
37
|
|
|
38
38
|
// src/chat/capabilities/router.ts
|
|
39
39
|
var ProviderCredentialRouter = class {
|
|
@@ -278,6 +278,8 @@ async function postSlackMessage(input) {
|
|
|
278
278
|
() => getSlackClient().chat.postMessage({
|
|
279
279
|
channel: channelId,
|
|
280
280
|
text,
|
|
281
|
+
unfurl_links: false,
|
|
282
|
+
unfurl_media: false,
|
|
281
283
|
...input.blocks?.length ? {
|
|
282
284
|
blocks: input.blocks
|
|
283
285
|
} : {},
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-UTL3MHPC.js";
|
|
4
4
|
import {
|
|
5
5
|
parseSlackThreadId
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-G3WYA2RS.js";
|
|
7
7
|
import {
|
|
8
8
|
normalizeSlackConversationId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ALDPUN3Z.js";
|
|
10
10
|
|
|
11
11
|
// src/handlers/health.ts
|
|
12
12
|
function readHealthReport() {
|