moi-computer 0.6.0 → 0.6.1-next.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.
@@ -1 +1 @@
1
- import{Xc as t}from"/chunk-9y2zbzqz.js";if(typeof globalThis.structuredClone==="function")globalThis.structuredClone=globalThis.structuredClone.bind(globalThis);async function e(r){let{mount:a}=await import("/chunk-bv6vrvqf.js");a(r)}globalThis.__init=e;
1
+ import{Xc as t}from"/chunk-9y2zbzqz.js";if(typeof globalThis.structuredClone==="function")globalThis.structuredClone=globalThis.structuredClone.bind(globalThis);async function e(r){let{mount:a}=await import("/chunk-175bm057.js");a(r)}globalThis.__init=e;
package/dist/index.html CHANGED
@@ -21,7 +21,7 @@
21
21
  }
22
22
  </script>
23
23
 
24
- <link rel="stylesheet" crossorigin href="/chunk-agtetn7n.css"><script type="module" crossorigin src="/chunk-n6t40enm.js"></script></head>
24
+ <link rel="stylesheet" crossorigin href="/chunk-agtetn7n.css"><script type="module" crossorigin src="/chunk-w3tnv51j.js"></script></head>
25
25
  <body>
26
26
  <div id="root"></div>
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moi-computer",
3
- "version": "0.6.0",
3
+ "version": "0.6.1-next.0",
4
4
  "description": "Local AI workspace powered by the Claude Agent SDK, Bun, React, and Tailwind. Requires Bun.",
5
5
  "license": "Elastic-2.0",
6
6
  "type": "module",
@@ -0,0 +1,16 @@
1
+ // Is the `moi` CLI being run by a coding agent rather than a human at a
2
+ // terminal? Two tiers, following the sentry-cli SENTRY_PIPELINE lesson —
3
+ // announcement over sniffing:
4
+ //
5
+ // - MOI_AGENT=1 is moi's own announcement, injected into every agent session
6
+ // the server spawns (Claude Code and Codex harnesses). Exact for
7
+ // first-party agents — and necessary, because the Claude Code harness
8
+ // deliberately strips CLAUDECODE from its children.
9
+ // - The rest are third-party markers set by agent runtimes in the shells
10
+ // they spawn: Claude Code (CLAUDECODE), OpenAI Codex (CODEX_SANDBOX),
11
+ // Cursor (CURSOR_TRACE_ID). Best-effort — absence proves nothing.
12
+ const AGENT_ENV_MARKERS = ['MOI_AGENT', 'CLAUDECODE', 'CODEX_SANDBOX', 'CURSOR_TRACE_ID']
13
+
14
+ export function isAgentCaller(env: Record<string, string | undefined> = process.env): boolean {
15
+ return AGENT_ENV_MARKERS.some(marker => !!env[marker])
16
+ }