@sentry/junior 0.12.1 → 0.14.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 +1 -1
- package/dist/app.js +11 -17
- package/dist/{chunk-Y2LVMCQ3.js → chunk-5JHLDXBN.js} +38 -591
- package/dist/{chunk-SCG4PCEG.js → chunk-ESPIOJPM.js} +11 -2
- package/dist/{chunk-IH4T747D.js → chunk-KTBQH6L5.js} +4 -2
- package/dist/chunk-RBB2MZAN.js +342 -0
- package/dist/cli/check.js +3 -2
- package/dist/cli/init.js +42 -11
- package/dist/cli/snapshot-warmup.js +3 -2
- package/dist/nitro.d.ts +13 -0
- package/dist/nitro.js +69 -0
- package/dist/vercel.d.ts +2 -8
- package/dist/vercel.js +12 -5
- package/package.json +3 -1
- package/dist/chunk-ZLVM4R7R.js +0 -25
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ export default app;
|
|
|
25
25
|
|
|
26
26
|
Run `junior init my-bot` to scaffold a complete project including `vercel.json` for Vercel deployment.
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Use `createApp({ pluginPackages: [...] })` to declare which plugin packages to load at runtime.
|
|
29
29
|
|
|
30
30
|
## Full docs
|
|
31
31
|
|
package/dist/app.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
logCapabilityCatalogLoadedOnce,
|
|
8
8
|
parseSkillInvocation,
|
|
9
9
|
stripFrontmatter
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KTBQH6L5.js";
|
|
11
11
|
import {
|
|
12
12
|
SANDBOX_SKILLS_ROOT,
|
|
13
13
|
SANDBOX_WORKSPACE_ROOT,
|
|
@@ -26,20 +26,17 @@ import {
|
|
|
26
26
|
runNonInteractiveCommand,
|
|
27
27
|
sandboxSkillDir,
|
|
28
28
|
toOptionalTrimmed
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ESPIOJPM.js";
|
|
30
30
|
import {
|
|
31
31
|
CredentialUnavailableError,
|
|
32
|
-
aboutPathCandidates,
|
|
33
32
|
buildOAuthTokenRequest,
|
|
34
33
|
createPluginBroker,
|
|
35
34
|
createRequestContext,
|
|
36
|
-
discoverInstalledPluginPackageContent,
|
|
37
35
|
extractGenAiUsageAttributes,
|
|
38
36
|
getPluginDefinition,
|
|
39
37
|
getPluginMcpProviders,
|
|
40
38
|
getPluginOAuthConfig,
|
|
41
39
|
getPluginProviders,
|
|
42
|
-
homeDir,
|
|
43
40
|
isPluginProvider,
|
|
44
41
|
isRecord,
|
|
45
42
|
logError,
|
|
@@ -50,17 +47,22 @@ import {
|
|
|
50
47
|
resolveAuthTokenPlaceholder,
|
|
51
48
|
resolveErrorReference,
|
|
52
49
|
serializeGenAiAttribute,
|
|
53
|
-
setPluginPackages,
|
|
54
50
|
setSpanAttributes,
|
|
55
51
|
setSpanStatus,
|
|
56
52
|
setTags,
|
|
57
|
-
soulPathCandidates,
|
|
58
53
|
toOptionalNumber,
|
|
59
54
|
toOptionalString,
|
|
60
55
|
withContext,
|
|
61
56
|
withSpan
|
|
62
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-5JHLDXBN.js";
|
|
63
58
|
import "./chunk-Z3YD6NHK.js";
|
|
59
|
+
import {
|
|
60
|
+
aboutPathCandidates,
|
|
61
|
+
discoverInstalledPluginPackageContent,
|
|
62
|
+
homeDir,
|
|
63
|
+
setPluginPackages,
|
|
64
|
+
soulPathCandidates
|
|
65
|
+
} from "./chunk-RBB2MZAN.js";
|
|
64
66
|
import "./chunk-2KG3PWR4.js";
|
|
65
67
|
|
|
66
68
|
// src/app.ts
|
|
@@ -11844,12 +11846,6 @@ function createReplyToThread(deps) {
|
|
|
11844
11846
|
}
|
|
11845
11847
|
} else {
|
|
11846
11848
|
await streamedReplyPromise;
|
|
11847
|
-
if (reply.diagnostics.outcome !== "success" && reply.text.trim().length > 0) {
|
|
11848
|
-
await postThreadReply(
|
|
11849
|
-
buildSlackOutputMessage(reply.text),
|
|
11850
|
-
"thread_reply_after_stream_failure"
|
|
11851
|
-
);
|
|
11852
|
-
}
|
|
11853
11849
|
}
|
|
11854
11850
|
}
|
|
11855
11851
|
const shouldPersistArtifacts = Object.keys(artifactStatePatch).length > 0;
|
|
@@ -12765,9 +12761,7 @@ async function createApp(options) {
|
|
|
12765
12761
|
return c.text("Internal Server Error", 500);
|
|
12766
12762
|
});
|
|
12767
12763
|
app.get("/health", () => GET2());
|
|
12768
|
-
|
|
12769
|
-
app.get("/__junior/discovery", () => GET());
|
|
12770
|
-
}
|
|
12764
|
+
app.get("/__junior/discovery", () => GET());
|
|
12771
12765
|
app.get("/oauth/callback/mcp/:provider", (c) => {
|
|
12772
12766
|
return GET3(c.req.raw, c.req.param("provider"), waitUntil);
|
|
12773
12767
|
});
|