neoctl 0.2.62 → 0.2.63

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
@@ -1,58 +1,58 @@
1
- # Neo Engine
2
-
3
- Neo 的 TypeScript 核心运行时,提供 `neo` 命令行、模型调用、工具执行、会话管理和子代理任务。Web 和 Desktop 共用这套核心。
4
-
5
- 子代理调度及管理工具(`subagent_run/output/list/get/stop/message/resume`)默认开放;系统提示词默认要求仅在用户明确要求时委派子代理。Web/Desktop 可在工具设置中关闭,会话设置可覆盖全局设置;已有明确保存的设置保留。SDK 使用者可通过 `ToolRegistry.setEnabled(name, false)` 显式关闭。子代理内部的 `subagent_report` 汇报通道及禁止嵌套委派的限制保持不变。
6
-
7
- ## 安装使用
8
-
9
- 需要 Node.js 20+。
10
-
11
- ```sh
12
- npm install -g neoctl
13
- neo
14
- ```
15
-
16
- 首次使用输入 `/login` 配置模型。常用命令:
17
-
18
- ```sh
19
- neo -help # 查看帮助
20
- neo run "总结当前仓库" # 执行一次任务
21
- neo -web # 打开核心自带的 Web 界面
22
- ```
23
-
24
- 对话中可用 `/new` 新建会话、`/sessions` 查看历史、`/compact` 压缩上下文。
25
-
26
- ## 模型配置
27
-
28
- 支持 OpenAI 兼容的 Responses 和 Chat Completions 接口。除交互配置外,也可在工作目录的 `.env` 中填写:
29
-
30
- ```env
31
- MODEL_PROVIDER=openai
32
- OPENAI_API_KEY=your-api-key
33
- OPENAI_BASE_URL=https://api.openai.com
34
- OPENAI_MODEL=your-model-name
35
- ```
36
-
37
- 将密钥和模型名替换为实际值。`NEO_ENV_FILE` 可指定其他配置文件。
38
-
39
- ## 源码开发
40
-
41
- 在 `engine/` 目录执行:
42
-
43
- ```sh
44
- npm ci
45
- npm run dev
46
- ```
47
-
48
- | 命令 | 用途 |
49
- | --- | --- |
50
- | `npm run build` | 编译源码到 `dist/` |
51
- | `npm start` | 运行已构建的 CLI |
52
- | `npm run typecheck` | 检查源码和测试类型 |
53
- | `npm test` | 运行单元测试 |
54
- | `npm run standalone` | 构建当前平台的便携分发目录 |
55
-
56
- 源码位于 `src/`,测试位于 `tests/`。便携构建输出到 `standalone/<平台>-<架构>/`。
57
-
58
- 更多测试命令见 [tests/README.md](tests/README.md)。
1
+ # Neo Engine
2
+
3
+ Neo 的 TypeScript 核心运行时,提供 `neo` 命令行、模型调用、工具执行、会话管理和子代理任务。Web 和 Desktop 共用这套核心。
4
+
5
+ 子代理调度及管理工具(`subagent_run/output/list/get/stop/message/resume`)默认开放;系统提示词默认要求仅在用户明确要求时委派子代理。Web/Desktop 可在工具设置中关闭,会话设置可覆盖全局设置;已有明确保存的设置保留。SDK 使用者可通过 `ToolRegistry.setEnabled(name, false)` 显式关闭。子代理内部的 `subagent_report` 汇报通道及禁止嵌套委派的限制保持不变。
6
+
7
+ ## 安装使用
8
+
9
+ 需要 Node.js 20+。
10
+
11
+ ```sh
12
+ npm install -g neoctl
13
+ neo
14
+ ```
15
+
16
+ 首次使用输入 `/login` 配置模型。常用命令:
17
+
18
+ ```sh
19
+ neo -help # 查看帮助
20
+ neo run "总结当前仓库" # 执行一次任务
21
+ neo -web # 打开核心自带的 Web 界面
22
+ ```
23
+
24
+ 对话中可用 `/new` 新建会话、`/sessions` 查看历史、`/compact` 压缩上下文。
25
+
26
+ ## 模型配置
27
+
28
+ 支持 OpenAI 兼容的 Responses 和 Chat Completions 接口。除交互配置外,也可在工作目录的 `.env` 中填写:
29
+
30
+ ```env
31
+ MODEL_PROVIDER=openai
32
+ OPENAI_API_KEY=your-api-key
33
+ OPENAI_BASE_URL=https://api.openai.com
34
+ OPENAI_MODEL=your-model-name
35
+ ```
36
+
37
+ 将密钥和模型名替换为实际值。`NEO_ENV_FILE` 可指定其他配置文件。
38
+
39
+ ## 源码开发
40
+
41
+ 在 `engine/` 目录执行:
42
+
43
+ ```sh
44
+ npm ci
45
+ npm run dev
46
+ ```
47
+
48
+ | 命令 | 用途 |
49
+ | --- | --- |
50
+ | `npm run build` | 编译源码到 `dist/` |
51
+ | `npm start` | 运行已构建的 CLI |
52
+ | `npm run typecheck` | 检查源码和测试类型 |
53
+ | `npm test` | 运行单元测试 |
54
+ | `npm run standalone` | 构建当前平台的便携分发目录 |
55
+
56
+ 源码位于 `src/`,测试位于 `tests/`。便携构建输出到 `standalone/<平台>-<架构>/`。
57
+
58
+ 更多测试命令见 [tests/README.md](tests/README.md)。
@@ -1,18 +1,18 @@
1
- ## Agent Scaffold
2
- You are an engineering agent running inside neo.
3
- You may identify yourself as neo when referring to your operating identity.
4
- Drive tasks through the shared query loop, tool system, context manager, and model gateway.
5
-
6
- ## Doing Tasks
7
- Keep work concrete and verifiable.
8
- For tasks with multiple meaningful steps, maintain a clear execution plan and report progress.
9
- Use tools for real workspace changes and report validation results precisely.
10
- When following a concrete strategy, you may briefly state meaningful progress transitions, such as finishing code edits and preparing to run tests.
11
- When the user adds requirements or changes direction during a task, incorporate the new instructions and complete all unfinished work by default, except work the user explicitly cancels or the new instructions supersede. Asking for clarification or reporting progress is not a stopping point: continue all unblocked work without waiting. Pause only the work that genuinely requires an answer, authorization, or safety clarification, or when the user explicitly asks you to stop.
12
-
13
- ## Using Tools
14
- Do not proactively delegate work to subagents by default. Delegate only when the user explicitly requests subagent assistance; tool availability alone is not permission to delegate.
15
- When using tools, you may briefly state the intent of the tool call; if a tool result contains valuable information, you may briefly report it.
16
-
17
- ## Tone And Output
18
- Be direct, concise, and action-oriented. Avoid inventing file contents or command results.
1
+ ## Agent Scaffold
2
+ You are an engineering agent running inside neo.
3
+ You may identify yourself as neo when referring to your operating identity.
4
+ Drive tasks through the shared query loop, tool system, context manager, and model gateway.
5
+
6
+ ## Doing Tasks
7
+ Keep work concrete and verifiable.
8
+ For tasks with multiple meaningful steps, maintain a clear execution plan and report progress.
9
+ Use tools for real workspace changes and report validation results precisely.
10
+ When following a concrete strategy, you may briefly state meaningful progress transitions, such as finishing code edits and preparing to run tests.
11
+ When the user adds requirements or changes direction during a task, incorporate the new instructions and complete all unfinished work by default, except work the user explicitly cancels or the new instructions supersede. Asking for clarification or reporting progress is not a stopping point: continue all unblocked work without waiting. Pause only the work that genuinely requires an answer, authorization, or safety clarification, or when the user explicitly asks you to stop.
12
+
13
+ ## Using Tools
14
+ Do not proactively delegate work to subagents by default. Delegate only when the user explicitly requests subagent assistance; tool availability alone is not permission to delegate.
15
+ When using tools, you may briefly state the intent of the tool call; if a tool result contains valuable information, you may briefly report it.
16
+
17
+ ## Tone And Output
18
+ Be direct, concise, and action-oriented. Avoid inventing file contents or command results.
@@ -2,28 +2,28 @@ import localFs from "node:fs/promises";
2
2
  import { existsSync as localExistsSync, readFileSync as localReadFileSync, statSync as localStatSync } from "node:fs";
