@tryarcanist/cli 0.1.294 → 0.1.296
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 +0 -9
- package/dist/index.js +12 -64
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -307,15 +307,6 @@ arcanist repos branches https://github.com/tryarcanist/arcanist --json
|
|
|
307
307
|
|
|
308
308
|
JSON mode returns `{branches}`.
|
|
309
309
|
|
|
310
|
-
### `arcanist repos skills [repo]`
|
|
311
|
-
|
|
312
|
-
```bash
|
|
313
|
-
arcanist repos skills tryarcanist/arcanist
|
|
314
|
-
arcanist repos skills https://github.com/tryarcanist/arcanist --json
|
|
315
|
-
```
|
|
316
|
-
|
|
317
|
-
JSON mode returns `{skills}`.
|
|
318
|
-
|
|
319
310
|
### `arcanist models list`
|
|
320
311
|
|
|
321
312
|
```bash
|
package/dist/index.js
CHANGED
|
@@ -9263,17 +9263,6 @@ async function repoBranchesCommand(repoArg, options = {}, command) {
|
|
|
9263
9263
|
for (const branch of data.branches) console.log(String(branch.name ?? branch.branch ?? ""));
|
|
9264
9264
|
});
|
|
9265
9265
|
}
|
|
9266
|
-
async function repoSkillsCommand(repoArg, options = {}, command) {
|
|
9267
|
-
const { config } = resolveBusinessContext(command, options);
|
|
9268
|
-
const repo = parseRepoArgOrCurrent(repoArg);
|
|
9269
|
-
const payload = await apiFetch(
|
|
9270
|
-
config,
|
|
9271
|
-
`/api/repos/${encodeURIComponent(repo.owner)}/${encodeURIComponent(repo.repo)}/skills`
|
|
9272
|
-
);
|
|
9273
|
-
emit(command, options, payload, (data) => {
|
|
9274
|
-
for (const skill of data.skills) console.log(`${String(skill.name ?? "")} ${String(skill.description ?? "")}`);
|
|
9275
|
-
});
|
|
9276
|
-
}
|
|
9277
9266
|
|
|
9278
9267
|
// src/commands/review.ts
|
|
9279
9268
|
var PR_REVIEW_POLL_INTERVAL_MS = 1e4;
|
|
@@ -10405,6 +10394,9 @@ async function sandboxUnassignRepoCommand(targetRepoArg, options = {}, command)
|
|
|
10405
10394
|
emit(command, options, payload, () => console.log(`Cleared sandbox layer assignment for ${repoPath(targetRepo)}.`));
|
|
10406
10395
|
}
|
|
10407
10396
|
|
|
10397
|
+
// ../../shared/events/bridge.ts
|
|
10398
|
+
var ZEUS_TELEMETRY_EVENT_TYPE = "zeus_telemetry";
|
|
10399
|
+
|
|
10408
10400
|
// ../../shared/onboarding/events.ts
|
|
10409
10401
|
var ONBOARDING_STAGES = [
|
|
10410
10402
|
"repo_scan_started",
|
|
@@ -10708,7 +10700,7 @@ function isNonContentInterstitial(event) {
|
|
|
10708
10700
|
switch (event.type) {
|
|
10709
10701
|
case "agent_progress":
|
|
10710
10702
|
case "retry_status":
|
|
10711
|
-
case "
|
|
10703
|
+
case "zeus_telemetry":
|
|
10712
10704
|
case "agent_timeline":
|
|
10713
10705
|
return true;
|
|
10714
10706
|
default:
|
|
@@ -10900,50 +10892,15 @@ function projectPromptRetrying(data, index) {
|
|
|
10900
10892
|
...typeof data?.reason === "string" ? { reason: data.reason } : {}
|
|
10901
10893
|
};
|
|
10902
10894
|
}
|
|
10903
|
-
function
|
|
10904
|
-
const
|
|
10905
|
-
const returnedMemoryIds = Array.isArray(data?.returnedMemoryIds) ? data.returnedMemoryIds.filter((id) => typeof id === "string" && id.trim().length > 0) : [];
|
|
10906
|
-
const requestedMemories = mergeMemoryRefs(requestedMemoryIds, data?.requestedMemories);
|
|
10907
|
-
const returnedMemories = mergeMemoryRefs(returnedMemoryIds, data?.returnedMemories);
|
|
10908
|
-
const eventName = typeof data?.eventName === "string" ? data.eventName : "memory_recall.returned";
|
|
10895
|
+
function projectZeusTelemetry(data, index) {
|
|
10896
|
+
const eventName = typeof data?.eventName === "string" ? data.eventName : ZEUS_TELEMETRY_EVENT_TYPE;
|
|
10909
10897
|
return {
|
|
10910
|
-
type:
|
|
10911
|
-
id: `
|
|
10898
|
+
type: ZEUS_TELEMETRY_EVENT_TYPE,
|
|
10899
|
+
id: `zeus-tel-${data?.timestamp ?? index}-${eventName}`,
|
|
10912
10900
|
eventName,
|
|
10913
|
-
requestedMemoryIds,
|
|
10914
|
-
returnedMemoryIds,
|
|
10915
|
-
requestedMemories,
|
|
10916
|
-
returnedMemories,
|
|
10917
|
-
usageSource: data?.usageSource === "company_recall" ? "company_recall" : "recall",
|
|
10918
|
-
...typeof data?.intent === "string" && data.intent.trim() ? { intent: data.intent.trim() } : {},
|
|
10919
|
-
...typeof data?.tool === "string" && data.tool.trim() ? { tool: data.tool.trim() } : {},
|
|
10920
10901
|
...resolvePromptId(data) ? { promptId: resolvePromptId(data) } : {}
|
|
10921
10902
|
};
|
|
10922
10903
|
}
|
|
10923
|
-
function mergeMemoryRefs(ids, rawRefs) {
|
|
10924
|
-
const byId = /* @__PURE__ */ new Map();
|
|
10925
|
-
if (Array.isArray(rawRefs)) {
|
|
10926
|
-
for (const entry of rawRefs) {
|
|
10927
|
-
if (!isRecord(entry)) continue;
|
|
10928
|
-
const id = typeof entry.id === "string" ? entry.id.trim() : "";
|
|
10929
|
-
if (!id) continue;
|
|
10930
|
-
const ref = { id };
|
|
10931
|
-
if (typeof entry.path === "string" && entry.path.trim()) ref.path = entry.path.trim();
|
|
10932
|
-
if (typeof entry.title === "string" && entry.title.trim()) ref.title = entry.title.trim();
|
|
10933
|
-
if (typeof entry.selectionRank === "number") ref.selectionRank = entry.selectionRank;
|
|
10934
|
-
if (typeof entry.selectionScore === "number") ref.selectionScore = entry.selectionScore;
|
|
10935
|
-
if (typeof entry.reason === "string" && entry.reason.trim()) ref.reason = entry.reason.trim();
|
|
10936
|
-
if (typeof entry.expectedEffect === "string" && entry.expectedEffect.trim()) {
|
|
10937
|
-
ref.expectedEffect = entry.expectedEffect.trim();
|
|
10938
|
-
}
|
|
10939
|
-
if (typeof entry.observedEffect === "string" && entry.observedEffect.trim()) {
|
|
10940
|
-
ref.observedEffect = entry.observedEffect.trim();
|
|
10941
|
-
}
|
|
10942
|
-
byId.set(id, ref);
|
|
10943
|
-
}
|
|
10944
|
-
}
|
|
10945
|
-
return ids.map((id) => byId.get(id) ?? { id });
|
|
10946
|
-
}
|
|
10947
10904
|
function projectAgentTimeline(data, index) {
|
|
10948
10905
|
return {
|
|
10949
10906
|
type: "agent_timeline",
|
|
@@ -11187,8 +11144,9 @@ function flattenSessionEvents(raw) {
|
|
|
11187
11144
|
case "prompt_retrying":
|
|
11188
11145
|
pushEvent(state, projectPromptRetrying(data, state.merged.length));
|
|
11189
11146
|
break;
|
|
11147
|
+
case "zeus_telemetry":
|
|
11190
11148
|
case "memory_recall_usage":
|
|
11191
|
-
pushEvent(state,
|
|
11149
|
+
pushEvent(state, projectZeusTelemetry(data, state.merged.length));
|
|
11192
11150
|
break;
|
|
11193
11151
|
case "agent_timeline":
|
|
11194
11152
|
pushEvent(state, projectAgentTimeline(data, state.merged.length));
|
|
@@ -11648,11 +11606,8 @@ ${event.answer ? `**Answer:** ${event.answer}
|
|
|
11648
11606
|
}
|
|
11649
11607
|
return `*[${event.tool} output truncated]*
|
|
11650
11608
|
`;
|
|
11651
|
-
|
|
11652
|
-
|
|
11653
|
-
case "memory_recall_usage":
|
|
11654
|
-
return event.returnedMemoryIds.length > 0 ? `*[recalled ${event.returnedMemoryIds.length === 1 ? "1 memory" : `${event.returnedMemoryIds.length} memories`}: ${event.returnedMemories.map((memory) => `\`${memory.title || memory.id}\``).join(", ")}]*
|
|
11655
|
-
` : "";
|
|
11609
|
+
case "zeus_telemetry":
|
|
11610
|
+
return "";
|
|
11656
11611
|
case "agent_timeline":
|
|
11657
11612
|
return `*[${event.eventType}${event.status ? ` (${event.status})` : ""}: ${event.summary}]*
|
|
11658
11613
|
`;
|
|
@@ -12676,13 +12631,6 @@ JSON:
|
|
|
12676
12631
|
JSON mode returns {branches}
|
|
12677
12632
|
`
|
|
12678
12633
|
).action((repo, options, command) => repoBranchesCommand(repo, options, command));
|
|
12679
|
-
repos.command("skills").description("List repository skills").argument("[repo]", "Repository owner/name; defaults to current git remote").addHelpText(
|
|
12680
|
-
"after",
|
|
12681
|
-
`
|
|
12682
|
-
JSON:
|
|
12683
|
-
JSON mode returns {skills}
|
|
12684
|
-
`
|
|
12685
|
-
).action((repo, options, command) => repoSkillsCommand(repo, options, command));
|
|
12686
12634
|
var environments = program.command("environments").description("Zeus environment setup commands");
|
|
12687
12635
|
environments.command("prepare").description("Prepare a repository for Zeus reviews").argument("[repo]", "Repository owner/name; defaults to current git remote").option("--wait", "Wait until setup is ready or needs attention").option("--poll-interval <ms>", "Polling interval while waiting (default 5000)").addHelpText(
|
|
12688
12636
|
"after",
|