@astrale-os/cli 0.6.0-alpha.0 → 0.6.2-alpha.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/dist/astrale.js
CHANGED
|
@@ -2576,7 +2576,7 @@ var package_default;
|
|
|
2576
2576
|
var init_package = __esm(() => {
|
|
2577
2577
|
package_default = {
|
|
2578
2578
|
name: "@astrale-os/cli",
|
|
2579
|
-
version: "0.6.
|
|
2579
|
+
version: "0.6.2-alpha.0",
|
|
2580
2580
|
description: "Astrale CLI — connect to existing Astrale kernels",
|
|
2581
2581
|
keywords: [
|
|
2582
2582
|
"astrale",
|
|
@@ -73387,9 +73387,9 @@ function buildPrompt(opts) {
|
|
|
73387
73387
|
`);
|
|
73388
73388
|
const filing = opts.file ? `
|
|
73389
73389
|
FILE the issues that clear the quality bar (after writing report.md). Use the normal door, one call per issue:
|
|
73390
|
-
astrale call /:
|
|
73390
|
+
astrale call /:issues.astrale.ai:class.Issue:create -i admin --ci parent=/issues status=open title="<one line>" body="<evidence: exact command, exact error, expected vs actual, session ${id}>" initialTags='["<bug|friction|feature>","<area>"]'
|
|
73391
73391
|
Always pass --ci and keep title/body plain ASCII (no smart quotes/arrows) — long special-character bodies can hang the call.
|
|
73392
|
-
Duplicates of existing issues are acceptable — recurrence is signal, triage groups them later. Do NOT dedup-check first. Record each returned issue
|
|
73392
|
+
Duplicates of existing issues are acceptable — recurrence is signal, triage groups them later. Do NOT dedup-check first. Record each returned issue path in report.md under "## Filed". If filing fails (auth/offline), record the failure in report.md — do not retry more than once.` : `
|
|
73393
73393
|
Do NOT file any issues in this run (dry-run). report.md is the only output.`;
|
|
73394
73394
|
return `You are the DX analyst for Astrale (a graph OS; developers build "domains" against its CLI/SDK). Below is the complete evidence of ONE local work session. Your job: find the real frictions the developer or their coding agent hit with ASTRALE tooling — CLI, SDK, docs, skills — and write \`report.md\` in the current directory.
|
|
73395
73395
|
|
package/package.json
CHANGED
package/src/telemetry/analyze.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Session analyzer: free gate first, then ONE headless `claude -p` pass over
|
|
3
3
|
* the session's evidence (event digest, harness transcripts, live workspace).
|
|
4
|
-
* Dry-run by default — the agent writes report.md; --file also
|
|
5
|
-
* through the
|
|
4
|
+
* Dry-run by default — the agent writes report.md; --file also creates issues
|
|
5
|
+
* through the native `issues.astrale.ai` domain.
|
|
6
6
|
*/
|
|
7
7
|
import { spawn } from 'node:child_process'
|
|
8
8
|
import { appendFileSync, writeFileSync } from 'node:fs'
|
|
@@ -75,9 +75,9 @@ function buildPrompt(opts: {
|
|
|
75
75
|
const filing = opts.file
|
|
76
76
|
? `
|
|
77
77
|
FILE the issues that clear the quality bar (after writing report.md). Use the normal door, one call per issue:
|
|
78
|
-
astrale call /:
|
|
78
|
+
astrale call /:issues.astrale.ai:class.Issue:create -i admin --ci parent=/issues status=open title="<one line>" body="<evidence: exact command, exact error, expected vs actual, session ${id}>" initialTags='["<bug|friction|feature>","<area>"]'
|
|
79
79
|
Always pass --ci and keep title/body plain ASCII (no smart quotes/arrows) — long special-character bodies can hang the call.
|
|
80
|
-
Duplicates of existing issues are acceptable — recurrence is signal, triage groups them later. Do NOT dedup-check first. Record each returned issue
|
|
80
|
+
Duplicates of existing issues are acceptable — recurrence is signal, triage groups them later. Do NOT dedup-check first. Record each returned issue path in report.md under "## Filed". If filing fails (auth/offline), record the failure in report.md — do not retry more than once.`
|
|
81
81
|
: `
|
|
82
82
|
Do NOT file any issues in this run (dry-run). report.md is the only output.`
|
|
83
83
|
|
|
@@ -66,9 +66,9 @@ export function buildSystemPrompt(opts: { bridge: boolean }): string {
|
|
|
66
66
|
'working in this domain costs YOU friction — a confusing or missing Astrale API/error, stale',
|
|
67
67
|
'docs or skills, or a bug that forced a workaround — FILE a DX issue as part of the task, per',
|
|
68
68
|
'the **astrale-cli** skill’s “Reporting DX Issues” section: dedup against open issues first, then',
|
|
69
|
-
'`astrale call /:
|
|
69
|
+
'`astrale call /:issues.astrale.ai:class.Issue:create -i admin parent=/issues status=open title=… body=… initialTags=\'["<bug|friction|feature>","<area>"]\'`.',
|
|
70
70
|
'It is best-effort and non-blocking — never let filing one derail the user’s task — and mention',
|
|
71
|
-
'the returned
|
|
71
|
+
'the returned issue path in your reply when you file one.',
|
|
72
72
|
'',
|
|
73
73
|
'REPLY PROTOCOL — this is how the user sees your answers (they are NOT watching your terminal):',
|
|
74
74
|
'- For EVERY open thread, append exactly one concise {role:"author"} reply: what you changed,',
|