@orion-agents/orion-code 0.4.9 → 0.5.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.
package/CHANGELOG.md CHANGED
@@ -22,6 +22,11 @@ which is **not** a pass.
22
22
 
23
23
  ## [Unreleased]
24
24
 
25
+ ## [0.5.0] — UNRELEASED
26
+
27
+ - Add a desktop VS Code extension with ACP conversations, tool activity, model setup, and session resume.
28
+ - Advertise interactive model setup to ACP clients and prepare the official ACP Registry entry for Orion Code.
29
+
25
30
  ## [0.4.9] — UNRELEASED
26
31
 
27
32
  - Rebuild TUI history from retained conversation records across terminal resizes. Keep the full-width composer, tool activity, and live Thinking on an app-owned screen while preserving shell scrollback.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Local-first, goal-driven coding agent for the terminal (CLI/TUI).
4
4
 
5
- > v0.4.9 is a candidate for reliable TUI transcript and composer reflow during terminal resizing.
5
+ > v0.5.0 adds editor integrations for Zed and VS Code through ACP. See the [editor release plan](https://github.com/orion-agents/orion-code/blob/main/docs/plan/v0.5.0-plan.md) for listing and verification status.
6
6
  > Orion uses `orion.yaml` and can resume sessions created by v0.4.7.
7
7
  > A version number or local installation is not proof of release qualification or npm publication.
8
8
 
@@ -29,15 +29,15 @@ The exact package qualification floors are 22.12.0 / 24.0.0 / 26.0.0.
29
29
  Install the exact candidate tarball from the path where it was built.
30
30
 
31
31
  ```bash
32
- npm install -g /absolute/path/orion-agents-orion-code-0.4.9.tgz
32
+ npm install -g /absolute/path/orion-agents-orion-code-0.5.0.tgz
33
33
  orion --version
34
34
  orion doctor
35
35
  ```
36
36
 
37
- Use the following command once version 0.4.9 is available on npm.
37
+ Use the following command once version 0.5.0 is available on npm.
38
38
 
39
39
  ```bash
40
- npm install -g @orion-agents/orion-code@0.4.9
40
+ npm install -g @orion-agents/orion-code@0.5.0
41
41
  ```
42
42
 
43
43
  From a source checkout:
@@ -107,7 +107,7 @@ npm run format:check
107
107
  npm run build
108
108
  npm run test:coverage -- --runInBand
109
109
  npm run test:harness-confluence
110
- npm run release:check -- --expected-version 0.4.9
110
+ npm run release:check -- --expected-version 0.5.0
111
111
  ```
112
112
 
113
113
  Qualification binds one exact tarball's SHA-256 and source identity to installed CLI, TUI, terminal,
package/README.zh-CN.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  面向终端、本地优先的目标驱动 Coding Agent(CLI/TUI)。
4
4
 
5
- > v0.4.9 候选版修复终端缩放时 TUI 回复重复及输入框重绘问题。
5
+ > v0.5.0 通过 ACP 接入 Zed 和 VS Code。上架及验收进度见[编辑器发布计划](https://github.com/orion-agents/orion-code/blob/main/docs/plan/v0.5.0-plan.md)。
6
6
  > 全局配置使用 `orion.yaml`,可恢复 v0.4.7 创建的会话。
7
7
  > 源码版本号、本地可运行、候选包验收与 npm 发布分别记录,不互相替代。
8
8
 
@@ -28,15 +28,15 @@
28
28
  用构建产出的候选包安装,请替换为实际路径。
29
29
 
30
30
  ```bash
31
- npm install -g /absolute/path/orion-agents-orion-code-0.4.9.tgz
31
+ npm install -g /absolute/path/orion-agents-orion-code-0.5.0.tgz
32
32
  orion --version
33
33
  orion doctor
34
34
  ```
35
35
 
36
- 确认 npm 已有 0.4.9 后,可按固定版本安装。
36
+ 确认 npm 已有 0.5.0 后,可按固定版本安装。
37
37
 
38
38
  ```bash
39
- npm install -g @orion-agents/orion-code@0.4.9
39
+ npm install -g @orion-agents/orion-code@0.5.0
40
40
  ```
41
41
 
42
42
  从源码运行:
@@ -104,7 +104,7 @@ npm run format:check
104
104
  npm run build
105
105
  npm run test:coverage -- --runInBand
106
106
  npm run test:harness-confluence
107
- npm run release:check -- --expected-version 0.4.9
107
+ npm run release:check -- --expected-version 0.5.0
108
108
  ```
109
109
 
110
110
  准出需绑定同一 tarball 的 SHA-256 与源码身份,在三个 Node floor 验证安装后的 CLI、TUI、
@@ -273,7 +273,7 @@ class AcpSessions {
273
273
  onActiveSessionRuntime: active => active.thread.observeCommittedEvents(events => session?.observe(events)),
274
274
  });