3
3
  import { dockerArgs, dockerEnabled, dockerRun, dockerRunSync } from "./docker.js";
4
4
  // This small transport program is sent over stdin; no host paths or application code are mounted.
5
- const program = String.raw `
6
- const fs = require('node:fs/promises');
7
- const chunks = [];
8
- process.stdin.on('data', c => chunks.push(c));
9
- process.stdin.on('end', async () => {
10
- const encode = v => {
11
- if (Buffer.isBuffer(v)) return { $buffer: v.toString('base64') };
12
- if (v && typeof v.isFile === 'function') return {
13
- name: v.name, size: v.size, mode: v.mode, mtimeMs: v.mtimeMs,
14
- $kind: v.isFile() ? 'file' : v.isDirectory() ? 'directory' : v.isSymbolicLink() ? 'symlink' : 'other'
15
- };
16
- if (Array.isArray(v)) return v.map(encode);
17
- return v;
18
- };
19
- try {
20
- const { op, args } = JSON.parse(Buffer.concat(chunks).toString());
21
- const allowed = ['stat','lstat','readFile','writeFile','appendFile','mkdir','readdir','access','realpath','rename','rm','rmdir','unlink','copyFile','truncate'];
22
- if (!allowed.includes(op)) throw new Error('Unsupported file operation');
23
- const decoded = args.map(v => v && v.$buffer !== undefined ? Buffer.from(v.$buffer,'base64') : v);
24
- const result = await fs[op](...decoded);
25
- process.stdout.write(JSON.stringify({ value: encode(result) }));
26
- } catch (e) { process.stdout.write(JSON.stringify({ error: e.message, code: e.code })); }
5
+ const program = String.raw `
6
+ const fs = require('node:fs/promises');
7
+ const chunks = [];
8
+ process.stdin.on('data', c => chunks.push(c));
9
+ process.stdin.on('end', async () => {
10
+ const encode = v => {
11
+ if (Buffer.isBuffer(v)) return { $buffer: v.toString('base64') };
12
+ if (v && typeof v.isFile === 'function') return {
13
+ name: v.name, size: v.size, mode: v.mode, mtimeMs: v.mtimeMs,
14
+ $kind: v.isFile() ? 'file' : v.isDirectory() ? 'directory' : v.isSymbolicLink() ? 'symlink' : 'other'
15
+ };
16
+ if (Array.isArray(v)) return v.map(encode);
17
+ return v;
18
+ };
19
+ try {
20
+ const { op, args } = JSON.parse(Buffer.concat(chunks).toString());
21
+ const allowed = ['stat','lstat','readFile','writeFile','appendFile','mkdir','readdir','access','realpath','rename','rm','rmdir','unlink','copyFile','truncate'];
22
+ if (!allowed.includes(op)) throw new Error('Unsupported file operation');
23
+ const decoded = args.map(v => v && v.$buffer !== undefined ? Buffer.from(v.$buffer,'base64') : v);
24
+ const result = await fs[op](...decoded);
25
+ process.stdout.write(JSON.stringify({ value: encode(result) }));
26
+ } catch (e) { process.stdout.write(JSON.stringify({ error: e.message, code: e.code })); }
27
27
  });`;
28
28
  function request(op, args) {
29
29
  return JSON.stringify({ op, args: args.map(value => Buffer.isBuffer(value) ? { $buffer: value.toString("base64") } : value) });
@@ -1,50 +1,50 @@
1
1
  import { randomUUID } from "node:crypto";
2
2
  import { dockerArgs, dockerEnabled, dockerHostEnv, dockerRun } from "./docker.js";
3
- const runner = String.raw `
4
- import os,sys,subprocess,signal,pty,select,tty,termios
5
- marker=sys.argv[1]
6
- use_pty=sys.argv[2]=='pty'
7
- del sys.argv[2]
8
- if use_pty:
9
- pid,master=pty.fork()
10
- if pid==0: os.execvp(sys.argv[2],sys.argv[2:])
11
- with open(marker,'x') as f: f.write(str(pid))
12
- previous=termios.tcgetattr(0) if os.isatty(0) else None
13
- try:
14
- if previous: tty.setraw(0)
15
- while True:
16
- ready,_,_=select.select([0,master],[],[])
17
- if master in ready:
18
- try: data=os.read(master,65536)
19
- except OSError: break
20
- if not data: break
21
- os.write(1,data)
22
- if 0 in ready:
23
- data=os.read(0,65536)
24
- if not data: break
25
- os.write(master,data)
26
- _,status=os.waitpid(pid,0)
27
- code=os.waitstatus_to_exitcode(status)
28
- finally:
29
- if previous: termios.tcsetattr(0,termios.TCSADRAIN,previous)
30
- os.close(master)
31
- try: os.unlink(marker)
32
- except FileNotFoundError: pass
33
- else:
34
- child=subprocess.Popen(sys.argv[2:],start_new_session=True)
35
- with open(marker,'x') as f: f.write(str(child.pid))
36
- try: code=child.wait()
37
- finally:
38
- try: os.unlink(marker)
39
- except FileNotFoundError: pass
40
- sys.exit(code if code>=0 else 128-code)
3
+ const runner = String.raw `
4
+ import os,sys,subprocess,signal,pty,select,tty,termios
5
+ marker=sys.argv[1]
6
+ use_pty=sys.argv[2]=='pty'
7
+ del sys.argv[2]
8
+ if use_pty:
9
+ pid,master=pty.fork()
10
+ if pid==0: os.execvp(sys.argv[2],sys.argv[2:])
11
+ with open(marker,'x') as f: f.write(str(pid))
12
+ previous=termios.tcgetattr(0) if os.isatty(0) else None
13
+ try:
14
+ if previous: tty.setraw(0)
15
+ while True:
16
+ ready,_,_=select.select([0,master],[],[])
17
+ if master in ready:
18
+ try: data=os.read(master,65536)
19
+ except OSError: break
20
+ if not data: break
21
+ os.write(1,data)
22
+ if 0 in ready:
23
+ data=os.read(0,65536)
24
+ if not data: break
25
+ os.write(master,data)
26
+ _,status=os.waitpid(pid,0)
27
+ code=os.waitstatus_to_exitcode(status)
28
+ finally:
29
+ if previous: termios.tcsetattr(0,termios.TCSADRAIN,previous)
30
+ os.close(master)
31
+ try: os.unlink(marker)
32
+ except FileNotFoundError: pass
33
+ else:
34
+ child=subprocess.Popen(sys.argv[2:],start_new_session=True)
35
+ with open(marker,'x') as f: f.write(str(child.pid))
36
+ try: code=child.wait()
37
+ finally:
38
+ try: os.unlink(marker)
39
+ except FileNotFoundError: pass
40
+ sys.exit(code if code>=0 else 128-code)
41
41
  `;
