@cirtium/acent-connect 1.1.2 → 1.1.4
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/acent/.claude-plugin/plugin.json +1 -1
- package/acent/.codex-plugin/plugin.json +1 -1
- package/acent/.cursor-plugin/plugin.json +1 -1
- package/acent/scripts/acent-connect.mjs +43 -26
- package/acent/scripts/bridge-capture.mjs +120 -0
- package/acent/scripts/bridge-checks.mjs +12 -2
- package/acent/scripts/bridge-finalize.mjs +10 -1
- package/acent/scripts/bridge-refinement.mjs +93 -22
- package/acent/scripts/bridge-review-result.mjs +12 -0
- package/acent/scripts/bridge-runners.mjs +170 -86
- package/acent/scripts/bridge.mjs +70 -13
- package/acent/scripts/capture-activity.mjs +5 -3
- package/acent/scripts/hook.mjs +11 -0
- package/acent/scripts/mcp-proxy.mjs +17 -1
- package/acent/skills/acent-bridge/SKILL.md +25 -2
- package/antigravity/plugin.json +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ import { connectionContext, createRootsChannel, projectFolder } from "./connecti
|
|
|
8
8
|
import { memoryInstructions } from "./memory-instructions.mjs"
|
|
9
9
|
import { attachmentTool, saveAttachments } from "./capture-attachments.mjs"
|
|
10
10
|
import { bridgeInstructions, bridgeTools, createBridge } from "./bridge.mjs"
|
|
11
|
+
import { bridgeCaptureEvents } from "./bridge-capture.mjs"
|
|
11
12
|
import { createInterface } from "node:readline"
|
|
12
13
|
import { mkdir } from "node:fs/promises"
|
|
13
14
|
import { dirname } from "node:path"
|
|
@@ -19,6 +20,8 @@ import {
|
|
|
19
20
|
accessToken,
|
|
20
21
|
request,
|
|
21
22
|
connect,
|
|
23
|
+
drain,
|
|
24
|
+
queueManagedCapture,
|
|
22
25
|
} from "./acent-connect.mjs"
|
|
23
26
|
const launchArgs = process.argv.slice(2)
|
|
24
27
|
// Hosts can leave workspaceFolder unsubstituted in a projectless window.
|
|
@@ -218,9 +221,22 @@ async function handleLine(line) {
|
|
|
218
221
|
])
|
|
219
222
|
try {
|
|
220
223
|
const access = await accessToken(projectConfig, configDirectory(projectConfig))
|
|
221
|
-
|
|
224
|
+
const settings = await request(projectConfig, "/api/external/bridge", {
|
|
222
225
|
headers: { Authorization: `Bearer ${access}` },
|
|
223
226
|
})
|
|
227
|
+
if (settings.capture?.code || settings.capture?.activity) {
|
|
228
|
+
const directory = configDirectory(projectConfig)
|
|
229
|
+
settings.captureEvidence = async (evidence) => {
|
|
230
|
+
try {
|
|
231
|
+
await queueManagedCapture(projectConfig, directory, settings.capture,
|
|
232
|
+
bridgeCaptureEvents(evidence, settings.capture), evidence.at)
|
|
233
|
+
void drain(projectConfig, directory).catch(() => {})
|
|
234
|
+
} catch {
|
|
235
|
+
console.error("Acent could not queue Bridge history.")
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
return settings
|
|
224
240
|
} catch (error) {
|
|
225
241
|
if (needsConnection(error))
|
|
226
242
|
throw new Error("Connect this project folder to Acent before using Bridge.")
|
|
@@ -1,18 +1,41 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: acent-bridge
|
|
3
|
-
description: Acent Bridge delegates work to another coding agent in the current project. Use
|
|
3
|
+
description: Acent Bridge delegates work to another coding agent in the current project. Use for explicit delegation requests and when evaluating automatic delegation for independent implementation tasks, high-impact reviews, or difficult diagnoses.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Acent Bridge
|
|
7
7
|
|
|
8
8
|
Use the Acent Bridge MCP tools in a session with one local project folder open. If the tools are unavailable, tell the user that Bridge is unavailable in the current session.
|
|
9
9
|
|
|
10
|
-
-
|
|
10
|
+
- Check `acent_bridge_settings` while planning work that matches any trigger below. Check as soon as a trigger becomes clear during the task. If the project reports `automatic: true` and a suitable candidate is available, start the matching workflow. Pass `automatic: true` when listing candidates, starting a task, or starting refinement. Honor the user's instructions about delegation. Users can change the setting in the project's Bridge dialog.
|
|
11
|
+
- **Parallel implementation.** Delegate independently verifiable tasks with disjoint write scopes once shared design decisions are settled.
|
|
12
|
+
- **Independent review.** Have a different model family review substantive changes to payments, authorization, privacy, or durable data before reporting completion. The coordinating agent can perform the implementation.
|
|
13
|
+
- **Independent diagnosis.** Delegate a read-only investigation if the cause remains unclear or a fix repeatedly fails.
|
|
14
|
+
- Keep small, straightforward edits and dependent steps with the coordinating agent. Give each shared contract, state machine, or business rule one writer, even when it spans separate files. Finish a prerequisite first or use `dependsOn` when later work needs its result. Use read-only review or diagnosis for independent work when writes need one owner.
|
|
15
|
+
- Keep authorized production actions with the coordinating agent, including deployments, database migrations, and live payments or refunds. Bridge can review the plan or verify the outcome independently.
|
|
16
|
+
- If automatic delegation is disabled, continue directly. If it is enabled and no suitable candidate is available, continue the work you can verify and report why independent work did not run.
|
|
11
17
|
- Classify the work as `implement`, `review`, or `diagnose`. Call `acent_bridge_candidates` and select a returned tool and model that fit the task and the user's preference. For review and diagnosis, pass the verified originating model ID so Bridge can restrict candidates to a different model family. Report when no eligible candidate is available.
|
|
12
18
|
- Use a reported quota snapshot as a tiebreaker among suitable candidates. When a quota is low, favor a lower-usage option if it still fits the task and the user has not pinned a model. Quota windows are provider-specific, and tokens from the last run cannot establish remaining quota.
|
|
13
19
|
- Start with `acent_bridge_start`. Use `paths` for the files to review or the files an implementation may edit. Use `readPaths` for additional context the delegate may read. Include the relevant decisions and how to verify completion. Run up to four independent tasks with disjoint write scopes. Pass `dependsOn` when a task needs the result of earlier work. Review and diagnosis run in read-only mode.
|
|
14
20
|
- Check multiple jobs together with `acent_bridge_activity`, or use `acent_bridge_status` for a patch or a full answer. While jobs run, continue independent work and avoid tight polling. If a delegate requests context, answer with the relevant evidence using `acent_bridge_continue`. Ask the user if their judgment is needed. Resume interrupted work from its existing copy or use `acent_bridge_cancel` to stop work that is no longer needed.
|
|
21
|
+
- In the final answer, name any enabled or explicitly requested tool that could not participate because its CLI required authentication. Use `loginRequiredTools` from candidate selection or `login_required` from task or refinement status. Include the tool even if others completed the work, and use its final result if it later succeeded. Point the user to **Set up** in Acent Bridge. Report model catalog failures and other unavailable states with their own reasons.
|
|
15
22
|
- Use `acent_bridge_integrate` to check completed patches together. Review them before applying. For substantive changes you are authorized to edit, start `acent_bridge_refine` with a UUID, the original task and constraints, the scoped files, a repair model, and one or more reviewers from distinct model families outside the original and repair families. Pass applied task IDs in `dependsOn`. For a read-only request, use the standalone review instead.
|
|
16
23
|
- Refinement supplies the original scoped Git diff and the cumulative repair diff to reviewers. It gathers independent findings and re-reviews repairs in a private staging workspace. Keep working on unrelated files while it runs. Check its status when results are needed. If a worker requests context, answer with `acent_bridge_continue` and then check refinement status. If a reviewer cannot run, call `replace_reviewer` with that review ID and an eligible replacement model. Completed reviews in that round stay in place.
|
|
17
24
|
- At `needs_checks`, call the refinement's `verify` action with the current `checkRevision` and the authorized test executables and arguments. Bridge runs them in a private copy of the reviewed candidate. For a standalone review of integrated edits, submit `commands` to `acent_bridge_finalize` and poll without them. Both flows prepare dependencies in the private test copy. Bridge can install locked npm dependencies automatically, and `setupCommands` can supply the project's own preparation steps. Report verification after `verified`. If project files captured in the verification snapshot change, begin from the latest changes.
|
|
18
25
|
- Use `apply: true` to apply scoped repairs after the stage passes review and tests. Otherwise inspect the verified patch and call `apply` with the current `checkRevision`. If the user stops verification or refinement, call its `cancel` action and confirm the final state. If promotion has already started, check what was applied. If findings remain after three repairs or require files outside the approved scope, report the blocker.
|
|
26
|
+
|
|
27
|
+
## Review when only the coordinator can access a source
|
|
28
|
+
|
|
29
|
+
- When a database, provider dashboard, deployment log, or connector is available only to the coordinator, keep its checks with the coordinator and delegate the parts that can be independently reviewed using source code, migrations, local tests, or sanitized evidence. Follow the project's automatic setting and candidate selection rules.
|
|
30
|
+
- In `acent_bridge_start.context`, provide the minimum evidence the delegate needs, such as the environment, when the check ran, the condition checked, and the observed result or relevant counts. Omit credentials, personal data, raw logs, and customer or payment identifiers. If the delegate requests more evidence, answer its context question with `acent_bridge_continue`.
|
|
31
|
+
- In `task` and `acceptance`, identify what the delegate should check independently and what evidence came from the coordinator. Ask the delegate to test the reported conclusion against the code and to identify what could invalidate it. The delegate should report direct observations, conclusions based on supplied evidence, and checks that remain unverified.
|
|
32
|
+
|
|
33
|
+
For a payment review, the coordinator can report that a sandbox purchase produced one monthly credit grant after replay. The delegate can independently review whether the migration and worker preserve that result when the same payment arrives through overlapping retry paths.
|
|
34
|
+
|
|
35
|
+
## Report Bridge results
|
|
36
|
+
|
|
37
|
+
1. Include an Acent Bridge section in the first final answer after any Bridge run or requested independent review, including when a requested review could not run. Start with `**Acent Bridge** · <status>` in the user's language. Follow it immediately with a Markdown table with columns for agent or check, scope, outcome, and findings or evidence. Include the table even when only one delegate participated or its execution model is unknown. Name the coordinator and delegate separately for the checks each performed. For delegates, use `actualModel` as the host-reported model. For the coordinator, use the host's model metadata for that turn when available. When the execution model is unavailable, label any requested model as requested and mark the execution model unconfirmed. Keep model families separate from model names.
|
|
38
|
+
2. Use one row per distinct task, review, or check. Keep relevant earlier rounds and replacement reviewers visible. Use `reviewResult` and `reviewResults` to distinguish findings, no findings in the reviewed scope, unclassified output, failed or blocked reviews, and reviews that did not run. Mark `checksNotRun` as not run and report other unavailable tools with their observed reasons. Preserve findings reported by a single reviewer. Say whether each material finding was reproduced, fixed and rechecked, or still needs verification. Cite file lines and short observed evidence in the table or in an Evidence section above the conclusion. Keep raw logs and credentials out of the answer.
|
|
39
|
+
3. End with a final conclusion stating whether the patch was applied or is awaiting application, which material findings or checks remain, and the recommended next action when one is needed. For read-only work, conclude with the result and any remaining uncertainty.
|
|
40
|
+
|
|
41
|
+
When the coordinator and delegate verify different parts of a result, name the observer for each material piece of evidence and identify any check that remains unverified.
|
package/antigravity/plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://antigravity.google/schemas/v1/plugin.json",
|
|
3
3
|
"name": "acent",
|
|
4
4
|
"displayName": "Acent",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.4",
|
|
6
6
|
"description": "Recall past work, trace code changes, revisit decisions, and resume tasks with Acent.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Cirtium"
|