@sentry/junior 0.118.0 → 0.120.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-J2FB7XD6.js → agent-hooks-5DDPWRYO.js} +8 -8
- package/dist/api/conversations/detail.d.ts +17 -0
- package/dist/api/conversations/event-list.d.ts +17 -0
- package/dist/api/schema/conversation.d.ts +68 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +103 -82
- package/dist/app.js +24 -24
- package/dist/build/copy-build-content.d.ts +2 -2
- package/dist/{catalog-runtime-UHHLU53I.js → catalog-runtime-5KR5XBMJ.js} +7 -7
- package/dist/chat/discovery.d.ts +2 -0
- package/dist/chat/mcp/tool-manager.d.ts +14 -1
- package/dist/chat/plugins/types.d.ts +3 -9
- package/dist/chat/plugins/user-pages.d.ts +2 -1
- package/dist/chat/slack/tools/canvas/api.d.ts +2 -9
- package/dist/chat/slack/tools/canvas/markdown.d.ts +9 -0
- package/dist/{chunk-GT2ZUALJ.js → chunk-24B5R6OU.js} +92 -6
- package/dist/{chunk-L72GDKSN.js → chunk-6WX5SPI3.js} +1 -1
- package/dist/{chunk-3N3FMCKN.js → chunk-ALAKN7LR.js} +1 -1
- package/dist/{chunk-MLZFK4KP.js → chunk-ALYQOZG7.js} +1 -1
- package/dist/{chunk-6BGUAOYP.js → chunk-BHXW734F.js} +13 -7
- package/dist/{chunk-4LPPH7Y6.js → chunk-DJDGDJDF.js} +4 -4
- package/dist/{chunk-HWUBBHLK.js → chunk-DMKHRBI6.js} +4 -3
- package/dist/{chunk-QWCF4RAC.js → chunk-DWOH57FW.js} +1 -1
- package/dist/{chunk-7GADTCNS.js → chunk-EIVE6GL4.js} +3 -3
- package/dist/{chunk-6K2QE2UI.js → chunk-ERYVNWNE.js} +250 -37
- package/dist/{chunk-UXLYAVYL.js → chunk-GNNV3UTY.js} +1 -1
- package/dist/chunk-H4HBKISO.js +417 -0
- package/dist/{chunk-FXOYURO4.js → chunk-HDFGNU5E.js} +1 -0
- package/dist/{chunk-PJPKHGLG.js → chunk-JQWP6V22.js} +4 -11
- package/dist/{chunk-KC5EE27Y.js → chunk-M243JMZH.js} +2 -2
- package/dist/{chunk-7SM3P4XR.js → chunk-O2ULQJWR.js} +82 -1
- package/dist/{chunk-B3IT5END.js → chunk-OOUNJNMR.js} +16 -152
- package/dist/{chunk-HN6LFYG3.js → chunk-Q3RL6A4E.js} +2 -2
- package/dist/{chunk-3MUSSFMP.js → chunk-QOQPPRFS.js} +221 -14
- package/dist/{chunk-S6R23MFB.js → chunk-TKUCRFNX.js} +12 -225
- package/dist/{chunk-PWRFTDTY.js → chunk-VURFJVFH.js} +2 -2
- package/dist/{chunk-3LGCVRBQ.js → chunk-XAI2HNAY.js} +9 -5
- package/dist/{chunk-4SOQPUF4.js → chunk-YEAOUT5W.js} +1 -1
- package/dist/cli/chat.js +24 -24
- package/dist/cli/check.js +8 -8
- package/dist/cli/init.js +2 -2
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +11 -11
- package/dist/cli/upgrade.js +8 -8
- package/dist/{db-PMRHFSYL.js → db-T4ZY64PB.js} +6 -6
- package/dist/{discovery-RMHYSRL7.js → discovery-GUFTFBTL.js} +3 -1
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +24 -7
- package/dist/{oauth-callback-server-QJUC7S4X.js → oauth-callback-server-LQ6DFI26.js} +17 -17
- package/dist/{runner-PZMV6JQW.js → runner-D3ZU6TJH.js} +10 -10
- package/dist/{skills-W4JETYSV.js → skills-JMXY7LIY.js} +8 -8
- package/dist/{validation-IJLNHZSU.js → validation-OEPJS7JX.js} +8 -8
- package/dist/version.js +1 -1
- package/package.json +8 -7
- package/skills/jr-rpc/SKILL.md +40 -0
- package/dist/chunk-3V7OFJZC.js +0 -264
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getInterruptionMarker
|
|
3
|
-
} from "./chunk-PJPKHGLG.js";
|
|
4
1
|
import {
|
|
5
2
|
SlackActionError,
|
|
6
3
|
createPluginLogger,
|
|
@@ -9,29 +6,29 @@ import {
|
|
|
9
6
|
isDmChannel,
|
|
10
7
|
normalizeSlackConversationId,
|
|
11
8
|
withSlackRetries
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-24B5R6OU.js";
|
|
13
10
|
import {
|
|
14
11
|
getDb,
|
|
15
12
|
parseDestination
|
|
16
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-M243JMZH.js";
|
|
17
14
|
import {
|
|
18
15
|
acquireActiveLock,
|
|
19
16
|
getStateAdapter,
|
|
20
17
|
sleep
|
|
21
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ALAKN7LR.js";
|
|
22
19
|
import {
|
|
23
20
|
normalizeSlackEmojiName
|
|
24
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VURFJVFH.js";
|
|
25
22
|
import {
|
|
26
23
|
pluginCatalogRuntime
|
|
27
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GNNV3UTY.js";
|
|
28
25
|
import {
|
|
29
26
|
fetchWithBoundedOAuthErrorBodies
|
|
30
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XAI2HNAY.js";
|
|
31
28
|
import {
|
|
32
29
|
logInfo,
|
|
33
30
|
logWarn
|
|
34
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ALYQOZG7.js";
|
|
35
32
|
import {
|
|
36
33
|
isRecord
|
|
37
34
|
} from "./chunk-OB42YVAE.js";
|
|
@@ -1714,227 +1711,12 @@ async function issuePluginCredential(input) {
|
|
|
1714
1711
|
return parseCredentialResult(result, plugin.manifest.name);
|
|
1715
1712
|
}
|
|
1716
1713
|
|
|
1717
|
-
// src/chat/slack/output.ts
|
|
1718
|
-
var MAX_INLINE_CHARS = 2200;
|
|
1719
|
-
var MAX_INLINE_LINES = 45;
|
|
1720
|
-
var CONTINUED_MARKER = "\n\n[Continued below]";
|
|
1721
|
-
function countSlackLines(text) {
|
|
1722
|
-
if (!text) {
|
|
1723
|
-
return 0;
|
|
1724
|
-
}
|
|
1725
|
-
return text.split("\n").length;
|
|
1726
|
-
}
|
|
1727
|
-
function fitsInlineBudget(text, maxChars = MAX_INLINE_CHARS, maxLines = MAX_INLINE_LINES) {
|
|
1728
|
-
return text.length <= maxChars && countSlackLines(text) <= maxLines;
|
|
1729
|
-
}
|
|
1730
|
-
function findSplitIndex(text, maxChars) {
|
|
1731
|
-
if (text.length <= maxChars) {
|
|
1732
|
-
return text.length;
|
|
1733
|
-
}
|
|
1734
|
-
const bounded = text.slice(0, maxChars);
|
|
1735
|
-
const newlineIndex = bounded.lastIndexOf("\n");
|
|
1736
|
-
if (newlineIndex > 0) {
|
|
1737
|
-
return newlineIndex;
|
|
1738
|
-
}
|
|
1739
|
-
const spaceIndex = bounded.lastIndexOf(" ");
|
|
1740
|
-
if (spaceIndex > 0) {
|
|
1741
|
-
return spaceIndex;
|
|
1742
|
-
}
|
|
1743
|
-
return maxChars;
|
|
1744
|
-
}
|
|
1745
|
-
function splitByLineBudget(text, maxLines) {
|
|
1746
|
-
if (maxLines <= 0) {
|
|
1747
|
-
return "";
|
|
1748
|
-
}
|
|
1749
|
-
const lines = text.split("\n");
|
|
1750
|
-
if (lines.length <= maxLines) {
|
|
1751
|
-
return text;
|
|
1752
|
-
}
|
|
1753
|
-
return lines.slice(0, maxLines).join("\n");
|
|
1754
|
-
}
|
|
1755
|
-
function reserveInlineBudgetForSuffix(suffix, maxChars = MAX_INLINE_CHARS, maxLines = MAX_INLINE_LINES) {
|
|
1756
|
-
return {
|
|
1757
|
-
maxChars: Math.max(1, maxChars - suffix.length),
|
|
1758
|
-
maxLines: Math.max(1, maxLines - Math.max(0, countSlackLines(suffix) - 1))
|
|
1759
|
-
};
|
|
1760
|
-
}
|
|
1761
|
-
function forceSplitBudget(text, budget) {
|
|
1762
|
-
const lineCount = countSlackLines(text);
|
|
1763
|
-
return {
|
|
1764
|
-
maxChars: text.length <= budget.maxChars ? Math.max(1, text.length - 1) : budget.maxChars,
|
|
1765
|
-
maxLines: lineCount <= budget.maxLines ? Math.max(1, lineCount - 1) : budget.maxLines
|
|
1766
|
-
};
|
|
1767
|
-
}
|
|
1768
|
-
function getFenceContinuation(text) {
|
|
1769
|
-
let open;
|
|
1770
|
-
for (const line of text.split("\n")) {
|
|
1771
|
-
const trimmed = line.trimStart();
|
|
1772
|
-
const openerMatch = trimmed.match(/^(`{3,}|~{3,})(.*)$/);
|
|
1773
|
-
if (!openerMatch) {
|
|
1774
|
-
continue;
|
|
1775
|
-
}
|
|
1776
|
-
if (!open) {
|
|
1777
|
-
open = {
|
|
1778
|
-
fence: openerMatch[1],
|
|
1779
|
-
openerLine: trimmed
|
|
1780
|
-
};
|
|
1781
|
-
continue;
|
|
1782
|
-
}
|
|
1783
|
-
if (new RegExp(`^${open.fence}\\s*$`).test(trimmed)) {
|
|
1784
|
-
open = void 0;
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
if (!open) {
|
|
1788
|
-
return null;
|
|
1789
|
-
}
|
|
1790
|
-
return {
|
|
1791
|
-
closeSuffix: text.endsWith("\n") ? open.fence : `
|
|
1792
|
-
${open.fence}`,
|
|
1793
|
-
reopenPrefix: `${open.openerLine}
|
|
1794
|
-
`
|
|
1795
|
-
};
|
|
1796
|
-
}
|
|
1797
|
-
function appendSlackSuffix(text, marker) {
|
|
1798
|
-
const carryover = getFenceContinuation(text);
|
|
1799
|
-
return `${text}${carryover?.closeSuffix ?? ""}${marker}`;
|
|
1800
|
-
}
|
|
1801
|
-
function stripTrailingContinuationMarker(text) {
|
|
1802
|
-
return text.endsWith(CONTINUED_MARKER) ? text.slice(0, -CONTINUED_MARKER.length) : text;
|
|
1803
|
-
}
|
|
1804
|
-
function takeSlackContinuationChunk(text, budget) {
|
|
1805
|
-
let { prefix, rest } = takeSlackInlinePrefix(text, budget);
|
|
1806
|
-
if (!rest) {
|
|
1807
|
-
({ prefix, rest } = takeSlackInlinePrefix(
|
|
1808
|
-
text,
|
|
1809
|
-
forceSplitBudget(text, budget)
|
|
1810
|
-
));
|
|
1811
|
-
}
|
|
1812
|
-
let carryover = rest ? getFenceContinuation(prefix) : null;
|
|
1813
|
-
if (!carryover) {
|
|
1814
|
-
return { prefix, rest };
|
|
1815
|
-
}
|
|
1816
|
-
const carryoverBudget = reserveInlineBudgetForSuffix(
|
|
1817
|
-
`${carryover.closeSuffix}${CONTINUED_MARKER}`
|
|
1818
|
-
);
|
|
1819
|
-
({ prefix, rest } = takeSlackInlinePrefix(text, carryoverBudget));
|
|
1820
|
-
if (!rest) {
|
|
1821
|
-
({ prefix, rest } = takeSlackInlinePrefix(
|
|
1822
|
-
text,
|
|
1823
|
-
forceSplitBudget(text, carryoverBudget)
|
|
1824
|
-
));
|
|
1825
|
-
}
|
|
1826
|
-
carryover = rest ? getFenceContinuation(prefix) : null;
|
|
1827
|
-
if (!carryover) {
|
|
1828
|
-
return { prefix, rest };
|
|
1829
|
-
}
|
|
1830
|
-
return {
|
|
1831
|
-
prefix,
|
|
1832
|
-
rest: `${carryover.reopenPrefix}${rest}`
|
|
1833
|
-
};
|
|
1834
|
-
}
|
|
1835
|
-
function takeSlackContinuationPrefix(text, options) {
|
|
1836
|
-
const budget = {
|
|
1837
|
-
maxChars: options?.maxChars ?? getSlackContinuationBudget().maxChars,
|
|
1838
|
-
maxLines: options?.maxLines ?? getSlackContinuationBudget().maxLines
|
|
1839
|
-
};
|
|
1840
|
-
const { prefix, rest } = (() => {
|
|
1841
|
-
if (options?.forceSplit) {
|
|
1842
|
-
return takeSlackContinuationChunk(text, budget);
|
|
1843
|
-
}
|
|
1844
|
-
const initial = takeSlackInlinePrefix(text, budget);
|
|
1845
|
-
return initial.rest ? takeSlackContinuationChunk(text, budget) : initial;
|
|
1846
|
-
})();
|
|
1847
|
-
return {
|
|
1848
|
-
prefix,
|
|
1849
|
-
renderedPrefix: rest ? appendSlackSuffix(prefix, CONTINUED_MARKER) : prefix,
|
|
1850
|
-
rest
|
|
1851
|
-
};
|
|
1852
|
-
}
|
|
1853
|
-
function takeSlackInlinePrefix(text, options) {
|
|
1854
|
-
const maxChars = options?.maxChars ?? MAX_INLINE_CHARS;
|
|
1855
|
-
const maxLines = options?.maxLines ?? MAX_INLINE_LINES;
|
|
1856
|
-
const normalized = text.replace(/\r\n?/g, "\n");
|
|
1857
|
-
if (!normalized) {
|
|
1858
|
-
return { prefix: "", rest: "" };
|
|
1859
|
-
}
|
|
1860
|
-
if (fitsInlineBudget(normalized, maxChars, maxLines)) {
|
|
1861
|
-
return { prefix: normalized, rest: "" };
|
|
1862
|
-
}
|
|
1863
|
-
const lineBounded = splitByLineBudget(normalized, maxLines);
|
|
1864
|
-
const cutIndex = findSplitIndex(lineBounded, maxChars);
|
|
1865
|
-
const prefix = lineBounded.slice(0, cutIndex).trimEnd();
|
|
1866
|
-
if (prefix) {
|
|
1867
|
-
return {
|
|
1868
|
-
prefix,
|
|
1869
|
-
rest: normalized.slice(prefix.length).trimStart()
|
|
1870
|
-
};
|
|
1871
|
-
}
|
|
1872
|
-
const hardPrefix = normalized.slice(0, Math.max(1, maxChars)).trimEnd();
|
|
1873
|
-
return {
|
|
1874
|
-
prefix: hardPrefix || normalized.slice(0, Math.max(1, maxChars)),
|
|
1875
|
-
rest: normalized.slice(hardPrefix.length || Math.max(1, maxChars)).trimStart()
|
|
1876
|
-
};
|
|
1877
|
-
}
|
|
1878
|
-
function splitSlackReplyText(text, options) {
|
|
1879
|
-
const normalized = normalizeSlackReplyMarkdown(text);
|
|
1880
|
-
if (!normalized) {
|
|
1881
|
-
return [];
|
|
1882
|
-
}
|
|
1883
|
-
const chunks = [];
|
|
1884
|
-
const continuationBudget = reserveInlineBudgetForSuffix(CONTINUED_MARKER);
|
|
1885
|
-
let remaining = normalized;
|
|
1886
|
-
while (remaining) {
|
|
1887
|
-
const fitsFinalChunk = options?.interrupted ? fitsInlineBudget(appendSlackSuffix(remaining, getInterruptionMarker())) : fitsInlineBudget(remaining);
|
|
1888
|
-
if (fitsFinalChunk) {
|
|
1889
|
-
chunks.push(
|
|
1890
|
-
options?.interrupted ? appendSlackSuffix(remaining, getInterruptionMarker()) : remaining
|
|
1891
|
-
);
|
|
1892
|
-
break;
|
|
1893
|
-
}
|
|
1894
|
-
const { renderedPrefix, rest } = takeSlackContinuationPrefix(remaining, {
|
|
1895
|
-
...continuationBudget,
|
|
1896
|
-
forceSplit: true
|
|
1897
|
-
});
|
|
1898
|
-
chunks.push(renderedPrefix);
|
|
1899
|
-
remaining = rest;
|
|
1900
|
-
}
|
|
1901
|
-
if (chunks.length === 2) {
|
|
1902
|
-
chunks[0] = stripTrailingContinuationMarker(chunks[0] ?? "");
|
|
1903
|
-
}
|
|
1904
|
-
return chunks;
|
|
1905
|
-
}
|
|
1906
|
-
function getSlackContinuationBudget() {
|
|
1907
|
-
return reserveInlineBudgetForSuffix(CONTINUED_MARKER);
|
|
1908
|
-
}
|
|
1909
|
-
function buildSlackOutputMessage(text) {
|
|
1910
|
-
const normalized = normalizeSlackReplyMarkdown(text);
|
|
1911
|
-
if (!normalized) {
|
|
1912
|
-
throw new Error(
|
|
1913
|
-
`Slack output normalized to empty content: original_length=${text.length} parsed_length=${normalized.length}`
|
|
1914
|
-
);
|
|
1915
|
-
}
|
|
1916
|
-
return {
|
|
1917
|
-
markdown: normalized
|
|
1918
|
-
};
|
|
1919
|
-
}
|
|
1920
|
-
var slackOutputPolicy = {
|
|
1921
|
-
maxInlineChars: MAX_INLINE_CHARS,
|
|
1922
|
-
maxInlineLines: MAX_INLINE_LINES
|
|
1923
|
-
};
|
|
1924
|
-
|
|
1925
1714
|
export {
|
|
1926
1715
|
RetryableDeliveryError,
|
|
1927
1716
|
actorFromRouting,
|
|
1928
1717
|
assertRunRoutingConsistency,
|
|
1929
1718
|
toolInvocationDestination,
|
|
1930
1719
|
surfaceFromRouting,
|
|
1931
|
-
truncateStatusText,
|
|
1932
|
-
escapeSlackMrkdwnText,
|
|
1933
|
-
formatSlackLink,
|
|
1934
|
-
normalizeSlackStatusText,
|
|
1935
|
-
splitSlackReplyText,
|
|
1936
|
-
buildSlackOutputMessage,
|
|
1937
|
-
slackOutputPolicy,
|
|
1938
1720
|
createUserTokenStore,
|
|
1939
1721
|
issueProviderCredentialLease,
|
|
1940
1722
|
getSlackMessagePermalink,
|
|
@@ -1942,6 +1724,11 @@ export {
|
|
|
1942
1724
|
uploadFilesToConversation,
|
|
1943
1725
|
addReactionToMessage,
|
|
1944
1726
|
removeReactionFromMessage,
|
|
1727
|
+
truncateStatusText,
|
|
1728
|
+
escapeSlackMrkdwnText,
|
|
1729
|
+
formatSlackLink,
|
|
1730
|
+
normalizeSlackReplyMarkdown,
|
|
1731
|
+
normalizeSlackStatusText,
|
|
1945
1732
|
parseOAuthStatePayload,
|
|
1946
1733
|
formatProviderLabel,
|
|
1947
1734
|
resolveBaseUrl,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
toCanonicalInputMessage,
|
|
5
5
|
toCanonicalOutputMessage,
|
|
6
6
|
toGenAiMessagesTraceAttributes
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HDFGNU5E.js";
|
|
8
8
|
import {
|
|
9
9
|
extractGenAiUsageAttributes,
|
|
10
10
|
logException,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
normalizeGenAiFinishReason,
|
|
13
13
|
serializeGenAiAttribute,
|
|
14
14
|
withSpan
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ALYQOZG7.js";
|
|
16
16
|
|
|
17
17
|
// src/chat/config.ts
|
|
18
18
|
import { getModel as getModel2 } from "@earendil-works/pi-ai/compat";
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
logInfo,
|
|
6
6
|
logWarn,
|
|
7
7
|
setSpanAttributes
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ALYQOZG7.js";
|
|
9
9
|
import {
|
|
10
10
|
discoverInstalledPluginPackageContent,
|
|
11
11
|
normalizePluginPackageNames
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OOUNJNMR.js";
|
|
13
13
|
import {
|
|
14
14
|
pluginRoots
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-H4HBKISO.js";
|
|
16
16
|
|
|
17
17
|
// src/chat/plugins/manifest.ts
|
|
18
18
|
import { z } from "zod";
|
|
@@ -64,6 +64,7 @@ function inlineMcpSource(mcp) {
|
|
|
64
64
|
setDefined(result, "url", mcp.url);
|
|
65
65
|
setDefined(result, "headers", mcp.headers);
|
|
66
66
|
setDefined(result, "allowed-tools", mcp.allowedTools);
|
|
67
|
+
setDefined(result, "wrapped-tools", mcp.wrappedTools);
|
|
67
68
|
return result;
|
|
68
69
|
}
|
|
69
70
|
function inlineOauthSource(oauth) {
|
|
@@ -300,7 +301,8 @@ var mcpSourceSchema = z.object({
|
|
|
300
301
|
}).optional(),
|
|
301
302
|
url: httpsUrlString,
|
|
302
303
|
headers: stringMapSchema.optional(),
|
|
303
|
-
"allowed-tools": nonEmptyStringArraySchema("allowed-tools").optional()
|
|
304
|
+
"allowed-tools": nonEmptyStringArraySchema("allowed-tools").optional(),
|
|
305
|
+
"wrapped-tools": nonEmptyStringArraySchema("wrapped-tools").optional()
|
|
304
306
|
}).passthrough();
|
|
305
307
|
var targetSourceSchema = z.object({
|
|
306
308
|
type: nonEmptyTrimmedString.refine((value) => PLUGIN_NAME_RE.test(value), {
|
|
@@ -389,6 +391,7 @@ function manifestConfigPatch(config) {
|
|
|
389
391
|
setDefined2(mcp, "url", config.mcp.url);
|
|
390
392
|
setDefined2(mcp, "headers", config.mcp.headers);
|
|
391
393
|
setDefined2(mcp, "allowed-tools", config.mcp.allowedTools);
|
|
394
|
+
setDefined2(mcp, "wrapped-tools", config.mcp.wrappedTools);
|
|
392
395
|
result.mcp = mcp;
|
|
393
396
|
}
|
|
394
397
|
}
|
|
@@ -829,7 +832,8 @@ function normalizeMcp(data, envVars, name) {
|
|
|
829
832
|
transport: "http",
|
|
830
833
|
url: result.data.url,
|
|
831
834
|
...headers ? { headers } : {},
|
|
832
|
-
...result.data["allowed-tools"] ? { allowedTools: result.data["allowed-tools"] } : {}
|
|
835
|
+
...result.data["allowed-tools"] ? { allowedTools: result.data["allowed-tools"] } : {},
|
|
836
|
+
...result.data["wrapped-tools"] ? { wrappedTools: result.data["wrapped-tools"] } : {}
|
|
833
837
|
};
|
|
834
838
|
}
|
|
835
839
|
function parseManifestSource(parsedSource, dir, config, options) {
|
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-ERYVNWNE.js";
|
|
5
5
|
import "../chunk-DIB4GX3G.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-TKUCRFNX.js";
|
|
7
|
+
import "../chunk-JQWP6V22.js";
|
|
8
8
|
import "../chunk-HDSDCEPK.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-DJDGDJDF.js";
|
|
10
|
+
import "../chunk-6WX5SPI3.js";
|
|
11
11
|
import "../chunk-MU6HHZEN.js";
|
|
12
12
|
import "../chunk-PDO5BLNM.js";
|
|
13
13
|
import "../chunk-UIE3R5XU.js";
|
|
14
14
|
import {
|
|
15
15
|
loadAppPluginSet
|
|
16
16
|
} from "../chunk-Y2CM7HXH.js";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-24B5R6OU.js";
|
|
18
|
+
import "../chunk-M243JMZH.js";
|
|
19
19
|
import "../chunk-GCGJGSQL.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-ALAKN7LR.js";
|
|
21
|
+
import "../chunk-VURFJVFH.js";
|
|
22
22
|
import "../chunk-VFUK3X5B.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-HDFGNU5E.js";
|
|
24
|
+
import "../chunk-EIVE6GL4.js";
|
|
25
|
+
import "../chunk-GNNV3UTY.js";
|
|
26
|
+
import "../chunk-XAI2HNAY.js";
|
|
27
27
|
import "../chunk-W3U3YQYI.js";
|
|
28
28
|
import "../chunk-HZF5P5UN.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-ALYQOZG7.js";
|
|
30
30
|
import "../chunk-OB42YVAE.js";
|
|
31
31
|
import "../chunk-F3B2YJ76.js";
|
|
32
32
|
import "../chunk-6GWA276C.js";
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-OOUNJNMR.js";
|
|
34
|
+
import "../chunk-H4HBKISO.js";
|
|
35
|
+
import "../chunk-DWOH57FW.js";
|
|
36
|
+
import "../chunk-DMKHRBI6.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-5DDPWRYO.js"),
|
|
160
|
+
import("../catalog-runtime-5KR5XBMJ.js"),
|
|
161
|
+
import("../validation-OEPJS7JX.js"),
|
|
162
|
+
import("../db-T4ZY64PB.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-D3ZU6TJH.js");
|
|
227
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-LQ6DFI26.js");
|
|
228
228
|
const { createLocalOAuthState } = await import("../oauth-relay-3ZU72UGL.js");
|
|
229
229
|
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-CDFAP67O.js");
|
|
230
230
|
const agentRunner = createAgentRunner(executeAgentRun);
|
package/dist/cli/check.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-EIVE6GL4.js";
|
|
4
|
+
import "../chunk-GNNV3UTY.js";
|
|
5
5
|
import {
|
|
6
6
|
parseInlinePluginManifest,
|
|
7
7
|
parsePluginManifest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-XAI2HNAY.js";
|
|
9
9
|
import "../chunk-W3U3YQYI.js";
|
|
10
10
|
import "../chunk-HZF5P5UN.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-ALYQOZG7.js";
|
|
12
12
|
import "../chunk-OB42YVAE.js";
|
|
13
13
|
import "../chunk-F3B2YJ76.js";
|
|
14
14
|
import "../chunk-6GWA276C.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-OOUNJNMR.js";
|
|
16
|
+
import "../chunk-H4HBKISO.js";
|
|
17
17
|
import {
|
|
18
18
|
JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
|
|
19
19
|
JUNIOR_HEARTBEAT_ROUTE,
|
|
20
20
|
LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-DWOH57FW.js";
|
|
22
|
+
import "../chunk-DMKHRBI6.js";
|
|
23
23
|
import "../chunk-MLKGABMK.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/check.ts
|
package/dist/cli/init.js
CHANGED
|
@@ -27,10 +27,10 @@ function writePluginsFile(targetDir) {
|
|
|
27
27
|
fs.writeFileSync(
|
|
28
28
|
path.join(targetDir, "plugins.ts"),
|
|
29
29
|
`import { defineJuniorPlugins } from "@sentry/junior";
|
|
30
|
-
import {
|
|
30
|
+
import { memoryPlugin } from "@sentry/junior-memory";
|
|
31
31
|
|
|
32
32
|
export const plugins = defineJuniorPlugins([
|
|
33
|
-
|
|
33
|
+
memoryPlugin(),
|
|
34
34
|
"@sentry/junior-maintenance",
|
|
35
35
|
]);
|
|
36
36
|
`
|
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-YEAOUT5W.js";
|
|
5
5
|
import {
|
|
6
6
|
pluginCatalogConfigFromPluginSet,
|
|
7
7
|
pluginCliRegistrationsFromPluginSet,
|
|
@@ -14,29 +14,29 @@ import {
|
|
|
14
14
|
createPluginLogger,
|
|
15
15
|
setPlugins,
|
|
16
16
|
validatePlugins
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-24B5R6OU.js";
|
|
18
18
|
import {
|
|
19
19
|
getDb
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-M243JMZH.js";
|
|
21
21
|
import "../chunk-GCGJGSQL.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-ALAKN7LR.js";
|
|
23
|
+
import "../chunk-VURFJVFH.js";
|
|
24
24
|
import "../chunk-VFUK3X5B.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-HDFGNU5E.js";
|
|
26
26
|
import {
|
|
27
27
|
pluginCatalogRuntime
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-GNNV3UTY.js";
|
|
29
|
+
import "../chunk-XAI2HNAY.js";
|
|
30
30
|
import "../chunk-W3U3YQYI.js";
|
|
31
31
|
import "../chunk-HZF5P5UN.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-ALYQOZG7.js";
|
|
33
33
|
import "../chunk-OB42YVAE.js";
|
|
34
34
|
import "../chunk-F3B2YJ76.js";
|
|
35
35
|
import "../chunk-6GWA276C.js";
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-OOUNJNMR.js";
|
|
37
|
+
import "../chunk-H4HBKISO.js";
|
|
38
|
+
import "../chunk-DWOH57FW.js";
|
|
39
|
+
import "../chunk-DMKHRBI6.js";
|
|
40
40
|
import "../chunk-MLKGABMK.js";
|
|
41
41
|
|
|
42
42
|
// src/cli/plugins.ts
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create,
|
|
3
3
|
resolve
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DJDGDJDF.js";
|
|
5
5
|
import {
|
|
6
6
|
disconnectStateAdapter
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-ALAKN7LR.js";
|
|
8
|
+
import "../chunk-VURFJVFH.js";
|
|
9
|
+
import "../chunk-HDFGNU5E.js";
|
|
10
10
|
import {
|
|
11
11
|
pluginCatalogRuntime
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-GNNV3UTY.js";
|
|
13
|
+
import "../chunk-XAI2HNAY.js";
|
|
14
14
|
import "../chunk-W3U3YQYI.js";
|
|
15
15
|
import "../chunk-HZF5P5UN.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-ALYQOZG7.js";
|
|
17
17
|
import "../chunk-OB42YVAE.js";
|
|
18
18
|
import "../chunk-F3B2YJ76.js";
|
|
19
19
|
import "../chunk-6GWA276C.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-OOUNJNMR.js";
|
|
21
|
+
import "../chunk-H4HBKISO.js";
|
|
22
|
+
import "../chunk-DWOH57FW.js";
|
|
23
|
+
import "../chunk-DMKHRBI6.js";
|
|
24
24
|
import "../chunk-MLKGABMK.js";
|
|
25
25
|
|
|
26
26
|
// src/cli/snapshot-create.ts
|
package/dist/cli/upgrade.js
CHANGED
|
@@ -11,22 +11,22 @@ import {
|
|
|
11
11
|
} from "../chunk-GCGJGSQL.js";
|
|
12
12
|
import {
|
|
13
13
|
getChatConfig
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-VURFJVFH.js";
|
|
15
15
|
import "../chunk-VFUK3X5B.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-HDFGNU5E.js";
|
|
17
17
|
import {
|
|
18
18
|
createPluginCatalogRuntime
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-XAI2HNAY.js";
|
|
20
20
|
import "../chunk-W3U3YQYI.js";
|
|
21
21
|
import "../chunk-HZF5P5UN.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-ALYQOZG7.js";
|
|
23
23
|
import "../chunk-OB42YVAE.js";
|
|
24
24
|
import "../chunk-F3B2YJ76.js";
|
|
25
25
|
import "../chunk-6GWA276C.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-OOUNJNMR.js";
|
|
27
|
+
import "../chunk-H4HBKISO.js";
|
|
28
|
+
import "../chunk-DWOH57FW.js";
|
|
29
|
+
import "../chunk-DMKHRBI6.js";
|
|
30
30
|
import "../chunk-MLKGABMK.js";
|
|
31
31
|
|
|
32
32
|
// src/chat/conversations/sql/migrations.ts
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
getConversationStore,
|
|
6
6
|
getDb,
|
|
7
7
|
getSqlExecutor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-M243JMZH.js";
|
|
9
9
|
import "./chunk-GCGJGSQL.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-VURFJVFH.js";
|
|
11
11
|
import "./chunk-VFUK3X5B.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-HDFGNU5E.js";
|
|
13
|
+
import "./chunk-ALYQOZG7.js";
|
|
14
14
|
import "./chunk-OB42YVAE.js";
|
|
15
15
|
import "./chunk-F3B2YJ76.js";
|
|
16
16
|
import "./chunk-6GWA276C.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-DWOH57FW.js";
|
|
18
|
+
import "./chunk-DMKHRBI6.js";
|
|
19
19
|
import "./chunk-MLKGABMK.js";
|
|
20
20
|
export {
|
|
21
21
|
closeDb,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
builtInSkillsDir,
|
|
2
3
|
dataDir,
|
|
3
4
|
dataRoots,
|
|
4
5
|
descriptionPath,
|
|
@@ -18,9 +19,10 @@ import {
|
|
|
18
19
|
soulPathCandidates,
|
|
19
20
|
worldPath,
|
|
20
21
|
worldPathCandidates
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-H4HBKISO.js";
|
|
22
23
|
import "./chunk-MLKGABMK.js";
|
|
23
24
|
export {
|
|
25
|
+
builtInSkillsDir,
|
|
24
26
|
dataDir,
|
|
25
27
|
dataRoots,
|
|
26
28
|
descriptionPath,
|
package/dist/instrumentation.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-UIE3R5XU.js";
|
|
4
4
|
import {
|
|
5
5
|
getCurrentConversationPrivacy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HDFGNU5E.js";
|
|
7
7
|
import "./chunk-OB42YVAE.js";
|
|
8
8
|
import "./chunk-F3B2YJ76.js";
|
|
9
9
|
import {
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
getDeploymentServiceVersion,
|
|
18
18
|
getDeploymentTelemetryAttributes
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-DWOH57FW.js";
|
|
20
|
+
import "./chunk-DMKHRBI6.js";
|
|
21
21
|
import "./chunk-MLKGABMK.js";
|
|
22
22
|
|
|
23
23
|
// src/chat/sentry-payload-filter.ts
|