@tryarcanist/cli 0.1.209 → 0.1.211

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/README.md CHANGED
@@ -140,7 +140,7 @@ JSON mode prints the raw `/api/auth/whoami` API response. Fields currently inclu
140
140
 
141
141
  ### `arcanist codex login`
142
142
 
143
- Authenticates a Codex/ChatGPT subscription and stores it for your Codex sessions, then activates it (turns on "use subscription auth for OpenAI sessions"). Runs the Codex CLI device-authorization login locally under a temporary `CODEX_HOME`, then uploads the resulting `auth.json` to Arcanist (encrypted, per user). The credential is never written to your default `~/.codex`. Requires a write-scoped token and a workspace with Codex subscription auth enabled. If activation fails the credential is still saved; run `arcanist codex use on`.
143
+ Authenticates a Codex/ChatGPT subscription and stores it for your Codex sessions, then activates it (turns on "use subscription auth for OpenAI sessions"). Runs the Codex CLI device-authorization login locally under a temporary `CODEX_HOME`, then uploads the resulting `auth.json` to Arcanist (encrypted, per user). The credential is never written to your default `~/.codex`. Requires a write-scoped token. If activation fails the credential is still saved; run `arcanist codex use on`.
144
144
 
145
145
  ```bash
146
146
  arcanist codex login
@@ -160,14 +160,15 @@ arcanist codex use off
160
160
 
161
161
  ### `arcanist codex status`
162
162
 
163
- Shows whether your workspace is eligible for Codex subscription auth and whether an `auth.json` is currently saved.
163
+ Shows that Codex subscription auth is available and whether an `auth.json` is currently saved.
164
164
 
165
165
  ```bash
166
166
  arcanist codex status
167
167
  arcanist codex status --json
168
168
  ```
169
169
 
170
- JSON mode returns `{eligible, credential: {isSet, lastValidationStatus?, lastValidationReasonCode?}}`.
170
+ JSON mode returns `{eligible, credential: {isSet, lastValidationStatus?, lastValidationReasonCode?}}`; `eligible` is always
171
+ `true` and remains for compatibility with older clients.
171
172
 
172
173
  ### `arcanist codex logout`
173
174
 
package/dist/index.js CHANGED
@@ -1532,9 +1532,12 @@ var MODEL_REGISTRY = [
1532
1532
  contextWindow: 5e5,
1533
1533
  costTracked: false,
1534
1534
  sessionStart: { eligible: true, isDefault: true },
1535
- // Internal probe (ARC-1704): hidden from the public model picker;
1536
- // CLI/API-selectable by internal Arcanist businesses only.
1537
- visibility: "internal_probe"
1535
+ // Internal probe (ARC-1704): hidden from the public model picker except
1536
+ // for users with an active Grok subscription (Codex Spark precedent);
1537
+ // CLI/API-selectable and session-startable by internal Arcanist
1538
+ // businesses only.
1539
+ visibility: "internal_probe",
1540
+ requiresGrokSubscriptionAuth: true
1538
1541
  },
1539
1542
  {
1540
1543
  id: GrokBuildModel.GrokComposer25Fast,
@@ -1548,7 +1551,8 @@ var MODEL_REGISTRY = [
1548
1551
  // recorded. Subscription-billed, not metered by Arcanist.
1549
1552
  costTracked: false,
1550
1553
  sessionStart: { eligible: true },
1551
- visibility: "internal_probe"
1554
+ visibility: "internal_probe",
1555
+ requiresGrokSubscriptionAuth: true
1552
1556
  }
1553
1557
  ];
1554
1558
  var MODEL_PROVIDER_NAMES = {
@@ -1720,6 +1724,19 @@ var CODEX_SUBSCRIPTION_SESSION_START_MODEL_PROVIDER_GROUPS = buildModelProviderG
1720
1724
  (model) => SESSION_START_MODEL_ID_SET_ANY_BACKEND.has(model.id) && (model.visibility !== "internal_probe" || model.requiresCodexSubscriptionAuth === true)
1721
1725
  )
1722
1726
  );
1727
+ function buildSubscriptionAwareGroups(include) {
1728
+ return buildModelProviderGroups(
1729
+ MODEL_REGISTRY.filter(
1730
+ (model) => SESSION_START_MODEL_ID_SET_ANY_BACKEND.has(model.id) && (model.visibility !== "internal_probe" || include.codexSubscription && model.requiresCodexSubscriptionAuth === true || include.grokSubscription && model.requiresGrokSubscriptionAuth === true)
1731
+ )
1732
+ );
1733
+ }
1734
+ var SESSION_START_MODEL_PROVIDER_GROUPS_BY_SUBSCRIPTIONS = {
1735
+ "false:false": PUBLIC_SESSION_START_MODEL_PROVIDER_GROUPS,
1736
+ "false:true": buildSubscriptionAwareGroups({ codexSubscription: false, grokSubscription: true }),
1737
+ "true:false": CODEX_SUBSCRIPTION_SESSION_START_MODEL_PROVIDER_GROUPS,
1738
+ "true:true": buildSubscriptionAwareGroups({ codexSubscription: true, grokSubscription: true })
1739
+ };
1723
1740
 
1724
1741
  // ../../shared/github/repo-url.ts
1725
1742
  function parseGithubRepoFullName(value) {
@@ -6217,8 +6234,8 @@ codex.command("login").description("Authenticate a Codex/ChatGPT subscription an
6217
6234
  "after",
6218
6235
  `
6219
6236
  Runs the Codex CLI device-authorization login locally under a temporary CODEX_HOME, then uploads
6220
- the resulting auth.json to Arcanist (encrypted, per user) and activates it. Your workspace must have
6221
- Codex subscription auth enabled. The credential is never written to your default ~/.codex.
6237
+ the resulting auth.json to Arcanist (encrypted, per user) and activates it. The credential is never
6238
+ written to your default ~/.codex.
6222
6239
 
6223
6240
  Examples:
6224
6241
  arcanist codex login
@@ -6226,7 +6243,7 @@ Examples:
6226
6243
  `
6227
6244
  ).action((options, command) => codexLoginCommand(options, command));
6228
6245
  codex.command("use <state>").description("Turn using your saved Codex subscription auth for OpenAI sessions on or off (state: on|off)").action((state, options, command) => codexUseCommand(state, options, command));
6229
- codex.command("status").description("Show whether your workspace is eligible and whether a Codex subscription auth is saved").action((options, command) => codexStatusCommand(options, command));
6246
+ codex.command("status").description("Show Codex subscription availability and whether auth is saved").action((options, command) => codexStatusCommand(options, command));
6230
6247
  codex.command("logout").description("Deactivate the selector and remove the stored Codex subscription auth for your user").action((options, command) => codexLogoutCommand(options, command));
6231
6248
  var grok = program.command("grok").description("Grok (xAI) subscription (bring-your-own-subscription) commands");
6232
6249
  grok.command("login").description("Authenticate a Grok (xAI) subscription and store it for future Grok BYOS sessions").option("--grok-path <path>", "Path to the grok executable (default: grok on PATH, or ARCANIST_GROK_BIN)").addHelpText(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryarcanist/cli",
3
- "version": "0.1.209",
3
+ "version": "0.1.211",
4
4
  "description": "CLI for Arcanist — create and manage coding agent sessions",
5
5
  "type": "module",
6
6
  "bin": {