gipity 1.1.9 → 1.1.11

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.
@@ -41,8 +41,29 @@ export const GEMINI_TTS_VOICES = [
41
41
  export const GEMINI_TTS_VOICES_DOC = `Zephyr, Puck, Charon, Kore, Fenrir, Leda, Orus, Aoede, Callirrhoe, Autonoe, Enceladus, Iapetus, Umbriel, Algieba, Despina, Erinome, Algenib, Rasalgethi, Laomedeia, Achernar, Alnilam, Schedar, Gacrux, Pulcherrima, Achird, Zubenelgenubi, Vindemiatrix, Sadachbia, Sadaltager, Sulafat`;
42
42
  export const GEMINI_TTS_VOICES_SHORT = `Kore, Puck, Zephyr, Charon, Fenrir, Leda, Orus, Aoede, and 22 more`;
43
43
  export const IMAGE_GEMINI_ASPECT_RATIOS = `1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:9`;
44
+ export const IMAGE_GEMINI_ASPECT_RATIO_IDS = [
45
+ '1:1',
46
+ '16:9',
47
+ '9:16',
48
+ '4:3',
49
+ '3:4',
50
+ '3:2',
51
+ '2:3',
52
+ '4:5',
53
+ '5:4',
54
+ '21:9',
55
+ ];
44
56
  export const IMAGE_GEMINI_SIZES = `512, 1K, 2K, 4K`;
57
+ export const IMAGE_GEMINI_SIZE_IDS = [
58
+ '512',
59
+ '1K',
60
+ '2K',
61
+ '4K',
62
+ ];
45
63
  export const IMAGE_MODELS_DOC = `openai: gpt-image-2. bfl: flux-2-pro, flux-2-flex, flux-2-max, flux-2-klein-9b, flux-2-klein-4b. gemini: gemini-3.1-flash-lite-image, gemini-2.5-flash-image, gemini-3.1-flash-image, gemini-3-pro-image`;
64
+ export const IMAGE_MODELS_TABLE = ` openai gpt-image-2
65
+ bfl flux-2-pro, flux-2-flex, flux-2-max, flux-2-klein-9b, flux-2-klein-4b
66
+ gemini gemini-3.1-flash-lite-image, gemini-2.5-flash-image, gemini-3.1-flash-image, gemini-3-pro-image`;
46
67
  export const IMAGE_PROVIDERS_BULLET = `- **OpenAI**: \`gpt-image-2\`
47
68
  - **BFL/Flux**: \`flux-2-pro, flux-2-flex, flux-2-max, flux-2-klein-9b, flux-2-klein-4b\`
48
69
  - **Gemini/Nano Banana**: \`gemini-3.1-flash-lite-image, gemini-2.5-flash-image, gemini-3.1-flash-image, gemini-3-pro-image\``;
@@ -52,18 +73,61 @@ export const IMAGE_PROVIDER_DESCRIPTIONS = {
52
73
  'bfl': `BFL/Flux (flux-2-pro, flux-2-flex, flux-2-max, flux-2-klein-9b, flux-2-klein-4b)`,
53
74
  'gemini': `Gemini/Nano Banana (gemini-3.1-flash-lite-image, gemini-2.5-flash-image, gemini-3.1-flash-image, gemini-3-pro-image)`,
54
75
  };
76
+ export const IMAGE_PROVIDER_IDS = [
77
+ 'openai',
78
+ 'bfl',
79
+ 'gemini',
80
+ ];
81
+ export const IMAGE_QUALITY_IDS = [
82
+ 'low',
83
+ 'medium',
84
+ 'high',
85
+ 'auto',
86
+ ];
87
+ export const IMAGE_TIER_ALIASES_DOC = `fast (gemini/gemini-3.1-flash-lite-image), standard (openai/gpt-image-2), high (bfl/flux-2-pro), ultra (bfl/flux-2-max)`;
88
+ export const IMAGE_TIER_ALIAS_IDS = [
89
+ 'fast',
90
+ 'standard',
91
+ 'high',
92
+ 'ultra',
93
+ ];
55
94
  export const LLM_DEFAULT_MODELS_DOC = `OpenAI: gpt-5.4-nano (cheapest), gpt-5.4-mini (cheap reasoning). Anthropic: claude-haiku-4-5 (cheapest). Gemini: gemini-2.5-flash-lite (cheapest, 1M context)`;
56
95
  export const LLM_PROVIDERS_LIST = `anthropic, openai, gemini`;
57
96
  export const OPENAI_TTS_VOICES_DOC = `alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer, verse`;
58
97
  export const TRANSCRIBE_PROVIDERS_DOC = `elevenlabs (default, Scribe v2), openai (GPT-4o Transcribe), gemini (Gemini 2.5 Flash - cheapest, multilingual)`;
59
98
  export const TTS_PROVIDERS_LIST = `elevenlabs, openai, gemini`;
60
99
  export const TTS_PROVIDER_DESCRIPTIONS = {
61
- 'elevenlabs': `ElevenLabs (many voices - use voice_set list to discover)`,
100
+ 'elevenlabs': `ElevenLabs (many premium voices)`,
62
101
  'openai': `OpenAI (alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer, verse)`,
63
102
  'gemini': `Gemini (30 voices: Kore, Puck, Zephyr, Charon, Fenrir, Leda, Orus, Aoede, and 22 more). Multi-speaker (up to 2) and 60+ languages`,
64
103
  };
104
+ export const TTS_PROVIDER_IDS = [
105
+ 'elevenlabs',
106
+ 'openai',
107
+ 'gemini',
108
+ ];
65
109
  export const VIDEO_ASPECT_RATIOS = `16:9 (landscape), 9:16 (portrait), 1:1 (square)`;
110
+ export const VIDEO_ASPECT_RATIO_IDS = [
111
+ '16:9',
112
+ '9:16',
113
+ '1:1',
114
+ ];
66
115
  export const VIDEO_MODELS_DOC = `veo-3.1-generate-preview (best quality, up to 4K, ~$0.40/sec), veo-3.1-fast-generate-preview (faster, ~$0.10/sec), veo-3.1-lite-generate-preview (budget, ~$0.05/sec), gemini-omni-flash-preview (3-10s @ 720p, conversational editing, ~$0.10/sec)`;
67
116
  export const VIDEO_MODELS_LIST = `veo-3.1-generate-preview, veo-3.1-fast-generate-preview, veo-3.1-lite-generate-preview, gemini-omni-flash-preview`;
117
+ export const VIDEO_MODELS_TABLE = ` veo-3.1-generate-preview best quality, up to 4K, ~$0.40/sec
118
+ veo-3.1-fast-generate-preview faster, ~$0.10/sec
119
+ veo-3.1-lite-generate-preview budget, ~$0.05/sec
120
+ gemini-omni-flash-preview 3-10s @ 720p, conversational editing, ~$0.10/sec`;
121
+ export const VIDEO_MODEL_IDS = [
122
+ 'veo-3.1-generate-preview',
123
+ 'veo-3.1-fast-generate-preview',
124
+ 'veo-3.1-lite-generate-preview',
125
+ 'gemini-omni-flash-preview',
126
+ ];
68
127
  export const VIDEO_RESOLUTIONS = `720p, 1080p, 4k`;
128
+ export const VIDEO_RESOLUTION_IDS = [
129
+ '720p',
130
+ '1080p',
131
+ '4k',
132
+ ];
69
133
  //# sourceMappingURL=provider-docs.js.map
@@ -0,0 +1,155 @@
1
+ import { AGENT_ADAPTERS } from '../agents/index.js';
2
+ import { parseVersion } from './diagnostics.js';
3
+ import { compareSemver } from '../updater/check.js';
4
+ import { resolveCommand, spawnCommand } from '../platform.js';
5
+ const UPDATE_TIMEOUT_MS = parseInt(process.env.GIPITY_RELAY_AGENT_UPDATE_TIMEOUT_MS || String(5 * 60_000), 10);
6
+ const PROBE_TIMEOUT_MS = 4000;
7
+ const REGISTRY_TIMEOUT_MS = 10_000;
8
+ // Test seam (mirrors GIPITY_RELAY_CLAUDE_CMD): when set, the pass updates ONE
9
+ // synthetic agent whose binary is this script (it must answer `--version` and
10
+ // `update`) instead of the real adapter registry, so the daemon integration
11
+ // test exercises the full tick → pass → probe → exec → re-probe → log path
12
+ // without ever touching a real install.
13
+ const UPDATE_STUB = process.env.GIPITY_RELAY_AGENT_UPDATE_STUB;
14
+ function stubAdapters(stub) {
15
+ return [{
16
+ source: 'stub_agent',
17
+ binary: stub,
18
+ updatePlan: () => ({ argv: [stub, 'update'], label: 'stub' }),
19
+ }];
20
+ }
21
+ // Cross-loop flag: the dispatch loop consults this before claiming work so a
22
+ // dispatch is never spawned mid-binary-swap. Module-level is safe - the
23
+ // daemon's pid lock guarantees one daemon per machine, and the heartbeat
24
+ // loop starts at most one pass at a time.
25
+ let inProgress = false;
26
+ export function agentUpdateInProgress() {
27
+ return inProgress;
28
+ }
29
+ /** Run argv (no shell) capturing stdout+stderr, bounded by a hard timeout
30
+ * and the daemon's abort signal. Resolves, never rejects. */
31
+ function execCapture(argv, timeoutMs, signal) {
32
+ return new Promise((resolve) => {
33
+ let output = '';
34
+ let settled = false;
35
+ const done = (ok) => { if (!settled) {
36
+ settled = true;
37
+ resolve({ ok, output });
38
+ } };
39
+ let child;
40
+ try {
41
+ child = spawnCommand(resolveCommand(argv[0]), argv.slice(1), { stdio: ['ignore', 'pipe', 'pipe'] });
42
+ }
43
+ catch (err) {
44
+ output = err?.message ?? 'spawn failed';
45
+ return done(false);
46
+ }
47
+ const kill = () => { try {
48
+ child.kill('SIGKILL');
49
+ }
50
+ catch { /* already gone */ } };
51
+ const timer = setTimeout(() => { output += '\n[timed out]'; kill(); }, timeoutMs);
52
+ signal?.addEventListener('abort', kill, { once: true });
53
+ child.stdout?.on('data', (d) => { output += d.toString(); });
54
+ child.stderr?.on('data', (d) => { output += d.toString(); });
55
+ child.on('error', (err) => { clearTimeout(timer); output += `\n${err.message}`; done(false); });
56
+ child.on('close', (code) => { clearTimeout(timer); done(code === 0); });
57
+ });
58
+ }
59
+ async function defaultProbeVersion(binary) {
60
+ const r = await execCapture([binary, '--version'], PROBE_TIMEOUT_MS);
61
+ return parseVersion(r.output);
62
+ }
63
+ /** Latest published version of an npm package, or null on any failure
64
+ * (offline, registry down) - the caller then defers to the next daily tick
65
+ * rather than blind-running npm. */
66
+ async function defaultFetchLatest(pkg) {
67
+ try {
68
+ const res = await fetch(`https://registry.npmjs.org/${pkg}/latest`, {
69
+ headers: { accept: 'application/json' },
70
+ signal: AbortSignal.timeout(REGISTRY_TIMEOUT_MS),
71
+ });
72
+ if (!res.ok)
73
+ return null;
74
+ const json = await res.json();
75
+ return typeof json.version === 'string' ? json.version : null;
76
+ }
77
+ catch {
78
+ return null;
79
+ }
80
+ }
81
+ const tail = (s) => s.trim().slice(-300).replace(/\s+/g, ' ');
82
+ /**
83
+ * One update pass over all adapters. `busy` is re-checked before each agent
84
+ * so a dispatch that slipped in mid-pass defers the remaining updates to the
85
+ * next tick instead of racing it.
86
+ */
87
+ export async function runAgentUpdates(opts, deps = {}) {
88
+ const adapters = deps.adapters ?? (UPDATE_STUB ? stubAdapters(UPDATE_STUB) : AGENT_ADAPTERS);
89
+ const exec = deps.exec ?? execCapture;
90
+ const probe = deps.probeVersion ?? defaultProbeVersion;
91
+ const fetchLatest = deps.fetchLatest ?? defaultFetchLatest;
92
+ const results = [];
93
+ inProgress = true;
94
+ try {
95
+ for (const adapter of adapters) {
96
+ const source = adapter.source;
97
+ if (opts.signal?.aborted) {
98
+ results.push({ source, status: 'skipped', detail: 'daemon shutting down' });
99
+ continue;
100
+ }
101
+ let plan;
102
+ try {
103
+ plan = adapter.updatePlan?.();
104
+ }
105
+ catch {
106
+ plan = null;
107
+ }
108
+ if (!plan) {
109
+ results.push({ source, status: 'skipped', detail: 'no unattended update path' });
110
+ continue;
111
+ }
112
+ if (opts.busy?.()) {
113
+ results.push({ source, status: 'skipped', detail: 'dispatch in flight' });
114
+ continue;
115
+ }
116
+ const before = await probe(adapter.binary);
117
+ // npm plans: skip the (slow, churny) install when the registry says
118
+ // we're already at latest. Registry unreachable = defer, don't guess.
119
+ if (plan.pkg && before) {
120
+ const latest = await fetchLatest(plan.pkg);
121
+ if (!latest) {
122
+ results.push({ source, status: 'skipped', from: before, detail: 'registry check failed' });
123
+ continue;
124
+ }
125
+ if (compareSemver(latest, before) <= 0) {
126
+ results.push({ source, status: 'current', from: before });
127
+ opts.log('debug', `agent up-to-date: ${source} ${before}`);
128
+ continue;
129
+ }
130
+ }
131
+ opts.log('info', `agent update starting: ${source} via ${plan.label}`, { from: before ?? 'unknown' });
132
+ const res = await exec(plan.argv, UPDATE_TIMEOUT_MS, opts.signal);
133
+ const after = await probe(adapter.binary);
134
+ if (!res.ok) {
135
+ results.push({ source, status: 'failed', from: before, to: after, detail: tail(res.output) });
136
+ opts.log('warn', `agent update failed: ${source}`, { detail: tail(res.output) });
137
+ }
138
+ else if (after && after !== before) {
139
+ results.push({ source, status: 'updated', from: before, to: after });
140
+ opts.log('info', `agent updated: ${source} ${before ?? 'unknown'} -> ${after}`);
141
+ }
142
+ else {
143
+ // Exit 0 with an unchanged version: the agent's own self-updater
144
+ // decided it was current (e.g. `claude update` no-op).
145
+ results.push({ source, status: 'current', from: before, to: after });
146
+ opts.log('debug', `agent up-to-date: ${source} ${after ?? 'unknown'}`);
147
+ }
148
+ }
149
+ }
150
+ finally {
151
+ inProgress = false;
152
+ }
153
+ return results;
154
+ }
155
+ //# sourceMappingURL=agent-updates.js.map
@@ -20,6 +20,7 @@ import { ensureRelayAgentToken } from './agent-token.js';
20
20
  import { redactEntries, redactString, normalizeSecrets } from './redact.js';
21
21
  import { getMachineId } from './machine-id.js';
22
22
  import { collectDiagnostics } from './diagnostics.js';
23
+ import { runAgentUpdates, agentUpdateInProgress } from './agent-updates.js';
23
24
  import { SessionPool, PoolFullError } from './session-pool.js';
24
25
  import { getConfig } from '../config.js';
25
26
  import { getAccountSlug } from '../api.js';
@@ -313,16 +314,55 @@ async function heartbeatLoop(ctx) {
313
314
  // DIAGNOSTICS_INTERVAL_MS after, but only if the user consented. Between
314
315
  // refreshes the heartbeat is a bare liveness ping.
315
316
  let lastDiagnosticsAt = 0;
317
+ // Agent auto-updates: same daily cadence, fire-and-forget so a slow npm
318
+ // install never delays the liveness ping. Stamped only when a pass actually
319
+ // ran - a tick deferred for in-flight dispatches retries on the next 60s
320
+ // beat instead of waiting another day. After a real upgrade the loop is
321
+ // asked for a fresh diagnostics snapshot + poked, so the server sees the
322
+ // new version on the next ping instead of tomorrow. The ask is a sticky
323
+ // flag (NOT a lastDiagnosticsAt reset): the pass often finishes while the
324
+ // startup diagnostics collection is still in flight, and that collection
325
+ // stamping lastDiagnosticsAt on completion would silently swallow a reset.
326
+ let lastAgentUpdateAt = 0;
327
+ let agentUpdatePass = null;
328
+ let diagnosticsRefreshNeeded = false;
316
329
  while (!ctx.abort.signal.aborted) {
317
330
  try {
331
+ if (!agentUpdatePass && state.agentUpdatesEnabled() && Date.now() - lastAgentUpdateAt >= DIAGNOSTICS_INTERVAL_MS) {
332
+ if (getRunningDispatchGuids().length > 0) {
333
+ log('debug', 'agent updates deferred - dispatches in flight');
334
+ }
335
+ else {
336
+ agentUpdatePass = runAgentUpdates({
337
+ log,
338
+ busy: () => getRunningDispatchGuids().length > 0,
339
+ signal: ctx.abort.signal,
340
+ }).then((results) => {
341
+ lastAgentUpdateAt = Date.now();
342
+ if (results.some(r => r.status === 'updated')) {
343
+ diagnosticsRefreshNeeded = true;
344
+ pokeHeartbeat();
345
+ }
346
+ }).catch((err) => {
347
+ lastAgentUpdateAt = Date.now();
348
+ log('warn', 'agent update pass failed', { err: err?.message });
349
+ }).finally(() => { agentUpdatePass = null; });
350
+ }
351
+ }
318
352
  let body = {};
319
- if (state.diagnosticsConsented() && Date.now() - lastDiagnosticsAt >= DIAGNOSTICS_INTERVAL_MS) {
353
+ if (state.diagnosticsConsented() && (diagnosticsRefreshNeeded || Date.now() - lastDiagnosticsAt >= DIAGNOSTICS_INTERVAL_MS)) {
354
+ // Consume the refresh ask BEFORE collecting: an update pass that
355
+ // completes while this collection is in flight sets it again, and it
356
+ // must survive into the next beat (this collection's probes started
357
+ // too early to see the new binary).
358
+ diagnosticsRefreshNeeded = false;
320
359
  try {
321
360
  body = { diagnostics: await collectDiagnostics() };
322
361
  lastDiagnosticsAt = Date.now();
323
362
  }
324
363
  catch (err) {
325
364
  // Never let a diagnostics probe failure block the liveness ping.
365
+ diagnosticsRefreshNeeded = true; // don't lose a consumed ask
326
366
  log('debug', 'diagnostics collection failed', { err: err?.message });
327
367
  }
328
368
  }
@@ -460,6 +500,15 @@ async function dispatchLoop(ctx, opts) {
460
500
  break;
461
501
  }
462
502
  await waitForSlot();
503
+ if (ctx.abort.signal.aborted)
504
+ break;
505
+ // Hold off claiming while the daily agent update is swapping binaries -
506
+ // spawning `claude` mid-`npm install -g` could hit a half-written
507
+ // install. The dispatch stays queued server-side and is claimed the
508
+ // moment the pass finishes (bounded by its hard timeout).
509
+ while (agentUpdateInProgress() && !ctx.abort.signal.aborted) {
510
+ await sleep(1000, ctx.abort.signal);
511
+ }
463
512
  if (ctx.abort.signal.aborted)
464
513
  break;
465
514
  try {
@@ -39,6 +39,7 @@ export function loadState() {
39
39
  relay_enabled: typeof raw.relay_enabled === 'boolean' ? raw.relay_enabled : undefined,
40
40
  onboard_shown: Boolean(raw.onboard_shown),
41
41
  diagnostics_consent: typeof raw.diagnostics_consent === 'boolean' ? raw.diagnostics_consent : undefined,
42
+ agent_updates: typeof raw.agent_updates === 'boolean' ? raw.agent_updates : undefined,
42
43
  agent_token: typeof raw.agent_token === 'string' ? raw.agent_token : null,
43
44
  agent_token_guid: typeof raw.agent_token_guid === 'string' ? raw.agent_token_guid : null,
44
45
  };
@@ -131,6 +132,35 @@ export function diagnosticsConsented() {
131
132
  return false;
132
133
  return loadState().diagnostics_consent !== false;
133
134
  }
135
+ // ─── Agent auto-updates (tri-state, default-on) ────────────────────────
136
+ /** Stored preference: `undefined` = default (on); `true`/`false` = explicit. */
137
+ export function getAgentUpdatesPref() {
138
+ return loadState().agent_updates;
139
+ }
140
+ export function setAgentUpdatesPref(on) {
141
+ mutate(s => { s.agent_updates = on; });
142
+ }
143
+ /** Effective switch for the daemon's daily agent auto-update pass. Default-on
144
+ * unless the user opted out (`gipity relay updates off`), the CLI-updater
145
+ * kill-switch is set (DISABLE_AUTOUPDATER=1 - one switch stops ALL
146
+ * unattended installs on the machine), an explicit env override is present
147
+ * (GIPITY_RELAY_AGENT_UPDATES=off), or we're in a CI/test run (never spawn
148
+ * a real `npm install -g` from a test-driven daemon). */
149
+ export function agentUpdatesEnabled() {
150
+ if (process.env.DISABLE_AUTOUPDATER === '1')
151
+ return false;
152
+ const env = (process.env.GIPITY_RELAY_AGENT_UPDATES || '').toLowerCase();
153
+ if (['0', 'off', 'false', 'no'].includes(env))
154
+ return false;
155
+ // An explicit opt-in beats the ambient CI/test guard below - that's how the
156
+ // daemon integration test drives a real pass (against the stubbed update
157
+ // command; see agent-updates.ts GIPITY_RELAY_AGENT_UPDATE_STUB).
158
+ if (['1', 'on', 'true', 'yes'].includes(env))
159
+ return true;
160
+ if (process.env.CI || process.env.NODE_ENV === 'test')
161
+ return false;
162
+ return loadState().agent_updates !== false;
163
+ }
134
164
  // ─── Daemon PID file (lives at ~/.gipity/relay.pid) ────────────────────
135
165
  const RELAY_PID_FILE = join(RELAY_DIR, 'relay.pid');
136
166
  export function getDaemonPidPath() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gipity",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "The full-stack platform tuned for AI agents. Database, storage, auth, functions, deploy, and drop-in kits - all agent-tuned. Pair with Claude Code or use standalone.",
5
5
  "bin": {
6
6
  "gipity": "dist/updater/shim.js",
@@ -14,7 +14,7 @@
14
14
  "prepack": "npm run build",
15
15
  "dev": "tsc --watch",
16
16
  "test": "npm run test:smoke",
17
- "test:smoke": "npm run build && node --test dist/__tests__/utils.test.js dist/__tests__/template-vars.test.js dist/__tests__/platform.test.js dist/__tests__/colors.test.js dist/__tests__/config.test.js dist/__tests__/sync.test.js dist/__tests__/sync-apply.test.js dist/__tests__/sync-unretrievable.test.js dist/__tests__/sync-clean-check.test.js dist/__tests__/sync-lock.test.js dist/__tests__/auth-lock.test.js dist/__tests__/api-401-retry.test.js dist/__tests__/push-cas.test.js dist/__tests__/upload.test.js dist/__tests__/progress.test.js dist/__tests__/updater.test.js dist/__tests__/cli-smoke.test.js dist/__tests__/claude-noninteractive.test.js dist/__tests__/claude-trust.test.js dist/__tests__/build-picker.test.js dist/__tests__/relay-state.test.js dist/__tests__/relay-daemon.test.js dist/__tests__/session-pool.test.js dist/__tests__/relay-diagnostics.test.js dist/__tests__/relay-installers.test.js dist/__tests__/relay-bridge-abort.test.js dist/__tests__/relay-redact.test.js dist/__tests__/relay-machine-id.test.js dist/__tests__/stream-json.test.js dist/__tests__/ingest-queue.test.js dist/__tests__/media-upload.test.js dist/__tests__/stream-delta.test.js dist/__tests__/phase-tracker.test.js dist/__tests__/relay-ingest-contract.test.js dist/__tests__/prompts.test.js dist/__tests__/capture-transcript.test.js dist/__tests__/capture-parsers.test.js dist/__tests__/agents.test.js dist/__tests__/capture-lock.test.js dist/__tests__/capture-resolve.test.js dist/__tests__/flag-aliases.test.js dist/__tests__/client-context.test.js dist/__tests__/adopt-cwd.test.js dist/__tests__/cli-cmd-agent.test.js dist/__tests__/cli-cmd-approval.test.js dist/__tests__/cli-cmd-audit.test.js dist/__tests__/cli-cmd-brand.test.js dist/__tests__/cli-cmd-bug.test.js dist/__tests__/cli-cmd-bug-queue.test.js dist/__tests__/cli-cmd-chat.test.js dist/__tests__/cli-cmd-credits.test.js dist/__tests__/cli-cmd-db.test.js dist/__tests__/cli-cmd-db-checkpoint.test.js dist/__tests__/cli-cmd-deploy.test.js dist/__tests__/cli-cmd-domain.test.js dist/__tests__/cli-cmd-email.test.js dist/__tests__/cli-cmd-file.test.js dist/__tests__/cli-cmd-storage.test.js dist/__tests__/cli-cmd-fn.test.js dist/__tests__/cli-cmd-service.test.js dist/__tests__/cli-cmd-job.test.js dist/__tests__/cli-cmd-generate.test.js dist/__tests__/cli-cmd-gmail.test.js dist/__tests__/cli-cmd-info.test.js dist/__tests__/cli-cmd-init.test.js dist/__tests__/cli-cmd-location.test.js dist/__tests__/cli-cmd-text.test.js dist/__tests__/cli-cmd-login.test.js dist/__tests__/cli-cmd-status.test.js dist/__tests__/cli-cmd-logout.test.js dist/__tests__/cli-cmd-token.test.js dist/__tests__/cli-cmd-key.test.js dist/__tests__/cli-cmd-logs.test.js dist/__tests__/cli-cmd-memory.test.js dist/__tests__/cli-cmd-page.test.js dist/__tests__/cli-cmd-plan.test.js dist/__tests__/cli-cmd-project.test.js dist/__tests__/cli-cmd-rbac.test.js dist/__tests__/cli-cmd-realtime.test.js dist/__tests__/cli-cmd-records.test.js dist/__tests__/cli-cmd-relay.test.js dist/__tests__/cli-cmd-setup.test.js dist/__tests__/cli-cmd-doctor.test.js dist/__tests__/claude-setup.test.js dist/__tests__/cli-cmd-sandbox.test.js dist/__tests__/cli-cmd-add.test.js dist/__tests__/cli-cmd-remove.test.js dist/__tests__/cli-cmd-skill.test.js dist/__tests__/cli-cmd-test.test.js dist/__tests__/cli-cmd-workflow.test.js dist/__tests__/setup-skills-block.test.js dist/__tests__/setup-hooks.test.js dist/__tests__/setup-codex-hooks.test.js dist/__tests__/setup-agy-hooks.test.js dist/__tests__/trace.test.js",
17
+ "test:smoke": "npm run build && node --test dist/__tests__/utils.test.js dist/__tests__/template-vars.test.js dist/__tests__/platform.test.js dist/__tests__/colors.test.js dist/__tests__/config.test.js dist/__tests__/sync.test.js dist/__tests__/sync-apply.test.js dist/__tests__/sync-unretrievable.test.js dist/__tests__/sync-clean-check.test.js dist/__tests__/sync-lock.test.js dist/__tests__/auth-lock.test.js dist/__tests__/api-401-retry.test.js dist/__tests__/push-cas.test.js dist/__tests__/upload.test.js dist/__tests__/progress.test.js dist/__tests__/updater.test.js dist/__tests__/cli-smoke.test.js dist/__tests__/claude-noninteractive.test.js dist/__tests__/claude-trust.test.js dist/__tests__/build-picker.test.js dist/__tests__/relay-state.test.js dist/__tests__/relay-daemon.test.js dist/__tests__/session-pool.test.js dist/__tests__/relay-diagnostics.test.js dist/__tests__/relay-agent-updates.test.js dist/__tests__/relay-installers.test.js dist/__tests__/relay-bridge-abort.test.js dist/__tests__/relay-redact.test.js dist/__tests__/relay-machine-id.test.js dist/__tests__/stream-json.test.js dist/__tests__/ingest-queue.test.js dist/__tests__/media-upload.test.js dist/__tests__/stream-delta.test.js dist/__tests__/phase-tracker.test.js dist/__tests__/relay-ingest-contract.test.js dist/__tests__/prompts.test.js dist/__tests__/capture-transcript.test.js dist/__tests__/capture-parsers.test.js dist/__tests__/agents.test.js dist/__tests__/capture-lock.test.js dist/__tests__/capture-resolve.test.js dist/__tests__/flag-aliases.test.js dist/__tests__/client-context.test.js dist/__tests__/adopt-cwd.test.js dist/__tests__/cli-cmd-agent.test.js dist/__tests__/cli-cmd-approval.test.js dist/__tests__/cli-cmd-audit.test.js dist/__tests__/cli-cmd-brand.test.js dist/__tests__/cli-cmd-bug.test.js dist/__tests__/cli-cmd-bug-queue.test.js dist/__tests__/cli-cmd-chat.test.js dist/__tests__/cli-cmd-credits.test.js dist/__tests__/cli-cmd-db.test.js dist/__tests__/cli-cmd-db-checkpoint.test.js dist/__tests__/cli-cmd-deploy.test.js dist/__tests__/cli-cmd-domain.test.js dist/__tests__/cli-cmd-email.test.js dist/__tests__/cli-cmd-file.test.js dist/__tests__/cli-cmd-storage.test.js dist/__tests__/cli-cmd-fn.test.js dist/__tests__/cli-cmd-service.test.js dist/__tests__/cli-cmd-job.test.js dist/__tests__/cli-cmd-generate.test.js dist/__tests__/cli-cmd-gmail.test.js dist/__tests__/cli-cmd-info.test.js dist/__tests__/cli-cmd-init.test.js dist/__tests__/cli-cmd-location.test.js dist/__tests__/cli-cmd-text.test.js dist/__tests__/cli-cmd-login.test.js dist/__tests__/cli-cmd-status.test.js dist/__tests__/cli-cmd-logout.test.js dist/__tests__/cli-cmd-token.test.js dist/__tests__/cli-cmd-key.test.js dist/__tests__/cli-cmd-logs.test.js dist/__tests__/cli-cmd-memory.test.js dist/__tests__/cli-cmd-page.test.js dist/__tests__/cli-cmd-plan.test.js dist/__tests__/cli-cmd-project.test.js dist/__tests__/cli-cmd-rbac.test.js dist/__tests__/cli-cmd-realtime.test.js dist/__tests__/cli-cmd-records.test.js dist/__tests__/cli-cmd-relay.test.js dist/__tests__/cli-cmd-setup.test.js dist/__tests__/cli-cmd-doctor.test.js dist/__tests__/claude-setup.test.js dist/__tests__/cli-cmd-sandbox.test.js dist/__tests__/cli-cmd-add.test.js dist/__tests__/cli-cmd-remove.test.js dist/__tests__/cli-cmd-skill.test.js dist/__tests__/cli-cmd-test.test.js dist/__tests__/cli-cmd-workflow.test.js dist/__tests__/setup-skills-block.test.js dist/__tests__/setup-hooks.test.js dist/__tests__/setup-codex-hooks.test.js dist/__tests__/setup-agy-hooks.test.js dist/__tests__/trace.test.js",
18
18
  "test:smoke:quick": "node scripts/smoke-quick.mjs",
19
19
  "test:e2e": "tsc && GIPITY_E2E=1 node --test --test-timeout=180000 dist/__tests__/cli-e2e-live.test.js dist/__tests__/cli-e2e-sync-live.test.js dist/__tests__/cli-e2e-sync-stress-live.test.js dist/__tests__/cli-e2e-rollback-live.test.js dist/__tests__/cli-e2e-services-media-live.test.js dist/__tests__/cli-e2e-workflow-live.test.js dist/__tests__/cli-e2e-sandbox-live.test.js dist/__tests__/cli-e2e-page-fetch-live.test.js dist/__tests__/cli-e2e-page-test-live.test.js",
20
20
  "test:e2e:sync": "tsc && GIPITY_E2E=1 node --test --test-timeout=180000 dist/__tests__/cli-e2e-sync-live.test.js",