275
275
  if (!runtime.isConfigured || !runtime.createAgentRunner) {
276
- throw sdk_1.RequestError.authRequired(undefined, `Configure a model in ${identity_1.CONFIG_FILE_NAME}`);
276
+ throw sdk_1.RequestError.authRequired(undefined, `Run orion init to configure a model, or check the API key environment variable in ${identity_1.CONFIG_FILE_NAME}`);
277
277
  }
278
278
  if (signal.aborted || this.closing)
279
279
  throw sdk_1.RequestError.requestCancelled();
package/dist/acp/stdio.js CHANGED
@@ -6,6 +6,21 @@ const node_stream_1 = require("node:stream");
6
6
  const identity_1 = require("../product/identity");
7
7
  const version_1 = require("../product/version");
8
8
  const sessions_1 = require("./sessions");
9
+ function authMethods(capabilities) {
10
+ // The ACP Registry validator still opts in through the original capability key.
11
+ const terminal = capabilities?.auth?.terminal === true || capabilities?._meta?.['terminal-auth'] === true;
12
+ return terminal
13
+ ? [
14
+ {
15
+ id: 'orion-init',
16
+ name: 'Set up Orion Code',
17
+ description: 'Configure a model and its API key environment variable in a terminal.',
18
+ type: 'terminal',
19
+ args: ['init'],
20
+ },
21
+ ]
22
+ : [];
23
+ }
9
24
  /** Own stdout for ACP frames for the lifetime of this CLI subcommand. */
