@skillcdn/console 0.5.0 → 0.5.1
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 +68 -11
- package/SKILLCDN.md +3 -3
- package/dist/agent-page.d.ts.map +1 -1
- package/dist/agent-page.js +3 -2
- package/dist/agent-page.js.map +1 -1
- package/dist/api.d.ts +7 -6
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +6 -5
- package/dist/api.js.map +1 -1
- package/dist/charts.d.ts +103 -0
- package/dist/charts.d.ts.map +1 -0
- package/dist/charts.js +182 -0
- package/dist/charts.js.map +1 -0
- package/dist/cli/cli.d.ts +26 -2
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +1304 -383
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/command-words.d.ts +20 -0
- package/dist/cli/command-words.d.ts.map +1 -0
- package/dist/cli/command-words.js +51 -0
- package/dist/cli/command-words.js.map +1 -0
- package/dist/cli/credentials.d.ts +54 -5
- package/dist/cli/credentials.d.ts.map +1 -1
- package/dist/cli/credentials.js +126 -20
- package/dist/cli/credentials.js.map +1 -1
- package/dist/cli/directory.d.ts +19 -4
- package/dist/cli/directory.d.ts.map +1 -1
- package/dist/cli/directory.js +16 -8
- package/dist/cli/directory.js.map +1 -1
- package/dist/cli/format.d.ts +65 -8
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +242 -37
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts +13 -4
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +92 -54
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/main.js +76 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/pack.d.ts +69 -60
- package/dist/cli/pack.d.ts.map +1 -1
- package/dist/cli/pack.js +241 -270
- package/dist/cli/pack.js.map +1 -1
- package/dist/cli/plugin-check.d.ts +42 -0
- package/dist/cli/plugin-check.d.ts.map +1 -1
- package/dist/cli/plugin-check.js +221 -36
- package/dist/cli/plugin-check.js.map +1 -1
- package/dist/cli/plugin-cli.d.ts +6 -1
- package/dist/cli/plugin-cli.d.ts.map +1 -1
- package/dist/cli/plugin-cli.js +21 -4
- package/dist/cli/plugin-cli.js.map +1 -1
- package/dist/cli/plugin-main.js +1 -0
- package/dist/cli/plugin-main.js.map +1 -1
- package/dist/cli/serve.d.ts +33 -1
- package/dist/cli/serve.d.ts.map +1 -1
- package/dist/cli/serve.js +252 -3
- package/dist/cli/serve.js.map +1 -1
- package/dist/client.d.ts +48 -9
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +72 -80
- package/dist/client.js.map +1 -1
- package/dist/components/agent-page.d.ts +64 -1
- package/dist/components/agent-page.d.ts.map +1 -1
- package/dist/components/agent-page.js +244 -96
- package/dist/components/agent-page.js.map +1 -1
- package/dist/components/charts.d.ts +157 -0
- package/dist/components/charts.d.ts.map +1 -0
- package/dist/components/charts.js +182 -0
- package/dist/components/charts.js.map +1 -0
- package/dist/components/desk-records.d.ts +102 -0
- package/dist/components/desk-records.d.ts.map +1 -0
- package/dist/components/desk-records.js +221 -0
- package/dist/components/desk-records.js.map +1 -0
- package/dist/components/desk.d.ts +85 -0
- package/dist/components/desk.d.ts.map +1 -0
- package/dist/components/desk.js +135 -0
- package/dist/components/desk.js.map +1 -0
- package/dist/components/event-feed.d.ts.map +1 -1
- package/dist/components/event-feed.js +4 -1
- package/dist/components/event-feed.js.map +1 -1
- package/dist/components/home.d.ts.map +1 -1
- package/dist/components/home.js +4 -2
- package/dist/components/home.js.map +1 -1
- package/dist/components/plugin-settings.d.ts.map +1 -1
- package/dist/components/plugin-settings.js +54 -3
- package/dist/components/plugin-settings.js.map +1 -1
- package/dist/components/projects.d.ts.map +1 -1
- package/dist/components/projects.js +27 -7
- package/dist/components/projects.js.map +1 -1
- package/dist/components/rules.d.ts +8 -10
- package/dist/components/rules.d.ts.map +1 -1
- package/dist/components/rules.js +35 -13
- package/dist/components/rules.js.map +1 -1
- package/dist/components/setup.d.ts +9 -3
- package/dist/components/setup.d.ts.map +1 -1
- package/dist/components/setup.js +10 -4
- package/dist/components/setup.js.map +1 -1
- package/dist/console.css +677 -7
- package/dist/console.d.ts +5 -0
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +14 -8
- package/dist/console.js.map +1 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +32 -33
- package/dist/data.js.map +1 -1
- package/dist/desk-page.d.ts +38 -0
- package/dist/desk-page.d.ts.map +1 -0
- package/dist/desk-page.js +184 -0
- package/dist/desk-page.js.map +1 -0
- package/dist/desk-records-page.d.ts +18 -0
- package/dist/desk-records-page.d.ts.map +1 -0
- package/dist/desk-records-page.js +130 -0
- package/dist/desk-records-page.js.map +1 -0
- package/dist/desk-records.d.ts +247 -0
- package/dist/desk-records.d.ts.map +1 -0
- package/dist/desk-records.js +543 -0
- package/dist/desk-records.js.map +1 -0
- package/dist/desk.d.ts +122 -0
- package/dist/desk.d.ts.map +1 -0
- package/dist/desk.js +211 -0
- package/dist/desk.js.map +1 -0
- package/dist/feed-stream.d.ts +39 -0
- package/dist/feed-stream.d.ts.map +1 -0
- package/dist/feed-stream.js +117 -0
- package/dist/feed-stream.js.map +1 -0
- package/dist/home-tiles.d.ts +10 -3
- package/dist/home-tiles.d.ts.map +1 -1
- package/dist/home-tiles.js +54 -31
- package/dist/home-tiles.js.map +1 -1
- package/dist/i18n/en.d.ts +180 -5
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +184 -7
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +169 -6
- package/dist/i18n/ko.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +11 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +11 -0
- package/dist/limits.js.map +1 -1
- package/dist/onboarding.d.ts +6 -0
- package/dist/onboarding.d.ts.map +1 -1
- package/dist/onboarding.js +3 -3
- package/dist/onboarding.js.map +1 -1
- package/dist/plugin/context.d.ts +42 -11
- package/dist/plugin/context.d.ts.map +1 -1
- package/dist/plugin/limits.d.ts +2 -0
- package/dist/plugin/limits.d.ts.map +1 -1
- package/dist/plugin/limits.js +2 -0
- package/dist/plugin/limits.js.map +1 -1
- package/dist/plugin/manifest.d.ts +13 -0
- package/dist/plugin/manifest.d.ts.map +1 -1
- package/dist/plugin/manifest.js +30 -3
- package/dist/plugin/manifest.js.map +1 -1
- package/dist/plugin/rest-schemas.d.ts +55 -0
- package/dist/plugin/rest-schemas.d.ts.map +1 -1
- package/dist/plugin/rest-schemas.js +37 -0
- package/dist/plugin/rest-schemas.js.map +1 -1
- package/dist/plugin/sandbox.d.ts.map +1 -1
- package/dist/plugin/sandbox.js +4 -1
- package/dist/plugin/sandbox.js.map +1 -1
- package/dist/plugin/testing.d.ts +6 -2
- package/dist/plugin/testing.d.ts.map +1 -1
- package/dist/plugin/testing.js +52 -10
- package/dist/plugin/testing.js.map +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/dist/records.d.ts +283 -0
- package/dist/records.d.ts.map +1 -0
- package/dist/records.js +543 -0
- package/dist/records.js.map +1 -0
- package/dist/routes.d.ts +3 -1
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +3 -1
- package/dist/routes.js.map +1 -1
- package/dist/rules.d.ts +30 -11
- package/dist/rules.d.ts.map +1 -1
- package/dist/rules.js +98 -45
- package/dist/rules.js.map +1 -1
- package/dist/runner/acp.d.ts +1 -1
- package/dist/runner/acp.d.ts.map +1 -1
- package/dist/runner/acp.js +31 -20
- package/dist/runner/acp.js.map +1 -1
- package/dist/runner/claude.d.ts +1 -1
- package/dist/runner/claude.d.ts.map +1 -1
- package/dist/runner/claude.js +85 -15
- package/dist/runner/claude.js.map +1 -1
- package/dist/runner/codex.d.ts +1 -1
- package/dist/runner/codex.d.ts.map +1 -1
- package/dist/runner/codex.js +19 -16
- package/dist/runner/codex.js.map +1 -1
- package/dist/runner/desk.d.ts +43 -2
- package/dist/runner/desk.d.ts.map +1 -1
- package/dist/runner/desk.js +166 -10
- package/dist/runner/desk.js.map +1 -1
- package/dist/runner/process.d.ts.map +1 -1
- package/dist/runner/process.js +11 -4
- package/dist/runner/process.js.map +1 -1
- package/dist/runner/redact.d.ts +39 -4
- package/dist/runner/redact.d.ts.map +1 -1
- package/dist/runner/redact.js +81 -5
- package/dist/runner/redact.js.map +1 -1
- package/dist/runner/runner.d.ts +15 -1
- package/dist/runner/runner.d.ts.map +1 -1
- package/dist/runner/runner.js +231 -33
- package/dist/runner/runner.js.map +1 -1
- package/dist/runner/task-scheduler.d.ts +20 -0
- package/dist/runner/task-scheduler.d.ts.map +1 -1
- package/dist/runner/task-scheduler.js +34 -4
- package/dist/runner/task-scheduler.js.map +1 -1
- package/dist/runner/types.d.ts +36 -1
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/types.js +17 -0
- package/dist/runner/types.js.map +1 -1
- package/dist/runner.d.ts +6 -6
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +5 -5
- package/dist/runner.js.map +1 -1
- package/dist/schemas.d.ts +509 -5
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +76 -16
- package/dist/schemas.js.map +1 -1
- package/dist/services.d.ts +22 -5
- package/dist/services.d.ts.map +1 -1
- package/dist/services.js +35 -15
- package/dist/services.js.map +1 -1
- package/dist/setup-guide.d.ts +3 -1
- package/dist/setup-guide.d.ts.map +1 -1
- package/dist/setup-guide.js +7 -4
- package/dist/setup-guide.js.map +1 -1
- package/dist/vocabulary.d.ts +14 -3
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +13 -3
- package/dist/vocabulary.js.map +1 -1
- package/docs/specs/cli.md +64 -38
- package/docs/specs/plugins.md +27 -20
- package/docs/specs/records.md +113 -0
- package/docs/specs/rest.md +20 -13
- package/docs/specs/runner.md +23 -17
- package/package.json +7 -2
- package/skills/building-a-console/SKILL.md +4 -4
- package/skills/building-a-plugin/SKILL.md +6 -6
- package/skills/deploying-a-console/SKILL.md +4 -4
- package/skills/deploying-a-console/references/resources.md +41 -4
- package/skills/deploying-a-console/references/running-it-again.md +3 -2
- package/skills/keeping-a-desk/SKILL.md +133 -0
- package/skills/keeping-a-desk/collections.md +96 -0
- package/skills/planning-the-board/SKILL.md +14 -18
- package/skills/planning-the-board/references/a-task.md +2 -2
- package/skills/planning-the-board/references/project-rules.md +13 -14
- package/skills/planning-the-board/references/setting-up.md +15 -13
- package/skills/running-an-agent/SKILL.md +10 -9
- package/skills/working-the-board/SKILL.md +62 -44
- package/skills/working-the-board/references/terms.md +9 -5
- package/skills/working-the-board/references/the-pack.md +12 -10
- package/skills/working-the-board/references/the-sentence.md +2 -2
- package/src/agent-page.tsx +3 -1
- package/src/api.ts +77 -2
- package/src/charts.ts +250 -0
- package/src/cli/cli.ts +1698 -476
- package/src/cli/command-words.ts +56 -0
- package/src/cli/credentials.ts +181 -20
- package/src/cli/directory.ts +28 -10
- package/src/cli/format.ts +301 -46
- package/src/cli/help.ts +102 -54
- package/src/cli/main.ts +72 -2
- package/src/cli/pack.ts +333 -372
- package/src/cli/plugin-check.ts +275 -34
- package/src/cli/plugin-cli.ts +28 -4
- package/src/cli/plugin-main.ts +1 -0
- package/src/cli/serve.ts +295 -2
- package/src/client.ts +192 -177
- package/src/components/agent-page.tsx +489 -243
- package/src/components/charts.tsx +680 -0
- package/src/components/desk-records.tsx +724 -0
- package/src/components/desk.tsx +471 -0
- package/src/components/event-feed.tsx +5 -1
- package/src/components/home.tsx +12 -0
- package/src/components/plugin-settings.tsx +171 -12
- package/src/components/projects.tsx +29 -12
- package/src/components/rules.tsx +94 -34
- package/src/components/setup.tsx +18 -3
- package/src/console.tsx +17 -9
- package/src/data.ts +37 -34
- package/src/desk-page.tsx +332 -0
- package/src/desk-records-page.tsx +256 -0
- package/src/desk-records.ts +808 -0
- package/src/desk.ts +329 -0
- package/src/feed-stream.ts +144 -0
- package/src/home-tiles.ts +55 -35
- package/src/i18n/en.ts +196 -9
- package/src/i18n/ko.ts +178 -8
- package/src/index.ts +118 -0
- package/src/limits.ts +11 -0
- package/src/onboarding.ts +12 -4
- package/src/plugin/context.ts +55 -12
- package/src/plugin/limits.ts +2 -0
- package/src/plugin/manifest.ts +38 -2
- package/src/plugin/rest-schemas.ts +41 -0
- package/src/plugin/sandbox.ts +4 -1
- package/src/plugin/testing.ts +63 -12
- package/src/plugin.ts +2 -0
- package/src/records.ts +702 -0
- package/src/routes.ts +3 -1
- package/src/rules.ts +108 -47
- package/src/runner/acp.ts +47 -29
- package/src/runner/claude.ts +113 -23
- package/src/runner/codex.ts +35 -25
- package/src/runner/desk.ts +198 -12
- package/src/runner/process.ts +11 -4
- package/src/runner/redact.ts +92 -6
- package/src/runner/runner.ts +275 -34
- package/src/runner/task-scheduler.ts +36 -4
- package/src/runner/types.ts +47 -1
- package/src/runner.ts +27 -2
- package/src/schemas.ts +83 -15
- package/src/services.ts +49 -14
- package/src/setup-guide.ts +6 -2
- package/src/styles/README.md +11 -1
- package/src/styles/console.css +9 -0
- package/src/styles/pages/desk.css +126 -0
- package/src/styles/pages/documents.css +5 -0
- package/src/styles/parts/bars.css +80 -0
- package/src/styles/parts/chart.css +173 -0
- package/src/styles/parts/figures.css +65 -0
- package/src/styles/parts/legend.css +48 -0
- package/src/styles/parts/series.css +32 -0
- package/src/styles/parts/share.css +25 -0
- package/src/styles/parts/spark.css +23 -0
- package/src/styles/parts/stat.css +69 -0
- package/src/styles/tokens.css +13 -7
- package/src/vocabulary.ts +16 -3
- package/template/desk-web/README.md +8 -0
- package/template/desk-web/index.html +13 -0
- package/template/desk-web/package.json +25 -0
- package/template/desk-web/src/main.tsx +24 -0
- package/template/desk-web/src/page.tsx +51 -0
- package/template/desk-web/tsconfig.json +16 -0
- package/template/desk-web/vite.config.ts +15 -0
package/dist/cli/main.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { existsSync } from "node:fs";
|
|
3
|
-
import { readFile } from "node:fs/promises";
|
|
3
|
+
import { open, readdir, readFile, stat } from "node:fs/promises";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { hostname } from "node:os";
|
|
6
|
-
import { join } from "node:path";
|
|
6
|
+
import { join, resolve } from "node:path";
|
|
7
7
|
import process from "node:process";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
9
|
import * as z from "zod/mini";
|
|
10
10
|
import { userAgentOf } from "../compat.js";
|
|
11
|
+
import { isLfsPointer, MAX_LFS_POINTER_BYTES, RECORDS_DIR } from "../records.js";
|
|
11
12
|
import { runCli } from "./cli.js";
|
|
12
13
|
import { createFileStore, defaultConfigDir } from "./credentials.js";
|
|
13
14
|
import { createDirectoryStore } from "./directory.js";
|
|
14
15
|
import { detectInstall } from "./install.js";
|
|
15
16
|
import { createNoticeStore } from "./notices.js";
|
|
17
|
+
import { templateFiles } from "./plugin-init.js";
|
|
16
18
|
import { createRunnerHost } from "./runner-host.js";
|
|
17
19
|
import { listenOn } from "./serve.js";
|
|
18
20
|
import { createSetupMachine } from "./setup-machine.js";
|
|
@@ -28,6 +30,8 @@ const manifest = z
|
|
|
28
30
|
const version = manifest.success ? manifest.data.version : undefined;
|
|
29
31
|
/** The console's own skills, shipped with the package beside dist/ (ADR-0015); not there in a checkout before packing. */
|
|
30
32
|
const skillsDir = fileURLToPath(new URL("../../skills/", import.meta.url));
|
|
33
|
+
/** The shell of a desk's pages, shipped with the package beside dist/ as the plugin's template is (ADR-0115). */
|
|
34
|
+
const deskWebDir = join(packageDir, "template", "desk-web");
|
|
31
35
|
const configDir = defaultConfigDir(process.env);
|
|
32
36
|
process.exitCode = await runCli(process.argv.slice(2), {
|
|
33
37
|
env: process.env,
|
|
@@ -41,6 +45,10 @@ process.exitCode = await runCli(process.argv.slice(2), {
|
|
|
41
45
|
readStdin,
|
|
42
46
|
readSecret,
|
|
43
47
|
hostname: hostname(),
|
|
48
|
+
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
49
|
+
// Whether a terminal shows what is printed as it is printed: an agent's host, a pipe and a
|
|
50
|
+
// file show it when the command ends, where login says its code and ends (ADR-0129).
|
|
51
|
+
terminal: process.stdout.isTTY === true,
|
|
44
52
|
readFile: readFileAt,
|
|
45
53
|
readBytes: readBytesAt,
|
|
46
54
|
writeBytes: writeBytesAt,
|
|
@@ -80,5 +88,71 @@ process.exitCode = await runCli(process.argv.slice(2), {
|
|
|
80
88
|
runner: createRunnerHost(process.cwd(), process.env),
|
|
81
89
|
// A machine is set up as the command was started: the same runtime, the same file, the same PATH.
|
|
82
90
|
machine: createSetupMachine(process.env, process.argv[1]),
|
|
91
|
+
// A desk's records (ADR-0117), as `desk check` reads them: the files under its `records/`,
|
|
92
|
+
// by paths the format's own schemas let through, which name no folder above it.
|
|
93
|
+
recordsAt: (directory) => {
|
|
94
|
+
const root = resolve(directory, RECORDS_DIR);
|
|
95
|
+
const at = (path) => join(root, ...path.split("/").filter((part) => part.length > 0));
|
|
96
|
+
return {
|
|
97
|
+
directory: resolve(directory),
|
|
98
|
+
files: {
|
|
99
|
+
read: async (path) => {
|
|
100
|
+
try {
|
|
101
|
+
return await readFile(at(path), "utf8");
|
|
102
|
+
}
|
|
103
|
+
catch {
|
|
104
|
+
return undefined;
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
size: async (path) => {
|
|
108
|
+
try {
|
|
109
|
+
const info = await stat(at(path));
|
|
110
|
+
return info.isFile() ? info.size : undefined;
|
|
111
|
+
}
|
|
112
|
+
catch {
|
|
113
|
+
return undefined;
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
// A git LFS pointer is a few lines of text: its beginning says whether a file is one.
|
|
117
|
+
pointer: async (path) => {
|
|
118
|
+
try {
|
|
119
|
+
const file = await open(at(path), "r");
|
|
120
|
+
try {
|
|
121
|
+
const head = Buffer.alloc(MAX_LFS_POINTER_BYTES);
|
|
122
|
+
const { bytesRead } = await file.read(head, 0, head.length, 0);
|
|
123
|
+
return isLfsPointer(head.subarray(0, bytesRead).toString("utf8"));
|
|
124
|
+
}
|
|
125
|
+
finally {
|
|
126
|
+
await file.close();
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
catch {
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
folders: async (path) => {
|
|
134
|
+
try {
|
|
135
|
+
return (await readdir(at(path), { withFileTypes: true }))
|
|
136
|
+
.filter((entry) => entry.isDirectory())
|
|
137
|
+
.map((entry) => entry.name);
|
|
138
|
+
}
|
|
139
|
+
catch {
|
|
140
|
+
return undefined;
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
},
|
|
146
|
+
// The shell of a desk's pages (ADR-0115), read when `desk --web` asks for it.
|
|
147
|
+
deskWebTemplate: async () => {
|
|
148
|
+
if (!existsSync(deskWebDir)) {
|
|
149
|
+
return undefined;
|
|
150
|
+
}
|
|
151
|
+
const files = new Map();
|
|
152
|
+
for (const path of await templateFiles(deskWebDir)) {
|
|
153
|
+
files.set(path, await readFile(join(deskWebDir, ...path.split("/")), "utf8"));
|
|
154
|
+
}
|
|
155
|
+
return files;
|
|
156
|
+
},
|
|
83
157
|
});
|
|
84
158
|
//# sourceMappingURL=main.js.map
|
package/dist/cli/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"main.js","sourceRo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CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;6BACtC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;oBAChC,CAAC;oBAAC,MAAM,CAAC;wBACP,OAAO,SAAS,CAAC;oBACnB,CAAC;gBACH,CAAC;aACF;SACF,CAAC;IACJ,CAAC;IACD,8EAA8E;IAC9E,eAAe,EAAE,KAAK,IAAI,EAAE;QAC1B,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YAC5B,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;QACxC,KAAK,MAAM,IAAI,IAAI,MAAM,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC;YACnD,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;QAChF,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAC,CAAC"}
|
package/dist/cli/pack.d.ts
CHANGED
|
@@ -1,18 +1,74 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { type Pack } from "@skillcdn/cli";
|
|
2
|
+
import { type ToolWords } from "@skillcdn/core";
|
|
3
|
+
import type { PackClient } from "../client.js";
|
|
4
|
+
import type { RestSkills } from "../schemas.js";
|
|
5
|
+
/** How the results name the four reads of a pack read with `skills` and `skill`, so that an agent is told the command and not a tool. */
|
|
6
|
+
export declare const packWords: (skills: string, skill: string) => ToolWords;
|
|
7
|
+
/** The words of the project's pack, and the organization's: `console skills` and `console skill`. */
|
|
4
8
|
export declare const CONSOLE_WORDS: ToolWords;
|
|
5
|
-
/** Where the reads of a pack are rendered at: what the listing said the address serves. */
|
|
6
|
-
export type PackSummary = MountSummary;
|
|
7
9
|
export declare const NO_ADDRESS = "No skills address: neither this project nor the console names one.";
|
|
8
|
-
/** What the listing said the address serves, for the reads to be rendered at; nothing when it did not answer. */
|
|
9
|
-
export declare function summaryOf(listing: RestSkills): PackSummary | undefined;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* and where the console's own skills are on this machine.
|
|
11
|
+
* Whose pack a read is of, for the words of a read that did not happen: a project's, or the
|
|
12
|
+
* organization's, which is what a command reads where no project is named (ADR-0113).
|
|
14
13
|
*/
|
|
15
|
-
export
|
|
14
|
+
export type PackOwner = "project" | "organization";
|
|
15
|
+
/**
|
|
16
|
+
* What a read of the organization's pack begins with: whose pack it is, since the command
|
|
17
|
+
* would otherwise read as if a project had been named, and how a project's own is read.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ORGANIZATION_PACK_LINE = "The organization's pack, since no project is named here: --project <key>, or a directory bound with console use <key>, reads a project's own.";
|
|
20
|
+
/** What every answer of the console about a pack says first: where it is, and how the read went. */
|
|
21
|
+
export type PackEnvelope = Pick<RestSkills, "address" | "source" | "page" | "status" | "refusal">;
|
|
22
|
+
/** One answer of the console to a read of a pack: the envelope, and the pack's own answer in it. */
|
|
23
|
+
export type PackAnswer = PackEnvelope & {
|
|
24
|
+
readonly read: unknown;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* A read the console could not make, of the pack as a whole, as the command says it on standard
|
|
28
|
+
* error: that no address is named; or where the pack is and how it stands, the words of that
|
|
29
|
+
* standing with whose token is missing, and the pack's own refusal when it gave one. `what` is
|
|
30
|
+
* the read in a word: `skills`, `folder`, `search`, `skill`, `file`, `tables`, `code blocks`.
|
|
31
|
+
*/
|
|
32
|
+
export declare function refusalWords(what: string, answer: PackEnvelope, owner?: PackOwner): string;
|
|
33
|
+
/**
|
|
34
|
+
* A read of the pack as a whole that the console could not make: thrown by the pack made of the
|
|
35
|
+
* console's answers, for the command to say in the console's words ({@link refusalWords}). A
|
|
36
|
+
* refusal of one read, in the pack's own code and words, is a `PackError` instead, as the
|
|
37
|
+
* skillcdn command's own pack throws one.
|
|
38
|
+
*/
|
|
39
|
+
export declare class PackRefusal extends Error {
|
|
40
|
+
/** The read in a word, as the first line of the refusal names it. */
|
|
41
|
+
readonly what: string;
|
|
42
|
+
/** What the console answered. */
|
|
43
|
+
readonly answer: PackAnswer;
|
|
44
|
+
constructor(what: string, answer: PackAnswer);
|
|
45
|
+
}
|
|
46
|
+
/** A pack made of the console's answers, which says what the console answered last. */
|
|
47
|
+
export interface ConsolePack extends Pack {
|
|
48
|
+
/** The console's answer to the last read made of the pack: what `--json` prints around the pack's own answer, and what a refusal is said from. */
|
|
49
|
+
answered(): PackAnswer | undefined;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* The pack `reader` reads, as the reads of the skillcdn command take one (ADR-0124): each read
|
|
53
|
+
* asked of the console, and the pack's own answer taken out of the console's. `listing` is the
|
|
54
|
+
* console's answer about the pack as a whole, which the command asks first; nothing is made of
|
|
55
|
+
* one that does not answer a pack, and the command says that as it stands. `url` is the console's
|
|
56
|
+
* origin, where a pack with no deployment of its own is read. With `dataCommand`, the outline of
|
|
57
|
+
* a document names the commands that read its tables and its code blocks, `dataCommand` being
|
|
58
|
+
* the one the pack is read with; without it, the console's addresses stay, as `--json` has them.
|
|
59
|
+
*/
|
|
60
|
+
export declare function consolePack(reader: PackClient, listing: RestSkills, options: {
|
|
61
|
+
readonly url: string;
|
|
62
|
+
readonly dataCommand?: string | undefined;
|
|
63
|
+
}): ConsolePack | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* The listing of a pack as the command prints it. Where the pack answered, `text` is what the
|
|
66
|
+
* skillcdn command prints for it, what a client is told on connect and then every skill and
|
|
67
|
+
* document, between the lines of the console's own: where the pack is and how it answered,
|
|
68
|
+
* where a person connects an agent of their own, and where the console's own skills are on this
|
|
69
|
+
* machine. Where it did not, why, with that last line still.
|
|
70
|
+
*/
|
|
71
|
+
export declare function formatSkills(skills: RestSkills, text: string | undefined, ownSkills?: string, owner?: PackOwner, words?: ToolWords): string;
|
|
16
72
|
/**
|
|
17
73
|
* A skill's path as given, or taken out of the URI the listing names it by
|
|
18
74
|
* (`skill://<host>/<owner>/<name>/<path>`); a URI of another pack would read this pack's skill
|
|
@@ -23,53 +79,6 @@ export declare function skillPathIn(given: string, packAddress: string | null):
|
|
|
23
79
|
} | {
|
|
24
80
|
readonly error: string;
|
|
25
81
|
};
|
|
26
|
-
/**
|
|
27
|
-
export declare
|
|
28
|
-
/** The skill whole, as the REST API answers one, for `--json`. */
|
|
29
|
-
export declare function bodyOfSkill(skill: SkillResult): RestSkill;
|
|
30
|
-
/** One skill as `load_skill` lays it out for a model: the rules, the body, the included files, its files and references. */
|
|
31
|
-
export declare function formatSkillLoad(loaded: RestSkillLoad, whole: SkillResult | undefined): string;
|
|
32
|
-
/** The pages of a folder, as the console answered them, as the one listing they were cut from. */
|
|
33
|
-
export declare function joinFolder(pages: readonly RestSkillBrowse[], summary: PackSummary): BrowseResult | undefined;
|
|
34
|
-
/** A folder whole, as the REST API answers one page, for `--json`. */
|
|
35
|
-
export declare const bodyOfFolder: (result: BrowseResult) => RestBrowse;
|
|
36
|
-
/** What a folder holds, as `browse_repo` lays it out for a model; `command` is the one the pack is read with. */
|
|
37
|
-
export declare function formatSkillBrowse(browsed: RestSkillBrowse, whole: BrowseResult | undefined, command?: string): string;
|
|
38
|
-
type ReadyRows = Extract<NonNullable<RestSkillRows["read"]>, {
|
|
39
|
-
readonly status: "ready";
|
|
40
|
-
}>;
|
|
41
|
-
type ReadyCode = Extract<NonNullable<RestSkillCode["read"]>, {
|
|
42
|
-
readonly status: "ready";
|
|
43
|
-
}>;
|
|
44
|
-
/** The pages of a read of tables, as the console answered them, as the one answer they were cut from: every table in reading order. */
|
|
45
|
-
export declare function joinRows(pages: readonly RestSkillRows[]): ReadyRows | undefined;
|
|
46
|
-
/** The pages of a read of code blocks, as the one answer they were cut from: every block in reading order. */
|
|
47
|
-
export declare function joinCode(pages: readonly RestSkillCode[]): ReadyCode | undefined;
|
|
48
|
-
/** Why a read of tables or of code blocks did not happen, for the command to fail with; nothing when it did. */
|
|
49
|
-
export declare function dataRefusal(what: "tables" | "code blocks", read: RestSkillRows | RestSkillCode): string | undefined;
|
|
50
|
-
/** The tables as one CSV: a header of `path`, `heading` and every column name, then a line per row (`rowsCsv` of `@skillcdn/core`). */
|
|
51
|
-
export declare const csvOfRows: (whole: ReadyRows) => string;
|
|
52
|
-
/** What a read of tables held, in a line. */
|
|
53
|
-
export declare const describeRows: (whole: ReadyRows) => string;
|
|
54
|
-
/**
|
|
55
|
-
* The code blocks as written, each under a line that names its file, the section it stands in
|
|
56
|
-
* and what it says it is written in, a blank line between two.
|
|
57
|
-
*/
|
|
58
|
-
export declare function textOfCode(whole: ReadyCode): string;
|
|
59
|
-
/** What a read of code blocks held, in a line. */
|
|
60
|
-
export declare const describeCode: (whole: ReadyCode) => string;
|
|
61
|
-
/** What words found, as `search_repo` lays it out for a model, one page of it. */
|
|
62
|
-
export declare function formatSkillFind(found: RestSkillFind, summary: PackSummary | undefined): string;
|
|
63
|
-
/**
|
|
64
|
-
* The pages of a file, as the console answered them, as the file whole; or the folder the path
|
|
65
|
-
* named. With `requested`, the one page is a section read as asked (`--offset`, `--limit`): the
|
|
66
|
-
* result carries the length asked for, so that the renderer says where the file continues rather
|
|
67
|
-
* than asking for the rest.
|
|
68
|
-
*/
|
|
69
|
-
export declare function joinFile(pages: readonly RestSkillFile[], summary: PackSummary, requested?: number): FileResult | DirectoryResult | undefined;
|
|
70
|
-
/** A file whole, or a folder, as the REST API answers it, for `--json`. */
|
|
71
|
-
export declare const bodyOfFile: (result: FileResult | DirectoryResult) => RestFile;
|
|
72
|
-
/** A file as `read_repo_file` lays it out for a model, whole; or what the folder holds. */
|
|
73
|
-
export declare function formatSkillFile(read: RestSkillFile, whole: FileResult | DirectoryResult | undefined): string;
|
|
74
|
-
export {};
|
|
82
|
+
/** Whether a read of data held nothing, by what the read says it holds: no table, or no code block. */
|
|
83
|
+
export declare const holdsNothing: (holds: string | undefined) => boolean;
|
|
75
84
|
//# sourceMappingURL=pack.d.ts.map
|
package/dist/cli/pack.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pack.d.ts","sourceRoot":"","sources":["../../src/cli/pack.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"pack.d.ts","sourceRoot":"","sources":["../../src/cli/pack.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,IAAI,EAGV,MAAM,eAAe,CAAC;AACvB,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAahD,yIAAyI;AACzI,eAAO,MAAM,SAAS,WAAY,MAAM,SAAS,MAAM,KAAG,SAKxD,CAAC;AAEH,qGAAqG;AACrG,eAAO,MAAM,aAAa,EAAE,SAAwD,CAAC;AAErF,eAAO,MAAM,UAAU,uEAAuE,CAAC;AAE/F;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,cAAc,CAAC;AAQnD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,kJAC8G,CAAC;AAsBlJ,oGAAoG;AACpG,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAC;AAElG,oGAAoG;AACpG,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAqBnE;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,YAAY,EACpB,KAAK,G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