@nathapp/nax-agent-acp 0.85.1 → 0.87.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
@@ -3,6 +3,14 @@
3
3
  All notable changes to `@nathapp/nax-agent-acp` are recorded here. Versions move in
4
4
  step with `@nathapp/nax-agent`.
5
5
 
6
+ ## [0.87.0] - 2026-10-11
7
+
8
+ - No changes in this package. Released in lockstep with the other nax packages.
9
+
10
+ ## [0.86.0] - 2026-10-10
11
+
12
+ - No changes in this package. Released in lockstep with the other nax packages.
13
+
6
14
  ## [0.85.1] - 2026-10-10
7
15
 
8
16
  ### Added
@@ -90,15 +90,19 @@ async function readExisting(path, readFile) {
90
90
  throw error;
91
91
  }
92
92
  }
93
+ /** The first screen is the useful one: largest context window first, then by id. */
94
+ function byLargestWindow(models) {
95
+ return [...models].sort((a, b) => b.contextWindow - a.contextWindow || (a.id < b.id ? -1 : a.id > b.id ? 1 : 0));
96
+ }
93
97
  async function pickModel(input, models) {
94
98
  if (models.length === 0)
95
99
  return undefined;
96
100
  try {
97
101
  const answer = await input.interaction.prompt({
98
102
  type: "select",
99
- message: "Pick the default model for new threads (models.native.balanced)",
103
+ message: "Pick the default model for new threads (models.native.balanced) — type to filter",
100
104
  options: [
101
- ...models.map((m) => ({
105
+ ...byLargestWindow(models).map((m) => ({
102
106
  id: `${MODEL_PREFIX}${m.id}`,
103
107
  label: m.id,
104
108
  description: `${m.contextWindow} token window`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/nax-agent-acp",
3
- "version": "0.85.1",
3
+ "version": "0.87.0",
4
4
  "description": "ACP (Agent Client Protocol) backend for @nathapp/nax-agent sessions: drive Claude Code and other ACP agents through the nax-agent session API.",
5
5
  "license": "MIT",
6
6
  "author": "William Khoo",
@@ -49,7 +49,7 @@
49
49
  "zod": "^4.3.6"
50
50
  },
51
51
  "peerDependencies": {
52
- "@nathapp/nax-agent": "^0.85.1"
52
+ "@nathapp/nax-agent": "^0.87.0"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public",