42
- const killer = String.raw `
43
- import os,sys,signal
44
- try:
45
- with open(sys.argv[1]) as f: pid=int(f.read())
46
- if pid>1: os.killpg(pid,getattr(signal,sys.argv[2]))
47
- except (FileNotFoundError,ProcessLookupError): pass
42
+ const killer = String.raw `
43
+ import os,sys,signal
44
+ try:
45
+ with open(sys.argv[1]) as f: pid=int(f.read())
46
+ if pid>1: os.killpg(pid,getattr(signal,sys.argv[2]))
47
+ except (FileNotFoundError,ProcessLookupError): pass
48
48
  `;
49
49
  export function executionLaunch(file, args, cwd, env, tty = false) {
50
50
  if (!dockerEnabled())
@@ -1,144 +1,144 @@
1
- {
2
- "updatedAt": "2026-11-03",
3
- "notes": [
4
- "Bundled metadata for current mainstream Claude models and supported OpenAI models.",
5
- "Claude contextWindowTokens is neo's configured 256000-token usage ceiling, not the upstream model maximum or a pricing guarantee.",
6
- "MODEL_CONTEXT_WINDOW_TOKENS or OPENAI_CONTEXT_WINDOW_TOKENS overrides contextWindowTokens at runtime.",
7
- "Model IDs and aliases are matched case-insensitively. Availability depends on the connected API and account."
8
- ],
9
- "sources": {
10
- "claude-models": "https://platform.claude.com/docs/en/models/overview",
11
- "claude-effort": "https://platform.claude.com/docs/en/build-with-claude/effort",
12
- "openai-models": "https://developers.openai.com/api/docs/models",
13
- "openai-reasoning": "https://developers.openai.com/api/docs/guides/reasoning"
14
- },
15
- "models": [
16
- {"id": "claude-fable-5-1", "provider": "anthropic", "protocols": ["anthropic"], "modelIds": ["claude-fable-5-1"], "contextWindowTokens": 256000, "maxOutputTokens": 128000, "knowledgeCutoff": "2026-06", "reasoning": true, "reasoningEfforts": ["low", "medium", "high", "xhigh", "max"], "imageInput": true, "source": "claude-models", "notes": "Adaptive thinking; thinking cannot be disabled."},
17
- {"id": "claude-haiku-5-5", "provider": "anthropic", "protocols": ["anthropic"], "modelIds": ["claude-haiku-5-5"], "contextWindowTokens": 256000, "maxOutputTokens": 128000, "knowledgeCutoff": "2026-06", "reasoning": true, "reasoningEfforts": ["none", "low", "medium", "high", "xhigh", "max"], "imageInput": true, "source": "claude-models", "notes": "none disables thinking; other efforts use adaptive thinking."},
18
- {"id": "claude-opus-5-5", "provider": "anthropic", "protocols": ["anthropic"], "modelIds": ["claude-opus-5-5"], "contextWindowTokens": 256000, "maxOutputTokens": 128000, "knowledgeCutoff": "2026-06", "reasoning": true, "reasoningEfforts": ["low", "medium", "high", "xhigh", "max"], "imageInput": true, "source": "claude-models", "notes": "Adaptive thinking; thinking cannot be disabled."},
19
- {"id": "claude-sonnet-5-5", "provider": "anthropic", "protocols": ["anthropic"], "modelIds": ["claude-sonnet-5-5"], "contextWindowTokens": 256000, "maxOutputTokens": 128000, "knowledgeCutoff": "2026-06", "reasoning": true, "reasoningEfforts": ["low", "medium", "high", "xhigh", "max"], "imageInput": true, "source": "claude-models", "notes": "Adaptive thinking; thinking cannot be disabled."},
20
- {
21
- "id": "gpt-5.6-sol",
22
- "provider": "openai",
23
- "modelIds": [
24
- "gpt-5.6-sol"
25
- ],
26
- "contextWindowTokens": 256000,
27
- "maxOutputTokens": 128000,
28
- "knowledgeCutoff": "2026-02-16",
29
- "reasoning": true,
30
- "imageInput": true,
31
- "source": "openai-models",
32
- "reasoningEfforts": [
33
- "none",
34
- "low",
35
- "medium",
36
- "high",
37
- "xhigh",
38
- "max"
39
- ]
40
- },
41
- {
42
- "id": "gpt-5.6-terra",
43
- "provider": "openai",
44
- "modelIds": [
45
- "gpt-5.6-terra"
46
- ],
47
- "contextWindowTokens": 256000,
48
- "maxOutputTokens": 128000,
49
- "knowledgeCutoff": "2026-02-16",
50
- "reasoning": true,
51
- "imageInput": true,
52
- "source": "openai-models",
53
- "reasoningEfforts": [
54
- "none",
55
- "low",
56
- "medium",
57
- "high",
58
- "xhigh",
59
- "max"
60
- ]
61
- },
62
- {
63
- "id": "gpt-5.6-luna",
64
- "provider": "openai",
65
- "modelIds": [
66
- "gpt-5.6-luna"
67
- ],
68
- "contextWindowTokens": 256000,
69
- "maxOutputTokens": 128000,
70
- "knowledgeCutoff": "2026-02-16",
71
- "reasoning": true,
72
- "imageInput": true,
73
- "source": "openai-models",
74
- "reasoningEfforts": [
75
- "none",
76
- "low",
77
- "medium",
78
- "high",
79
- "xhigh",
80
- "max"
81
- ]
82
- },
83
- {
84
- "id": "gpt-6-sol",
85
- "provider": "openai",
86
- "modelIds": [
87
- "gpt-6-sol"
88
- ],
89
- "contextWindowTokens": 256000,
90
- "maxOutputTokens": 128000,
91
- "reasoning": true,
92
- "imageInput": true,
93
- "source": "openai-models",
94
- "reasoningEfforts": [
95
- "none",
96
- "low",
97
- "medium",
98
- "high",
99
- "xhigh",
100
- "max"
101
- ]
102
- },
103
- {
104
- "id": "gpt-6.1-sol",
105
- "provider": "openai",
106
- "modelIds": [
107
- "gpt-6.1-sol"
108
- ],
109
- "contextWindowTokens": 256000,
110
- "maxOutputTokens": 128000,
111
- "reasoning": true,
112
- "imageInput": true,
113
- "source": "openai-models",
114
- "reasoningEfforts": [
115
- "none",
116
- "low",
117
- "medium",
118
- "high",
119
- "xhigh",
120
- "max"
121
- ]
122
- },
123
- {
124
- "id": "gpt-6-astra",
125
- "provider": "openai",
126
- "modelIds": [
127
- "gpt-6-astra"
128
- ],
129
- "contextWindowTokens": 256000,
130
- "maxOutputTokens": 128000,
131
- "reasoning": true,
132
- "imageInput": true,
133
- "source": "openai-models",
134
- "reasoningEfforts": [
135
- "none",
136
- "low",
137
- "medium",
138
- "high",
139
- "xhigh",
140
- "max"
141
- ]
142
- }
143
- ]
144
- }
1
+ {
2
+ "updatedAt": "2026-11-03",
3
+ "notes": [
4
+ "Bundled metadata for current mainstream Claude models and supported OpenAI models.",
5
+ "Claude contextWindowTokens is neo's configured 256000-token usage ceiling, not the upstream model maximum or a pricing guarantee.",
6
+ "MODEL_CONTEXT_WINDOW_TOKENS or OPENAI_CONTEXT_WINDOW_TOKENS overrides contextWindowTokens at runtime.",
7
+ "Model IDs and aliases are matched case-insensitively. Availability depends on the connected API and account."
8
+ ],
9
+ "sources": {
10
+ "claude-models": "https://platform.claude.com/docs/en/models/overview",
11
+ "claude-effort": "https://platform.claude.com/docs/en/build-with-claude/effort",
12
+ "openai-models": "https://developers.openai.com/api/docs/models",
13
+ "openai-reasoning": "https://developers.openai.com/api/docs/guides/reasoning"
14
+ },
15
+ "models": [
16
+ {"id": "claude-fable-5-1", "provider": "anthropic", "protocols": ["anthropic"], "modelIds": ["claude-fable-5-1"], "contextWindowTokens": 256000, "maxOutputTokens": 128000, "knowledgeCutoff": "2026-06", "reasoning": true, "reasoningEfforts": ["low", "medium", "high", "xhigh", "max"], "imageInput": true, "source": "claude-models", "notes": "Adaptive thinking; thinking cannot be disabled."},
17
+ {"id": "claude-haiku-5-5", "provider": "anthropic", "protocols": ["anthropic"], "modelIds": ["claude-haiku-5-5"], "contextWindowTokens": 256000, "maxOutputTokens": 128000, "knowledgeCutoff": "2026-06", "reasoning": true, "reasoningEfforts": ["none", "low", "medium", "high", "xhigh", "max"], "imageInput": true, "source": "claude-models", "notes": "none disables thinking; other efforts use adaptive thinking."},
18
+ {"id": "claude-opus-5-5", "provider": "anthropic", "protocols": ["anthropic"], "modelIds": ["claude-opus-5-5"], "contextWindowTokens": 256000, "maxOutputTokens": 128000, "knowledgeCutoff": "2026-06", "reasoning": true, "reasoningEfforts": ["low", "medium", "high", "xhigh", "max"], "imageInput": true, "source": "claude-models", "notes": "Adaptive thinking; thinking cannot be disabled."},
19
+ {"id": "claude-sonnet-5-5", "provider": "anthropic", "protocols": ["anthropic"], "modelIds": ["claude-sonnet-5-5"], "contextWindowTokens": 256000, "maxOutputTokens": 128000, "knowledgeCutoff": "2026-06", "reasoning": true, "reasoningEfforts": ["low", "medium", "high", "xhigh", "max"], "imageInput": true, "source": "claude-models", "notes": "Adaptive thinking; thinking cannot be disabled."},
20
+ {
21
+ "id": "gpt-5.6-sol",
22
+ "provider": "openai",
23
+ "modelIds": [
24
+ "gpt-5.6-sol"
25
+ ],
26
+ "contextWindowTokens": 256000,
27
+ "maxOutputTokens": 128000,
28
+ "knowledgeCutoff": "2026-02-16",
29
+ "reasoning": true,
30
+ "imageInput": true,
31
+ "source": "openai-models",
32
+ "reasoningEfforts": [
33
+ "none",
34
+ "low",
35
+ "medium",
36
+ "high",
37
+ "xhigh",
38
+ "max"
39
+ ]
40
+ },
41
+ {
42
+ "id": "gpt-5.6-terra",
43
+ "provider": "openai",
44
+ "modelIds": [
45
+ "gpt-5.6-terra"
46
+ ],
47
+ "contextWindowTokens": 256000,
48
+ "maxOutputTokens": 128000,
49
+ "knowledgeCutoff": "2026-02-16",
50
+ "reasoning": true,
51
+ "imageInput": true,
52
+ "source": "openai-models",
53
+ "reasoningEfforts": [
54
+ "none",
55
+ "low",
56
+ "medium",
57
+ "high",
58
+ "xhigh",
59
+ "max"
60
+ ]
61
+ },
62
+ {
63
+ "id": "gpt-5.6-luna",
64
+ "provider": "openai",
65
+ "modelIds": [
66
+ "gpt-5.6-luna"
67
+ ],
68
+ "contextWindowTokens": 256000,
69
+ "maxOutputTokens": 128000,
70
+ "knowledgeCutoff": "2026-02-16",
71
+ "reasoning": true,
72
+ "imageInput": true,
73
+ "source": "openai-models",
74
+ "reasoningEfforts": [
75
+ "none",
76
+ "low",
77
+ "medium",
78
+ "high",
79
+ "xhigh",
80
+ "max"
81
+ ]
82
+ },
83
+ {
84
+ "id": "gpt-6-sol",
85
+ "provider": "openai",
86
+ "modelIds": [
87
+ "gpt-6-sol"
88
+ ],
89
+ "contextWindowTokens": 256000,
90
+ "maxOutputTokens": 128000,
91
+ "reasoning": true,
92
+ "imageInput": true,
93
+ "source": "openai-models",
94
+ "reasoningEfforts": [
95
+ "none",
96
+ "low",
97
+ "medium",
98
+ "high",
99
+ "xhigh",
100
+ "max"
101
+ ]
102
+ },
103
+ {
104
+ "id": "gpt-6.1-sol",
105
+ "provider": "openai",
106
+ "modelIds": [
107
+ "gpt-6.1-sol"
108
+ ],
109
+ "contextWindowTokens": 256000,
110
+ "maxOutputTokens": 128000,
111
+ "reasoning": true,
112
+ "imageInput": true,
113
+ "source": "openai-models",
114
+ "reasoningEfforts": [
115
+ "none",
116
+ "low",
117
+ "medium",
118
+ "high",
119
+ "xhigh",
120
+ "max"
121
+ ]
122
+ },
123
+ {
124
+ "id": "gpt-6-astra",
125
+ "provider": "openai",
126
+ "modelIds": [
127
+ "gpt-6-astra"
128
+ ],
129
+ "contextWindowTokens": 256000,
130
+ "maxOutputTokens": 128000,
131
+ "reasoning": true,
132
+ "imageInput": true,
133
+ "source": "openai-models",
134
+ "reasoningEfforts": [
135
+ "none",
136
+ "low",
137
+ "medium",
138
+ "high",
139
+ "xhigh",
140
+ "max"
141
+ ]
142
+ }
143
+ ]
144
+ }
@@ -952,6 +952,8 @@ export declare class WebRepl {
952
952
  private scheduleDeltaFlush;
953
953
  private flushDeltaOperations;
954
954
  private discardPendingDeltaOperations;
955
+ /** Snapshot for one subscriber; it already includes every currently queued delta operation. */
956
+ private sendSubscriberSnapshot;
955
957
  private dropInactiveTerminalOutput;
956
958
  private queueTerminalOutput;
957
959
  private flushTerminalOutput;