@sentry/junior 0.184.0 → 0.185.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-XTZVALGQ.js → agent-hooks-NGZQLL5O.js} +13 -11
- package/dist/api/acp/schema.d.ts +20 -2
- package/dist/api/code/overview.d.ts +39 -0
- package/dist/api/locations/detail.d.ts +1 -1
- package/dist/api/people/code.d.ts +22 -0
- package/dist/api/schema/code.d.ts +46 -0
- package/dist/api/schema/conversation.d.ts +100 -20
- package/dist/api/schema/location.d.ts +1 -1
- package/dist/api/schema/person.d.ts +1 -1
- package/dist/api/schema.d.ts +4 -4
- package/dist/api/schema.js +12 -1
- package/dist/api.js +358 -76
- package/dist/app.js +406 -377
- package/dist/{catalog-runtime-5357XR4F.js → catalog-runtime-AAEAO2RL.js} +4 -4
- package/dist/chat/api-turns/accepted-reply.d.ts +11 -0
- package/dist/chat/api-turns/cancellation.d.ts +3 -5
- package/dist/chat/api-turns/work.d.ts +4 -9
- package/dist/chat/app/conversation-work.d.ts +1 -1
- package/dist/chat/app/factory.d.ts +4 -0
- package/dist/chat/app/services.d.ts +4 -3
- package/dist/chat/conversations/history.d.ts +83 -9
- package/dist/chat/conversations/turn-lifecycle.d.ts +4 -3
- package/dist/chat/providers/slack/input.d.ts +32 -0
- package/dist/chat/{runtime → providers/slack}/processing-reaction.d.ts +6 -8
- package/dist/chat/{runtime/slack-resume.d.ts → providers/slack/resume.d.ts} +16 -19
- package/dist/chat/providers/slack/runtime.d.ts +1 -10
- package/dist/chat/providers/slack/turn.d.ts +11 -24
- package/dist/chat/resource-events/store.d.ts +1 -1
- package/dist/chat/resource-events/tool-support.d.ts +0 -5
- package/dist/chat/runtime/turn-execution.d.ts +7 -2
- package/dist/chat/sandbox/egress/credentials.d.ts +3 -3
- package/dist/chat/sandbox/egress/session.d.ts +5 -6
- package/dist/chat/scheduled-tasks/tool-support.d.ts +5 -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 +2 -2
- package/dist/chat/scheduled-tasks/types.d.ts +1 -1
- package/dist/chat/services/provider-retry.d.ts +2 -0
- package/dist/chat/services/turn-failure-response.d.ts +4 -0
- package/dist/chat/task-execution/paused-turn.d.ts +0 -2
- package/dist/chat/task-execution/state.d.ts +2 -2
- package/dist/chat/task-execution/store.d.ts +1 -1
- package/dist/chat/task-execution/turn-wake.d.ts +12 -0
- package/dist/chat/tool-support/action-review.d.ts +1 -1
- package/dist/chat/tools/resource-events.d.ts +1 -1
- package/dist/chat/tools/search-conversation-events.d.ts +1 -1
- package/dist/chat/tools/types.d.ts +1 -1
- package/dist/chat/tools/watch-resource-events.d.ts +2 -2
- package/dist/{chunk-FKEZZMXS.js → chunk-4HA36IWS.js} +9 -94
- package/dist/{chunk-WVIA7V3M.js → chunk-4K25ODAO.js} +27 -1
- package/dist/{chunk-UF6BUA5W.js → chunk-4S47VHJR.js} +3 -3
- package/dist/{chunk-JNO2GUDS.js → chunk-6DOAUXLD.js} +231 -198
- package/dist/{chunk-M3QYTBQ6.js → chunk-6Q7YZLCL.js} +2 -1
- package/dist/{chunk-6VOYP4M6.js → chunk-7GAP2XG4.js} +1 -1
- package/dist/{chunk-LHXIZLFF.js → chunk-7MHNIGHP.js} +1 -1
- package/dist/{chunk-IZDYYYGP.js → chunk-ABAX75GG.js} +10 -384
- package/dist/{chunk-WQFEWULF.js → chunk-ATUWN6Z3.js} +2 -2
- package/dist/{chunk-4RONS3WR.js → chunk-C6TS47CQ.js} +4 -4
- package/dist/chunk-D4YV5TDV.js +45 -0
- package/dist/{chunk-Z3QAXJR7.js → chunk-D63IUQQE.js} +4 -4
- package/dist/{chunk-M5YWNMTE.js → chunk-DAPC2HTM.js} +24 -6
- package/dist/{chunk-BHYRYYLY.js → chunk-EIJCPJOY.js} +1 -1
- package/dist/{chunk-SHJK75Z2.js → chunk-EJYP3NQ4.js} +4 -4
- package/dist/{chunk-K7VDC2QW.js → chunk-EWEH2PJW.js} +6 -6
- package/dist/{chunk-6WGC3SO4.js → chunk-FFHXG2FX.js} +13 -11
- package/dist/{chunk-MLSQX2EX.js → chunk-FTVMXDNN.js} +1 -1
- package/dist/chunk-GFBR4S3Q.js +406 -0
- package/dist/{chunk-PJPRXO2T.js → chunk-GJTIZQGJ.js} +1 -1
- package/dist/{chunk-BT53RIGJ.js → chunk-HJPC32TQ.js} +12 -50
- package/dist/{chunk-RF6J3DIO.js → chunk-INQHUE72.js} +84 -1
- package/dist/{chunk-6UDPINOX.js → chunk-LRI5IRGY.js} +19 -44
- package/dist/{chunk-BCHYQS4B.js → chunk-LVK4WJKM.js} +1 -1
- package/dist/{chunk-UBOIHNTH.js → chunk-MWOH6CIK.js} +178 -148
- package/dist/{chunk-3S7ULUWW.js → chunk-OMQ2J6F6.js} +1 -1
- package/dist/{chunk-DUKIDPF6.js → chunk-PNYJOEVV.js} +1 -1
- package/dist/{chunk-MAPJFUMV.js → chunk-QCT4226Q.js} +3 -3
- package/dist/{chunk-HIPUIPJM.js → chunk-QZKHHG3B.js} +34 -8
- package/dist/{chunk-QABCY33S.js → chunk-TVVAMOLS.js} +2 -2
- package/dist/{chunk-JA43DV4Y.js → chunk-U4CTAVWN.js} +1 -1
- package/dist/{chunk-LCP4EDKR.js → chunk-UUULGCKK.js} +1 -1
- package/dist/{chunk-4CNDGK25.js → chunk-VH4IU3UC.js} +928 -984
- package/dist/chunk-W7GCLNIV.js +58 -0
- package/dist/{chunk-2ZQPVX7C.js → chunk-WLKWN4CD.js} +22 -12
- package/dist/{chunk-ACPDVEJO.js → chunk-X2SS6BF7.js} +198 -209
- package/dist/{chunk-YKX6MTLU.js → chunk-X7NCJQAA.js} +1 -1
- package/dist/{chunk-E57WPXWY.js → chunk-Y5G23T2D.js} +5 -5
- package/dist/{chunk-HUXFMDBZ.js → chunk-ZIF2S464.js} +1 -1
- package/dist/{chunk-JM2COLGC.js → chunk-ZKKGFUWM.js} +6 -6
- package/dist/cli/chat.js +35 -33
- package/dist/cli/check.js +5 -5
- package/dist/cli/plugins.js +14 -12
- package/dist/cli/snapshot-create.js +10 -9
- package/dist/cli/upgrade.js +7 -6
- package/dist/{db-MA52H62H.js → db-TRJ77FAU.js} +8 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +7 -6
- package/dist/{oauth-callback-server-DXGHKN6S.js → oauth-callback-server-XD5SV3MS.js} +30 -27
- package/dist/{runner-4IXUAQNK.js → runner-KFX7NG6D.js} +24 -19
- package/dist/{skills-X3DY7AXO.js → skills-J2AH26CW.js} +5 -5
- package/dist/spawn-VU3CSRI6.js +41 -0
- package/dist/task-runner-5JG3VIIY.js +34 -0
- package/dist/{validation-Z6JXSTJS.js → validation-O5J4VOPF.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-OKWRFBDW.js → work-ECPQTG3U.js} +24 -19
- package/dist/worker-RS3DXUDO.js +24 -0
- package/package.json +4 -4
- package/dist/spawn-43WGS6CH.js +0 -37
- package/dist/task-runner-VDRKITPV.js +0 -32
- package/dist/worker-B236AE72.js +0 -22
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ConversationTurnLifecycleService
|
|
3
|
+
} from "./chunk-6Q7YZLCL.js";
|
|
4
|
+
import {
|
|
5
|
+
runAgentWithTimeout
|
|
6
|
+
} from "./chunk-INQHUE72.js";
|
|
7
|
+
import {
|
|
8
|
+
getConversationEventStore
|
|
9
|
+
} from "./chunk-ABAX75GG.js";
|
|
10
|
+
|
|
11
|
+
// src/chat/runtime/turn-execution.ts
|
|
12
|
+
var AgentRunError = class extends Error {
|
|
13
|
+
constructor(cause) {
|
|
14
|
+
super(cause instanceof Error ? cause.message : "Agent Run failed", {
|
|
15
|
+
cause
|
|
16
|
+
});
|
|
17
|
+
this.name = "AgentRunError";
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
async function executeTurn(agentRunner, run, saveResult, timeoutMs) {
|
|
21
|
+
let outcome;
|
|
22
|
+
try {
|
|
23
|
+
outcome = await runAgentWithTimeout(agentRunner, run, timeoutMs);
|
|
24
|
+
} catch (error) {
|
|
25
|
+
throw new AgentRunError(error);
|
|
26
|
+
}
|
|
27
|
+
if (outcome.status !== "completed") {
|
|
28
|
+
return outcome;
|
|
29
|
+
}
|
|
30
|
+
const saved = await saveResult(outcome.result);
|
|
31
|
+
const lifecycle = new ConversationTurnLifecycleService(
|
|
32
|
+
getConversationEventStore()
|
|
33
|
+
);
|
|
34
|
+
const common = {
|
|
35
|
+
conversationId: run.conversationId,
|
|
36
|
+
createdAtMs: saved.finishedAtMs ?? Date.now(),
|
|
37
|
+
turnId: run.turnId
|
|
38
|
+
};
|
|
39
|
+
if (saved.outcome === "failed") {
|
|
40
|
+
await lifecycle.fail({
|
|
41
|
+
...common,
|
|
42
|
+
...saved.eventId ? { eventId: saved.eventId } : void 0,
|
|
43
|
+
failureCode: saved.failureCode,
|
|
44
|
+
...saved.failureReason ? { failureReason: saved.failureReason } : void 0
|
|
45
|
+
});
|
|
46
|
+
} else {
|
|
47
|
+
await lifecycle.complete({
|
|
48
|
+
...common,
|
|
49
|
+
outcome: saved.outcome
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return { status: "completed" };
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export {
|
|
56
|
+
AgentRunError,
|
|
57
|
+
executeTurn
|
|
58
|
+
};
|
|
@@ -2,39 +2,38 @@ import {
|
|
|
2
2
|
usageSchema
|
|
3
3
|
} from "./chunk-PDO5BLNM.js";
|
|
4
4
|
import {
|
|
5
|
-
ToolInputError
|
|
6
|
-
} from "./chunk-4CNDGK25.js";
|
|
7
|
-
import {
|
|
8
|
-
agentHistoryItemSchema,
|
|
9
5
|
bindProviderConversation,
|
|
10
|
-
contextProvenance,
|
|
11
6
|
createSqlConversationEventStore,
|
|
12
7
|
getConversationEventStore,
|
|
13
8
|
getConversationStore,
|
|
14
9
|
getSqlExecutor,
|
|
15
|
-
instructionActors,
|
|
16
|
-
instructionProvenanceFor,
|
|
17
10
|
sanitizePostgresJson,
|
|
18
11
|
withConversationEventLock
|
|
19
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ABAX75GG.js";
|
|
20
13
|
import {
|
|
21
14
|
SANDBOX_REPOS_ROOT,
|
|
22
15
|
SANDBOX_WORKSPACE_ROOT,
|
|
23
16
|
sleep
|
|
24
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EJYP3NQ4.js";
|
|
25
18
|
import {
|
|
26
19
|
MUTATION_LOCK_TTL_MS,
|
|
27
20
|
fenceLock,
|
|
28
21
|
getStateAdapter,
|
|
29
22
|
withLock
|
|
30
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PNYJOEVV.js";
|
|
24
|
+
import {
|
|
25
|
+
agentHistoryItemSchema,
|
|
26
|
+
contextProvenance,
|
|
27
|
+
instructionActors,
|
|
28
|
+
instructionProvenanceFor
|
|
29
|
+
} from "./chunk-GFBR4S3Q.js";
|
|
31
30
|
import {
|
|
32
31
|
botConfig,
|
|
33
32
|
completeText,
|
|
34
33
|
escapeXml,
|
|
35
34
|
resolveGatewayModel,
|
|
36
35
|
unwrapCurrentInstruction
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-LRI5IRGY.js";
|
|
38
37
|
import {
|
|
39
38
|
parseSlackMessageTs,
|
|
40
39
|
toStoredSlackActor
|
|
@@ -44,7 +43,7 @@ import {
|
|
|
44
43
|
logException,
|
|
45
44
|
logWarn,
|
|
46
45
|
setSpanAttributes
|
|
47
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-OMQ2J6F6.js";
|
|
48
47
|
|
|
49
48
|
// src/chat/turn-context-tag.ts
|
|
50
49
|
var TURN_CONTEXT_TAG = "runtime-turn-context";
|
|
@@ -1746,6 +1745,16 @@ import path2 from "path";
|
|
|
1746
1745
|
|
|
1747
1746
|
// src/chat/tools/sandbox/file-utils.ts
|
|
1748
1747
|
import path from "path";
|
|
1748
|
+
|
|
1749
|
+
// src/chat/tools/execution/tool-input-error.ts
|
|
1750
|
+
var ToolInputError = class extends Error {
|
|
1751
|
+
constructor(message, options) {
|
|
1752
|
+
super(message, options);
|
|
1753
|
+
this.name = "ToolInputError";
|
|
1754
|
+
}
|
|
1755
|
+
};
|
|
1756
|
+
|
|
1757
|
+
// src/chat/tools/sandbox/file-utils.ts
|
|
1749
1758
|
var MAX_TEXT_CHARS = 6e4;
|
|
1750
1759
|
var RIPGREP_EXCLUDED_GLOBS = [
|
|
1751
1760
|
"!**/.git/**",
|
|
@@ -3133,6 +3142,7 @@ export {
|
|
|
3133
3142
|
recordToolExecutionStarted,
|
|
3134
3143
|
recordAttachmentsDelivered,
|
|
3135
3144
|
recordGuardianActionReviewed,
|
|
3145
|
+
ToolInputError,
|
|
3136
3146
|
MAX_TEXT_CHARS,
|
|
3137
3147
|
RIPGREP_EXCLUDED_GLOBS,
|
|
3138
3148
|
DEFAULT_SEARCH_COMMAND_TIMEOUT_MS,
|