@xiaoso/dsh-tool-plus 0.1.6 → 0.1.7-beta.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/THIRD_PARTY_NOTICES.md +9 -3
- package/lib/{abort-Cwwm4Err.mjs → abort-Caqff3M6.mjs} +2 -2
- package/lib/alibaba-coding-plan-DTupMiAi.mjs +73 -0
- package/lib/alibaba-token-plan-CHGyWOfX.mjs +46 -0
- package/lib/alibaba-token-plan-Dj3OZhEE.mjs +82 -0
- package/lib/{amazon-bedrock-TVMpUTRG.mjs → amazon-bedrock-DbFSYXfJ.mjs} +117 -38
- package/lib/{anthropic-BL6LFDQS.mjs → anthropic-CTJ3IQVa.mjs} +675 -166
- package/lib/anthropic-CXfWlp-x.mjs +105 -0
- package/lib/{aws-credentials-B20dliS7.mjs → anthropic-wire-CKuhDwZ1.mjs} +74 -14
- package/lib/{api-key-login-CIDnXeYd.mjs → api-key-validation-CGCJFbFr.mjs} +27 -68
- package/lib/{azure-openai-responses-BkhsLmN3.mjs → azure-openai-responses-ChFbWaGj.mjs} +27 -16
- package/lib/{browser-render-CmgvSNte.mjs → browser-render-9o0Rknop.mjs} +4 -4
- package/lib/bun-shim.mjs +71 -2
- package/lib/{bundled-references-ChZSPDFw.mjs → bundled-references-DY3EJxZV.mjs} +6 -5
- package/lib/cline-pass-Bwg3esu9.mjs +44 -0
- package/lib/cloudflare-ai-gateway-BupNXyKK.mjs +35 -0
- package/lib/cloudflare-ai-gateway-EWo0VkP5.mjs +44 -0
- package/lib/collapse-DOR8sOGf.mjs +2304 -0
- package/lib/coreweave-C82HrLpb.mjs +31 -0
- package/lib/coreweave-Ct8cF-da.mjs +14 -0
- package/lib/{cursor-B6HcmplF.mjs → cursor-B95LzVWV.mjs} +11 -3
- package/lib/{cursor-CRpLpaZ3.mjs → cursor-DJV_dcgB.mjs} +887 -1784
- package/lib/{cursor-B8m6SqAH.mjs → cursor-LKGjucn2.mjs} +48 -38
- package/lib/cursor-proto-B8Wj8bv9.mjs +10513 -0
- package/lib/{deterministic-id-D-yIV_eI.mjs → deterministic-id-CUEIMSqR.mjs} +1 -1
- package/lib/devin-BMTdx_hx.mjs +316 -0
- package/lib/{devin-DUAfvBsW.mjs → devin-DSp0Rw_E.mjs} +172 -86
- package/lib/devin-ExGIghmx.mjs +69 -0
- package/lib/devin-proto-Br8fdyNl.mjs +2888 -0
- package/lib/{dom-CawWi8fa.mjs → dom-DG3sPESc.mjs} +8 -8
- package/lib/effort-BdtQMN-_.mjs +23 -0
- package/lib/{error-C-f_Wnw4.mjs → error-CORgGg5a.mjs} +275 -154
- package/lib/{event-stream-Dh2guZxS.mjs → event-stream-ulcDenZD.mjs} +20 -4
- package/lib/{gemini-headers-DKUShltF.mjs → gemini-headers-Co9cVvex.mjs} +2 -2
- package/lib/{github-copilot-suDymKrx.mjs → github-copilot-Dstq1D3s.mjs} +69 -29
- package/lib/github-copilot-headers-DOh1gt_w.mjs +312 -0
- package/lib/gitlab-duo-DSCMrU0m.mjs +11 -0
- package/lib/google-CtsKkOQK.mjs +38 -0
- package/lib/google-antigravity-z-5KsEci.mjs +252 -0
- package/lib/{google-auth-DYJLM792.mjs → google-auth-ieLBaneO.mjs} +4 -4
- package/lib/{google-gemini-cli-8BT513Ul.mjs → google-gemini-cli-C6NE5mWz.mjs} +28 -54
- package/lib/{google-gemini-cli-D6cSmfvB.mjs → google-gemini-cli-CAIPSl7e.mjs} +23 -29
- package/lib/google-oauth-shared-DhMllAkt.mjs +53 -0
- package/lib/{google-shared-CVbHK5vZ.mjs → google-shared-B0aNCYEH.mjs} +140 -44
- package/lib/{google-validation-Cgbn3tWJ.mjs → google-validation-BEkNs-Bx.mjs} +1 -1
- package/lib/{google-vertex-Bui-ypAe.mjs → google-vertex-Bbd1tYNc.mjs} +8 -8
- package/lib/hosts-00rjRzUD.mjs +203 -0
- package/lib/id-AL5obQzR.mjs +71 -0
- package/lib/{idle-iterator-CYAxUkSD.mjs → idle-iterator-DlUkEfzW.mjs} +3 -3
- package/lib/index.mjs +587 -5266
- package/lib/kilo-ChJL54wq.mjs +81 -0
- package/lib/kimi-C2c_Zq8A.mjs +67 -0
- package/lib/{launch-BmgEUycu.mjs → launch-DKDH71En.mjs} +1 -1
- package/lib/markit-CmRfm4E2.mjs +9885 -0
- package/lib/models-DnXMYGcJ.mjs +381604 -0
- package/lib/muse-code-Di1VZmB1.mjs +143 -0
- package/lib/{ollama-Df9ce-Cp.mjs → ollama-B8ic3sEp.mjs} +15 -30
- package/lib/{openai-codex-CAVI3Me-.mjs → openai-codex-DuJNC99x.mjs} +29 -99
- package/lib/{openai-codex-responses-BcnOotRB.mjs → openai-codex-responses-BL29nh9K.mjs} +204 -116
- package/lib/{openai-completions-Bq4WT47M.mjs → openai-completions-BK2f2dBv.mjs} +152 -82
- package/lib/openai-configuration-update-xMYUjaK_.mjs +150 -0
- package/lib/{openai-reasoning-fallback-DXsfiSXO.mjs → openai-reasoning-fallback-BdB3RCbj.mjs} +106 -12
- package/lib/{openai-responses-Mq_-PjvE.mjs → openai-responses-CGQPlIIy.mjs} +76 -82
- package/lib/{perplexity-XgLF73E7.mjs → perplexity-TBjz3VMB.mjs} +52 -9
- package/lib/{pkce-BlQikGPu.mjs → pkce-BYjmugmw.mjs} +1 -1
- package/lib/protobuf-aab1UGVn.mjs +717 -0
- package/lib/{provider-response-C6vcbQyO.mjs → provider-response-SqKSkkUc.mjs} +1 -1
- package/lib/{proxy-D9lm7ONA.mjs → proxy-5nWqRL1f.mjs} +45 -5
- package/lib/{readability-Cpm-ocau.mjs → readability-uGhqb4GC.mjs} +2 -2
- package/lib/reference-CtvM4zLU.mjs +114 -0
- package/lib/{request-debug-HJMoJncL.mjs → request-debug-NQN0BjHH.mjs} +1 -1
- package/lib/{sanitize-text-CfcXzw5X.mjs → sanitize-text-BCf5KmCf.mjs} +1 -1
- package/lib/{scrapers-Cg5w77td.mjs → scrapers-D8oWspgW.mjs} +12 -12
- package/lib/{src-BcD0_rQR.mjs → src-BwW51vA5.mjs} +979 -388
- package/lib/{sse-debug-CYdjOC96.mjs → sse-debug-B-tkLCPW.mjs} +1 -1
- package/lib/{stream-Bjq8wjfr.mjs → stream-B_7qN-bA.mjs} +3802 -2623
- package/lib/stream-markup-healing-DKT1lnkW.mjs +267 -0
- package/lib/{strict-tool-validation-imVLUcbI.mjs → strict-tool-validation-CBTz1dAA.mjs} +2 -2
- package/lib/taxonomy-DSIM99rS.mjs +15392 -0
- package/lib/{stream-markup-healing-DZ6bVDxH.mjs → thinking-CiLa2LFB.mjs} +31 -186
- package/lib/{turndown-DN7ByzEI.mjs → turndown-DrX1M4WG.mjs} +4 -4
- package/lib/{type-guards-B9VVjRDK.mjs → type-guards-CttAANEx.mjs} +1 -1
- package/lib/{types-DX_bvuus.mjs → types-PVueGi9S.mjs} +2 -2
- package/lib/{utils-C-dSORPa.mjs → utils-CCfhUQen.mjs} +2364 -2676
- package/lib/{utils-Cp2Mxf_U.mjs → utils-CUPhpw9A.mjs} +413 -134
- package/lib/{utils-CQHPEQ3W.mjs → utils-DeWqNWV8.mjs} +2 -2
- package/lib/{vision-guard-mBmtAHx0.mjs → vision-guard-_XwsL1DF.mjs} +14 -29
- package/lib/xai-oauth-CXhnz0gO.mjs +210 -0
- package/lib/{xiaomi-7mE345KX.mjs → xiaomi-psoUItal.mjs} +8 -37
- package/lib/{zai-CeNpMV3W.mjs → zai-ApJ8HBgT.mjs} +8 -71
- package/lib/{zip-BK7UHCwX.mjs → zip-Kd602XNe.mjs} +1 -1
- package/package.json +11 -11
- package/presets/package.json +1 -1
- package/presets/tool-plus-ptc/agent.cordis.yml +1 -1
- package/presets/tool-plus-standard/agent.cordis.yml +1 -1
- package/lib/agent_pb-Rizyt9Zg.mjs +0 -805
- package/lib/anthropic-CDmj476p.mjs +0 -262
- package/lib/api_server_pb-CDZgLMta.mjs +0 -252
- package/lib/callback-server-CFJK-jvK.mjs +0 -398
- package/lib/codex-P1dGpX7G.mjs +0 -54
- package/lib/device-code-CuXTWYwY.mjs +0 -51
- package/lib/devin-BcQwht1W.mjs +0 -114
- package/lib/devin-BvMfGevz.mjs +0 -95
- package/lib/github-copilot-B3kQl0g0.mjs +0 -104
- package/lib/gitlab-duo-BriUTP8k.mjs +0 -155
- package/lib/gitlab-duo-workflow-wK5Ljzmc.mjs +0 -91
- package/lib/google-CE5tFDod.mjs +0 -30
- package/lib/google-antigravity-C1jgNljz.mjs +0 -198
- package/lib/google-oauth-shared-BLVTvokk.mjs +0 -147
- package/lib/grammar-D-NqNUxQ.mjs +0 -49
- package/lib/identity-HNO1Oe9B.mjs +0 -219
- package/lib/kimi-DgcUpPtK.mjs +0 -236
- package/lib/markit-DtGoRE6M.mjs +0 -1417
- package/lib/minimax-code-Y3h5li9N.mjs +0 -53
- package/lib/models-DRA2c_8U.mjs +0 -104660
- package/lib/opencode-BsVw9rCD.mjs +0 -38
- package/lib/to-binary-B1BEBIPC.mjs +0 -6002
- package/lib/wafer-BlhWLweO.mjs +0 -17
- package/lib/xai-oauth-5pORHUrg.mjs +0 -446
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
|
+
__installBunShim();
|
|
3
|
+
import { r as __exportAll } from "./fs-promises-shim-Bx0fpxuk.mjs";
|
|
4
|
+
//#region node_modules/.pnpm/@oh-my-pi+pi-catalog@18.1.17/node_modules/@oh-my-pi/pi-catalog/src/wire/cline-pass.ts
|
|
5
|
+
var cline_pass_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
CLINEPASS_API_BASE_URL: () => CLINEPASS_API_BASE_URL,
|
|
7
|
+
clinePassClientHeaders: () => clinePassClientHeaders
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* Cline API base shared by ClinePass subscription inference, free-tier models,
|
|
11
|
+
* roster discovery, login validation, and usage reporting. One constant so a
|
|
12
|
+
* host migration touches a single module.
|
|
13
|
+
*/
|
|
14
|
+
const CLINEPASS_API_BASE_URL = "https://api.cline.bot/api/v1";
|
|
15
|
+
/**
|
|
16
|
+
* Client-identity headers mirroring the official Cline CLI's request layer
|
|
17
|
+
* (sdk/packages/llms/src/providers/request-headers.ts). Cline's gateway gates
|
|
18
|
+
* some roster entries — certain free-tier models — to Cline product surfaces,
|
|
19
|
+
* and this is the contract that identifies a Cline client. Mirrored with Cline's
|
|
20
|
+
* blessing for a native integration.
|
|
21
|
+
*
|
|
22
|
+
* The gate accepted an arbitrary version string when probed (0.0.1 passed on
|
|
23
|
+
* 2026-08-13), so the pinned versions are mirror fidelity, not a minimum — but
|
|
24
|
+
* the full set is sent deliberately: partial mirrors are one gateway change
|
|
25
|
+
* away from a 403. `X-Task-ID` carries OMP's stable prompt-cache/session key
|
|
26
|
+
* when available; account and discovery calls omit it rather than inventing a
|
|
27
|
+
* per-request identity.
|
|
28
|
+
*/
|
|
29
|
+
function clinePassClientHeaders(taskId) {
|
|
30
|
+
return {
|
|
31
|
+
"HTTP-Referer": "https://cline.bot",
|
|
32
|
+
"X-Title": "Cline",
|
|
33
|
+
"X-IS-MULTIROOT": "false",
|
|
34
|
+
"X-CLIENT-TYPE": "cline-sdk",
|
|
35
|
+
"User-Agent": "Cline/3.0.58",
|
|
36
|
+
"X-CLIENT-VERSION": "3.0.58",
|
|
37
|
+
"X-PLATFORM": process.platform,
|
|
38
|
+
"X-PLATFORM-VERSION": "3.0.54",
|
|
39
|
+
"X-CORE-VERSION": "0.0.79",
|
|
40
|
+
...taskId ? { "X-Task-ID": taskId } : {}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { clinePassClientHeaders as n, cline_pass_exports as r, CLINEPASS_API_BASE_URL as t };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
|
+
__installBunShim();
|
|
3
|
+
import { g as OnPromptRequiredError, m as LoginCancelledError, p as ApiKeyRequiredError, t as ConfigurationError } from "./error-CORgGg5a.mjs";
|
|
4
|
+
import { o as serializeCloudflareAiGatewayCredential } from "./cloudflare-ai-gateway-EWo0VkP5.mjs";
|
|
5
|
+
//#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/cloudflare-ai-gateway.ts
|
|
6
|
+
const AUTH_URL = "https://developers.cloudflare.com/ai-gateway/configuration/authentication/";
|
|
7
|
+
/** Collect the gateway credential used by CLI, setup-wizard, and TUI login callers. */
|
|
8
|
+
async function loginCloudflareAiGateway(options) {
|
|
9
|
+
if (!options.onPrompt) throw new OnPromptRequiredError("Cloudflare AI Gateway");
|
|
10
|
+
options.onAuth?.({
|
|
11
|
+
url: AUTH_URL,
|
|
12
|
+
instructions: "Create an AI Gateway token with Run permission, then copy it here."
|
|
13
|
+
});
|
|
14
|
+
const apiKey = await options.onPrompt({
|
|
15
|
+
message: "Paste your Cloudflare AI Gateway token/API key",
|
|
16
|
+
placeholder: "cfut_..."
|
|
17
|
+
});
|
|
18
|
+
if (options.signal?.aborted) throw new LoginCancelledError();
|
|
19
|
+
if (!apiKey.trim()) throw new ApiKeyRequiredError();
|
|
20
|
+
const accountId = await options.onPrompt({
|
|
21
|
+
message: "Enter your Cloudflare account ID",
|
|
22
|
+
placeholder: "32-character account ID"
|
|
23
|
+
});
|
|
24
|
+
if (options.signal?.aborted) throw new LoginCancelledError();
|
|
25
|
+
if (!accountId.trim()) throw new ConfigurationError("Cloudflare account ID is required");
|
|
26
|
+
const gatewayId = await options.onPrompt({
|
|
27
|
+
message: "Enter your Cloudflare AI Gateway ID",
|
|
28
|
+
placeholder: "default"
|
|
29
|
+
});
|
|
30
|
+
if (options.signal?.aborted) throw new LoginCancelledError();
|
|
31
|
+
if (!gatewayId.trim()) throw new ConfigurationError("Cloudflare AI Gateway ID is required");
|
|
32
|
+
return serializeCloudflareAiGatewayCredential(apiKey, accountId, gatewayId);
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { loginCloudflareAiGateway };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
|
+
__installBunShim();
|
|
3
|
+
import { n as isRecord } from "./type-guards-CttAANEx.mjs";
|
|
4
|
+
import "./utils-DeWqNWV8.mjs";
|
|
5
|
+
//#region node_modules/.pnpm/@oh-my-pi+pi-catalog@18.1.17/node_modules/@oh-my-pi/pi-catalog/src/wire/cloudflare-ai-gateway.ts
|
|
6
|
+
/** Provider-native AI Gateway prefix before the upstream route segment. */
|
|
7
|
+
const CLOUDFLARE_AI_GATEWAY_BASE_URL = "https://gateway.ai.cloudflare.com/v1/<account>/<gateway>";
|
|
8
|
+
/** Anthropic Messages passthrough endpoint. */
|
|
9
|
+
const CLOUDFLARE_AI_GATEWAY_ANTHROPIC_BASE_URL = `${CLOUDFLARE_AI_GATEWAY_BASE_URL}/anthropic`;
|
|
10
|
+
/** OpenAI Responses passthrough endpoint. */
|
|
11
|
+
const CLOUDFLARE_AI_GATEWAY_OPENAI_BASE_URL = `${CLOUDFLARE_AI_GATEWAY_BASE_URL}/openai`;
|
|
12
|
+
/** OpenAI-compatible Workers AI endpoint. */
|
|
13
|
+
const CLOUDFLARE_AI_GATEWAY_COMPAT_BASE_URL = `${CLOUDFLARE_AI_GATEWAY_BASE_URL}/compat`;
|
|
14
|
+
/** Parse both structured login credentials and legacy plain gateway tokens. */
|
|
15
|
+
function parseCloudflareAiGatewayCredential(value) {
|
|
16
|
+
const trimmed = value.trim();
|
|
17
|
+
if (!trimmed) return null;
|
|
18
|
+
if (!trimmed.startsWith("{")) return { token: trimmed };
|
|
19
|
+
try {
|
|
20
|
+
const parsed = JSON.parse(trimmed);
|
|
21
|
+
if (!isRecord(parsed)) return null;
|
|
22
|
+
if (typeof parsed.token !== "string" || !parsed.token.trim()) return null;
|
|
23
|
+
if (parsed.accountId !== void 0 && typeof parsed.accountId !== "string") return null;
|
|
24
|
+
if (parsed.gatewayId !== void 0 && typeof parsed.gatewayId !== "string") return null;
|
|
25
|
+
const credential = { token: parsed.token.trim() };
|
|
26
|
+
const accountId = parsed.accountId?.trim();
|
|
27
|
+
const gatewayId = parsed.gatewayId?.trim();
|
|
28
|
+
if (accountId) credential.accountId = accountId;
|
|
29
|
+
if (gatewayId) credential.gatewayId = gatewayId;
|
|
30
|
+
return credential;
|
|
31
|
+
} catch {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/** Serialize the gateway token with the routing identifiers collected during login. */
|
|
36
|
+
function serializeCloudflareAiGatewayCredential(token, accountId, gatewayId) {
|
|
37
|
+
return JSON.stringify({
|
|
38
|
+
token: token.trim(),
|
|
39
|
+
accountId: accountId.trim(),
|
|
40
|
+
gatewayId: gatewayId.trim()
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { parseCloudflareAiGatewayCredential as a, CLOUDFLARE_AI_GATEWAY_OPENAI_BASE_URL as i, CLOUDFLARE_AI_GATEWAY_BASE_URL as n, serializeCloudflareAiGatewayCredential as o, CLOUDFLARE_AI_GATEWAY_COMPAT_BASE_URL as r, CLOUDFLARE_AI_GATEWAY_ANTHROPIC_BASE_URL as t };
|