negotium 0.15.1 → 0.16.1
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 +8 -3
- package/bin/negotium.mjs +18 -0
- package/dist/agent-helpers.js +376 -276
- package/dist/agent-helpers.js.map +23 -21
- package/dist/background-bash.js +28 -13
- package/dist/background-bash.js.map +4 -4
- package/dist/browser-runtime.js +105 -46
- package/dist/browser-runtime.js.map +10 -9
- package/dist/{chunk-5kdwqcz7.js → chunk-emzrsg4j.js} +1 -1
- package/dist/{chunk-p0011tm7.js → chunk-ezfxb5ad.js} +88 -42
- package/dist/{chunk-p0011tm7.js.map → chunk-ezfxb5ad.js.map} +11 -10
- package/dist/{chunk-vwtb2mqf.js → chunk-syp92qdd.js} +5 -4
- package/dist/{chunk-vwtb2mqf.js.map → chunk-syp92qdd.js.map} +5 -5
- package/dist/hosted-agent.js +118 -61
- package/dist/hosted-agent.js.map +18 -16
- package/dist/main.js +616 -496
- package/dist/main.js.map +36 -34
- package/dist/mcp-factories.js +336 -239
- package/dist/mcp-factories.js.map +24 -22
- package/dist/media.js +27 -13
- package/dist/media.js.map +3 -3
- package/dist/prompts.js +27 -13
- package/dist/prompts.js.map +3 -3
- package/dist/query-runtime.js +37 -14
- package/dist/query-runtime.js.map +5 -5
- package/dist/registry.js +3 -3
- package/dist/rollout.js +2 -2
- package/dist/runtime/src/agents/claude-provider.ts +4 -0
- package/dist/runtime/src/agents/codex-app-server.ts +2 -0
- package/dist/runtime/src/agents/codex-native-multi-agent.ts +2 -0
- package/dist/runtime/src/agents/codex-provider.ts +2 -0
- package/dist/runtime/src/agents/codex-tree-kill.ts +3 -0
- package/dist/runtime/src/agents/codex-vault-hook-bridge.ts +31 -2
- package/dist/runtime/src/agents/mcp-tools/inline-assets.ts +11 -1
- package/dist/runtime/src/agents/rollout/shared.ts +2 -1
- package/dist/runtime/src/index.ts +1 -0
- package/dist/runtime/src/mcp/factories/agent-health.ts +2 -0
- package/dist/runtime/src/mcp/session-comm/runtime.ts +2 -2
- package/dist/runtime/src/mcp/wiki-search-index.ts +3 -3
- package/dist/runtime/src/mcp-runtime-host.ts +1 -0
- package/dist/runtime/src/platform/background-bash/manager.ts +3 -0
- package/dist/runtime/src/platform/config.ts +74 -14
- package/dist/runtime/src/platform/ipc.ts +55 -0
- package/dist/runtime/src/platform/paths.ts +48 -0
- package/dist/runtime/src/platform/playwright/manager.ts +60 -22
- package/dist/runtime/src/platform/playwright/vault-broker.ts +9 -5
- package/dist/runtime/src/runtime/visuals.ts +8 -5
- package/dist/runtime/src/security/sensitive-path.ts +9 -2
- package/dist/runtime/src/storage/sqlite.ts +25 -0
- package/dist/runtime/src/storage/storage-host.ts +3 -3
- package/dist/runtime/src/storage/vault.ts +16 -5
- package/dist/runtime/src/version.ts +1 -1
- package/dist/runtime-helpers.js +51 -19
- package/dist/runtime-helpers.js.map +8 -7
- package/dist/sqlite.js +11 -1
- package/dist/sqlite.js.map +3 -3
- package/dist/storage.js +12 -3
- package/dist/storage.js.map +4 -4
- package/dist/types/packages/core/src/platform/config.d.ts +11 -3
- package/dist/types/packages/core/src/platform/ipc.d.ts +32 -0
- package/dist/types/packages/core/src/platform/paths.d.ts +18 -0
- package/dist/types/packages/core/src/storage/sqlite.d.ts +16 -0
- package/dist/types/packages/core/src/version.d.ts +1 -1
- package/dist/vault.js +49 -19
- package/dist/vault.js.map +6 -6
- package/install-bash-rs.mjs +11 -5
- package/install-browser-rs.mjs +10 -4
- package/package.json +3 -2
- /package/dist/{chunk-5kdwqcz7.js.map → chunk-emzrsg4j.js.map} +0 -0
package/README.md
CHANGED
|
@@ -3,9 +3,14 @@
|
|
|
3
3
|
The one-command installer for the complete Negotium multi-agent node. The package includes the CLI,
|
|
4
4
|
runtime, MCP services, Cron module, and first-party Terminal, Telegram, and Otium adapters.
|
|
5
5
|
|
|
6
|
-
Requires Bun 1.2.15 or newer on macOS or
|
|
7
|
-
Linux hosts without `DISPLAY` or `WAYLAND_DISPLAY` also require Xvfb (`xvfb-run`) for
|
|
8
|
-
tools.
|
|
6
|
+
Requires Bun 1.2.15 or newer on macOS, Linux, or Windows, plus credentials for Claude, Codex, or
|
|
7
|
+
Maestro. Linux hosts without `DISPLAY` or `WAYLAND_DISPLAY` also require Xvfb (`xvfb-run`) for
|
|
8
|
+
browser tools. Windows hosts must use the Claude or Maestro backend — Codex turns fail closed
|
|
9
|
+
because its SDK spawns the Vault hook wrapper without a shell, which no `.cmd` wrapper survives.
|
|
10
|
+
|
|
11
|
+
The installed command runs on Bun, so keep Bun on `PATH` after installing; npm only writes a
|
|
12
|
+
launcher that hands the bundle to it. If npm prints `install-scripts` warnings rather than
|
|
13
|
+
downloading the Browser.rs and Bash.rs helpers, re-run with `--allow-scripts=negotium`.
|
|
9
14
|
|
|
10
15
|
```bash
|
|
11
16
|
npm install --global negotium
|
package/bin/negotium.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
|
|
3
|
+
// Silence `maestro-agent-sdk`'s login-PATH bootstrap before the bundle loads.
|
|
4
|
+
//
|
|
5
|
+
// `#platform/maestro-bootstrap-env` already sets this, and in the source tree
|
|
6
|
+
// it works: the module is imported ahead of the SDK, so the flag is in place
|
|
7
|
+
// when the SDK evaluates it at module load. The bundle breaks that ordering.
|
|
8
|
+
// Bun emits the flag-setting module as a lazy `__esm` initializer while the
|
|
9
|
+
// SDK stays an external `import` declaration, and ESM hoists every import
|
|
10
|
+
// above the module body — so the SDK always ran first and the CLI printed
|
|
11
|
+
// `[debug] env-bootstrap: …` on every invocation.
|
|
12
|
+
//
|
|
13
|
+
// A statement in `dist/main.js` cannot win that race for the same reason, so
|
|
14
|
+
// the flag has to be set in a module that runs before it. Hence this shim:
|
|
15
|
+
// a plain statement, then a dynamic import, which is ordered.
|
|
16
|
+
process.env.MAESTRO_SDK_SILENT_BOOTSTRAP ??= "1";
|
|
17
|
+
|
|
18
|
+
await import("../dist/main.js");
|