@engineeros/connector 0.14.5 → 0.15.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/README.md +110 -104
- package/bin/engineeros-connector.mjs +1010 -977
- package/package.json +41 -41
- package/src/assessment-spool.mjs +259 -0
- package/src/runner.mjs +2013 -1990
package/README.md
CHANGED
|
@@ -1,104 +1,110 @@
|
|
|
1
|
-
# EngineerOS Connector
|
|
2
|
-
|
|
3
|
-
The connector uses an authenticated EngineerOS WebSocket for pairing, workspace identity, run lifecycle, and evidence. Coding work can run through any agent in the official ACP registry or a custom ACP v1-compatible command over stdio. Direct Codex CLI remains available as the compatibility path.
|
|
4
|
-
|
|
5
|
-
## Connect an official ACP agent
|
|
6
|
-
|
|
7
|
-
EngineerOS reads the curated [ACP agent registry](https://agentclientprotocol.com/registry), caches it for 24 hours, and uses the registry's pinned distribution for the current platform. The catalog includes Codex, Claude, Gemini, GitHub Copilot, Goose, OpenCode, Qwen Code, Cursor, and other compatible agents as they are published. List the current catalog, prepare the selected agent, then pair the workspace:
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
npx --yes @engineeros/connector@latest agents
|
|
11
|
-
npx --yes @engineeros/connector@latest agent gemini install
|
|
12
|
-
npx --yes @engineeros/connector@latest pair PAIRING-CODE --url https://your-engineeros.example --workspace . --onboard --agent gemini
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Registry `npx` and `uvx` packages are prepared with their native package runner. Registry binaries are downloaded into `~/.engineeros/agents`, checked against the published SHA-256 digest when present, and launched from that managed location. The connector checks the selected distribution before pairing. Agent processes stay alive while the connector is active, project conversations reuse their ACP sessions, and response chunks reach Copilot as the agent produces them.
|
|
16
|
-
|
|
17
|
-
## Pair an ACP coding agent
|
|
18
|
-
|
|
19
|
-
Run the command from the repository the agent should work in:
|
|
20
|
-
|
|
21
|
-
```powershell
|
|
22
|
-
npx --yes @engineeros/connector@latest pair PAIRING-CODE --url http://localhost:8000 --workspace . --onboard --agent-name "My ACP agent" --agent-command my-agent --agent-args '["--acp"]'
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
`--agent-command` must start an ACP v1 agent over NDJSON stdio. `--agent-args` is a JSON array so arguments are passed without invoking a shell. Omit `--agent` and the custom command options to use the installed Codex CLI directly.
|
|
26
|
-
|
|
27
|
-
Connect a local Codex CLI workspace to EngineerOS through an outbound WebSocket.
|
|
28
|
-
|
|
29
|
-
## Agent roles and skills
|
|
30
|
-
|
|
31
|
-
The selected ACP or Codex agent is the execution engine. EngineerOS chooses a provider-neutral role for each activity and the connector injects only that role's bundled skill:
|
|
32
|
-
|
|
33
|
-
- `research` uses `codebase-research` with read-only access for questions and workspace assessment.
|
|
34
|
-
- `planning` uses `change-planning` with read-only access for shaping, specifications, architecture, and design work.
|
|
35
|
-
- `implementation` uses `goal-execution` with workspace-write access only for a registered Goal.
|
|
36
|
-
- `verification` uses `change-verification` with read-only access for artifact review and independent Goal proof.
|
|
37
|
-
|
|
38
|
-
The connector rejects a role whose access does not match the assignment before starting the agent. Role-specific sessions preserve useful context without mixing planning, research, implementation, or verification responsibilities. A shared interaction contract makes the Agent infer the current project situation, lead with the useful outcome, and suggest one concrete next activity only when it genuinely helps. User-visible responses refer neutrally to the Agent; provider and harness details remain operational metadata.
|
|
39
|
-
|
|
40
|
-
## Onboard a workspace
|
|
41
|
-
|
|
42
|
-
Create a connection command from **Project steering -> Connect workspace**, then run it inside the local folder:
|
|
43
|
-
|
|
44
|
-
```sh
|
|
45
|
-
npx --yes @engineeros/connector@latest pair PAIRING-CODE --url https://your-engineeros.example --workspace . --onboard
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
The connector uploads a bounded ZIP snapshot for a safe file inventory, then stays online for deep assessments, rescans, and Goal Runs. Inventory never executes repository code. It excludes known secrets, dependency directories, build output, compiled binaries, files larger than 5 MB, agent-tool caches, Git metadata, and connector state before upload.
|
|
49
|
-
|
|
50
|
-
From **Project steering -> Workspace**, run the workspace assessment to use the connected agent subscription already authenticated on that computer. Select any combination of fifteen brownfield assessment domains, collectively covering 133 baseline checks from product and architecture through security, privacy, project-specific compliance, delivery, reliability, governance, and modernization planning. Every domain uses a detailed structured-Markdown contract.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
1
|
+
# EngineerOS Connector
|
|
2
|
+
|
|
3
|
+
The connector uses an authenticated EngineerOS WebSocket for pairing, workspace identity, run lifecycle, and evidence. Coding work can run through any agent in the official ACP registry or a custom ACP v1-compatible command over stdio. Direct Codex CLI remains available as the compatibility path.
|
|
4
|
+
|
|
5
|
+
## Connect an official ACP agent
|
|
6
|
+
|
|
7
|
+
EngineerOS reads the curated [ACP agent registry](https://agentclientprotocol.com/registry), caches it for 24 hours, and uses the registry's pinned distribution for the current platform. The catalog includes Codex, Claude, Gemini, GitHub Copilot, Goose, OpenCode, Qwen Code, Cursor, and other compatible agents as they are published. List the current catalog, prepare the selected agent, then pair the workspace:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npx --yes @engineeros/connector@latest agents
|
|
11
|
+
npx --yes @engineeros/connector@latest agent gemini install
|
|
12
|
+
npx --yes @engineeros/connector@latest pair PAIRING-CODE --url https://your-engineeros.example --workspace . --onboard --agent gemini
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Registry `npx` and `uvx` packages are prepared with their native package runner. Registry binaries are downloaded into `~/.engineeros/agents`, checked against the published SHA-256 digest when present, and launched from that managed location. The connector checks the selected distribution before pairing. Agent processes stay alive while the connector is active, project conversations reuse their ACP sessions, and response chunks reach Copilot as the agent produces them.
|
|
16
|
+
|
|
17
|
+
## Pair an ACP coding agent
|
|
18
|
+
|
|
19
|
+
Run the command from the repository the agent should work in:
|
|
20
|
+
|
|
21
|
+
```powershell
|
|
22
|
+
npx --yes @engineeros/connector@latest pair PAIRING-CODE --url http://localhost:8000 --workspace . --onboard --agent-name "My ACP agent" --agent-command my-agent --agent-args '["--acp"]'
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
`--agent-command` must start an ACP v1 agent over NDJSON stdio. `--agent-args` is a JSON array so arguments are passed without invoking a shell. Omit `--agent` and the custom command options to use the installed Codex CLI directly.
|
|
26
|
+
|
|
27
|
+
Connect a local Codex CLI workspace to EngineerOS through an outbound WebSocket.
|
|
28
|
+
|
|
29
|
+
## Agent roles and skills
|
|
30
|
+
|
|
31
|
+
The selected ACP or Codex agent is the execution engine. EngineerOS chooses a provider-neutral role for each activity and the connector injects only that role's bundled skill:
|
|
32
|
+
|
|
33
|
+
- `research` uses `codebase-research` with read-only access for questions and workspace assessment.
|
|
34
|
+
- `planning` uses `change-planning` with read-only access for shaping, specifications, architecture, and design work.
|
|
35
|
+
- `implementation` uses `goal-execution` with workspace-write access only for a registered Goal.
|
|
36
|
+
- `verification` uses `change-verification` with read-only access for artifact review and independent Goal proof.
|
|
37
|
+
|
|
38
|
+
The connector rejects a role whose access does not match the assignment before starting the agent. Role-specific sessions preserve useful context without mixing planning, research, implementation, or verification responsibilities. A shared interaction contract makes the Agent infer the current project situation, lead with the useful outcome, and suggest one concrete next activity only when it genuinely helps. User-visible responses refer neutrally to the Agent; provider and harness details remain operational metadata.
|
|
39
|
+
|
|
40
|
+
## Onboard a workspace
|
|
41
|
+
|
|
42
|
+
Create a connection command from **Project steering -> Connect workspace**, then run it inside the local folder:
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
npx --yes @engineeros/connector@latest pair PAIRING-CODE --url https://your-engineeros.example --workspace . --onboard
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The connector uploads a bounded ZIP snapshot for a safe file inventory, then stays online for deep assessments, rescans, and Goal Runs. Inventory never executes repository code. It excludes known secrets, dependency directories, build output, compiled binaries, files larger than 5 MB, agent-tool caches, Git metadata, and connector state before upload.
|
|
49
|
+
|
|
50
|
+
From **Project steering -> Workspace**, run the workspace assessment to use the connected agent subscription already authenticated on that computer. Select any combination of fifteen brownfield assessment domains, collectively covering 133 baseline checks from product and architecture through security, privacy, project-specific compliance, delivery, reliability, governance, and modernization planning. Every domain uses a detailed structured-Markdown contract. Connector `0.15.0` uses half of the locally available CPU parallelism by default, capped at eight assessment workers, and supports an explicit `--assessment-workers` override from 1 to 32. It atomically spools each completed Markdown report under `.engineeros/assessments/<run-id>` before delivery. ACP agents such as OpenCode use isolated stage sessions within one persistent coding-agent process. The connector owns the worker pool and sends one aggregate heartbeat containing every active worker's phase, progress, last activity, and event count; report content is no longer streamed over the WebSocket or written into backend assessment JSON. The backend validates stage checkpoints so dependency fan-out remains authoritative, while the connector retains the reports and reuses them after reconnect without rerunning completed agents. Capability detail and project-specific compliance controls fan out after their catalogs. Final synthesis reads the connector-local Markdown files, then one completed bundle is revalidated, persisted, and published as canonical artifacts. The connector removes its spool only after EngineerOS acknowledges the complete bundle. Compliance findings describe repository-verifiable engineering readiness and missing external context, never legal compliance or certification. The connector prints each worker's safe activity and elapsed time every 30 seconds, stops a worker that produces no agent activity for ten minutes instead of waiting indefinitely, and gives an incomplete report one bounded correction turn instead of repeatedly restarting it. Assessment cannot modify tracked workspace source.
|
|
51
|
+
|
|
52
|
+
Override the automatic assessment worker count when pairing (saved for that workspace) or starting the connector (for that process only):
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
npx --yes @engineeros/connector@latest start --workspace . --assessment-workers 12
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
After onboarding, every project prompt is routed to this connection. Copilot, shaping, planning, architecture, and experience generation use the connected agent subscription and workspace context. Interactive prompts run independently from assessments and Goal scheduling. Prompt runs are read-only; only an explicitly registered Goal Run receives workspace-write access. If the connector is offline, EngineerOS asks the user to reconnect instead of silently switching models.
|
|
59
|
+
|
|
60
|
+
Project prompts use resumable, role- and purpose-specific agent sessions. The connector keeps the external session identifiers in its local configuration, so Copilot and artifact conversations survive connector restarts. Changing the role, purpose, model, or reasoning effort starts a separate session. Goal implementation and verification remain isolated runs.
|
|
61
|
+
|
|
62
|
+
An empty or document-only folder establishes a greenfield baseline. A code-bearing folder is assessed as brownfield. Use **Rescan** in Steering after the local workspace changes.
|
|
63
|
+
|
|
64
|
+
## Reconnect
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
npx --yes @engineeros/connector@latest start --workspace .
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Credentials are stored per workspace under `~/.engineeros/connectors` with owner-only permissions where supported.
|
|
71
|
+
If a new pairing command is accidentally run from the same folder against the same EngineerOS server, the connector reuses this saved identity instead of creating another baseline assessment.
|
|
72
|
+
|
|
73
|
+
## Run Goals
|
|
74
|
+
|
|
75
|
+
Keep the connector online to receive Goals assigned from EngineerOS. Each Goal runs in an isolated worktree below `~/.engineeros/runs`. Cancellation stops the agent. The connector returns changed paths, a bounded diff, and the exact repository ZIP; a human still performs independent attestation.
|
|
76
|
+
|
|
77
|
+
During the writable implementation phase, Codex receives an authenticated EngineerOS MCP server automatically. It can list, read, create, update, reclassify, soft-delete, and materialize project artifacts into canonical Product records through the same repository boundary used by Copilot. The backend accepts those calls only while the assigned Goal is running. Read-only project prompts and the independent verification phase do not receive mutation tools.
|
|
78
|
+
|
|
79
|
+
Requirements: Node.js 22 or newer, Git, and an authenticated agent. `npx` distributions use npm, `uvx` distributions require uv, and binary archives require `tar` (`unzip` for ZIP files on Linux). Registry agents report their own authentication prerequisites when they start.
|
|
80
|
+
|
|
81
|
+
## Execution profiles
|
|
82
|
+
|
|
83
|
+
EngineerOS can set a workspace default model and reasoning effort, then override either value for an individual Goal. The same workspace default is used for assessments, Copilot, and generated artifacts. The connector passes the resolved values to Codex CLI and reports unsupported profiles instead of silently ignoring them.
|
|
84
|
+
|
|
85
|
+
Codex connectors advertise `gpt-5.6-sol` and `gpt-5.6-terra` by default. Override the choices shown in EngineerOS before starting the connector:
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
ENGINEEROS_AGENT_MODELS="model-a,model-b" npx @engineeros/connector start --workspace .
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Codex CLI compatibility
|
|
92
|
+
|
|
93
|
+
The connector prints the exact Codex CLI version it will use before connecting. If the
|
|
94
|
+
configured model requires a newer CLI, update Codex and restart the connector:
|
|
95
|
+
|
|
96
|
+
```sh
|
|
97
|
+
npm install -g @openai/codex@latest
|
|
98
|
+
codex --version
|
|
99
|
+
npx @engineeros/connector start --workspace .
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Publish the connector
|
|
103
|
+
|
|
104
|
+
Run the release workflow from this package instead of calling `npm publish` directly:
|
|
105
|
+
|
|
106
|
+
```sh
|
|
107
|
+
npm run release:patch
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
The workflow checks the versions already present on npm, keeps the current version when it is unpublished, or advances to the next unused patch version when necessary. It then runs the connector tests, syntax checks, and package dry run before publishing. A direct `npm publish` now stops early with the corrective command when its version already exists.
|