@quantiya/codevibe-claude-plugin 2.0.3 → 2.0.4

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codevibe-claude",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Sync Claude Code sessions with iOS mobile app via AWS backend. Control Claude Code from your phone with real-time bidirectional synchronization.",
5
5
  "author": {
6
6
  "name": "CodeVibe Team"
@@ -17,9 +17,9 @@ export interface RunAuditBrowserDeps {
17
17
  /** The session the task belongs to (the `queryAudit` 2-arg shape needs it). */
18
18
  sessionId: string;
19
19
  /**
20
- * The effective tier. When provided (the CLI passes `readTierFromEnvOrDefault`),
21
- * it is authoritative (honors `CODEVIBE_TIER`). When omitted, the runner reads
22
- * `getSubscriptionStatus().tier` from the backend.
20
+ * The effective tier. When provided (the CLI passes the `CODEVIBE_TIER` env
21
+ * value inline), it is authoritative (honors `CODEVIBE_TIER`). When omitted,
22
+ * the runner reads `getSubscriptionStatus().tier` from the backend.
23
23
  */
24
24
  tier?: Tier;
25
25
  /** Test seam — defaults to `cryptoService.decryptContent`. */
@@ -43016,11 +43016,6 @@ async function resumeOrCreateSession2(appsyncClient, deps) {
43016
43016
  return { session: buildStubSession(), tier };
43017
43017
  }
43018
43018
  }
43019
- function readTierFromEnvOrDefault() {
43020
- const raw = process.env.CODEVIBE_TIER;
43021
- if (raw === "FREE" || raw === "PRO" || raw === "MAX") return raw;
43022
- return "FREE";
43023
- }
43024
43019
  async function runCompanionStub(args, session, emitter) {
43025
43020
  const { runCompanionMode: runCompanionMode2 } = (init_companion_mode(), __toCommonJS(companion_mode_exports));
43026
43021
  await runCompanionMode2({
@@ -43306,19 +43301,7 @@ async function main(argv) {
43306
43301
  printHelp();
43307
43302
  return 0;
43308
43303
  }
43309
- let tier = readTierFromEnvOrDefault();
43310
43304
  const modeArgs = args.mode ? { mode: args.mode } : {};
43311
- let mode;
43312
- try {
43313
- mode = await pickMode(modeArgs, tier);
43314
- } catch (err) {
43315
- if (err instanceof TierError) {
43316
- process.stderr.write(`${err.message}
43317
- `);
43318
- return 2;
43319
- }
43320
- throw err;
43321
- }
43322
43305
  const appsyncClient = new AppSyncClient();
43323
43306
  let authenticated = false;
43324
43307
  try {
@@ -43336,7 +43319,18 @@ async function main(argv) {
43336
43319
  }
43337
43320
  const resolved = await resumeOrCreateSession2(appsyncClient);
43338
43321
  const session = resolved.session;
43339
- tier = resolved.tier;
43322
+ const tier = resolved.tier;
43323
+ let mode;
43324
+ try {
43325
+ mode = await pickMode(modeArgs, tier);
43326
+ } catch (err) {
43327
+ if (err instanceof TierError) {
43328
+ process.stderr.write(`${err.message}
43329
+ `);
43330
+ return 2;
43331
+ }
43332
+ throw err;
43333
+ }
43340
43334
  const detectedAgents = detectInstalledAgents();
43341
43335
  if (authenticated) {
43342
43336
  await pushDetectedAgents(
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantiya/codevibe-core",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Core library for CodeVibe plugins - shared keychain, crypto, AppSync, and auth functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantiya/codevibe-claude-plugin",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Control Claude Code from your iPhone and Android — real-time sync, approve file edits, send prompts by voice. Part of CodeVibe.",
5
5
  "main": "dist/server.js",
6
6
  "bin": {
@@ -47,7 +47,7 @@
47
47
  "node": ">=18.0.0"
48
48
  },
49
49
  "dependencies": {
50
- "@quantiya/codevibe-core": "2.0.3",
50
+ "@quantiya/codevibe-core": "2.0.4",
51
51
  "@quantiya/quorum-core": "^1.0.1",
52
52
  "dotenv": "^16.6.1",
53
53
  "express": "^5.1.0",