@askalf/dario 3.0.3 → 3.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/proxy.js CHANGED
@@ -518,7 +518,7 @@ export async function startProxy(opts = {}) {
518
518
  'accept': 'application/json',
519
519
  'Content-Type': 'application/json',
520
520
  'anthropic-dangerous-direct-browser-access': 'true',
521
- 'user-agent': `claude-cli/${cliVersion} (external, cli, workload/cron)`,
521
+ 'user-agent': `claude-cli/${cliVersion} (external, cli)`,
522
522
  'x-app': 'cli',
523
523
  'x-claude-code-session-id': SESSION_ID,
524
524
  'x-stainless-arch': arch,
@@ -695,10 +695,9 @@ export async function startProxy(opts = {}) {
695
695
  const buildTag = computeBuildTag(userMsg, cliVersion);
696
696
  const cch = computeCch();
697
697
  const fullVersion = `${cliVersion}.${buildTag}`;
698
- const billingTag = `x-anthropic-billing-header: cc_version=${fullVersion}; cc_entrypoint=cli; cch=${cch}; cc_workload=cron;`;
699
- const AGENT_IDENTITY = 'You are a Claude agent, built on Anthropic\'s Claude Agent SDK.';
698
+ const billingTag = `x-anthropic-billing-header: cc_version=${fullVersion}; cc_entrypoint=cli; cch=${cch};`;
700
699
  const CACHE_1H = { type: 'ephemeral', ttl: '1h' };
701
- const { body: ccBody, toolMap } = buildCCRequest(r, billingTag, AGENT_IDENTITY, CACHE_1H, { deviceId: identity.deviceId, accountUuid: identity.accountUuid, sessionId: SESSION_ID });
700
+ const { body: ccBody, toolMap } = buildCCRequest(r, billingTag, CACHE_1H, { deviceId: identity.deviceId, accountUuid: identity.accountUuid, sessionId: SESSION_ID });
702
701
  // Store tool map for response reverse-mapping
703
702
  ccToolMap = toolMap;
704
703
  // Replace request body entirely with CC template
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "3.0.3",
3
+ "version": "3.1.0",
4
4
  "description": "Use your Claude subscription as an API. No API key needed. Local proxy for Claude Max/Pro subscriptions.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,7 +20,7 @@
20
20
  "LICENSE"
21
21
  ],
22
22
  "scripts": {
23
- "build": "tsc",
23
+ "build": "tsc && cp src/cc-template-data.json dist/",
24
24
  "audit": "npm audit --production --audit-level=high",
25
25
  "prepublishOnly": "npm run build",
26
26
  "start": "node dist/cli.js",