agentradar-cli 0.3.20 → 0.3.21

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/dist/tool-run.js CHANGED
@@ -19,6 +19,7 @@ export function envValue(contents, key) {
19
19
  const quoted = raw.startsWith("'") && raw.endsWith("'") && raw.length >= 2;
20
20
  return (quoted ? raw.slice(1, -1).replaceAll("'\\''", "'") : raw) || null;
21
21
  }
22
+ const POSITIONAL_SUBJECT = { "feedback status": "feedback-id" };
22
23
  /**
23
24
  * #1871 slice 1: `agentradar <noun> [<sub-noun>] <verb> [--<argument> <value> ...]`, every path read from the server's
24
25
  * tools/list (`_meta.cli.path`), so a new tool or a renamed path needs no CLI release. `command` is that path, or a
@@ -28,6 +29,12 @@ export function envValue(contents, key) {
28
29
  export async function callToolOverCli(runnerId, command, argumentsJson, deps = {}, flags = []) {
29
30
  const switches = new Set(flags.filter(([flag]) => ["help", "dry-run", "json"].includes(flag)).map(([flag]) => flag));
30
31
  flags = flags.filter(([flag]) => !switches.has(flag));
32
+ // FEEDBACK-OUTCOME-NOTIFY-19720: the notice teaches `feedback status <ticket id>`; the one subject goes in as the flag it fills.
33
+ const subject = POSITIONAL_SUBJECT[command.slice(0, command.lastIndexOf(" "))];
34
+ if (subject) {
35
+ flags = [[subject, command.slice(command.lastIndexOf(" ") + 1)], ...flags];
36
+ command = command.slice(0, command.lastIndexOf(" "));
37
+ }
31
38
  // Every request of a --json run, tools/list included, keeps the upgrade line off stderr.
32
39
  if (switches.has("json"))
33
40
  deps = { ...deps, json: true };
File without changes
File without changes
@@ -380,10 +380,12 @@ compact_in_place() {
380
380
  AR_COMPACT_JS="$(cd "$(dirname "$0")/.." && pwd)/pre-stop-compact.mjs" TMUX_BIN="${TMUX_BIN}" TMUX_SESSION="${TMUX_SESSION}" \
381
381
  node --input-type=module -e '
382
382
  import { spawn, spawnSync } from "node:child_process"; import { join } from "node:path";
383
- const { compactBeforeStop, paneTail, tmux, sessionProjectsDir } = await import(process.env.AR_COMPACT_JS);
383
+ const { compactBeforeStop, paneTail, tmux, sessionProjectsDir, reportToServer } = await import(process.env.AR_COMPACT_JS);
384
384
  const bin = process.env.TMUX_BIN, session = `=${process.env.TMUX_SESSION}:`;
385
385
  const dir = process.env.CLAUDE_CONFIG_DIR ? join(process.env.CLAUDE_CONFIG_DIR, "projects") : sessionProjectsDir();
386
- const r = await compactBeforeStop({ dir, session, workloadBusy: () => false, report: () => {}, minTokens: 0,
386
+ // A failed heal is reported as its end, or the next /compact reads as an overlap (COMPACTION-RACE-PARK, Pablo 11-07).
387
+ const report = (r) => reportToServer(r, process.env.AR_SESSION_DIR ? { dir: process.env.AR_SESSION_DIR } : {});
388
+ const r = await compactBeforeStop({ dir, session, workloadBusy: () => false, report, minTokens: 0,
387
389
  run: (argv) => tmux(argv, { uid: -1, spawnFn: (_c, a, o) => spawn(bin, a, o) }),
388
390
  capture: () => paneTail(session, { uid: -1, run: (_c, a, o) => spawnSync(bin, a, o) }) });
389
391
  process.exit(r.compacted ? 0 : 1);' && break
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentradar-cli",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },
@@ -34,15 +34,16 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "devDependencies": {
38
- "@types/node": "^22.20.5",
39
- "typescript": "^5.7.3",
40
- "vitest": "^4.1.8"
41
- },
42
37
  "scripts": {
43
38
  "build": "tsc && mkdir -p dist/agentradar-vendor dist/vendor-runner/supervisor && cp ../../skills/agentradar-vendor/SKILL.md dist/agentradar-vendor/SKILL.md && cp ../../templates/vendor-runner/feeder.mjs ../../templates/vendor-runner/pane-live.sh ../../templates/vendor-runner/session-frame.mjs ../../templates/vendor-runner/skill-zip.mjs ../../templates/vendor-runner/terminal-bridge.mjs dist/vendor-runner/ && cp ../../templates/vendor-runner/supervisor/supervise-agent.sh ../../templates/vendor-runner/supervisor/install-agent.sh ../../templates/vendor-runner/supervisor/com.agentradar.agent.plist.template ../../templates/vendor-runner/supervisor/agentradar-agent@.service.template dist/vendor-runner/supervisor/ && rm -rf dist/agent-guard && cp -R ../../templates/agent-guard dist/agent-guard && rm dist/agent-guard/scripts/*.test.mjs && chmod +x dist/index.js dist/vendor-runner/pane-live.sh dist/vendor-runner/supervisor/supervise-agent.sh dist/vendor-runner/supervisor/install-agent.sh",
44
39
  "clean": "rm -rf dist",
40
+ "prepack": "pnpm run build",
45
41
  "typecheck": "tsc --noEmit",
46
42
  "test": "vitest run"
43
+ },
44
+ "devDependencies": {
45
+ "@types/node": "^22.20.5",
46
+ "typescript": "^5.7.3",
47
+ "vitest": "^4.1.8"
47
48
  }
48
- }
49
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Paperclip AI
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.