@aui.io/apollo 0.1.21 → 0.1.22
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 +183 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/bundles.js +34 -9
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/bundles.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/curl.d.ts +10 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/curl.js +63 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/curl.js.map +1 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/doctor.d.ts +13 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/doctor.js +89 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/doctor.js.map +1 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/hierarchy.js +24 -7
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/hierarchy.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/runtime-version.d.ts +10 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/runtime-version.js +116 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/runtime-version.js.map +1 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/status.js +1 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/status.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/index.d.ts +1 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/index.js +26 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/package.json +3 -3
- package/node_modules/@aui.io/apollo-core/dist/src/api/agent-settings.d.ts +147 -5
- package/node_modules/@aui.io/apollo-core/dist/src/api/agent-settings.js +95 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/agent-settings.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/api/capture.d.ts +22 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/capture.js +75 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/capture.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/management.d.ts +0 -1
- package/node_modules/@aui.io/apollo-core/dist/src/api/management.js +0 -6
- package/node_modules/@aui.io/apollo-core/dist/src/api/management.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/api/network.d.ts +19 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/network.js +53 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/network.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/transport.d.ts +14 -2
- package/node_modules/@aui.io/apollo-core/dist/src/api/transport.js +15 -28
- package/node_modules/@aui.io/apollo-core/dist/src/api/transport.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/config/index.d.ts +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/config/index.js +16 -1
- package/node_modules/@aui.io/apollo-core/dist/src/config/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/config/store.d.ts +10 -0
- package/node_modules/@aui.io/apollo-core/dist/src/config/store.js +24 -0
- package/node_modules/@aui.io/apollo-core/dist/src/config/store.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/config/types.d.ts +18 -1
- package/node_modules/@aui.io/apollo-core/dist/src/index.d.ts +9 -4
- package/node_modules/@aui.io/apollo-core/dist/src/index.js +8 -3
- package/node_modules/@aui.io/apollo-core/dist/src/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/runtime-version/index.d.ts +72 -0
- package/node_modules/@aui.io/apollo-core/dist/src/runtime-version/index.js +114 -0
- package/node_modules/@aui.io/apollo-core/dist/src/runtime-version/index.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/bundles.d.ts +47 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/bundles.js +60 -6
- package/node_modules/@aui.io/apollo-core/dist/src/services/bundles.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/clients.d.ts +4 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/clients.js +19 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/clients.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/doctor.d.ts +39 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/doctor.js +586 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/doctor.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/hierarchy.d.ts +78 -2
- package/node_modules/@aui.io/apollo-core/dist/src/services/hierarchy.js +177 -17
- package/node_modules/@aui.io/apollo-core/dist/src/services/hierarchy.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/requests.d.ts +22 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/requests.js +73 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/requests.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/status.service.d.ts +2 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/status.service.js +10 -2
- package/node_modules/@aui.io/apollo-core/dist/src/services/status.service.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/package.json +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/actions/registry.js +16 -2
- package/node_modules/@aui.io/apollo-tui/dist/src/actions/registry.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/activity/ActivityDrawer.js +31 -16
- package/node_modules/@aui.io/apollo-tui/dist/src/activity/ActivityDrawer.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/activity/requests.d.ts +19 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/activity/requests.js +29 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/activity/requests.js.map +1 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/author/AuthorHome.d.ts +3 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/author/AuthorHome.js +6 -18
- package/node_modules/@aui.io/apollo-tui/dist/src/author/AuthorHome.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/author/ResourcesView.js +26 -4
- package/node_modules/@aui.io/apollo-tui/dist/src/author/ResourcesView.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/context/ContextSwitcher.js +6 -2
- package/node_modules/@aui.io/apollo-tui/dist/src/context/ContextSwitcher.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/actions.js +93 -14
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/actions.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/commands.d.ts +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/commands.js +20 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/commands.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/diagnostics.d.ts +8 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/diagnostics.js +109 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/diagnostics.js.map +1 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/scope.d.ts +2 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/scope.js +1 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/scope.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/opentui-app.js +2 -2
- package/node_modules/@aui.io/apollo-tui/dist/src/opentui-app.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/shell/Breadcrumb.d.ts +4 -2
- package/node_modules/@aui.io/apollo-tui/dist/src/shell/Breadcrumb.js +5 -3
- package/node_modules/@aui.io/apollo-tui/dist/src/shell/Breadcrumb.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/ui/SplashCard.d.ts +5 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/ui/SplashCard.js +56 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/ui/SplashCard.js.map +1 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/ui/wordmark.d.ts +73 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/ui/wordmark.js +488 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/ui/wordmark.js.map +1 -0
- package/node_modules/@aui.io/apollo-tui/package.json +2 -2
- package/package.json +4 -4
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Diagnostics pane content — pure builders behind the `doctor` and
|
|
3
|
+
* `requests` palette actions. Same core engines as the CLI (`runDoctor`,
|
|
4
|
+
* the shared CaptureLog + formatCurl); this module only turns their
|
|
5
|
+
* structured output into pane lines, so the TUI presents them natively
|
|
6
|
+
* instead of quoting CLI text. Glyphs come from the theme so the ascii
|
|
7
|
+
* fallback pass stays clean.
|
|
8
|
+
*/
|
|
9
|
+
import { createRequire } from "node:module";
|
|
10
|
+
import { captureFailed, formatCurl, } from "@aui.io/apollo-core/services/requests.js";
|
|
11
|
+
import { G } from "../theme/glyphs.js";
|
|
12
|
+
const SECTION_TITLES = {
|
|
13
|
+
installation: "Installation",
|
|
14
|
+
environment: "Environment",
|
|
15
|
+
auth: "Auth & config",
|
|
16
|
+
checkout: "Checkout",
|
|
17
|
+
services: "Services",
|
|
18
|
+
hygiene: "Hygiene",
|
|
19
|
+
};
|
|
20
|
+
const SECTION_ORDER = [
|
|
21
|
+
"installation",
|
|
22
|
+
"environment",
|
|
23
|
+
"auth",
|
|
24
|
+
"checkout",
|
|
25
|
+
"services",
|
|
26
|
+
"hygiene",
|
|
27
|
+
];
|
|
28
|
+
const STATUS_GLYPH = {
|
|
29
|
+
ok: () => G.ok,
|
|
30
|
+
warn: () => G.warn,
|
|
31
|
+
fail: () => G.fail,
|
|
32
|
+
};
|
|
33
|
+
export function doctorPaneLines(report) {
|
|
34
|
+
const lines = [];
|
|
35
|
+
for (const section of SECTION_ORDER) {
|
|
36
|
+
const items = report.checks.filter((check) => check.section === section);
|
|
37
|
+
if (items.length === 0)
|
|
38
|
+
continue;
|
|
39
|
+
if (lines.length > 0)
|
|
40
|
+
lines.push("");
|
|
41
|
+
lines.push(SECTION_TITLES[section]);
|
|
42
|
+
for (const check of items) {
|
|
43
|
+
const note = check.note ? ` — ${check.note}` : "";
|
|
44
|
+
lines.push(`${STATUS_GLYPH[check.status]()} ${check.label}${note}`);
|
|
45
|
+
if (check.suggestion)
|
|
46
|
+
lines.push(` fix: ${check.suggestion}`);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
lines.push("", doctorSummary(report));
|
|
50
|
+
return lines;
|
|
51
|
+
}
|
|
52
|
+
export function doctorSummary(report) {
|
|
53
|
+
if (report.healthy && report.warnings === 0) {
|
|
54
|
+
return `No problems found (${report.checks.length} checks).`;
|
|
55
|
+
}
|
|
56
|
+
const parts = [];
|
|
57
|
+
if (report.problems > 0)
|
|
58
|
+
parts.push(`${report.problems} problem(s)`);
|
|
59
|
+
if (report.warnings > 0)
|
|
60
|
+
parts.push(`${report.warnings} warning(s)`);
|
|
61
|
+
return parts.join(" · ");
|
|
62
|
+
}
|
|
63
|
+
/** Newest first; each capture as a `#` metadata line plus its curl replay. */
|
|
64
|
+
const REQUEST_PANE_LIMIT = 15;
|
|
65
|
+
export function requestPaneLines(entries, limit = REQUEST_PANE_LIMIT) {
|
|
66
|
+
if (entries.length === 0) {
|
|
67
|
+
return [
|
|
68
|
+
"No API requests captured in this session yet.",
|
|
69
|
+
"Run any action that talks to the API, then reopen this pane.",
|
|
70
|
+
];
|
|
71
|
+
}
|
|
72
|
+
const lines = [];
|
|
73
|
+
const shown = entries.slice(-limit).reverse();
|
|
74
|
+
for (const entry of shown) {
|
|
75
|
+
if (lines.length > 0)
|
|
76
|
+
lines.push("");
|
|
77
|
+
const status = entry.status === undefined
|
|
78
|
+
? "FAILED (no response)"
|
|
79
|
+
: captureFailed(entry)
|
|
80
|
+
? `FAILED ${entry.status}`
|
|
81
|
+
: `${entry.status}`;
|
|
82
|
+
const meta = [
|
|
83
|
+
entry.service ?? "unknown-service",
|
|
84
|
+
status,
|
|
85
|
+
`${entry.durationMs}ms`,
|
|
86
|
+
...(entry.at === undefined ? [] : [entry.at]),
|
|
87
|
+
].join(" · ");
|
|
88
|
+
lines.push(`# ${meta}`, ...formatCurl(entry).split("\n"));
|
|
89
|
+
}
|
|
90
|
+
lines.push("", `showing ${shown.length} of ${entries.length} captured — apollo curl replays these from a shell`);
|
|
91
|
+
return lines;
|
|
92
|
+
}
|
|
93
|
+
/** The console version (workspaces are version-locked, so this matches the
|
|
94
|
+
* published @aui.io/apollo version) — feeds doctor's npm-latest check. */
|
|
95
|
+
export function consoleVersion() {
|
|
96
|
+
const require = createRequire(import.meta.url);
|
|
97
|
+
for (const rel of ["../package.json", "../../package.json", "../../../package.json"]) {
|
|
98
|
+
try {
|
|
99
|
+
const pkg = require(rel);
|
|
100
|
+
if (pkg.name === "@aui.io/apollo-tui" && pkg.version)
|
|
101
|
+
return pkg.version;
|
|
102
|
+
}
|
|
103
|
+
catch {
|
|
104
|
+
// keep walking up
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return "0.0.0";
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=diagnostics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["../../../src/lib/diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAQ5C,OAAO,EACL,aAAa,EACb,UAAU,GACX,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAEvC,MAAM,cAAc,GAAkC;IACpD,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,eAAe;IACrB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACnB,CAAC;AAEF,MAAM,aAAa,G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.agentId } : {}),
|
|
37
37
|
version: context.versionTag ?? "—",
|
|
38
|
+
runtime: context.runtimeVersion ?? "—",
|
|
38
39
|
loggedIn: Boolean(context.token),
|
|
39
40
|
...(context.agentRoot ? { agentPath: context.agentRoot } : {}),
|
|
40
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.js","sourceRoot":"","sources":["../../../src/lib/scope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EACL,iBAAiB,EACjB,YAAY,GACb,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"scope.js","sourceRoot":"","sources":["../../../src/lib/scope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EACL,iBAAiB,EACjB,YAAY,GACb,MAAM,2CAA2C,CAAC;AAmBnD,oEAAoE;AACpE,MAAM,UAAU,YAAY,CAAC,SAAiB;IAC5C,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,SAAS,CAAC;IACrD,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAgB;IAC/C,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS;QAC7B,CAAC,CAA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AiB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;gBACvD,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,EAAE,IAAI,CAAC;YAC3D,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,gCAAgC;AAChC,MAAM,UAAU,WAAW,CAAC,MAAc,EAAE,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI;IACjE,IAAI,CAAC,IAAI;QAAE,OAAO,MAAM,CAAC;IACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACtC,OAAO,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;AAClF,CAAC"}
|
|
@@ -211,7 +211,7 @@ function App({ context: initialContext, initialScope, onQuit }) {
|
|
|
211
211
|
const agentKeyRef = useRef(undefined);
|
|
212
212
|
/** Soft agent gate offered once per session (pick / skip / already inside). */
|
|
213
213
|
const agentGateOffered = useRef(false);
|
|
214
|
-
const { width: termWidth } = useTerminalDimensions();
|
|
214
|
+
const { width: termWidth, height: termHeight } = useTerminalDimensions();
|
|
215
215
|
/** Effective diff style: explicit toggle wins, else width decides. */
|
|
216
216
|
const diffStyleEffective = diffStyle ?? defaultDiffStyle(termWidth);
|
|
217
217
|
// Durable operations (TUI_DESIGN §13): the store outlives view switches;
|
|
@@ -2566,7 +2566,7 @@ function App({ context: initialContext, initialScope, onQuit }) {
|
|
|
2566
2566
|
retryOperation(op);
|
|
2567
2567
|
else
|
|
2568
2568
|
setActivityCursor(index);
|
|
2569
|
-
} })) : mode === "author" ? (authorViewEffective === "home" ? (_jsx(AuthorHome, { scope: scope, snapshot: snapshot, validation: validation, version: VERSION, paneTitle: paneTitle, paneLines: paneLines, resources: resourcesSummary(resourcesData), scenarios: scenariosSummary(scenariosData), session: authorSession, sessionRows: sessionRowsView, sessionCursor: clampPickerCursor(sessionCursor, authorSession?.units.length ?? 0), sessionScrollRef: contentScrollRef, sessionUnitRefs: sessionUnitRefs, backendLabel: authorBackend.label, backendDetection: backendDetection, onSelectUnit: (unit) => {
|
|
2569
|
+
} })) : mode === "author" ? (authorViewEffective === "home" ? (_jsx(AuthorHome, { scope: scope, snapshot: snapshot, validation: validation, version: VERSION, paneTitle: paneTitle, paneLines: paneLines, resources: resourcesSummary(resourcesData), scenarios: scenariosSummary(scenariosData), session: authorSession, sessionRows: sessionRowsView, sessionCursor: clampPickerCursor(sessionCursor, authorSession?.units.length ?? 0), sessionScrollRef: contentScrollRef, sessionUnitRefs: sessionUnitRefs, backendLabel: authorBackend.label, backendDetection: backendDetection, splashRoomy: termWidth >= 90 && termHeight >= 28, onSelectUnit: (unit) => {
|
|
2570
2570
|
const clamped = clampPickerCursor(sessionCursor, authorSession?.units.length ?? 0);
|
|
2571
2571
|
// Click selects; clicking the selected unit toggles its body.
|
|
2572
2572
|
if (unit === clamped)
|