@pablopunk/tau 0.0.0-stage → 0.1.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/auth-storage-Dk3CUY3q.js +1814 -0
- package/dist/bin.js +23 -0
- package/dist/cli-entry-DcDpQ30L.js +13 -0
- package/dist/client-C91-b2CL.js +1 -0
- package/dist/client-y2WkNuZj.js +7977 -0
- package/dist/dist-BFP19NOO.js +432 -0
- package/dist/dist-Bh1bQHZA.js +38890 -0
- package/dist/dist-Cq73_r65.js +3 -0
- package/dist/esm-CMGh_WhC.js +9446 -0
- package/dist/execute-BeGXhU1O.js +1757 -0
- package/dist/fake-claude-connectors-DSP9UC8d.js +1 -0
- package/dist/fake-claude-connectors-sDLeP10T.js +107 -0
- package/dist/fake-claude-sdk-CvqW_1iQ.js +571 -0
- package/dist/fake-claude-thread-script-2iHHwUZM.js +48 -0
- package/dist/last-exit-write-ksHeHGrC.js +9 -0
- package/dist/lib-DIX7q_HJ.js +1460 -0
- package/dist/main-CI9q691u.js +1490 -0
- package/dist/names-cTrEXB6w.js +35 -0
- package/dist/node-BpwblPFP.js +56269 -0
- package/dist/pdfjs-nTcHjDPT.js +69856 -0
- package/dist/photon_rs-DBr7W_rK.js +4252 -0
- package/dist/promise.try-CAAOYvMP.js +1426 -0
- package/dist/readability-DsDNO63a.js +1670 -0
- package/dist/rolldown-runtime-1p2KPIdQ.js +44 -0
- package/dist/runtime-i-oEtgAl.js +2721 -0
- package/dist/sdk-missing-CHbVbY1G.js +10 -0
- package/dist/sdk-port-BGw9ORUR.js +215 -0
- package/dist/serve-92lMbcls.js +2958 -0
- package/dist/serve-BcVZj5e2.js +1 -0
- package/dist/service-command-BVr33vlP.js +1 -0
- package/dist/service-command-C7WDeeR2.js +621 -0
- package/dist/shell-CQa4e7rx.js +643 -0
- package/dist/skills/builtin/tau/SKILL.md +51 -0
- package/dist/streamableHttp-BBaRYV9h.js +1 -0
- package/dist/streamableHttp-DPAoMlJd.js +1931 -0
- package/dist/tool-DBZK2lci.js +14335 -0
- package/dist/tool-server-BjP37EJg.js +40 -0
- package/dist/turndown.cjs-Bo1xLg2S.js +15620 -0
- package/dist/turndown.cjs-jpUF50AR.js +3 -0
- package/dist/types-C4M3CRp2.js +7592 -0
- package/dist/undici-8cI97lnP.js +27110 -0
- package/dist/wait-for-lock-BMk6v3J5.js +1 -0
- package/dist/wait-for-lock-D2V3vuye.js +43951 -0
- package/dist/watchdog.js +47 -0
- package/dist/web/dist/assets/addon-fit-DIOBYJe3.js +1 -0
- package/dist/web/dist/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/web/dist/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/web/dist/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/web/dist/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/web/dist/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/web/dist/assets/index--f7AYPm0.js +108 -0
- package/dist/web/dist/assets/index-7m0crRNF.css +2 -0
- package/dist/web/dist/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/web/dist/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/web/dist/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/web/dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/web/dist/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/web/dist/assets/wght-DMLdVLkb.css +1 -0
- package/dist/web/dist/assets/xterm-BrP-ENHg.css +1 -0
- package/dist/web/dist/assets/xterm-CerOhKYV.js +16 -0
- package/dist/web/dist/favicon.svg +14 -0
- package/dist/web/dist/index.html +25 -0
- package/package.json +53 -4
- package/README.md +0 -3
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region ../core/src/claude-cli/connectors/names.ts
|
|
2
|
+
const CONNECTOR_TOOL_NAME = "claude_connector";
|
|
3
|
+
const MCP_PREFIX = "mcp__";
|
|
4
|
+
const CLAUDE_AI_SEGMENT_PREFIX = "claude_ai_";
|
|
5
|
+
const CLAUDE_AI_TOOL_PREFIX = `${MCP_PREFIX}${CLAUDE_AI_SEGMENT_PREFIX}`;
|
|
6
|
+
const SEGMENT_SEPARATOR = "__";
|
|
7
|
+
const SERVER_NAME_PREFIX = "claude.ai ";
|
|
8
|
+
const normalizedSegment = (name) => name.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
9
|
+
/** `claude.ai Linear` (the name in `mcpServerStatus()`) becomes the segment the CLI puts in tool names. */
|
|
10
|
+
const cliServerSegmentOf = (statusName) => normalizedSegment(statusName);
|
|
11
|
+
/** `claude.ai Google Calendar` becomes `Google_Calendar`, the `server` argument of `claude_connector`. */
|
|
12
|
+
const connectorServerOf = (statusName) => cliServerSegmentOf(statusName).replace(new RegExp(`^${CLAUDE_AI_SEGMENT_PREFIX}`), "");
|
|
13
|
+
const connectorToolPrefixOf = (statusName) => `${MCP_PREFIX}${cliServerSegmentOf(statusName)}${SEGMENT_SEPARATOR}`;
|
|
14
|
+
/** The `allowedTools` glob for every tool of one server. */
|
|
15
|
+
const connectorAllowGlobOf = (statusName) => `${connectorToolPrefixOf(statusName)}*`;
|
|
16
|
+
/** The CLI tool name of a read-only or allowed tool: `mcp__claude_ai_Linear__list_teams`. */
|
|
17
|
+
const cliToolNameOf = (call) => `${CLAUDE_AI_TOOL_PREFIX}${call.server}${SEGMENT_SEPARATOR}${call.tool}`;
|
|
18
|
+
/** Only claude.ai connectors map to `claude_connector`; the in-process `tau` server and user servers do not. */
|
|
19
|
+
const isConnectorToolName = (cliToolName) => cliToolName.startsWith(CLAUDE_AI_TOOL_PREFIX) && parseConnectorToolName(cliToolName) !== null;
|
|
20
|
+
function parseConnectorToolName(cliToolName) {
|
|
21
|
+
if (!cliToolName.startsWith(CLAUDE_AI_TOOL_PREFIX)) return null;
|
|
22
|
+
const rest = cliToolName.slice(CLAUDE_AI_TOOL_PREFIX.length);
|
|
23
|
+
const split = rest.indexOf(SEGMENT_SEPARATOR);
|
|
24
|
+
if (split <= 0) return null;
|
|
25
|
+
const tool = rest.slice(split + 2);
|
|
26
|
+
return tool === "" ? null : {
|
|
27
|
+
server: rest.slice(0, split),
|
|
28
|
+
tool
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/** What a tool card shows for `Google_Calendar`: `Google Calendar`. */
|
|
32
|
+
const serverLabelOf = (server) => server.replaceAll("_", " ");
|
|
33
|
+
const isClaudeAiServer = (statusName) => statusName.startsWith(SERVER_NAME_PREFIX);
|
|
34
|
+
//#endregion
|
|
35
|
+
export { connectorToolPrefixOf as a, parseConnectorToolName as c, connectorServerOf as i, serverLabelOf as l, cliToolNameOf as n, isClaudeAiServer as o, connectorAllowGlobOf as r, isConnectorToolName as s, CONNECTOR_TOOL_NAME as t };
|