@cirtium/acent-connect 1.1.5 → 1.2.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acent",
3
- "version": "1.1.5",
3
+ "version": "1.2.1",
4
4
  "description": "Recall past work, trace code changes, revisit decisions, and resume tasks with Acent.",
5
5
  "mcpServers": "./mcp-claude.json",
6
6
  "hooks": "./hooks/claude.json"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acent",
3
- "version": "1.1.5",
3
+ "version": "1.2.1",
4
4
  "description": "Recall past work, trace code changes, revisit decisions, and resume tasks with Acent.",
5
5
  "skills": "./skills/",
6
6
  "mcpServers": "./mcp-codex.json",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acent",
3
- "version": "1.1.5",
3
+ "version": "1.2.1",
4
4
  "description": "Recall past work, trace code changes, revisit decisions, and resume tasks with Acent.",
5
5
  "author": {
6
6
  "name": "Cirtium"
@@ -118,6 +118,10 @@ const checkCommands = {
118
118
  "Optional dependency preparation for the private test copy. Defaults to a locked npm install when applicable. Use an empty array to skip setup.",
119
119
  },
120
120
  }
121
+ const reviewModelInputs = {
122
+ originModel: text("Verified model ID for the earlier work being reviewed, when known."),
123
+ currentModel: text("Host-reported model ID for the requesting agent's current turn. Used when there is no verified earlier model."),
124
+ }
121
125
  export const bridgeTools = [
122
126
  toolSchema(
123
127
  "acent_bridge_settings",
@@ -126,10 +130,10 @@ export const bridgeTools = [
126
130
  ),
127
131
  toolSchema(
128
132
  "acent_bridge_candidates",
129
- "List locally available tool and model combinations for a new Bridge task. For review or diagnosis, specify the verified model ID used for the original work. Omit a tool to consider all enabled tools.",
133
+ "List locally available tool and model combinations for a new Bridge task. Review and diagnosis use the current model by default, or a verified model from the earlier work when supplied. Omit a tool to consider all enabled tools.",
130
134
  {
131
135
  kind,
132
- originModel: text("Actual model ID of the original work"),
136
+ ...reviewModelInputs,
133
137
  tool: target,
134
138
  automatic: {
135
139
  type: "boolean",
@@ -144,7 +148,7 @@ export const bridgeTools = [
144
148
  "Submit one authorized task in a private project copy. Select a candidate from acent_bridge_candidates. Bridge expands from four to eight concurrent tasks per working folder as needed. Ready tasks submitted at capacity are queued and start automatically as slots open. Parallel writes require disjoint paths. Use the returned task ID to check its status.",
145
149
  {
146
150
  kind,
147
- originModel: text("Actual model ID of the original work"),
151
+ ...reviewModelInputs,
148
152
  tool: target,
149
153
  model: text(
150
154
  "Model ID from the candidates list. Omit for the tool default."
@@ -258,7 +262,7 @@ export const bridgeTools = [
258
262
  context: text(
259
263
  "Required when starting: relevant decisions, constraints, and evidence for reviewers and the repair worker."
260
264
  ),
261
- originModel: text("Actual model ID of the original work."),
265
+ ...reviewModelInputs,
262
266
  reviewers: { type: "array", minItems: 1, maxItems: 4, items: reviewSelection },
263
267
  repair: selection,
264
268
  paths: {
@@ -297,6 +301,7 @@ export const bridgeInstructions = [
297
301
  "Keep authorized production actions such as deploys, database migrations, and live payments or refunds with the coordinating agent. Use Bridge for independent review of the plan and verification of the result.",
298
302
  "If automatic delegation is disabled, continue the task directly. If automatic delegation is enabled but no suitable candidate is available, continue work you can verify and state the specific reason the independent work did not run. Report only the reviews and checks that actually completed.",
299
303
  "Get candidates for each new task and choose a tool and model that fit the work and the user's preference. Favor lower-usage options for routine work when verified quota is low and the user has not pinned a model. Start tasks with concrete acceptance criteria.",
304
+ "For review, diagnosis, or refinement, use the host-reported current turn model as currentModel. Supply originModel only when the user is revisiting earlier work and its model is known. If earlier model metadata is missing, proceed with currentModel. In Codex, the Bridge tool hook can report the current model after a call. If Bridge returns origin_model_unverified and the hook reports a model, retry with that currentModel. Pass the same model inputs when starting the selected review. Never guess a model ID.",
300
305
  "Before starting a task or refinement, gather the decisions, constraints, and evidence that affect the delegated work. Reuse current evidence and use Acent Decisions or Recall first if missing project history could change the work. Pass the relevant facts and any unresolved constraints in context on the initial request. For self-contained work, include the current facts the delegate needs.",
301
306
  "In the final answer after using Bridge, name any enabled or explicitly requested tools that could not participate because CLI authentication was required, even if other tools completed the work. Use loginRequiredTools from candidate selection and login_required from task or refinement status as evidence. If the tool later succeeds in the same request, report its final outcome instead. Do not infer sign-out from missing models or an unavailable tool. Point users to Set up in Acent Bridge when they need to sign in.",
302
307
  "Bridge runs four tasks per project folder as a baseline and expands to eight as needed; extra ready tasks queue and start as slots open. Track queued jobs using their existing IDs. Check several jobs together with acent_bridge_activity while doing independent work. If a delegate requests context, answer from the conversation or ask the user if their judgment is needed, then continue.",
@@ -336,6 +341,14 @@ const diagnosticCodes = new Set([
336
341
  ])
337
342
  const xmlTag = /<acent-context>([\s\S]+?)<\/acent-context>\s*$/
338
343
  const reviewOnly = (kind) => kind === "review" || kind === "diagnose"
344
+
345
+ function reviewModelReference({ originModel, currentModel }) {
346
+ for (const [model, source] of [[originModel, "original"], [currentModel, "current"]]) {
347
+ if (typeof model !== "string") continue
348
+ const family = modelFamily(model)
349
+ if (family) return { model, source, family }
350
+ }
351
+ }
339
352
  const taskId = /^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$/
340
353
  const isTaskId = (id) => typeof id === "string" && taskId.test(id)
341
354
  function workerAlive(pid) {
@@ -576,8 +589,8 @@ export function createBridge({
576
589
  async function candidates(args, folder, settings) {
577
590
  if (args.automatic && !settings.automatic)
578
591
  return { status: "automatic_disabled", candidates: [] }
579
- const originFamily = modelFamily(args.originModel)
580
- if (reviewOnly(args.kind) && !originFamily)
592
+ const reference = reviewOnly(args.kind) ? reviewModelReference(args) : undefined
593
+ if (reviewOnly(args.kind) && !reference)
581
594
  return { status: "origin_model_unverified", candidates: [] }
582
595
  const permittedTargets = args.automatic ? settings.targets : bridgeTargets
583
596
  const targets = await Promise.all(
@@ -598,8 +611,8 @@ export function createBridge({
598
611
  : [{ id: null, family: item.defaultFamily ?? null }, ...item.models]
599
612
  .filter(
600
613
  (model) =>
601
- !reviewOnly(args.kind) ||
602
- (model.family && model.family !== originFamily)
614
+ !reference ||
615
+ (model.family && model.family !== reference.family)
603
616
  )
604
617
  .filter(
605
618
  (model) =>
@@ -616,6 +629,7 @@ export function createBridge({
616
629
  return {
617
630
  status: choices.length ? "ready" : "no_candidate",
618
631
  candidates: choices,
632
+ ...(reference ? { referenceModel: reference.model, referenceModelSource: reference.source } : {}),
619
633
  ...(loginRequiredTools.length ? { loginRequiredTools } : {}),
620
634
  tools: await Promise.all(
621
635
  targets.map(async (item) => ({
@@ -1334,7 +1348,12 @@ export function createBridge({
1334
1348
  }
1335
1349
  if (name === "acent_bridge_candidates")
1336
1350
  return candidates(args, folder, settings)
1337
- if (name === "acent_bridge_refine")
1351
+ if (name === "acent_bridge_refine") {
1352
+ if (args.action === "start") {
1353
+ const reference = reviewModelReference(args)
1354
+ if (!reference) return { status: "origin_model_unverified" }
1355
+ args = { ...args, originModel: reference.model }
1356
+ }
1338
1357
  return refine(args, {
1339
1358
  folder,
1340
1359
  projectDir,
@@ -1408,6 +1427,7 @@ export function createBridge({
1408
1427
  ),
1409
1428
  cancelJob: (id) => cancelJob(projectDir, coordination, id),
1410
1429
  })
1430
+ }
1411
1431
  if (name === "acent_bridge_integrate")
1412
1432
  return integrate(folder, projectDir, coordination, args.ids, args.apply, settings.captureEvidence)
1413
1433
  if (name === "acent_bridge_finalize") {
@@ -1501,7 +1521,7 @@ export function createBridge({
1501
1521
  const job = {
1502
1522
  id,
1503
1523
  kind: args.kind,
1504
- originModel: args.originModel,
1524
+ originModel: reviewOnly(args.kind) ? reviewModelReference(args)?.model : args.originModel,
1505
1525
  tool: args.tool,
1506
1526
  model: args.model ?? null,
1507
1527
  task: args.task,
@@ -31,7 +31,7 @@ try {
31
31
  !/^(?:auto|default|unknown)$/i.test(payload.model)) {
32
32
  process.stdout.write(JSON.stringify({ hookSpecificOutput: {
33
33
  hookEventName: "PostToolUse",
34
- additionalContext: `Codex reports ${payload.model} as the coordinating model for this turn. Use it for this turn's direct-work row in the Acent Bridge report.`,
34
+ additionalContext: `Codex reports ${payload.model} as the coordinating model for this turn. Use this ID as currentModel for Bridge review, diagnosis, and refinement in this turn. If candidate selection could not verify a reference model, retry with this currentModel. Use it for this turn's direct-work row in the Acent Bridge report.`,
35
35
  } }) + "\n")
36
36
  }
37
37
  await main(["collect", ...process.argv.slice(2),
@@ -15,7 +15,7 @@ Use the Acent Bridge MCP tools in a session with one local project folder open.
15
15
  - 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.
16
16
  - 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.
17
17
  - 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.
18
- - 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.
18
+ - 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, diagnosis, and refinement, pass the host-reported model for this turn as `currentModel`. Supply `originModel` when reviewing earlier work whose originating model is known. Bridge uses the earlier model when supplied and recognized, otherwise it checks independence against the current model. In Codex, if candidate selection returns `origin_model_unverified` and the Bridge hook reports the current model, retry with that ID. Pass the same model inputs to start the selected work. Report when no eligible candidate is available.
19
19
  - 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.
20
20
  - Before starting any task or refinement, gather the active decisions, constraints, and prior findings that affect the delegated scope. Use evidence already available. If missing project history could change the work, use [Acent Decisions](../acent-decisions/SKILL.md) for prior choices or [Acent Recall](../acent-recall/SKILL.md) for earlier requirements and attempts. Put the relevant facts, decision rationale where it affects the task, and unresolved points in `context` on the first call. For self-contained work, pass the current facts the delegate needs.
21
21
  - 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. Specify how to verify completion in `acceptance`. The folder shares four baseline slots across implementation, review, and diagnosis and expands up to eight as needed. Ready tasks submitted after all eight slots fill are queued and start as slots open. Track their existing IDs. Pass `dependsOn` when a task needs the result of earlier work. Review and diagnosis run in read-only mode.
@@ -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",
5
+ "version": "1.2.1",
6
6
  "description": "Recall past work, trace code changes, revisit decisions, and resume tasks with Acent.",
7
7
  "author": {
8
8
  "name": "Cirtium"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirtium/acent-connect",
3
- "version": "1.1.5",
3
+ "version": "1.2.1",
4
4
  "type": "module",
5
5
  "description": "Install and connect the shared Acent coding-tool plugin",
6
6
  "repository": {