@namzu/computer-use 1.2.0 → 1.3.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
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - bb8cb05: Export the 45 types that exported signatures already named.
8
+
9
+ Each is the parameter or the result of a function that was already public, and none of them was reachable. A consumer could call `createLogger` and had no name for its options or its return; could call `compactRegion`, `runBidi`, the handoff helpers, the replay helpers, and had to inline every shape or reach for `any`. The package's vocabulary stopped at the function name.
10
+
11
+ Additive: the original 28 function-signature types plus constructor contracts including `AgentManagerDeps`, `TopicManagerDeps`, `ProjectManagerDeps`, `DiskTopicStateStoreConfig`, `DiskMessageFeedbackStoreConfig`, `MessageExistenceCheck`, `EnvCredentialProviderOptions`, `FileLockManagerConfig`, `GitWorktreeDriverConfig`, `CapacityDimension`, `HandoffLockRejectedReason`, `SessionSummaryMaterializerDeps`, `ArchivalManagerDeps`, `ArchiveBackendRef`, `DiskArchiveBackendConfig`, `SlidingWindowManagerConfig`, and `SubprocessComputerUseHostOptions`.
12
+
13
+ Nothing changes for existing code.
14
+
15
+ A CI step keeps it that way. `check-signature-types-exported.mjs` resolves exported function signatures and public class constructors, then fails when a type they name is declared in the package and not exported. The constructor branch has its own self-check so removing it cannot turn the gate silently green.
16
+
3
17
  ## 1.2.0
4
18
 
5
19
  ### Minor Changes
package/README.md CHANGED
@@ -6,7 +6,7 @@ description: >-
6
6
  Which backend serves a call depends on the platform, and what a platform
7
7
  cannot do is reported as a capability rather than discovered as a failure.
8
8
  tags: [readme, package, computer-use, adapters]
9
- timestamp: 2026-08-17T00:00:00Z
9
+ timestamp: 2026-08-20T00:00:00Z
10
10
  status: active
11
11
  diataxis: reference
12
12
  -->
@@ -42,10 +42,17 @@ pnpm add @namzu/sdk @namzu/computer-use
42
42
  ## Usage
43
43
 
44
44
  ```ts
45
- import { SubprocessComputerUseHost } from '@namzu/computer-use'
45
+ import {
46
+ SubprocessComputerUseHost,
47
+ type SubprocessComputerUseHostOptions,
48
+ } from '@namzu/computer-use'
46
49
  import { createComputerUseTool, ToolRegistry } from '@namzu/sdk'
47
50
 
48
- const host = new SubprocessComputerUseHost()
51
+ const options: SubprocessComputerUseHostOptions = {
52
+ env: process.env,
53
+ platform: process.platform,
54
+ }
55
+ const host = new SubprocessComputerUseHost(options)
49
56
  await host.initialize()
50
57
 
51
58
  console.log(host.capabilities)
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { SubprocessComputerUseHost } from './SubprocessComputerUseHost.js';
2
+ export type { SubprocessComputerUseHostOptions } from './SubprocessComputerUseHost.js';
2
3
  export { detectDisplayServer } from './detect/index.js';
3
4
  /**
4
5
  * The three failures a caller has to tell apart.
@@ -12,7 +13,7 @@ export { detectDisplayServer } from './detect/index.js';
12
13
  * `AdapterUnavailableError` also carries `missing`, the list of binaries to
13
14
  * install, which is the actionable half and was unreachable without the type.
14
15
  */
15
- export { ActionCapabilityError, AdapterUnavailableError } from './adapters/types.js';
16
+ export { ActionCapabilityError, AdapterUnavailableError, } from './adapters/types.js';
16
17
  export { SpawnError } from './util/spawn.js';
17
18
  export type { SpawnOptions, SpawnResult } from './util/spawn.js';
18
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAEvD;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAC1E,YAAY,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAA;AACtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAEvD;;;;;;;;;;;GAWG;AACH,OAAO,EACN,qBAAqB,EACrB,uBAAuB,GACvB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA"}
package/dist/index.js CHANGED
@@ -12,6 +12,6 @@ export { detectDisplayServer } from './detect/index.js';
12
12
  * `AdapterUnavailableError` also carries `missing`, the list of binaries to
13
13
  * install, which is the actionable half and was unreachable without the type.
14
14
  */
15
- export { ActionCapabilityError, AdapterUnavailableError } from './adapters/types.js';
15
+ export { ActionCapabilityError, AdapterUnavailableError, } from './adapters/types.js';
16
16
  export { SpawnError } from './util/spawn.js';
17
17
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAEvD;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAE1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAEvD;;;;;;;;;;;GAWG;AACH,OAAO,EACN,qBAAqB,EACrB,uBAAuB,GACvB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@namzu/computer-use",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Subprocess-based computer-use host for @namzu/sdk. Screenshot, mouse, and keyboard control via platform-native CLIs (screencapture/osascript on darwin, xdotool/maim on Linux X11, grim/wtype/ydotool on Wayland, PowerShell on Windows).",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "engines": {
@@ -53,7 +53,7 @@
53
53
  "@types/node": "^22.19.17",
54
54
  "typescript": "^5.5.0",
55
55
  "vitest": "^3.2.6",
56
- "@namzu/sdk": "^30.1.0"
56
+ "@namzu/sdk": "^31.0.0"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsc --build",
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { SubprocessComputerUseHost } from './SubprocessComputerUseHost.js'
2
+ export type { SubprocessComputerUseHostOptions } from './SubprocessComputerUseHost.js'
2
3
  export { detectDisplayServer } from './detect/index.js'
3
4
 
4
5
  /**
@@ -13,6 +14,9 @@ export { detectDisplayServer } from './detect/index.js'
13
14
  * `AdapterUnavailableError` also carries `missing`, the list of binaries to
14
15
  * install, which is the actionable half and was unreachable without the type.
15
16
  */
16
- export { ActionCapabilityError, AdapterUnavailableError } from './adapters/types.js'
17
+ export {
18
+ ActionCapabilityError,
19
+ AdapterUnavailableError,
20
+ } from './adapters/types.js'
17
21
  export { SpawnError } from './util/spawn.js'
18
22
  export type { SpawnOptions, SpawnResult } from './util/spawn.js'