@skillcdn/console 0.1.22 → 0.1.23
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/cli/format.js +1 -1
- package/dist/cli/help.js +1 -1
- package/docs/specs/cli.md +1 -1
- package/package.json +1 -1
- package/src/cli/format.ts +1 -1
- package/src/cli/help.ts +1 -1
package/dist/cli/format.js
CHANGED
|
@@ -220,7 +220,7 @@ export function formatSkills(skills, ownSkills) {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
if (skills.counts !== undefined) {
|
|
223
|
-
lines.push(`${counted(skills.counts.skills, "skill")}, ${counted(skills.counts.documents, "document")}: console skills <folder> shows what a folder holds (
|
|
223
|
+
lines.push(`${counted(skills.counts.skills, "skill")}, ${counted(skills.counts.documents, "document")}: console skills <folder> shows what a folder holds (. for the root), console skills --search <words> finds skills and documents by words.`);
|
|
224
224
|
}
|
|
225
225
|
if (skills.items.length === 0) {
|
|
226
226
|
lines.push("No skills at this address.");
|
package/dist/cli/help.js
CHANGED
|
@@ -187,7 +187,7 @@ export const COMMAND_HELP = {
|
|
|
187
187
|
skills: {
|
|
188
188
|
usage: "skills | skills <folder> | skills --search <words> [<folder>] [--limit <n>]",
|
|
189
189
|
synopsis: "The project's pack: its skills; what a folder of it holds; or what words find in it.",
|
|
190
|
-
about: "The project's pack, as SkillCDN serves it at the project's address, read by the console with the pack token the project holds where the pack is private (ADR-0028). Alone: the pack by name with how many skills and documents it has, and its skills, each with its description, the path of its SKILL.md, which console skill reads it by, and the URI you load it by through your own SkillCDN connection where your host has one; and where the console's own skills are on this machine. With a folder (
|
|
190
|
+
about: "The project's pack, as SkillCDN serves it at the project's address, read by the console with the pack token the project holds where the pack is private (ADR-0028). Alone: the pack by name with how many skills and documents it has, and its skills, each with its description, the path of its SKILL.md, which console skill reads it by, and the URI you load it by through your own SkillCDN connection where your host has one; and where the console's own skills are on this machine. With a folder (. for the root): what it holds, as browse_repo lays it out: its skills, its folders with how many skills and documents each holds and the README that introduces it, its files; whole, page after page. With --search: the skills and the documents the words find, in relevance order, a skill with the files of it that matched; words, not meaning, in the language the pack is written in; within the folder when one is named; 10 unless --limit says otherwise, up to 25, and a last line says when more matched. --json answers with the console's own JSON, the page of each skill included.",
|
|
191
191
|
limits: ["search: 1 to 500 characters; limit: 1 to 25"],
|
|
192
192
|
refusals: [
|
|
193
193
|
"status not_found: the pack is not served to the console; private, with no pack token on the project",
|
package/docs/specs/cli.md
CHANGED
|
@@ -52,7 +52,7 @@ The board is a project's ([ADR-0008](../adr/0008-a-workspace-holds-projects-and-
|
|
|
52
52
|
| `members` | `GET .../members` | one line per member: login, role, since when |
|
|
53
53
|
| `member add <login> [--role owner\|member] [--project <key>[,<key>...]]`, `member role <login> <owner\|member>`, `member remove <login>` | `GET /api/v1/people` for the id, then `POST .../members` (once per project when `--project` names several with commas), `PATCH .../members/<id>`, `DELETE .../members/<id>` | the member as they are now, or that they are no longer listed; with several projects, one line per project, a person listed already said so; for an owner |
|
|
54
54
|
| `category new <key> <name> [--color <name>]`, `category edit <key> [--name <name>] [--color <name>]`, `category remove <key>` | `POST /api/v1/categories`, `PATCH .../categories/<key>`, `DELETE .../categories/<key>` | the category as it is now, or that it is gone; for an administrator |
|
|
55
|
-
| `skills`, `skills <folder>`, `skills --search <words> [<folder>] [--limit <n>]` | `GET .../skills`; `GET .../skills/browse?path=&cursor=`, page after page to the end; `GET .../skills/find?query=&path=&limit=`, one page | the project's pack, or the organization's: the pack by name with how many skills and documents it has, and each skill with its description, the path `skill` reads it by and the URI an agent loads it by through its own SkillCDN connection; or why there are none to show; where a person connects an agent that has no connection to the address, and where the console's own skills are on this machine, when the command knows. With a folder (
|
|
55
|
+
| `skills`, `skills <folder>`, `skills --search <words> [<folder>] [--limit <n>]` | `GET .../skills`; `GET .../skills/browse?path=&cursor=`, page after page to the end; `GET .../skills/find?query=&path=&limit=`, one page | the project's pack, or the organization's: the pack by name with how many skills and documents it has, and each skill with its description, the path `skill` reads it by and the URI an agent loads it by through its own SkillCDN connection; or why there are none to show; where a person connects an agent that has no connection to the address, and where the console's own skills are on this machine, when the command knows. With a folder (`.` for the root; `/` is taken too, but a Windows shell rewrites it into a path before the command sees it), what it holds as `browse_repo` lays it out: its skills, its folders with what each holds and the README that introduces it, its files. With `--search`, what the words find as `search_repo` does, in relevance order, a skill with the files of it that matched, within the folder when one is named, ten unless `--limit` says otherwise (up to 25), and a last line when more matched |
|
|
56
56
|
| `skill <path>`, `skill --file <path>` | `GET .../skills/one?path=&cursor=`, page after page until `complete`; with `--file`, `GET .../skills/file?path=&offset=` until the end | the skill whole, as `load_skill` lays it out: the rules of the repository from its root to the nearest manifest, the body and the included files, each under a line that names its path, then the files it has and what it refers to; or the file whole, or what a folder holds; a private pack through the pack token the project holds ([ADR-0028](../adr/0028-the-console-reads-a-projects-pack-through-the-deployments-rest-api-with-a-pack-token-for-a-private-one.md)). `--file` takes no skill's path beside it: the two given together are not understood |
|
|
57
57
|
| `rules` | `GET .../rules`, or `GET /api/v1/rules` without a project named, and `GET /api/v1/me` | the rules that hold, as they read for the person (`{language}` is the language they chose, or the task's) ([ADR-0023](../adr/0023-the-rules-of-a-board-are-pages-the-workspace-and-its-projects-keep-read-first-by-every-agent.md)): the workspace's, the console's own until an administrator writes the organization's, with its version and who wrote it when written; then this project's own, or that it adds none |
|
|
58
58
|
| `rules write --body <markdown>\|--file <path>\|-\|none [--workspace] [--base <version>]` | `PUT .../docs/rules` or `POST .../docs/rules/archive`; with `--workspace`, `PUT /api/v1/rules` or `POST /api/v1/rules/archive` | the version written, that the console's own rules sent as they are wrote nothing, or that the rules are put away; for an owner of the project, or an administrator for the workspace's |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skillcdn/console",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"description": "What a custom SkillCDN console is built from: the API client and schemas, the components, the composition of the default console, and the console command agents work the board with.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/skillcdn/console#readme",
|
package/src/cli/format.ts
CHANGED
|
@@ -290,7 +290,7 @@ export function formatSkills(skills: RestSkills, ownSkills?: string): string {
|
|
|
290
290
|
}
|
|
291
291
|
if (skills.counts !== undefined) {
|
|
292
292
|
lines.push(
|
|
293
|
-
`${counted(skills.counts.skills, "skill")}, ${counted(skills.counts.documents, "document")}: console skills <folder> shows what a folder holds (
|
|
293
|
+
`${counted(skills.counts.skills, "skill")}, ${counted(skills.counts.documents, "document")}: console skills <folder> shows what a folder holds (. for the root), console skills --search <words> finds skills and documents by words.`,
|
|
294
294
|
);
|
|
295
295
|
}
|
|
296
296
|
if (skills.items.length === 0) {
|
package/src/cli/help.ts
CHANGED
|
@@ -279,7 +279,7 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
279
279
|
synopsis:
|
|
280
280
|
"The project's pack: its skills; what a folder of it holds; or what words find in it.",
|
|
281
281
|
about:
|
|
282
|
-
"The project's pack, as SkillCDN serves it at the project's address, read by the console with the pack token the project holds where the pack is private (ADR-0028). Alone: the pack by name with how many skills and documents it has, and its skills, each with its description, the path of its SKILL.md, which console skill reads it by, and the URI you load it by through your own SkillCDN connection where your host has one; and where the console's own skills are on this machine. With a folder (
|
|
282
|
+
"The project's pack, as SkillCDN serves it at the project's address, read by the console with the pack token the project holds where the pack is private (ADR-0028). Alone: the pack by name with how many skills and documents it has, and its skills, each with its description, the path of its SKILL.md, which console skill reads it by, and the URI you load it by through your own SkillCDN connection where your host has one; and where the console's own skills are on this machine. With a folder (. for the root): what it holds, as browse_repo lays it out: its skills, its folders with how many skills and documents each holds and the README that introduces it, its files; whole, page after page. With --search: the skills and the documents the words find, in relevance order, a skill with the files of it that matched; words, not meaning, in the language the pack is written in; within the folder when one is named; 10 unless --limit says otherwise, up to 25, and a last line says when more matched. --json answers with the console's own JSON, the page of each skill included.",
|
|
283
283
|
limits: ["search: 1 to 500 characters; limit: 1 to 25"],
|
|
284
284
|
refusals: [
|
|
285
285
|
"status not_found: the pack is not served to the console; private, with no pack token on the project",
|