@r-33/r33-claude 0.7.0 → 0.7.3-rc.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/cli/main/main.js +19 -12
- package/package.json +15 -15
package/dist/cli/main/main.js
CHANGED
|
@@ -1951,13 +1951,6 @@ var keyLabel = (entry) => {
|
|
|
1951
1951
|
return entry.name !== void 0 && entry.name !== "" ? `${entry.name} ${masked}` : `${entry.id} ${masked}`;
|
|
1952
1952
|
};
|
|
1953
1953
|
|
|
1954
|
-
// src/cli/management-env/management-env.ts
|
|
1955
|
-
var managementEnv = () => ({
|
|
1956
|
-
...process.env["ROUTE33_CLIENT_ID"] === void 0 ? {} : { clientId: process.env["ROUTE33_CLIENT_ID"] },
|
|
1957
|
-
...process.env["ROUTE33_AUTH_ISSUER"] === void 0 ? {} : { issuer: process.env["ROUTE33_AUTH_ISSUER"] },
|
|
1958
|
-
...process.env["ROUTE33_API_BASE"] === void 0 ? {} : { apiBase: process.env["ROUTE33_API_BASE"] }
|
|
1959
|
-
});
|
|
1960
|
-
|
|
1961
1954
|
// src/login/issuer-url/issuer-url.ts
|
|
1962
1955
|
var DEFAULT_ISSUER_URL = "https://auth.route33.ai";
|
|
1963
1956
|
var issuerUrl = (override) => {
|
|
@@ -1965,6 +1958,13 @@ var issuerUrl = (override) => {
|
|
|
1965
1958
|
return trimmed !== void 0 && trimmed !== "" ? trimmed : DEFAULT_ISSUER_URL;
|
|
1966
1959
|
};
|
|
1967
1960
|
|
|
1961
|
+
// src/login/requested-client-id/requested-client-id.ts
|
|
1962
|
+
var requestedClientId = (envOverride) => {
|
|
1963
|
+
const trimmed = envOverride?.trim();
|
|
1964
|
+
if (trimmed !== void 0 && trimmed !== "") return trimmed;
|
|
1965
|
+
return false ? "" : "oa_platform_203623de";
|
|
1966
|
+
};
|
|
1967
|
+
|
|
1968
1968
|
// src/login/requested-scopes/requested-scopes.ts
|
|
1969
1969
|
var REQUESTED_OAUTH_SCOPES = "openid offline_access orgs:read projects:read keys:read keys:write";
|
|
1970
1970
|
|
|
@@ -2330,6 +2330,13 @@ var wizardLogin = async (options) => {
|
|
|
2330
2330
|
return { accessToken: tokenSet.access_token };
|
|
2331
2331
|
};
|
|
2332
2332
|
|
|
2333
|
+
// src/cli/management-env/management-env.ts
|
|
2334
|
+
var managementEnv = () => ({
|
|
2335
|
+
clientId: requestedClientId(process.env["ROUTE33_CLIENT_ID"]),
|
|
2336
|
+
...process.env["ROUTE33_AUTH_ISSUER"] === void 0 ? {} : { issuer: process.env["ROUTE33_AUTH_ISSUER"] },
|
|
2337
|
+
...process.env["ROUTE33_API_BASE"] === void 0 ? {} : { apiBase: process.env["ROUTE33_API_BASE"] }
|
|
2338
|
+
});
|
|
2339
|
+
|
|
2333
2340
|
// src/management/error-message/error-message.ts
|
|
2334
2341
|
var errorMessage = (error) => {
|
|
2335
2342
|
if (error === null || typeof error !== "object") return "";
|
|
@@ -3296,7 +3303,7 @@ var resolveSigninOrg = async (client) => {
|
|
|
3296
3303
|
var signinKeyFlow = async (env) => {
|
|
3297
3304
|
try {
|
|
3298
3305
|
const { accessToken } = await wizardLogin({
|
|
3299
|
-
clientId: env.clientId
|
|
3306
|
+
clientId: env.clientId,
|
|
3300
3307
|
...env.issuer === void 0 ? {} : { issuerOverride: env.issuer }
|
|
3301
3308
|
});
|
|
3302
3309
|
const subject = managementSubject(accessToken);
|
|
@@ -3587,7 +3594,7 @@ var installModelCommands = (entry) => {
|
|
|
3587
3594
|
join7(dir, "r33-model.md"),
|
|
3588
3595
|
`---
|
|
3589
3596
|
description: Switch the active model \u2014 pick from the live Route 33 catalog, or pass an id directly
|
|
3590
|
-
argument-hint: [model id, e.g. anthropic/claude-sonnet-5-5]
|
|
3597
|
+
argument-hint: "[model id, e.g. anthropic/claude-sonnet-5-5]"
|
|
3591
3598
|
allowed-tools:
|
|
3592
3599
|
- 'Bash(${quoted} model list:*)'
|
|
3593
3600
|
- 'Bash(${quoted} model check:*)'
|
|
@@ -3597,10 +3604,10 @@ The user wants to switch the active model. Arguments: "$ARGUMENTS"
|
|
|
3597
3604
|
**When no model id was given** (arguments are empty):
|
|
3598
3605
|
|
|
3599
3606
|
1. Run \`${quoted} model list\` with the bash tool.
|
|
3600
|
-
2. Present the catalog
|
|
3601
|
-
3. Continue with the
|
|
3607
|
+
2. Present the catalog with the AskUserQuestion tool: one question ("Which Route 33 model should be active?") whose options are the catalog ids (first 4; put the current default first when you know it). If the catalog has more than 4 ids, add an option "More\u2026" \u2014 when the user picks it, ask again with the next 4. Wait for their selection.
|
|
3608
|
+
3. Continue with the selected id as the model id below.
|
|
3602
3609
|
|
|
3603
|
-
**When a model id was given** (or once the user
|
|
3610
|
+
**When a model id was given** (or once the user selected one):
|
|
3604
3611
|
|
|
3605
3612
|
1. Run \`${quoted} model check <id>\` with the bash tool.
|
|
3606
3613
|
2. If it printed \`ok\` or \`needs-thinking-off\`, run the built-in \`/model <id>\` command to switch. If it printed anything else, show it to the user and stop.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@r-33/r33-claude",
|
|
3
|
-
"version": "0.7.0",
|
|
3
|
+
"version": "0.7.3-rc.0",
|
|
4
4
|
"description": "Interactive wizard that configures Anthropic's Claude Code CLI to run on Route 33 inference.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
"node": ">=18"
|
|
34
34
|
},
|
|
35
35
|
"license": "MIT",
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@total-typescript/ts-reset": "0.6.1",
|
|
38
|
+
"@types/node": "26.6.5",
|
|
39
|
+
"esbuild": "0.28.2",
|
|
40
|
+
"eslint": "10.13.0",
|
|
41
|
+
"typescript": "6.0.3",
|
|
42
|
+
"vitest": "5.0.5",
|
|
43
|
+
"@clack/prompts": "1.9.0",
|
|
44
|
+
"@cronos-ai-lab/eslint-config": "0.3.0",
|
|
45
|
+
"@r-33/sdk": "0.1.1-rc.5",
|
|
46
|
+
"@r-33/auth-browser": "0.1.1-rc.5",
|
|
47
|
+
"@cronos-ai-lab/typescript-config": "0.3.1-rc.1"
|
|
48
|
+
},
|
|
36
49
|
"scripts": {
|
|
37
50
|
"build": "esbuild src/cli/main/main.ts --bundle --format=esm --platform=node --target=node18 --outfile=dist/cli/main/main.js --define:__ROUTE33_DEFAULT_CLIENT_ID__=\\\"${ROUTE33_DEFAULT_CLIENT_ID:-}\\\"",
|
|
38
51
|
"lint": "eslint . --max-warnings 0",
|
|
39
52
|
"test": "ROUTE33_DEFAULT_CLIENT_ID=e2e-injected-client-id pnpm build && vitest run --passWithNoTests",
|
|
40
53
|
"type:check": "tsc --noEmit"
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@cronos-ai-lab/eslint-config": "workspace:*",
|
|
44
|
-
"@cronos-ai-lab/typescript-config": "workspace:*",
|
|
45
|
-
"@total-typescript/ts-reset": "catalog:",
|
|
46
|
-
"@types/node": "catalog:",
|
|
47
|
-
"esbuild": "0.28.2",
|
|
48
|
-
"eslint": "catalog:",
|
|
49
|
-
"typescript": "catalog:",
|
|
50
|
-
"vitest": "catalog:",
|
|
51
|
-
"@clack/prompts": "1.9.0",
|
|
52
|
-
"@r-33/sdk": "workspace:*",
|
|
53
|
-
"@r-33/auth-browser": "workspace:*"
|
|
54
54
|
}
|
|
55
|
-
}
|
|
55
|
+
}
|