10
25
  async function runAcpStdio() {
11
26
  const stdout = process.stdout;
@@ -17,11 +32,11 @@ async function runAcpStdio() {
17
32
  const sessions = new sessions_1.AcpSessions();
18
33
  try {
19
34
  const app = (0, sdk_1.agent)()
20
- .onRequest('initialize', () => ({
35
+ .onRequest('initialize', ({ params }) => ({
21
36
  protocolVersion: sdk_1.PROTOCOL_VERSION,
22
37
  agentInfo: { name: identity_1.PRODUCT_ID, title: identity_1.DISPLAY_NAME, version: version_1.PACKAGE_VERSION },
23
38
  agentCapabilities: { loadSession: true },
24
- authMethods: [],
39
+ authMethods: authMethods(params.clientCapabilities),
25
40
  }))
26
41
  .onRequest('session/new', async ({ params, client, signal }) => {
27
42
  const session = await sessions.open(params, client, signal);
package/dist/cli.js CHANGED
@@ -219,7 +219,9 @@ async function main() {
219
219
  await runAcpStdio();
220
220
  return;
221
221
  }
222
- if (args[0] === 'init' && args.length === 1) {
222
+ // ACP clients append the Terminal Auth arguments to the usual agent launch command.
223
+ if ((args[0] === 'init' && args.length === 1) ||
224
+ (args[0] === 'acp' && args[1] === 'init' && args.length === 2)) {
223
225
  const { runInitCommand } = await Promise.resolve().then(() => __importStar(require('./commands/init-command')));
224
226
  process.exitCode = await runInitCommand();
225
227
  return;
@@ -4,7 +4,6 @@ export type SupportedReleaseNodeMajorV1 = (typeof SUPPORTED_RELEASE_NODE_MAJORS_
4
4
  export declare const SUPPORTED_RELEASE_NODE_FLOORS_V1: Readonly<Record<SupportedReleaseNodeMajorV1, readonly [number, number, number]>>;
5
5
  /** CLI-only V2 intentionally rejects retired browser/runtime receipt envelopes. */
6
6
  export declare const CLI_RELEASE_RECEIPT_VERSION_V2: 2;
7
- export declare const SUPPORTED_RELEASE_VERSION_LINE_V2: "0.4.x";
8
7
  export declare const CLI_RUNTIME_PROBE_IDS_V2: readonly ["clean_install", "package_identity", "version", "help", "public_exports", "builtin_skill_assets", "native_sqlite", "tui_journey", "terminal_journey", "print_journey", "goal_journey", "subagent_journey", "skill_journey", "mcp_journey", "compact_resume_journey"];
9
8
  export type ReleaseGateDecisionV1 = 'GO' | 'NO_GO';
10
9
  export interface TarballArtifactReceiptV1 {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CLI_RUNTIME_PROBE_IDS_V2 = exports.SUPPORTED_RELEASE_VERSION_LINE_V2 = exports.CLI_RELEASE_RECEIPT_VERSION_V2 = exports.SUPPORTED_RELEASE_NODE_FLOORS_V1 = exports.SUPPORTED_RELEASE_NODE_MAJORS_V1 = exports.RELEASE_RECEIPT_VERSION_V1 = void 0;
3
+ exports.CLI_RUNTIME_PROBE_IDS_V2 = exports.CLI_RELEASE_RECEIPT_VERSION_V2 = exports.SUPPORTED_RELEASE_NODE_FLOORS_V1 = exports.SUPPORTED_RELEASE_NODE_MAJORS_V1 = exports.RELEASE_RECEIPT_VERSION_V1 = void 0;
4
4
  exports.createTarballArtifactReceiptV1 = createTarballArtifactReceiptV1;
5
5
  exports.verifyTarballArtifactReceiptV1 = verifyTarballArtifactReceiptV1;
6
6
  exports.createRuntimeMatrixReceiptV2 = createRuntimeMatrixReceiptV2;
@@ -20,7 +20,7 @@ exports.SUPPORTED_RELEASE_NODE_FLOORS_V1 = Object.freeze({
20
20
  });
21
21
  /** CLI-only V2 intentionally rejects retired browser/runtime receipt envelopes. */
22
22
  exports.CLI_RELEASE_RECEIPT_VERSION_V2 = 2;
23
- exports.SUPPORTED_RELEASE_VERSION_LINE_V2 = '0.4.x';
23
+ const STABLE_RELEASE_VERSION = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/u;
24
24
  exports.CLI_RUNTIME_PROBE_IDS_V2 = Object.freeze([
25
25
  'clean_install',
26
26
  'package_identity',
@@ -203,7 +203,12 @@ function createReleaseReceiptV2(input) {
203
203
  const majors = runtimeMatrix.map(receipt => receipt.environment.nodeMajor);
204
204
  check('source_clean', !artifact.source.dirty, 'candidate source must be clean');
205
205
  check('package_identity', artifact.package.name === '@orion-agents/orion-code', 'candidate must be the Orion Code CLI package');
206
- check('release_version', /^0[.]4[.](0|[1-9][0-9]*)$/.test(artifact.package.version), `expected=${exports.SUPPORTED_RELEASE_VERSION_LINE_V2} observed=${artifact.package.version}`);
206
+ const version = artifact.package.version;
207
+ const stable = STABLE_RELEASE_VERSION.exec(version);
208
+ const supported = stable !== null && (stable[1] !== '0' || Number(stable[2]) >= 4);
209
+ // Preserve published 0.4.x receipt digests when verifying archived releases.
210
+ const expectedVersion = stable?.[1] === '0' && stable[2] === '4' ? '0.4.x' : 'stable >=0.4.0';
211
+ check('release_version', supported, `expected=${expectedVersion} observed=${version}`);
207
212
  check('runtime_matrix_complete', majors.length === 3 &&
208
213
  exports.SUPPORTED_RELEASE_NODE_MAJORS_V1.every((major, index) => majors[index] === major), `required=22,24,26 observed=${majors.join(',')}`);
209
214
  check('runtime_floor_versions', runtimeMatrix.length === 3 &&
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@orion-agents/orion-code",
3
- "version": "0.4.9",
3
+ "version": "0.5.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@orion-agents/orion-code",
9
- "version": "0.4.9",
9
+ "version": "0.5.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@agentclientprotocol/sdk": "2.12.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-agents/orion-code",
3
- "version": "0.4.9",
3
+ "version": "0.5.0",
4
4
  "description": "Orion Code - local-first goal-driven coding agent for the terminal.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",