@aui.io/apollo 0.1.29 → 0.1.30
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/node_modules/@aui.io/apollo-cli/package.json +3 -3
- package/node_modules/@aui.io/apollo-core/dist/src/services/bundles.d.ts +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/skills/agents-page.d.ts +2 -6
- package/node_modules/@aui.io/apollo-core/dist/src/skills/agents-page.js +7 -21
- package/node_modules/@aui.io/apollo-core/dist/src/skills/agents-page.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/package.json +1 -1
- package/node_modules/@aui.io/apollo-tui/package.json +2 -2
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aui.io/apollo-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"description": "Command-line client for the Apollo runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"test": "vitest run"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aui.io/apollo-core": "0.1.
|
|
31
|
+
"@aui.io/apollo-core": "0.1.30",
|
|
32
32
|
"commander": "^14.0.3",
|
|
33
33
|
"picocolors": "^1.1.1"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@aui.io/apollo-tui": "0.1.
|
|
36
|
+
"@aui.io/apollo-tui": "0.1.30"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@eslint/js": "^9.39.5",
|
|
@@ -44,7 +44,7 @@ export interface PullCheckoutResult {
|
|
|
44
44
|
runtimeVersion?: string;
|
|
45
45
|
skills?: string[];
|
|
46
46
|
schemas?: string[];
|
|
47
|
-
/** True when this pull
|
|
47
|
+
/** True when this pull wrote the checkout's AGENTS.md. */
|
|
48
48
|
agentsPage?: boolean;
|
|
49
49
|
/**
|
|
50
50
|
* Why the runtime-served half was skipped. The bundle is already on disk
|
|
@@ -17,11 +17,7 @@ export interface AgentsPageFacts {
|
|
|
17
17
|
/**
|
|
18
18
|
* Write `<checkout>/AGENTS.md`: the CLI's §0 over the engine's lifecycle page.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* page is a deliberate delete-and-pull, not a side effect of syncing.
|
|
23
|
-
*
|
|
24
|
-
* Returns false when there is nothing to do: the page already exists, or the
|
|
25
|
-
* engine serving this checkout predates the endpoint (older runtimes 404).
|
|
20
|
+
* Always overwritten, same as skills and schemas — the page is engine-owned.
|
|
21
|
+
* Returns false only when the engine predates the endpoint (404).
|
|
26
22
|
*/
|
|
27
23
|
export declare function installAgentsPage(client: RuntimeApiClient, projectRoot: string, facts?: AgentsPageFacts): Promise<boolean>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mkdir, writeFile } from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { ApiError } from "../errors/index.js";
|
|
4
4
|
const AGENTS_PAGE = "AGENTS.md";
|
|
@@ -19,11 +19,9 @@ function preamble(facts) {
|
|
|
19
19
|
return [
|
|
20
20
|
`# AGENTS.md — ${facts.agentName ?? "this agent"}`,
|
|
21
21
|
"",
|
|
22
|
-
"<!--
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
" pull, and never overwritten — to refresh the body against a newer",
|
|
26
|
-
" engine, delete the file and pull again. -->",
|
|
22
|
+
"<!-- Below the rule is the engine's own lifecycle page, served by the",
|
|
23
|
+
" runtime this checkout is pinned to. apollo pull overwrites this file",
|
|
24
|
+
" the same way it overwrites skills and schemas. -->",
|
|
27
25
|
"",
|
|
28
26
|
"## 0. This checkout, verifiable",
|
|
29
27
|
"",
|
|
@@ -44,23 +42,10 @@ function preamble(facts) {
|
|
|
44
42
|
/**
|
|
45
43
|
* Write `<checkout>/AGENTS.md`: the CLI's §0 over the engine's lifecycle page.
|
|
46
44
|
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* page is a deliberate delete-and-pull, not a side effect of syncing.
|
|
50
|
-
*
|
|
51
|
-
* Returns false when there is nothing to do: the page already exists, or the
|
|
52
|
-
* engine serving this checkout predates the endpoint (older runtimes 404).
|
|
45
|
+
* Always overwritten, same as skills and schemas — the page is engine-owned.
|
|
46
|
+
* Returns false only when the engine predates the endpoint (404).
|
|
53
47
|
*/
|
|
54
48
|
export async function installAgentsPage(client, projectRoot, facts = {}) {
|
|
55
|
-
const target = path.join(projectRoot, AGENTS_PAGE);
|
|
56
|
-
try {
|
|
57
|
-
await access(target);
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
catch (error) {
|
|
61
|
-
if (error.code !== "ENOENT")
|
|
62
|
-
throw error;
|
|
63
|
-
}
|
|
64
49
|
let body;
|
|
65
50
|
try {
|
|
66
51
|
body = (await client.getAgentsMd()).content;
|
|
@@ -72,6 +57,7 @@ export async function installAgentsPage(client, projectRoot, facts = {}) {
|
|
|
72
57
|
return false;
|
|
73
58
|
throw error;
|
|
74
59
|
}
|
|
60
|
+
const target = path.join(projectRoot, AGENTS_PAGE);
|
|
75
61
|
await mkdir(path.dirname(target), { recursive: true });
|
|
76
62
|
await writeFile(target, `${preamble(facts)}${body}`, "utf8");
|
|
77
63
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents-page.js","sourceRoot":"","sources":["../../../src/skills/agents-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"agents-page.js","sourceRoot":"","sources":["../../../src/skills/agents-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM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W,EAAE,CAAC,CAAC,OAAO,CAAC;IAC9C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,uEAAuE;QACvE,4CAA4C;QAC5C,IAAI,KAAK,YAAY,QAAQ,IAAI,KAAK,CAAC,MAAM,KAAK,GAAG;YAAE,OAAO,KAAK,CAAC;QACpE,MAAM,KAAK,CAAC;IACd,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IACnD,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACvD,MAAM,SAAS,CAAC,MAAM,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;IAC7D,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aui.io/apollo-tui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"description": "Interactive Apollo operator TUI built on OpenTUI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"start": "node ./bin/apollo-tui.js"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@aui.io/apollo-core": "0.1.
|
|
38
|
+
"@aui.io/apollo-core": "0.1.30",
|
|
39
39
|
"@opentui/core": "^0.4.5",
|
|
40
40
|
"@opentui/react": "^0.4.5",
|
|
41
41
|
"diff": "8.0.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aui.io/apollo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"description": "Apollo operator console — CLI + interactive TUI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"postpack": "node ./scripts/clean-bundle.mjs"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@aui.io/apollo-core": "0.1.
|
|
35
|
-
"@aui.io/apollo-cli": "0.1.
|
|
36
|
-
"@aui.io/apollo-tui": "0.1.
|
|
34
|
+
"@aui.io/apollo-core": "0.1.30",
|
|
35
|
+
"@aui.io/apollo-cli": "0.1.30",
|
|
36
|
+
"@aui.io/apollo-tui": "0.1.30",
|
|
37
37
|
"picocolors": "^1.1.1",
|
|
38
38
|
"yaml": "^2.9.0",
|
|
39
39
|
"commander": "^14.0.3",
|