@gotcos/glasses-server 6.24.4 → 6.24.5

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 6.24.5
2
+
3
+ COS Control provider proofs now isolate themselves from project customizations.
4
+
5
+ - Claude Code 2.1.227 began rejecting the automated readiness check in large COS
6
+ workspaces because it loaded project instructions, skills, plugins, and attachment
7
+ context before evaluating the tiny proof prompt. The request exceeded 200k tokens
8
+ and exited 1 even though Claude authentication and normal commands were healthy.
9
+ - The no-tool readiness subprocess now uses Claude Safe Mode. It still proves the
10
+ installed CLI, authentication, model access, process lifecycle, and exact response,
11
+ while avoiding unrelated workspace context. Normal glasses queries are unchanged.
12
+
1
13
  ## 6.24.4
2
14
 
3
15
  Rich-media attachments extend the established authenticated photo pipeline without
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gotcos/glasses-server",
3
- "version": "6.24.4",
3
+ "version": "6.24.5",
4
4
  "description": "COS Glasses \u2014 self-hosted AI heads-up-display server for Even G2 smart glasses, powered by Claude Code, Codex, or Cursor Agent CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,6 +25,12 @@ export interface ProcessResult {
25
25
  aborted: boolean
26
26
  }
27
27
 
28
+ // A readiness proof must validate the installed/authenticated provider, not load
29
+ // the selected workspace's CLAUDE.md, skills, plugins, MCP servers, and other
30
+ // project customizations. Large COS workspaces can otherwise overflow Claude's
31
+ // context window before the tiny proof prompt is evaluated.
32
+ export const CLAUDE_SAFE_MODE_ENV = 'CLAUDE_CODE_SAFE_MODE'
33
+
28
34
  type TerminationReason = 'timeout' | 'abort' | null
29
35
 
30
36
  export function runBounded(
@@ -41,6 +47,7 @@ export function runBounded(
41
47
  }
42
48
  const env = { ...process.env }
43
49
  delete env.CLAUDECODE
50
+ env[CLAUDE_SAFE_MODE_ENV] = '1'
44
51
  const child = spawn(command, args, {
45
52
  cwd: cosBrainDir() ?? process.cwd(),
46
53
  env,