@namzu/computer-use 1.1.1 → 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 +28 -0
- package/README.md +10 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
- package/src/index.ts +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
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
|
+
|
|
17
|
+
## 1.2.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 03e363c: Declare the Node floor these packages already had, and export a type `TelemetryConfig` already required.
|
|
22
|
+
|
|
23
|
+
**`engines.node: ">=20.0.0"`.** Only `@namzu/cli` declared one; the other fourteen published without any, so npm could not warn a consumer installing onto an unsupported runtime — they got a crash at some later import instead. The floor is not new: `@namzu/cli` has declared it since it shipped and `install.sh` has enforced it since it existed. This makes the other fourteen say the same thing.
|
|
24
|
+
|
|
25
|
+
If you install with `engine-strict=true` on Node 18, an install that previously emitted nothing will now fail. Upgrade to Node 20 or newer, which the code already assumed. Everyone else sees no change, or an `EBADENGINE` warning that replaces a later crash.
|
|
26
|
+
|
|
27
|
+
Worth stating plainly: CI verifies Node 22 and 24. The 20 floor is a declared minimum, not a tested one.
|
|
28
|
+
|
|
29
|
+
**`SpanProcessorLike` is now exported from `@namzu/telemetry`.** `TelemetryConfig.spanProcessors` takes `readonly SpanProcessorLike[]`, and the type had no export — a field on the public surface whose type was not on it, so a host supplying the value had to inline the shape or reach for `any`.
|
|
30
|
+
|
|
3
31
|
## 1.1.1
|
|
4
32
|
|
|
5
33
|
### Patch 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-
|
|
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 {
|
|
45
|
+
import {
|
|
46
|
+
SubprocessComputerUseHost,
|
|
47
|
+
type SubprocessComputerUseHostOptions,
|
|
48
|
+
} from '@namzu/computer-use'
|
|
46
49
|
import { createComputerUseTool, ToolRegistry } from '@namzu/sdk'
|
|
47
50
|
|
|
48
|
-
const
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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;
|
|
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,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@namzu/computer-use",
|
|
3
|
-
"version": "1.
|
|
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
|
+
"engines": {
|
|
7
|
+
"node": ">=20.0.0"
|
|
8
|
+
},
|
|
6
9
|
"type": "module",
|
|
7
10
|
"homepage": "https://github.com/cogitave/namzu#readme",
|
|
8
11
|
"repository": {
|
|
@@ -50,7 +53,7 @@
|
|
|
50
53
|
"@types/node": "^22.19.17",
|
|
51
54
|
"typescript": "^5.5.0",
|
|
52
55
|
"vitest": "^3.2.6",
|
|
53
|
-
"@namzu/sdk": "^
|
|
56
|
+
"@namzu/sdk": "^31.0.0"
|
|
54
57
|
},
|
|
55
58
|
"scripts": {
|
|
56
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 {
|
|
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'
|