@funnycode/myclaude 0.1.79 → 0.1.80
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/myclaude.js +143 -11
- package/dist/myclaude.mjs +143 -11
- package/package.json +1 -1
package/dist/myclaude.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
// MACRO - build-time constants (injected by build.ts)
|
|
5
5
|
// MACRO injected by build script
|
|
6
6
|
globalThis.MACRO = {
|
|
7
|
-
VERSION: "0.1.
|
|
8
|
-
BUILD_TIME: "2026-07-
|
|
7
|
+
VERSION: "0.1.80",
|
|
8
|
+
BUILD_TIME: "2026-07-16T03:20:12.229Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -37938,7 +37938,7 @@ function getLocalOauthConfig() {
|
|
|
37938
37938
|
CONSOLE_SUCCESS_URL: `${consoleBase}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,
|
|
37939
37939
|
CLAUDEAI_SUCCESS_URL: `${consoleBase}/oauth/code/success?app=claude-code`,
|
|
37940
37940
|
MANUAL_REDIRECT_URL: `${consoleBase}/oauth/code/callback`,
|
|
37941
|
-
CLIENT_ID: "
|
|
37941
|
+
CLIENT_ID: "PLACEHOLDER_CLIENT_ID_DO_NOT_USE",
|
|
37942
37942
|
OAUTH_FILE_SUFFIX: "-local-oauth",
|
|
37943
37943
|
MCP_PROXY_URL: "http://localhost:8205",
|
|
37944
37944
|
MCP_PROXY_PATH: "/v1/toolbox/shttp/mcp/{server_id}"
|
|
@@ -38026,7 +38026,7 @@ var init_oauth = __esm(() => {
|
|
|
38026
38026
|
CONSOLE_SUCCESS_URL: "https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",
|
|
38027
38027
|
CLAUDEAI_SUCCESS_URL: "https://platform.claude.com/oauth/code/success?app=claude-code",
|
|
38028
38028
|
MANUAL_REDIRECT_URL: "https://platform.claude.com/oauth/code/callback",
|
|
38029
|
-
CLIENT_ID: "
|
|
38029
|
+
CLIENT_ID: "PLACEHOLDER_CLIENT_ID_DO_NOT_USE",
|
|
38030
38030
|
OAUTH_FILE_SUFFIX: "",
|
|
38031
38031
|
MCP_PROXY_URL: "https://mcp-proxy.anthropic.com",
|
|
38032
38032
|
MCP_PROXY_PATH: "/v1/mcp/{server_id}"
|
|
@@ -38042,15 +38042,13 @@ var init_oauth = __esm(() => {
|
|
|
38042
38042
|
CONSOLE_SUCCESS_URL: "https://platform.staging.ant.dev/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",
|
|
38043
38043
|
CLAUDEAI_SUCCESS_URL: "https://platform.staging.ant.dev/oauth/code/success?app=claude-code",
|
|
38044
38044
|
MANUAL_REDIRECT_URL: "https://platform.staging.ant.dev/oauth/code/callback",
|
|
38045
|
-
CLIENT_ID: "
|
|
38045
|
+
CLIENT_ID: "PLACEHOLDER_CLIENT_ID_DO_NOT_USE",
|
|
38046
38046
|
OAUTH_FILE_SUFFIX: "-staging-oauth",
|
|
38047
38047
|
MCP_PROXY_URL: "https://mcp-proxy-staging.anthropic.com",
|
|
38048
38048
|
MCP_PROXY_PATH: "/v1/mcp/{server_id}"
|
|
38049
38049
|
} : undefined;
|
|
38050
38050
|
ALLOWED_OAUTH_BASE_URLS = [
|
|
38051
|
-
"https://
|
|
38052
|
-
"https://claude.fedstart.com",
|
|
38053
|
-
"https://claude-staging.fedstart.com"
|
|
38051
|
+
"https://claude.fedstart.com"
|
|
38054
38052
|
];
|
|
38055
38053
|
});
|
|
38056
38054
|
|
|
@@ -117484,6 +117482,140 @@ var init_auth = __esm(() => {
|
|
|
117484
117482
|
};
|
|
117485
117483
|
});
|
|
117486
117484
|
|
|
117485
|
+
// package.json
|
|
117486
|
+
var package_default;
|
|
117487
|
+
var init_package = __esm(() => {
|
|
117488
|
+
package_default = {
|
|
117489
|
+
name: "@funnycode/myclaude",
|
|
117490
|
+
version: "0.1.80",
|
|
117491
|
+
private: false,
|
|
117492
|
+
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117493
|
+
license: "MIT",
|
|
117494
|
+
type: "module",
|
|
117495
|
+
packageManager: "bun@1.3.5",
|
|
117496
|
+
repository: {
|
|
117497
|
+
type: "git",
|
|
117498
|
+
url: "https://github.com/thomaslwq/myclaude.git"
|
|
117499
|
+
},
|
|
117500
|
+
bugs: {
|
|
117501
|
+
url: "https://github.com/thomaslwq/myclaude/issues"
|
|
117502
|
+
},
|
|
117503
|
+
homepage: "https://github.com/thomaslwq/myclaude",
|
|
117504
|
+
engines: {
|
|
117505
|
+
bun: ">=1.3.5",
|
|
117506
|
+
node: ">=18.0.0"
|
|
117507
|
+
},
|
|
117508
|
+
scripts: {
|
|
117509
|
+
dev: "bun run ./src/dev-entry.ts",
|
|
117510
|
+
start: "bun run ./src/dev-entry.ts",
|
|
117511
|
+
test: "bun test",
|
|
117512
|
+
"test:watch": "bun test --watch",
|
|
117513
|
+
build: "bun run ./scripts/build.ts",
|
|
117514
|
+
prepublishOnly: "bun run build",
|
|
117515
|
+
version: "bun run ./src/dev-entry.ts --version"
|
|
117516
|
+
},
|
|
117517
|
+
bin: {
|
|
117518
|
+
myclaude: "bin/myclaude.cjs"
|
|
117519
|
+
},
|
|
117520
|
+
files: [
|
|
117521
|
+
"dist/",
|
|
117522
|
+
"seed/",
|
|
117523
|
+
"bin/",
|
|
117524
|
+
"LICENSE",
|
|
117525
|
+
"README.md",
|
|
117526
|
+
"README.zh-CN.md",
|
|
117527
|
+
"CHANGELOG.md",
|
|
117528
|
+
"docs/funnycode.png",
|
|
117529
|
+
"shims/node-domexception/"
|
|
117530
|
+
],
|
|
117531
|
+
publishConfig: {
|
|
117532
|
+
access: "public"
|
|
117533
|
+
},
|
|
117534
|
+
dependencies: {
|
|
117535
|
+
"@alcalzone/ansi-tokenize": "0.3.0",
|
|
117536
|
+
"@anthropic-ai/claude-agent-sdk": "^0.3.207",
|
|
117537
|
+
"@anthropic-ai/mcpb": "2.1.2",
|
|
117538
|
+
"@anthropic-ai/sandbox-runtime": "0.0.44",
|
|
117539
|
+
"@anthropic-ai/sdk": "0.111.0",
|
|
117540
|
+
"@aws-sdk/client-bedrock-runtime": "3.1020.0",
|
|
117541
|
+
"@commander-js/extra-typings": "14.0.0",
|
|
117542
|
+
"@growthbook/growthbook": "1.6.5",
|
|
117543
|
+
"@modelcontextprotocol/sdk": "1.29.0",
|
|
117544
|
+
"@opentelemetry/api": "1.9.1",
|
|
117545
|
+
"@opentelemetry/api-logs": "0.214.0",
|
|
117546
|
+
"@opentelemetry/core": "2.6.1",
|
|
117547
|
+
"@opentelemetry/resources": "2.6.1",
|
|
117548
|
+
"@opentelemetry/sdk-logs": "0.214.0",
|
|
117549
|
+
"@opentelemetry/sdk-metrics": "2.6.1",
|
|
117550
|
+
"@opentelemetry/sdk-trace-base": "2.6.1",
|
|
117551
|
+
"@opentelemetry/semantic-conventions": "1.40.0",
|
|
117552
|
+
ajv: "8.18.0",
|
|
117553
|
+
asciichart: "1.5.25",
|
|
117554
|
+
"auto-bind": "5.0.1",
|
|
117555
|
+
axios: "1.14.0",
|
|
117556
|
+
"bidi-js": "1.0.3",
|
|
117557
|
+
chalk: "5.6.2",
|
|
117558
|
+
chokidar: "5.0.0",
|
|
117559
|
+
"cli-boxes": "4.0.1",
|
|
117560
|
+
"code-excerpt": "4.0.0",
|
|
117561
|
+
diff: "8.0.4",
|
|
117562
|
+
"emoji-regex": "10.6.0",
|
|
117563
|
+
"env-paths": "4.0.0",
|
|
117564
|
+
execa: "9.6.1",
|
|
117565
|
+
figures: "6.1.0",
|
|
117566
|
+
"fuse.js": "7.1.0",
|
|
117567
|
+
"get-east-asian-width": "1.5.0",
|
|
117568
|
+
"google-auth-library": "10.6.2",
|
|
117569
|
+
"highlight.js": "11.11.1",
|
|
117570
|
+
"https-proxy-agent": "8.0.0",
|
|
117571
|
+
ignore: "7.0.5",
|
|
117572
|
+
"indent-string": "5.0.0",
|
|
117573
|
+
ink: "6.8.0",
|
|
117574
|
+
"jsonc-parser": "3.3.1",
|
|
117575
|
+
"lodash-es": "4.17.23",
|
|
117576
|
+
"lru-cache": "11.2.7",
|
|
117577
|
+
marked: "17.0.5",
|
|
117578
|
+
"p-map": "7.0.4",
|
|
117579
|
+
picomatch: "4.0.4",
|
|
117580
|
+
"proper-lockfile": "4.1.2",
|
|
117581
|
+
qrcode: "1.5.4",
|
|
117582
|
+
react: "19.2.4",
|
|
117583
|
+
"react-reconciler": "0.33.0",
|
|
117584
|
+
semver: "7.7.4",
|
|
117585
|
+
"shell-quote": "1.8.3",
|
|
117586
|
+
"signal-exit": "4.1.0",
|
|
117587
|
+
"stack-utils": "2.0.6",
|
|
117588
|
+
"strip-ansi": "7.2.0",
|
|
117589
|
+
"supports-hyperlinks": "4.4.0",
|
|
117590
|
+
"tree-kill": "1.2.2",
|
|
117591
|
+
"type-fest": "5.5.0",
|
|
117592
|
+
undici: "7.24.6",
|
|
117593
|
+
"usehooks-ts": "3.1.1",
|
|
117594
|
+
"vscode-jsonrpc": "8.2.1",
|
|
117595
|
+
"vscode-languageserver-protocol": "3.17.5",
|
|
117596
|
+
"vscode-languageserver-types": "3.17.5",
|
|
117597
|
+
"wrap-ansi": "10.0.0",
|
|
117598
|
+
ws: "8.20.0",
|
|
117599
|
+
xss: "1.0.15",
|
|
117600
|
+
yaml: "2.8.3",
|
|
117601
|
+
zod: "4.3.6"
|
|
117602
|
+
},
|
|
117603
|
+
optionalDependencies: {
|
|
117604
|
+
"@ant/claude-for-chrome-mcp": "file:./shims/ant-claude-for-chrome-mcp",
|
|
117605
|
+
"@ant/computer-use-input": "file:./shims/ant-computer-use-input",
|
|
117606
|
+
"@ant/computer-use-mcp": "file:./shims/ant-computer-use-mcp",
|
|
117607
|
+
"@ant/computer-use-swift": "file:./shims/ant-computer-use-swift",
|
|
117608
|
+
"color-diff-napi": "file:./shims/color-diff-napi",
|
|
117609
|
+
"modifiers-napi": "file:./shims/modifiers-napi",
|
|
117610
|
+
"node-domexception": "file:./shims/node-domexception",
|
|
117611
|
+
"url-handler-napi": "file:./shims/url-handler-napi"
|
|
117612
|
+
},
|
|
117613
|
+
overrides: {
|
|
117614
|
+
"node-domexception": "file:./shims/node-domexception"
|
|
117615
|
+
}
|
|
117616
|
+
};
|
|
117617
|
+
});
|
|
117618
|
+
|
|
117487
117619
|
// src/constants/system.ts
|
|
117488
117620
|
function getCLISyspromptPrefix(options) {
|
|
117489
117621
|
const apiProvider = getAPIProvider();
|
|
@@ -117508,13 +117640,12 @@ function getAttributionHeader(fingerprint) {
|
|
|
117508
117640
|
if (!isAttributionHeaderEnabled()) {
|
|
117509
117641
|
return "";
|
|
117510
117642
|
}
|
|
117511
|
-
const baseVersion = globalThis.MACRO?.VERSION ??
|
|
117643
|
+
const baseVersion = globalThis.MACRO?.VERSION ?? package_default.version;
|
|
117512
117644
|
const version2 = `${baseVersion}.${fingerprint}`;
|
|
117513
117645
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
117514
|
-
const cch = getFeatureValue_CACHED_MAY_BE_STALE("NATIVE_CLIENT_ATTESTATION", false) ? " cch=00000;" : "";
|
|
117515
117646
|
const workload = getWorkload();
|
|
117516
117647
|
const workloadPair = workload ? ` cc_workload=${workload};` : "";
|
|
117517
|
-
const header = `x-anthropic-billing-header: cc_version=${version2}; cc_entrypoint=${entrypoint};${
|
|
117648
|
+
const header = `x-anthropic-billing-header: cc_version=${version2}; cc_entrypoint=${entrypoint};${workloadPair}`;
|
|
117518
117649
|
logForDebugging(`attribution header ${header}`);
|
|
117519
117650
|
return header;
|
|
117520
117651
|
}
|
|
@@ -117525,6 +117656,7 @@ var init_system = __esm(() => {
|
|
|
117525
117656
|
init_envUtils();
|
|
117526
117657
|
init_providers();
|
|
117527
117658
|
init_workloadContext();
|
|
117659
|
+
init_package();
|
|
117528
117660
|
CLI_SYSPROMPT_PREFIX_VALUES = [
|
|
117529
117661
|
DEFAULT_PREFIX,
|
|
117530
117662
|
AGENT_SDK_CLAUDE_CODE_PRESET_PREFIX,
|
package/dist/myclaude.mjs
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
// MACRO - build-time constants (injected by build.ts)
|
|
5
5
|
// MACRO injected by build script
|
|
6
6
|
globalThis.MACRO = {
|
|
7
|
-
VERSION: "0.1.
|
|
8
|
-
BUILD_TIME: "2026-07-
|
|
7
|
+
VERSION: "0.1.80",
|
|
8
|
+
BUILD_TIME: "2026-07-16T03:20:12.229Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -37938,7 +37938,7 @@ function getLocalOauthConfig() {
|
|
|
37938
37938
|
CONSOLE_SUCCESS_URL: `${consoleBase}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,
|
|
37939
37939
|
CLAUDEAI_SUCCESS_URL: `${consoleBase}/oauth/code/success?app=claude-code`,
|
|
37940
37940
|
MANUAL_REDIRECT_URL: `${consoleBase}/oauth/code/callback`,
|
|
37941
|
-
CLIENT_ID: "
|
|
37941
|
+
CLIENT_ID: "PLACEHOLDER_CLIENT_ID_DO_NOT_USE",
|
|
37942
37942
|
OAUTH_FILE_SUFFIX: "-local-oauth",
|
|
37943
37943
|
MCP_PROXY_URL: "http://localhost:8205",
|
|
37944
37944
|
MCP_PROXY_PATH: "/v1/toolbox/shttp/mcp/{server_id}"
|
|
@@ -38026,7 +38026,7 @@ var init_oauth = __esm(() => {
|
|
|
38026
38026
|
CONSOLE_SUCCESS_URL: "https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",
|
|
38027
38027
|
CLAUDEAI_SUCCESS_URL: "https://platform.claude.com/oauth/code/success?app=claude-code",
|
|
38028
38028
|
MANUAL_REDIRECT_URL: "https://platform.claude.com/oauth/code/callback",
|
|
38029
|
-
CLIENT_ID: "
|
|
38029
|
+
CLIENT_ID: "PLACEHOLDER_CLIENT_ID_DO_NOT_USE",
|
|
38030
38030
|
OAUTH_FILE_SUFFIX: "",
|
|
38031
38031
|
MCP_PROXY_URL: "https://mcp-proxy.anthropic.com",
|
|
38032
38032
|
MCP_PROXY_PATH: "/v1/mcp/{server_id}"
|
|
@@ -38042,15 +38042,13 @@ var init_oauth = __esm(() => {
|
|
|
38042
38042
|
CONSOLE_SUCCESS_URL: "https://platform.staging.ant.dev/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",
|
|
38043
38043
|
CLAUDEAI_SUCCESS_URL: "https://platform.staging.ant.dev/oauth/code/success?app=claude-code",
|
|
38044
38044
|
MANUAL_REDIRECT_URL: "https://platform.staging.ant.dev/oauth/code/callback",
|
|
38045
|
-
CLIENT_ID: "
|
|
38045
|
+
CLIENT_ID: "PLACEHOLDER_CLIENT_ID_DO_NOT_USE",
|
|
38046
38046
|
OAUTH_FILE_SUFFIX: "-staging-oauth",
|
|
38047
38047
|
MCP_PROXY_URL: "https://mcp-proxy-staging.anthropic.com",
|
|
38048
38048
|
MCP_PROXY_PATH: "/v1/mcp/{server_id}"
|
|
38049
38049
|
} : undefined;
|
|
38050
38050
|
ALLOWED_OAUTH_BASE_URLS = [
|
|
38051
|
-
"https://
|
|
38052
|
-
"https://claude.fedstart.com",
|
|
38053
|
-
"https://claude-staging.fedstart.com"
|
|
38051
|
+
"https://claude.fedstart.com"
|
|
38054
38052
|
];
|
|
38055
38053
|
});
|
|
38056
38054
|
|
|
@@ -117484,6 +117482,140 @@ var init_auth = __esm(() => {
|
|
|
117484
117482
|
};
|
|
117485
117483
|
});
|
|
117486
117484
|
|
|
117485
|
+
// package.json
|
|
117486
|
+
var package_default;
|
|
117487
|
+
var init_package = __esm(() => {
|
|
117488
|
+
package_default = {
|
|
117489
|
+
name: "@funnycode/myclaude",
|
|
117490
|
+
version: "0.1.80",
|
|
117491
|
+
private: false,
|
|
117492
|
+
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117493
|
+
license: "MIT",
|
|
117494
|
+
type: "module",
|
|
117495
|
+
packageManager: "bun@1.3.5",
|
|
117496
|
+
repository: {
|
|
117497
|
+
type: "git",
|
|
117498
|
+
url: "https://github.com/thomaslwq/myclaude.git"
|
|
117499
|
+
},
|
|
117500
|
+
bugs: {
|
|
117501
|
+
url: "https://github.com/thomaslwq/myclaude/issues"
|
|
117502
|
+
},
|
|
117503
|
+
homepage: "https://github.com/thomaslwq/myclaude",
|
|
117504
|
+
engines: {
|
|
117505
|
+
bun: ">=1.3.5",
|
|
117506
|
+
node: ">=18.0.0"
|
|
117507
|
+
},
|
|
117508
|
+
scripts: {
|
|
117509
|
+
dev: "bun run ./src/dev-entry.ts",
|
|
117510
|
+
start: "bun run ./src/dev-entry.ts",
|
|
117511
|
+
test: "bun test",
|
|
117512
|
+
"test:watch": "bun test --watch",
|
|
117513
|
+
build: "bun run ./scripts/build.ts",
|
|
117514
|
+
prepublishOnly: "bun run build",
|
|
117515
|
+
version: "bun run ./src/dev-entry.ts --version"
|
|
117516
|
+
},
|
|
117517
|
+
bin: {
|
|
117518
|
+
myclaude: "bin/myclaude.cjs"
|
|
117519
|
+
},
|
|
117520
|
+
files: [
|
|
117521
|
+
"dist/",
|
|
117522
|
+
"seed/",
|
|
117523
|
+
"bin/",
|
|
117524
|
+
"LICENSE",
|
|
117525
|
+
"README.md",
|
|
117526
|
+
"README.zh-CN.md",
|
|
117527
|
+
"CHANGELOG.md",
|
|
117528
|
+
"docs/funnycode.png",
|
|
117529
|
+
"shims/node-domexception/"
|
|
117530
|
+
],
|
|
117531
|
+
publishConfig: {
|
|
117532
|
+
access: "public"
|
|
117533
|
+
},
|
|
117534
|
+
dependencies: {
|
|
117535
|
+
"@alcalzone/ansi-tokenize": "0.3.0",
|
|
117536
|
+
"@anthropic-ai/claude-agent-sdk": "^0.3.207",
|
|
117537
|
+
"@anthropic-ai/mcpb": "2.1.2",
|
|
117538
|
+
"@anthropic-ai/sandbox-runtime": "0.0.44",
|
|
117539
|
+
"@anthropic-ai/sdk": "0.111.0",
|
|
117540
|
+
"@aws-sdk/client-bedrock-runtime": "3.1020.0",
|
|
117541
|
+
"@commander-js/extra-typings": "14.0.0",
|
|
117542
|
+
"@growthbook/growthbook": "1.6.5",
|
|
117543
|
+
"@modelcontextprotocol/sdk": "1.29.0",
|
|
117544
|
+
"@opentelemetry/api": "1.9.1",
|
|
117545
|
+
"@opentelemetry/api-logs": "0.214.0",
|
|
117546
|
+
"@opentelemetry/core": "2.6.1",
|
|
117547
|
+
"@opentelemetry/resources": "2.6.1",
|
|
117548
|
+
"@opentelemetry/sdk-logs": "0.214.0",
|
|
117549
|
+
"@opentelemetry/sdk-metrics": "2.6.1",
|
|
117550
|
+
"@opentelemetry/sdk-trace-base": "2.6.1",
|
|
117551
|
+
"@opentelemetry/semantic-conventions": "1.40.0",
|
|
117552
|
+
ajv: "8.18.0",
|
|
117553
|
+
asciichart: "1.5.25",
|
|
117554
|
+
"auto-bind": "5.0.1",
|
|
117555
|
+
axios: "1.14.0",
|
|
117556
|
+
"bidi-js": "1.0.3",
|
|
117557
|
+
chalk: "5.6.2",
|
|
117558
|
+
chokidar: "5.0.0",
|
|
117559
|
+
"cli-boxes": "4.0.1",
|
|
117560
|
+
"code-excerpt": "4.0.0",
|
|
117561
|
+
diff: "8.0.4",
|
|
117562
|
+
"emoji-regex": "10.6.0",
|
|
117563
|
+
"env-paths": "4.0.0",
|
|
117564
|
+
execa: "9.6.1",
|
|
117565
|
+
figures: "6.1.0",
|
|
117566
|
+
"fuse.js": "7.1.0",
|
|
117567
|
+
"get-east-asian-width": "1.5.0",
|
|
117568
|
+
"google-auth-library": "10.6.2",
|
|
117569
|
+
"highlight.js": "11.11.1",
|
|
117570
|
+
"https-proxy-agent": "8.0.0",
|
|
117571
|
+
ignore: "7.0.5",
|
|
117572
|
+
"indent-string": "5.0.0",
|
|
117573
|
+
ink: "6.8.0",
|
|
117574
|
+
"jsonc-parser": "3.3.1",
|
|
117575
|
+
"lodash-es": "4.17.23",
|
|
117576
|
+
"lru-cache": "11.2.7",
|
|
117577
|
+
marked: "17.0.5",
|
|
117578
|
+
"p-map": "7.0.4",
|
|
117579
|
+
picomatch: "4.0.4",
|
|
117580
|
+
"proper-lockfile": "4.1.2",
|
|
117581
|
+
qrcode: "1.5.4",
|
|
117582
|
+
react: "19.2.4",
|
|
117583
|
+
"react-reconciler": "0.33.0",
|
|
117584
|
+
semver: "7.7.4",
|
|
117585
|
+
"shell-quote": "1.8.3",
|
|
117586
|
+
"signal-exit": "4.1.0",
|
|
117587
|
+
"stack-utils": "2.0.6",
|
|
117588
|
+
"strip-ansi": "7.2.0",
|
|
117589
|
+
"supports-hyperlinks": "4.4.0",
|
|
117590
|
+
"tree-kill": "1.2.2",
|
|
117591
|
+
"type-fest": "5.5.0",
|
|
117592
|
+
undici: "7.24.6",
|
|
117593
|
+
"usehooks-ts": "3.1.1",
|
|
117594
|
+
"vscode-jsonrpc": "8.2.1",
|
|
117595
|
+
"vscode-languageserver-protocol": "3.17.5",
|
|
117596
|
+
"vscode-languageserver-types": "3.17.5",
|
|
117597
|
+
"wrap-ansi": "10.0.0",
|
|
117598
|
+
ws: "8.20.0",
|
|
117599
|
+
xss: "1.0.15",
|
|
117600
|
+
yaml: "2.8.3",
|
|
117601
|
+
zod: "4.3.6"
|
|
117602
|
+
},
|
|
117603
|
+
optionalDependencies: {
|
|
117604
|
+
"@ant/claude-for-chrome-mcp": "file:./shims/ant-claude-for-chrome-mcp",
|
|
117605
|
+
"@ant/computer-use-input": "file:./shims/ant-computer-use-input",
|
|
117606
|
+
"@ant/computer-use-mcp": "file:./shims/ant-computer-use-mcp",
|
|
117607
|
+
"@ant/computer-use-swift": "file:./shims/ant-computer-use-swift",
|
|
117608
|
+
"color-diff-napi": "file:./shims/color-diff-napi",
|
|
117609
|
+
"modifiers-napi": "file:./shims/modifiers-napi",
|
|
117610
|
+
"node-domexception": "file:./shims/node-domexception",
|
|
117611
|
+
"url-handler-napi": "file:./shims/url-handler-napi"
|
|
117612
|
+
},
|
|
117613
|
+
overrides: {
|
|
117614
|
+
"node-domexception": "file:./shims/node-domexception"
|
|
117615
|
+
}
|
|
117616
|
+
};
|
|
117617
|
+
});
|
|
117618
|
+
|
|
117487
117619
|
// src/constants/system.ts
|
|
117488
117620
|
function getCLISyspromptPrefix(options) {
|
|
117489
117621
|
const apiProvider = getAPIProvider();
|
|
@@ -117508,13 +117640,12 @@ function getAttributionHeader(fingerprint) {
|
|
|
117508
117640
|
if (!isAttributionHeaderEnabled()) {
|
|
117509
117641
|
return "";
|
|
117510
117642
|
}
|
|
117511
|
-
const baseVersion = globalThis.MACRO?.VERSION ??
|
|
117643
|
+
const baseVersion = globalThis.MACRO?.VERSION ?? package_default.version;
|
|
117512
117644
|
const version2 = `${baseVersion}.${fingerprint}`;
|
|
117513
117645
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
117514
|
-
const cch = getFeatureValue_CACHED_MAY_BE_STALE("NATIVE_CLIENT_ATTESTATION", false) ? " cch=00000;" : "";
|
|
117515
117646
|
const workload = getWorkload();
|
|
117516
117647
|
const workloadPair = workload ? ` cc_workload=${workload};` : "";
|
|
117517
|
-
const header = `x-anthropic-billing-header: cc_version=${version2}; cc_entrypoint=${entrypoint};${
|
|
117648
|
+
const header = `x-anthropic-billing-header: cc_version=${version2}; cc_entrypoint=${entrypoint};${workloadPair}`;
|
|
117518
117649
|
logForDebugging(`attribution header ${header}`);
|
|
117519
117650
|
return header;
|
|
117520
117651
|
}
|
|
@@ -117525,6 +117656,7 @@ var init_system = __esm(() => {
|
|
|
117525
117656
|
init_envUtils();
|
|
117526
117657
|
init_providers();
|
|
117527
117658
|
init_workloadContext();
|
|
117659
|
+
init_package();
|
|
117528
117660
|
CLI_SYSPROMPT_PREFIX_VALUES = [
|
|
117529
117661
|
DEFAULT_PREFIX,
|
|
117530
117662
|
AGENT_SDK_CLAUDE_CODE_PRESET_PREFIX,
|