@sentry/junior 0.161.0 → 0.163.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/README.md +2 -0
- package/dist/{agent-hooks-O75UJNC6.js → agent-hooks-6IX5CV7G.js} +10 -10
- package/dist/api/acp/route.d.ts +13 -0
- package/dist/api/locations/detail.d.ts +1 -1
- package/dist/api/schema/conversation.d.ts +3 -0
- package/dist/api/schema/location.d.ts +1 -0
- package/dist/api/schema/person.d.ts +1 -0
- package/dist/api.js +204 -403
- package/dist/app.d.ts +2 -2
- package/dist/app.js +480 -38
- package/dist/{catalog-runtime-Z3FHU4ZY.js → catalog-runtime-NEPZNTOM.js} +5 -5
- package/dist/chat/agent/sandbox.d.ts +4 -0
- package/dist/chat/api-turns/cancellation.d.ts +27 -0
- package/dist/chat/api-turns/routing.d.ts +31 -0
- package/dist/chat/api-turns/work.d.ts +12 -29
- package/dist/chat/app/conversation-work.d.ts +6 -1
- package/dist/chat/app/production.d.ts +2 -2
- package/dist/chat/conversations/history.d.ts +3 -0
- package/dist/chat/conversations/message-search.d.ts +6 -0
- package/dist/chat/conversations/turn-lifecycle.d.ts +1 -1
- package/dist/chat/experimental.d.ts +1 -1
- package/dist/chat/plugins/agent-hooks.d.ts +4 -0
- package/dist/chat/repository-instructions.d.ts +1 -1
- package/dist/chat/sandbox/paths.d.ts +1 -0
- package/dist/chat/sandbox/prepare-workspace.d.ts +11 -0
- package/dist/chat/sandbox/ref.d.ts +1 -0
- package/dist/chat/sandbox/sandbox.d.ts +4 -0
- package/dist/chat/sandbox/session.d.ts +4 -0
- package/dist/chat/sandbox/snapshot/profile.d.ts +4 -3
- package/dist/chat/sandbox/snapshot/resolve.d.ts +4 -0
- package/dist/chat/sandbox/workspace.d.ts +4 -0
- package/dist/chat/slack/tools/conversation-message-search.d.ts +9 -0
- package/dist/chat/tools/types.d.ts +5 -0
- package/dist/chat/workspaces/checkout-path.d.ts +4 -0
- package/dist/chat/workspaces/store.d.ts +8 -0
- package/dist/chat/workspaces/tools.d.ts +4 -0
- package/dist/chat/workspaces/types.d.ts +13 -0
- package/dist/{chunk-WKN4ZQTZ.js → chunk-2FBPN2Y4.js} +4 -1
- package/dist/{chunk-QHXT7LLF.js → chunk-2HBJQEBE.js} +1 -1
- package/dist/{chunk-VXFDVY4C.js → chunk-3OZNFCPR.js} +6 -6
- package/dist/{chunk-EAIQBR66.js → chunk-3T7RJVDJ.js} +1 -1
- package/dist/{chunk-DGKLYDX7.js → chunk-4P2XNVTO.js} +2 -2
- package/dist/{chunk-FLMD25Y5.js → chunk-ATWHPSMF.js} +40 -2
- package/dist/{chunk-IRHX2S46.js → chunk-BLZUFHM7.js} +1 -1
- package/dist/chunk-BVREIWBD.js +131 -0
- package/dist/{chunk-QQ7SY5IZ.js → chunk-EKGJVUVS.js} +9 -6
- package/dist/{chunk-ZBCLWBMV.js → chunk-FEIHINKR.js} +5 -5
- package/dist/{chunk-MVG5UPLM.js → chunk-GCLHNRMU.js} +1 -1
- package/dist/{chunk-YSWHAOPQ.js → chunk-ICJ3KCA2.js} +1 -1
- package/dist/{chunk-G35DUPNB.js → chunk-IIT23D3M.js} +4 -4
- package/dist/{chunk-OYQEO72I.js → chunk-IX4XI42N.js} +417 -136
- package/dist/{chunk-U2XOBFDK.js → chunk-JI5EPI3O.js} +50 -5
- package/dist/{chunk-IW7C5C7E.js → chunk-KD3ROG6P.js} +17 -17
- package/dist/{chunk-4WAZ6DGX.js → chunk-MWVQ35U6.js} +543 -164
- package/dist/{chunk-STZVUVMS.js → chunk-MXFL7LNZ.js} +12 -7
- package/dist/{chunk-HSFYTIS2.js → chunk-NL53P7PS.js} +1 -1
- package/dist/{chunk-6WTDZKFR.js → chunk-O4IK4O7C.js} +1 -1
- package/dist/{chunk-OPIJ6HY3.js → chunk-O5ZZL7IR.js} +9 -9
- package/dist/{chunk-CGAIDDLD.js → chunk-RK7KPI6G.js} +1 -1
- package/dist/{chunk-V67ORYKQ.js → chunk-RTPJRLOP.js} +9 -9
- package/dist/{chunk-6ILVZOF6.js → chunk-SR6WRBJW.js} +4 -4
- package/dist/{chunk-RULQD7OX.js → chunk-THS4CKN4.js} +46 -87
- package/dist/{chunk-IYFKONIL.js → chunk-TPDNZCZU.js} +1 -1
- package/dist/{chunk-DNSIU27S.js → chunk-TPT6EF7K.js} +1 -1
- package/dist/{chunk-5IDFPCON.js → chunk-VRS6WDK5.js} +1 -1
- package/dist/{chunk-O7JTSJPU.js → chunk-WPGYWDJR.js} +6 -6
- package/dist/{chunk-OY2DBUV4.js → chunk-XY2IVIAY.js} +5 -5
- package/dist/{chunk-RVENVPNO.js → chunk-YAUQXZVT.js} +2 -2
- package/dist/{chunk-WVSQ2SCS.js → chunk-ZDKTZG3G.js} +1 -1
- package/dist/{chunk-MNY5M7RB.js → chunk-ZF6IC27P.js} +87 -10
- package/dist/cli/chat.js +32 -32
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +10 -10
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/workspaces.d.ts +169 -0
- package/dist/db/schema.d.ts +169 -1
- package/dist/{db-KKOZRE62.js → db-6VBMHVW2.js} +7 -7
- package/dist/{experimental-HH6OM6UH.js → experimental-XVDOSRBS.js} +1 -1
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-5AUZDWXA.js → oauth-callback-server-5NCCUIM2.js} +24 -24
- package/dist/{runner-K5H5NDEC.js → runner-6ONEB6TQ.js} +13 -13
- package/dist/{skills-OZGPB6G4.js → skills-Y5R36UH4.js} +6 -6
- package/dist/spawn-RFMBQ6B3.js +37 -0
- package/dist/{validation-TVHCNCYL.js → validation-HLHEQDEK.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-DXCQMJ5U.js → work-VIEFYTFG.js} +18 -18
- package/dist/worker-MRSKPKQZ.js +24 -0
- package/migrations/0029_dizzy_barracuda.sql +19 -0
- package/migrations/meta/0029_snapshot.json +2709 -0
- package/migrations/meta/_journal.json +8 -1
- package/package.json +8 -5
- package/dist/chunk-EM225ITJ.js +0 -56
- package/dist/spawn-RCQSC2L5.js +0 -37
- package/dist/worker-24HZ5HRI.js +0 -24
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConversationEventStore,
|
|
3
3
|
getDb
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JI5EPI3O.js";
|
|
5
5
|
import {
|
|
6
6
|
juniorConversationAnnotations,
|
|
7
7
|
juniorConversationEvents,
|
|
8
8
|
juniorIdentities,
|
|
9
9
|
juniorUsers
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ATWHPSMF.js";
|
|
11
11
|
import {
|
|
12
12
|
SANDBOX_WORKSPACE_ROOT,
|
|
13
|
+
runNonInteractiveCommand,
|
|
13
14
|
sleep
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BVREIWBD.js";
|
|
15
16
|
import {
|
|
16
17
|
getStateAdapter
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TPDNZCZU.js";
|
|
18
19
|
import {
|
|
19
20
|
botConfig,
|
|
20
21
|
completeObject,
|
|
21
22
|
embedTexts,
|
|
22
23
|
getSlackBotToken,
|
|
23
24
|
standardModelId
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YAUQXZVT.js";
|
|
25
26
|
import {
|
|
26
27
|
isActorUserId,
|
|
27
28
|
parseActorUserId,
|
|
@@ -37,7 +38,7 @@ import {
|
|
|
37
38
|
setSpanAttributes,
|
|
38
39
|
setSpanStatus,
|
|
39
40
|
withSpan
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-TPT6EF7K.js";
|
|
41
42
|
|
|
42
43
|
// src/chat/plugins/agent-hooks.ts
|
|
43
44
|
import {
|
|
@@ -1196,6 +1197,24 @@ function resolveChannelCapabilities(channelId) {
|
|
|
1196
1197
|
|
|
1197
1198
|
// src/chat/plugins/agent-hooks.ts
|
|
1198
1199
|
import { z as z2 } from "zod";
|
|
1200
|
+
|
|
1201
|
+
// src/chat/workspaces/checkout-path.ts
|
|
1202
|
+
function tryWorkspaceRepoCheckoutPath(repo) {
|
|
1203
|
+
const name = repo.split("/").filter(Boolean).at(-1);
|
|
1204
|
+
if (!name || name === "." || name === ".." || !/^[A-Za-z0-9._-]+$/.test(name)) {
|
|
1205
|
+
return void 0;
|
|
1206
|
+
}
|
|
1207
|
+
return `repos/${name}`;
|
|
1208
|
+
}
|
|
1209
|
+
function workspaceRepoCheckoutPath(repo) {
|
|
1210
|
+
const path = tryWorkspaceRepoCheckoutPath(repo);
|
|
1211
|
+
if (!path) {
|
|
1212
|
+
throw new Error(`Invalid repository name for checkout path: ${repo}`);
|
|
1213
|
+
}
|
|
1214
|
+
return path;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
// src/chat/plugins/agent-hooks.ts
|
|
1199
1218
|
var PluginHookDeniedError = class extends Error {
|
|
1200
1219
|
constructor(message) {
|
|
1201
1220
|
super(message);
|
|
@@ -1627,7 +1646,9 @@ function getPluginTools(context, sandbox = createSandboxCapability(context.works
|
|
|
1627
1646
|
switch (context.source.platform) {
|
|
1628
1647
|
case "slack":
|
|
1629
1648
|
if (context.destination.platform !== "slack") {
|
|
1630
|
-
throw new TypeError(
|
|
1649
|
+
throw new TypeError(
|
|
1650
|
+
"Slack plugin context requires Slack destination"
|
|
1651
|
+
);
|
|
1631
1652
|
}
|
|
1632
1653
|
pluginContext = {
|
|
1633
1654
|
...common,
|
|
@@ -1639,7 +1660,9 @@ function getPluginTools(context, sandbox = createSandboxCapability(context.works
|
|
|
1639
1660
|
break;
|
|
1640
1661
|
case "local":
|
|
1641
1662
|
if (context.destination.platform !== "local") {
|
|
1642
|
-
throw new TypeError(
|
|
1663
|
+
throw new TypeError(
|
|
1664
|
+
"Local plugin context requires local destination"
|
|
1665
|
+
);
|
|
1643
1666
|
}
|
|
1644
1667
|
pluginContext = {
|
|
1645
1668
|
...common,
|
|
@@ -2180,7 +2203,12 @@ function normalizeEnv(value) {
|
|
|
2180
2203
|
}
|
|
2181
2204
|
return env;
|
|
2182
2205
|
}
|
|
2183
|
-
function
|
|
2206
|
+
function preparationSignal(inputSignal, ownerSignal) {
|
|
2207
|
+
if (!inputSignal) return ownerSignal;
|
|
2208
|
+
if (!ownerSignal) return inputSignal;
|
|
2209
|
+
return AbortSignal.any([inputSignal, ownerSignal]);
|
|
2210
|
+
}
|
|
2211
|
+
function createSandboxCapability(workspace, ownerSignal) {
|
|
2184
2212
|
return {
|
|
2185
2213
|
root: SANDBOX_WORKSPACE_ROOT,
|
|
2186
2214
|
juniorRoot: `${SANDBOX_WORKSPACE_ROOT}/.junior`,
|
|
@@ -2188,7 +2216,11 @@ function createSandboxCapability(workspace) {
|
|
|
2188
2216
|
return await workspace.readFileToBuffer({ path: filePath }) ?? null;
|
|
2189
2217
|
},
|
|
2190
2218
|
async run(input) {
|
|
2191
|
-
const
|
|
2219
|
+
const signal = preparationSignal(input.signal, ownerSignal);
|
|
2220
|
+
const result = await runNonInteractiveCommand(workspace, {
|
|
2221
|
+
...input,
|
|
2222
|
+
...signal ? { signal } : {}
|
|
2223
|
+
});
|
|
2192
2224
|
return {
|
|
2193
2225
|
exitCode: result.exitCode,
|
|
2194
2226
|
stdout: result.stdout,
|
|
@@ -2243,6 +2275,49 @@ function createPluginHookRunner(input = {}) {
|
|
|
2243
2275
|
}
|
|
2244
2276
|
}
|
|
2245
2277
|
},
|
|
2278
|
+
async prepareWorkspace(sandbox, repos, signal) {
|
|
2279
|
+
const preparers = new Set(
|
|
2280
|
+
loaded.filter((plugin) => plugin.hooks?.workspacePrepare).map((plugin) => plugin.manifest.name)
|
|
2281
|
+
);
|
|
2282
|
+
const unhandledProviders = [
|
|
2283
|
+
...new Set(
|
|
2284
|
+
repos.map((repo) => repo.provider).filter((provider) => !preparers.has(provider))
|
|
2285
|
+
)
|
|
2286
|
+
].sort();
|
|
2287
|
+
if (unhandledProviders.length > 0) {
|
|
2288
|
+
throw new Error(
|
|
2289
|
+
`Workspace repository providers have no preparation hook: ${unhandledProviders.join(", ")}`
|
|
2290
|
+
);
|
|
2291
|
+
}
|
|
2292
|
+
const selectedRepos = repos.map((repo) => ({
|
|
2293
|
+
provider: repo.provider,
|
|
2294
|
+
repo: repo.repo,
|
|
2295
|
+
path: workspaceRepoCheckoutPath(repo.repo)
|
|
2296
|
+
}));
|
|
2297
|
+
const paths = /* @__PURE__ */ new Set();
|
|
2298
|
+
for (const entry of selectedRepos) {
|
|
2299
|
+
const key = entry.path.toLowerCase();
|
|
2300
|
+
if (paths.has(key)) {
|
|
2301
|
+
throw new Error(`Workspace checkout path collision: ${entry.path}`);
|
|
2302
|
+
}
|
|
2303
|
+
paths.add(key);
|
|
2304
|
+
}
|
|
2305
|
+
const sandboxCapability = createSandboxCapability(sandbox, signal);
|
|
2306
|
+
for (const plugin of loaded) {
|
|
2307
|
+
const hook = plugin.hooks?.workspacePrepare;
|
|
2308
|
+
if (!hook) continue;
|
|
2309
|
+
const selected = selectedRepos.filter((repo) => repo.provider === plugin.manifest.name).map((repo) => ({
|
|
2310
|
+
path: repo.path,
|
|
2311
|
+
repo: repo.repo
|
|
2312
|
+
}));
|
|
2313
|
+
if (selected.length === 0) continue;
|
|
2314
|
+
await hook({
|
|
2315
|
+
...basePluginContext(plugin),
|
|
2316
|
+
repos: selected,
|
|
2317
|
+
sandbox: sandboxCapability
|
|
2318
|
+
});
|
|
2319
|
+
}
|
|
2320
|
+
},
|
|
2246
2321
|
async prepareSandbox(sandbox) {
|
|
2247
2322
|
const sandboxCapability = createSandboxCapability(sandbox);
|
|
2248
2323
|
for (const plugin of loaded) {
|
|
@@ -2356,6 +2431,8 @@ export {
|
|
|
2356
2431
|
bindEventTaskCredentialSubject,
|
|
2357
2432
|
verifyEventTaskCredentialSubject,
|
|
2358
2433
|
resolveChannelCapabilities,
|
|
2434
|
+
tryWorkspaceRepoCheckoutPath,
|
|
2435
|
+
workspaceRepoCheckoutPath,
|
|
2359
2436
|
PluginHookDeniedError,
|
|
2360
2437
|
validatePlugins,
|
|
2361
2438
|
setPlugins,
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAgentRun
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-IX4XI42N.js";
|
|
4
|
+
import "../chunk-XY2IVIAY.js";
|
|
5
5
|
import "../chunk-DIB4GX3G.js";
|
|
6
6
|
import {
|
|
7
7
|
createAgentRunner
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-RTPJRLOP.js";
|
|
9
9
|
import "../chunk-RF6J3DIO.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-3OZNFCPR.js";
|
|
11
11
|
import "../chunk-7MA4HV4W.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-VRS6WDK5.js";
|
|
13
|
+
import "../chunk-THS4CKN4.js";
|
|
14
|
+
import "../chunk-FEIHINKR.js";
|
|
15
|
+
import "../chunk-ICJ3KCA2.js";
|
|
16
|
+
import "../chunk-MXFL7LNZ.js";
|
|
17
17
|
import "../chunk-3Y47VMHV.js";
|
|
18
18
|
import "../chunk-PDO5BLNM.js";
|
|
19
19
|
import "../chunk-UIE3R5XU.js";
|
|
20
20
|
import {
|
|
21
21
|
loadAppPluginSet
|
|
22
22
|
} from "../chunk-Y2CM7HXH.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-ZF6IC27P.js";
|
|
24
|
+
import "../chunk-JI5EPI3O.js";
|
|
25
|
+
import "../chunk-ATWHPSMF.js";
|
|
26
|
+
import "../chunk-BVREIWBD.js";
|
|
27
|
+
import "../chunk-TPDNZCZU.js";
|
|
28
|
+
import "../chunk-YAUQXZVT.js";
|
|
29
29
|
import "../chunk-VFUK3X5B.js";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-3T7RJVDJ.js";
|
|
31
|
+
import "../chunk-4P2XNVTO.js";
|
|
32
|
+
import "../chunk-RK7KPI6G.js";
|
|
33
|
+
import "../chunk-O4IK4O7C.js";
|
|
34
34
|
import "../chunk-BDUENQD3.js";
|
|
35
35
|
import "../chunk-V7YE4WCP.js";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-TPT6EF7K.js";
|
|
37
37
|
import "../chunk-6GWA276C.js";
|
|
38
38
|
import "../chunk-OOUNJNMR.js";
|
|
39
39
|
import "../chunk-H4HBKISO.js";
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-ZDKTZG3G.js";
|
|
41
|
+
import "../chunk-2FBPN2Y4.js";
|
|
42
42
|
import "../chunk-MLKGABMK.js";
|
|
43
43
|
|
|
44
44
|
// src/cli/chat.ts
|
|
@@ -161,10 +161,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
161
161
|
databaseModule
|
|
162
162
|
] = await Promise.all([
|
|
163
163
|
import("../plugins-HW4VWW6G.js"),
|
|
164
|
-
import("../agent-hooks-
|
|
165
|
-
import("../catalog-runtime-
|
|
166
|
-
import("../validation-
|
|
167
|
-
import("../db-
|
|
164
|
+
import("../agent-hooks-6IX5CV7G.js"),
|
|
165
|
+
import("../catalog-runtime-NEPZNTOM.js"),
|
|
166
|
+
import("../validation-HLHEQDEK.js"),
|
|
167
|
+
import("../db-6VBMHVW2.js")
|
|
168
168
|
]);
|
|
169
169
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
170
170
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -228,16 +228,16 @@ function localDevServerUrl() {
|
|
|
228
228
|
async function prepareLocalChatRun(io, pluginSet) {
|
|
229
229
|
defaultStateAdapterForLocalChat();
|
|
230
230
|
await configureLocalChatPlugins(pluginSet);
|
|
231
|
-
const { setExperimentalFeatures } = await import("../experimental-
|
|
231
|
+
const { setExperimentalFeatures } = await import("../experimental-XVDOSRBS.js");
|
|
232
232
|
setExperimentalFeatures({ subagents: true });
|
|
233
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
234
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
233
|
+
const { runLocalAgentTurn } = await import("../runner-6ONEB6TQ.js");
|
|
234
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-5NCCUIM2.js");
|
|
235
235
|
const { createLocalOAuthState } = await import("../oauth-relay-3ZU72UGL.js");
|
|
236
236
|
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-U3ZX7C5W.js");
|
|
237
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
238
|
-
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-
|
|
237
|
+
const { bindSpawnAgent } = await import("../spawn-RFMBQ6B3.js");
|
|
238
|
+
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-VIEFYTFG.js");
|
|
239
239
|
const { createLocalConversationWork } = await import("../conversation-work-KATFHLG3.js");
|
|
240
|
-
const { processConversationWork } = await import("../worker-
|
|
240
|
+
const { processConversationWork } = await import("../worker-MRSKPKQZ.js");
|
|
241
241
|
let agentRunner;
|
|
242
242
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
243
243
|
if (!agentRunner) {
|
package/dist/cli/check.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-4P2XNVTO.js";
|
|
4
|
+
import "../chunk-RK7KPI6G.js";
|
|
5
5
|
import {
|
|
6
6
|
parseInlinePluginManifest,
|
|
7
7
|
parsePluginManifest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-O4IK4O7C.js";
|
|
9
9
|
import "../chunk-BDUENQD3.js";
|
|
10
10
|
import "../chunk-V7YE4WCP.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-TPT6EF7K.js";
|
|
12
12
|
import "../chunk-6GWA276C.js";
|
|
13
13
|
import "../chunk-OOUNJNMR.js";
|
|
14
14
|
import "../chunk-H4HBKISO.js";
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
|
|
17
17
|
JUNIOR_HEARTBEAT_ROUTE,
|
|
18
18
|
LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-ZDKTZG3G.js";
|
|
20
|
+
import "../chunk-2FBPN2Y4.js";
|
|
21
21
|
import "../chunk-MLKGABMK.js";
|
|
22
22
|
|
|
23
23
|
// 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-GCLHNRMU.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-ZF6IC27P.js";
|
|
18
18
|
import {
|
|
19
19
|
getDb
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-JI5EPI3O.js";
|
|
21
|
+
import "../chunk-ATWHPSMF.js";
|
|
22
|
+
import "../chunk-BVREIWBD.js";
|
|
23
|
+
import "../chunk-TPDNZCZU.js";
|
|
24
|
+
import "../chunk-YAUQXZVT.js";
|
|
25
25
|
import "../chunk-VFUK3X5B.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-3T7RJVDJ.js";
|
|
27
27
|
import {
|
|
28
28
|
pluginCatalogRuntime
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import "../chunk-
|
|
29
|
+
} from "../chunk-RK7KPI6G.js";
|
|
30
|
+
import "../chunk-O4IK4O7C.js";
|
|
31
31
|
import "../chunk-BDUENQD3.js";
|
|
32
32
|
import "../chunk-V7YE4WCP.js";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-TPT6EF7K.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-ZDKTZG3G.js";
|
|
38
|
+
import "../chunk-2FBPN2Y4.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-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-THS4CKN4.js";
|
|
5
|
+
import "../chunk-BVREIWBD.js";
|
|
6
6
|
import {
|
|
7
7
|
disconnectStateAdapter
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-TPDNZCZU.js";
|
|
9
|
+
import "../chunk-YAUQXZVT.js";
|
|
10
|
+
import "../chunk-3T7RJVDJ.js";
|
|
11
11
|
import {
|
|
12
12
|
pluginCatalogRuntime
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-RK7KPI6G.js";
|
|
14
|
+
import "../chunk-O4IK4O7C.js";
|
|
15
15
|
import "../chunk-BDUENQD3.js";
|
|
16
16
|
import "../chunk-V7YE4WCP.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-TPT6EF7K.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-ZDKTZG3G.js";
|
|
22
|
+
import "../chunk-2FBPN2Y4.js";
|
|
23
23
|
import "../chunk-MLKGABMK.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/snapshot-create.ts
|
package/dist/cli/upgrade.js
CHANGED
|
@@ -8,23 +8,23 @@ import {
|
|
|
8
8
|
} from "../chunk-Y2CM7HXH.js";
|
|
9
9
|
import {
|
|
10
10
|
createJuniorSqlExecutor
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-ATWHPSMF.js";
|
|
12
12
|
import {
|
|
13
13
|
getChatConfig
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-YAUQXZVT.js";
|
|
15
15
|
import "../chunk-VFUK3X5B.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-3T7RJVDJ.js";
|
|
17
17
|
import {
|
|
18
18
|
createPluginCatalogRuntime
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-O4IK4O7C.js";
|
|
20
20
|
import "../chunk-BDUENQD3.js";
|
|
21
21
|
import "../chunk-V7YE4WCP.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-TPT6EF7K.js";
|
|
23
23
|
import "../chunk-6GWA276C.js";
|
|
24
24
|
import "../chunk-OOUNJNMR.js";
|
|
25
25
|
import "../chunk-H4HBKISO.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-ZDKTZG3G.js";
|
|
27
|
+
import "../chunk-2FBPN2Y4.js";
|
|
28
28
|
import "../chunk-MLKGABMK.js";
|
|
29
29
|
|
|
30
30
|
// src/chat/conversations/sql/migrations.ts
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/** Named recipe used to prepare a reusable Sandbox. */
|
|
2
|
+
export declare const juniorWorkspaces: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3
|
+
name: "junior_workspaces";
|
|
4
|
+
schema: undefined;
|
|
5
|
+
columns: {
|
|
6
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
7
|
+
name: "id";
|
|
8
|
+
tableName: "junior_workspaces";
|
|
9
|
+
dataType: "string";
|
|
10
|
+
columnType: "PgText";
|
|
11
|
+
data: string;
|
|
12
|
+
driverParam: string;
|
|
13
|
+
notNull: true;
|
|
14
|
+
hasDefault: false;
|
|
15
|
+
isPrimaryKey: true;
|
|
16
|
+
isAutoincrement: false;
|
|
17
|
+
hasRuntimeDefault: false;
|
|
18
|
+
enumValues: [string, ...string[]];
|
|
19
|
+
baseColumn: never;
|
|
20
|
+
identity: undefined;
|
|
21
|
+
generated: undefined;
|
|
22
|
+
}, {}, {}>;
|
|
23
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
24
|
+
name: "name";
|
|
25
|
+
tableName: "junior_workspaces";
|
|
26
|
+
dataType: "string";
|
|
27
|
+
columnType: "PgText";
|
|
28
|
+
data: string;
|
|
29
|
+
driverParam: string;
|
|
30
|
+
notNull: true;
|
|
31
|
+
hasDefault: false;
|
|
32
|
+
isPrimaryKey: false;
|
|
33
|
+
isAutoincrement: false;
|
|
34
|
+
hasRuntimeDefault: false;
|
|
35
|
+
enumValues: [string, ...string[]];
|
|
36
|
+
baseColumn: never;
|
|
37
|
+
identity: undefined;
|
|
38
|
+
generated: undefined;
|
|
39
|
+
}, {}, {}>;
|
|
40
|
+
setupScript: import("drizzle-orm/pg-core").PgColumn<{
|
|
41
|
+
name: "setup_script";
|
|
42
|
+
tableName: "junior_workspaces";
|
|
43
|
+
dataType: "string";
|
|
44
|
+
columnType: "PgText";
|
|
45
|
+
data: string;
|
|
46
|
+
driverParam: string;
|
|
47
|
+
notNull: true;
|
|
48
|
+
hasDefault: true;
|
|
49
|
+
isPrimaryKey: false;
|
|
50
|
+
isAutoincrement: false;
|
|
51
|
+
hasRuntimeDefault: false;
|
|
52
|
+
enumValues: [string, ...string[]];
|
|
53
|
+
baseColumn: never;
|
|
54
|
+
identity: undefined;
|
|
55
|
+
generated: undefined;
|
|
56
|
+
}, {}, {}>;
|
|
57
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
58
|
+
name: string;
|
|
59
|
+
tableName: "junior_workspaces";
|
|
60
|
+
dataType: "date";
|
|
61
|
+
columnType: "PgTimestamp";
|
|
62
|
+
data: Date;
|
|
63
|
+
driverParam: string;
|
|
64
|
+
notNull: true;
|
|
65
|
+
hasDefault: false;
|
|
66
|
+
isPrimaryKey: false;
|
|
67
|
+
isAutoincrement: false;
|
|
68
|
+
hasRuntimeDefault: false;
|
|
69
|
+
enumValues: undefined;
|
|
70
|
+
baseColumn: never;
|
|
71
|
+
identity: undefined;
|
|
72
|
+
generated: undefined;
|
|
73
|
+
}, {}, {}>;
|
|
74
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
75
|
+
name: string;
|
|
76
|
+
tableName: "junior_workspaces";
|
|
77
|
+
dataType: "date";
|
|
78
|
+
columnType: "PgTimestamp";
|
|
79
|
+
data: Date;
|
|
80
|
+
driverParam: string;
|
|
81
|
+
notNull: true;
|
|
82
|
+
hasDefault: false;
|
|
83
|
+
isPrimaryKey: false;
|
|
84
|
+
isAutoincrement: false;
|
|
85
|
+
hasRuntimeDefault: false;
|
|
86
|
+
enumValues: undefined;
|
|
87
|
+
baseColumn: never;
|
|
88
|
+
identity: undefined;
|
|
89
|
+
generated: undefined;
|
|
90
|
+
}, {}, {}>;
|
|
91
|
+
};
|
|
92
|
+
dialect: "pg";
|
|
93
|
+
}>;
|
|
94
|
+
/** Repository included in one Workspace recipe. */
|
|
95
|
+
export declare const juniorWorkspaceRepos: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
96
|
+
name: "junior_workspace_repos";
|
|
97
|
+
schema: undefined;
|
|
98
|
+
columns: {
|
|
99
|
+
workspaceId: import("drizzle-orm/pg-core").PgColumn<{
|
|
100
|
+
name: "workspace_id";
|
|
101
|
+
tableName: "junior_workspace_repos";
|
|
102
|
+
dataType: "string";
|
|
103
|
+
columnType: "PgText";
|
|
104
|
+
data: string;
|
|
105
|
+
driverParam: string;
|
|
106
|
+
notNull: true;
|
|
107
|
+
hasDefault: false;
|
|
108
|
+
isPrimaryKey: false;
|
|
109
|
+
isAutoincrement: false;
|
|
110
|
+
hasRuntimeDefault: false;
|
|
111
|
+
enumValues: [string, ...string[]];
|
|
112
|
+
baseColumn: never;
|
|
113
|
+
identity: undefined;
|
|
114
|
+
generated: undefined;
|
|
115
|
+
}, {}, {}>;
|
|
116
|
+
provider: import("drizzle-orm/pg-core").PgColumn<{
|
|
117
|
+
name: "provider";
|
|
118
|
+
tableName: "junior_workspace_repos";
|
|
119
|
+
dataType: "string";
|
|
120
|
+
columnType: "PgText";
|
|
121
|
+
data: string;
|
|
122
|
+
driverParam: string;
|
|
123
|
+
notNull: true;
|
|
124
|
+
hasDefault: false;
|
|
125
|
+
isPrimaryKey: false;
|
|
126
|
+
isAutoincrement: false;
|
|
127
|
+
hasRuntimeDefault: false;
|
|
128
|
+
enumValues: [string, ...string[]];
|
|
129
|
+
baseColumn: never;
|
|
130
|
+
identity: undefined;
|
|
131
|
+
generated: undefined;
|
|
132
|
+
}, {}, {}>;
|
|
133
|
+
repo: import("drizzle-orm/pg-core").PgColumn<{
|
|
134
|
+
name: "repo";
|
|
135
|
+
tableName: "junior_workspace_repos";
|
|
136
|
+
dataType: "string";
|
|
137
|
+
columnType: "PgText";
|
|
138
|
+
data: string;
|
|
139
|
+
driverParam: string;
|
|
140
|
+
notNull: true;
|
|
141
|
+
hasDefault: false;
|
|
142
|
+
isPrimaryKey: false;
|
|
143
|
+
isAutoincrement: false;
|
|
144
|
+
hasRuntimeDefault: false;
|
|
145
|
+
enumValues: [string, ...string[]];
|
|
146
|
+
baseColumn: never;
|
|
147
|
+
identity: undefined;
|
|
148
|
+
generated: undefined;
|
|
149
|
+
}, {}, {}>;
|
|
150
|
+
isPrimary: import("drizzle-orm/pg-core").PgColumn<{
|
|
151
|
+
name: "is_primary";
|
|
152
|
+
tableName: "junior_workspace_repos";
|
|
153
|
+
dataType: "boolean";
|
|
154
|
+
columnType: "PgBoolean";
|
|
155
|
+
data: boolean;
|
|
156
|
+
driverParam: boolean;
|
|
157
|
+
notNull: true;
|
|
158
|
+
hasDefault: true;
|
|
159
|
+
isPrimaryKey: false;
|
|
160
|
+
isAutoincrement: false;
|
|
161
|
+
hasRuntimeDefault: false;
|
|
162
|
+
enumValues: undefined;
|
|
163
|
+
baseColumn: never;
|
|
164
|
+
identity: undefined;
|
|
165
|
+
generated: undefined;
|
|
166
|
+
}, {}, {}>;
|
|
167
|
+
};
|
|
168
|
+
dialect: "pg";
|
|
169
|
+
}>;
|