@skillcdn/console 0.6.3 → 0.6.4
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 +6 -6
- package/dist/agent-page.d.ts.map +1 -1
- package/dist/agent-page.js +7 -3
- package/dist/agent-page.js.map +1 -1
- package/dist/api.d.ts +5 -4
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +5 -4
- package/dist/api.js.map +1 -1
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +660 -138
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/format.d.ts +32 -4
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +125 -4
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +91 -29
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/pack.d.ts +11 -10
- package/dist/cli/pack.d.ts.map +1 -1
- package/dist/cli/pack.js +27 -41
- package/dist/cli/pack.js.map +1 -1
- package/dist/cli/plugin-cli.d.ts.map +1 -1
- package/dist/cli/plugin-cli.js +8 -5
- package/dist/cli/plugin-cli.js.map +1 -1
- package/dist/cli/runner-files.d.ts.map +1 -1
- package/dist/cli/runner-files.js +15 -0
- package/dist/cli/runner-files.js.map +1 -1
- package/dist/cli/skill-path.d.ts +11 -0
- package/dist/cli/skill-path.d.ts.map +1 -0
- package/dist/cli/skill-path.js +44 -0
- package/dist/cli/skill-path.js.map +1 -0
- package/dist/client.d.ts +17 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +10 -1
- package/dist/client.js.map +1 -1
- package/dist/components/agent-page.d.ts +67 -5
- package/dist/components/agent-page.d.ts.map +1 -1
- package/dist/components/agent-page.js +161 -14
- package/dist/components/agent-page.js.map +1 -1
- package/dist/components/agents.d.ts +3 -4
- package/dist/components/agents.d.ts.map +1 -1
- package/dist/components/agents.js +7 -6
- package/dist/components/agents.js.map +1 -1
- package/dist/components/people.d.ts.map +1 -1
- package/dist/components/people.js +7 -2
- package/dist/components/people.js.map +1 -1
- package/dist/components/picker.d.ts +16 -0
- package/dist/components/picker.d.ts.map +1 -1
- package/dist/components/picker.js +69 -4
- package/dist/components/picker.js.map +1 -1
- package/dist/console.css +40 -0
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +1 -1
- package/dist/console.js.map +1 -1
- package/dist/i18n/en.d.ts +19 -5
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +26 -12
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +22 -10
- package/dist/i18n/ko.js.map +1 -1
- package/dist/limits.d.ts +16 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +16 -0
- package/dist/limits.js.map +1 -1
- package/dist/onboarding.d.ts +18 -6
- package/dist/onboarding.d.ts.map +1 -1
- package/dist/onboarding.js +42 -7
- package/dist/onboarding.js.map +1 -1
- package/dist/plugin/args.d.ts +24 -2
- package/dist/plugin/args.d.ts.map +1 -1
- package/dist/plugin/args.js +20 -2
- package/dist/plugin/args.js.map +1 -1
- package/dist/plugin/define.d.ts.map +1 -1
- package/dist/plugin/define.js +12 -3
- package/dist/plugin/define.js.map +1 -1
- package/dist/plugin/rest-schemas.d.ts +2 -0
- package/dist/plugin/rest-schemas.d.ts.map +1 -1
- package/dist/plugin/rest-schemas.js +1 -0
- package/dist/plugin/rest-schemas.js.map +1 -1
- package/dist/routes.d.ts +2 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +2 -0
- package/dist/routes.js.map +1 -1
- package/dist/rules.d.ts +4 -1
- package/dist/rules.d.ts.map +1 -1
- package/dist/rules.js +5 -2
- package/dist/rules.js.map +1 -1
- package/dist/runner/claude.d.ts.map +1 -1
- package/dist/runner/claude.js +48 -0
- package/dist/runner/claude.js.map +1 -1
- package/dist/runner/codex.d.ts.map +1 -1
- package/dist/runner/codex.js +4 -1
- package/dist/runner/codex.js.map +1 -1
- package/dist/runner/desk.d.ts.map +1 -1
- package/dist/runner/desk.js +5 -4
- package/dist/runner/desk.js.map +1 -1
- package/dist/runner/runner.d.ts +16 -0
- package/dist/runner/runner.d.ts.map +1 -1
- package/dist/runner/runner.js +157 -8
- package/dist/runner/runner.js.map +1 -1
- package/dist/runner/slack.d.ts.map +1 -1
- package/dist/runner/slack.js +14 -3
- package/dist/runner/slack.js.map +1 -1
- package/dist/runner/types.d.ts +19 -0
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/types.js.map +1 -1
- package/dist/schemas.d.ts +475 -5
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +117 -12
- package/dist/schemas.js.map +1 -1
- package/dist/secret-file.d.ts +21 -0
- package/dist/secret-file.d.ts.map +1 -0
- package/dist/secret-file.js +59 -0
- package/dist/secret-file.js.map +1 -0
- package/dist/services.d.ts.map +1 -1
- package/dist/services.js +3 -2
- package/dist/services.js.map +1 -1
- package/dist/setup-guide.d.ts +2 -2
- package/dist/setup-guide.d.ts.map +1 -1
- package/dist/setup-guide.js +6 -5
- package/dist/setup-guide.js.map +1 -1
- package/dist/vocabulary.d.ts +10 -2
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +9 -2
- package/dist/vocabulary.js.map +1 -1
- package/docs/specs/cli.md +22 -16
- package/docs/specs/plugins.md +5 -4
- package/docs/specs/rest.md +24 -12
- package/docs/specs/runner.md +19 -12
- package/docs/start.md +4 -3
- package/package.json +3 -3
- package/skills/building-a-plugin/SKILL.md +2 -2
- package/skills/keeping-the-pack/SKILL.md +87 -0
- package/skills/planning-the-board/SKILL.md +6 -6
- package/skills/planning-the-board/references/a-task.md +1 -1
- package/skills/planning-the-board/references/setting-up.md +9 -5
- package/skills/running-an-agent/SKILL.md +15 -14
- package/skills/running-an-agent/references/preparing-the-machine.md +3 -2
- package/skills/running-an-agent/references/several-tasks.md +8 -2
- package/skills/running-an-agent/references/slack-app.md +10 -4
- package/skills/running-an-agent/references/the-account-and-the-invitation.md +1 -1
- package/skills/running-an-agent/references/what-was-not-seen-run-yet.md +3 -1
- package/skills/running-an-agent/references/when-the-agent-could-not-go-on.md +3 -3
- package/skills/running-an-agent/references/your-first-task.md +4 -3
- package/skills/working-the-board/SKILL.md +4 -4
- package/skills/working-the-board/references/terms.md +3 -1
- package/skills/working-the-board/references/the-pack.md +12 -5
- package/src/agent-page.tsx +19 -3
- package/src/api.ts +27 -0
- package/src/cli/cli.ts +847 -192
- package/src/cli/format.ts +158 -4
- package/src/cli/help.ts +102 -28
- package/src/cli/pack.ts +49 -58
- package/src/cli/plugin-cli.ts +8 -5
- package/src/cli/runner-files.ts +17 -0
- package/src/cli/skill-path.ts +51 -0
- package/src/client.ts +50 -0
- package/src/components/agent-page.tsx +309 -30
- package/src/components/agents.tsx +7 -23
- package/src/components/people.tsx +7 -3
- package/src/components/picker.tsx +79 -5
- package/src/console.tsx +0 -1
- package/src/i18n/en.ts +28 -13
- package/src/i18n/ko.ts +24 -10
- package/src/limits.ts +16 -0
- package/src/onboarding.ts +60 -21
- package/src/plugin/args.ts +29 -3
- package/src/plugin/define.ts +18 -3
- package/src/plugin/rest-schemas.ts +3 -0
- package/src/routes.ts +2 -0
- package/src/rules.ts +5 -2
- package/src/runner/claude.ts +53 -0
- package/src/runner/codex.ts +4 -1
- package/src/runner/desk.ts +5 -4
- package/src/runner/runner.ts +199 -9
- package/src/runner/slack.ts +18 -7
- package/src/runner/types.ts +16 -0
- package/src/schemas.ts +148 -10
- package/src/secret-file.ts +76 -0
- package/src/services.ts +3 -2
- package/src/setup-guide.ts +6 -5
- package/src/styles/README.md +1 -1
- package/src/styles/pages/agents.css +40 -0
- package/src/vocabulary.ts +12 -2
- package/dist/cli/command-words.d.ts +0 -20
- package/dist/cli/command-words.d.ts.map +0 -1
- package/dist/cli/command-words.js +0 -51
- package/dist/cli/command-words.js.map +0 -1
- package/src/cli/command-words.ts +0 -56
package/src/cli/format.ts
CHANGED
|
@@ -25,6 +25,9 @@ import type {
|
|
|
25
25
|
RestNotificationSettings,
|
|
26
26
|
RestNotifications,
|
|
27
27
|
RestOwnWake,
|
|
28
|
+
RestPackNote,
|
|
29
|
+
RestPackNoteLeft,
|
|
30
|
+
RestPackNotes,
|
|
28
31
|
RestPerson,
|
|
29
32
|
RestPersonWork,
|
|
30
33
|
RestPlugin,
|
|
@@ -216,7 +219,7 @@ export function formatAgent(agent: RestAgent, now: number): string {
|
|
|
216
219
|
...(runner.product === null
|
|
217
220
|
? []
|
|
218
221
|
: [
|
|
219
|
-
`product: ${runner.product.name} ${runner.product.version ?? "of a version it did not say"}
|
|
222
|
+
`product: ${runner.product.name} ${runner.product.version ?? "of a version it did not say"}`,
|
|
220
223
|
]),
|
|
221
224
|
`set to: model ${runner.settings.model ?? OWN_CHOICE}, effort ${runner.settings.effort ?? OWN_CHOICE}`,
|
|
222
225
|
...(runner.running === null
|
|
@@ -384,8 +387,52 @@ export function formatListingLine(listing: RestListing): string {
|
|
|
384
387
|
return `${listing.login} (let in at ${HOST_NAMES[listing.host]}, not signed in yet)`;
|
|
385
388
|
}
|
|
386
389
|
|
|
387
|
-
/** The
|
|
388
|
-
export
|
|
390
|
+
/** The member who keeps the skills, as the command looked them up: what they are called, and whether they are out. */
|
|
391
|
+
export interface KeeperCalled {
|
|
392
|
+
readonly called: string;
|
|
393
|
+
/** Out of the workspace for now: the notes wait for the administrators until they are back. */
|
|
394
|
+
readonly away: boolean;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Who keeps the organization's skills (ADR-0178), as the workspace says it: the keeper as they
|
|
399
|
+
* are called, where the command looked them up, with the hour of their round; that the keeper
|
|
400
|
+
* is out, when the notes wait for the administrators as they do with nobody named; or that
|
|
401
|
+
* nobody keeps them. Nothing for a console that answers none of it.
|
|
402
|
+
*/
|
|
403
|
+
function keeperLine(workspace: RestWorkspace, keeper: KeeperCalled | undefined): string[] {
|
|
404
|
+
const { keeperId, roundAt } = workspace.skills;
|
|
405
|
+
if (keeperId === undefined) {
|
|
406
|
+
return [];
|
|
407
|
+
}
|
|
408
|
+
if (keeperId === null) {
|
|
409
|
+
return [
|
|
410
|
+
"skills kept by: nobody (the notes on the skills wait for the administrators: console skills --notes; console workspace pack-keeper <login> names a keeper)",
|
|
411
|
+
];
|
|
412
|
+
}
|
|
413
|
+
if (keeper?.away === true) {
|
|
414
|
+
return [
|
|
415
|
+
`skills kept by: ${keeper.called}, who is out (the notes on the skills wait for the administrators until they are back: console skills --notes; console workspace pack-keeper <login> names another)`,
|
|
416
|
+
];
|
|
417
|
+
}
|
|
418
|
+
const round =
|
|
419
|
+
roundAt == null
|
|
420
|
+
? "no round is kept"
|
|
421
|
+
: `an agent account that keeps them is woken for its round at ${roundAt}, where a note is new`;
|
|
422
|
+
return [
|
|
423
|
+
`skills kept by: ${keeper?.called ?? "a member"} (the notes on the skills wait for them: console skills --notes; ${round})`,
|
|
424
|
+
];
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* The workspace as its Settings page shows it: what it is called, who sees whom, the week, the
|
|
429
|
+
* time zone, where the skills come from and who keeps them, and what tokens may last. `keeper`
|
|
430
|
+
* is the member who keeps the skills, where the command looked them up.
|
|
431
|
+
*/
|
|
432
|
+
export function formatWorkspace(
|
|
433
|
+
workspace: RestWorkspace,
|
|
434
|
+
keeper?: KeeperCalled | undefined,
|
|
435
|
+
): string {
|
|
389
436
|
const visibility = workspace.peopleVisibility ?? "everyone";
|
|
390
437
|
const zone = workspace.timeZone ?? null;
|
|
391
438
|
const token = workspace.skills.packToken ?? null;
|
|
@@ -416,11 +463,118 @@ export function formatWorkspace(workspace: RestWorkspace): string {
|
|
|
416
463
|
`time zone: ${zone ?? "none"} (${zone === null ? "moments are printed as the API gives them, in UTC" : "moments are printed in it, as ISO 8601 with its offset"})`,
|
|
417
464
|
`language: ${workspace.language ?? "none"} (${workspace.language == null ? "whoever has not chosen a language reads English, and the plugins write to them in it" : "whoever has not chosen a language reads it, and the plugins write to them in it"})`,
|
|
418
465
|
`skills: ${workspace.skills.address ?? "no address of the organization's"} at ${workspace.skills.source}`,
|
|
466
|
+
...keeperLine(workspace, keeper),
|
|
419
467
|
`SkillCDN token: ${token === null ? "none" : `set ${moment(token.setAt)}`} (${token === null ? "the organization's pack is read with none" : "the organization's pack is read with it by a project with no address and no token of its own"})`,
|
|
420
468
|
`token days at most: ${workspace.tokenDaysAtMost ?? "a person chooses"}`,
|
|
421
469
|
].join("\n");
|
|
422
470
|
}
|
|
423
471
|
|
|
472
|
+
/** A note's text under its line: each line of it set in, so that a list of notes reads as one. */
|
|
473
|
+
const setIn = (text: string): string =>
|
|
474
|
+
text
|
|
475
|
+
.split("\n")
|
|
476
|
+
.map((line) => ` ${line}`)
|
|
477
|
+
.join("\n");
|
|
478
|
+
|
|
479
|
+
/** What a note is on, as a list groups it: the skill or the page, or that no skill fit. */
|
|
480
|
+
const NO_SKILL_FIT = "No skill fit";
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Who left a note and from where: the member, the agent they left it through, the project. A
|
|
484
|
+
* member the console did not name, since the reader may not see them, is a member and no more.
|
|
485
|
+
*/
|
|
486
|
+
function noteLine(note: RestPackNote): string {
|
|
487
|
+
const by = note.by === null ? "a member" : calledOf(note.by);
|
|
488
|
+
const through = note.agent === null ? "" : ` through ${note.agent}`;
|
|
489
|
+
const from = note.project === null ? "" : `, from ${note.project}`;
|
|
490
|
+
const standing = note.state === "open" ? "" : ` ${note.state}`;
|
|
491
|
+
return ` ${note.id} ${moment(note.at).slice(0, 10)} ${by}${through}${from}${standing}`;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/** One note in a list: its line, what it says, and, once closed, what became of it. */
|
|
495
|
+
function formatPackNote(note: RestPackNote): string {
|
|
496
|
+
return [
|
|
497
|
+
noteLine(note),
|
|
498
|
+
setIn(note.body),
|
|
499
|
+
...(note.outcome === null ? [] : [setIn(`-> ${note.outcome}`)]),
|
|
500
|
+
].join("\n");
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Whom the notes wait for, in a few words: the keeper as they are called, a keeper the console
|
|
505
|
+
* did not name to this reader, or the administrators where nobody keeps the skills.
|
|
506
|
+
*/
|
|
507
|
+
const waitsFor = (kept: boolean, keeper: RestPerson | null): string =>
|
|
508
|
+
keeper !== null
|
|
509
|
+
? `kept by ${calledOf(keeper)}`
|
|
510
|
+
: kept
|
|
511
|
+
? "kept by a member"
|
|
512
|
+
: "nobody keeps the organization's skills, so they wait for the administrators";
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* The notes on the pack as `console skills --notes` lists them (ADR-0178): under a line that
|
|
516
|
+
* says whose they are, how many are open and whom they wait for, each skill or page with its
|
|
517
|
+
* notes, the oldest first, then the jobs no skill fit. `closing` is what the command says after
|
|
518
|
+
* them: to whoever keeps the pack, how one is closed and where a keeper's work is written.
|
|
519
|
+
*/
|
|
520
|
+
export function formatPackNotes(
|
|
521
|
+
notes: RestPackNotes,
|
|
522
|
+
page: { readonly limit: number; readonly offset: number; readonly all: boolean },
|
|
523
|
+
closing: readonly string[],
|
|
524
|
+
): string {
|
|
525
|
+
const whose = notes.everyones ? "everyone's" : "your own";
|
|
526
|
+
const head = `Notes on the skills, ${whose}: ${notes.open} open; ${waitsFor(notes.kept, notes.keeper)}.`;
|
|
527
|
+
if (notes.items.length === 0) {
|
|
528
|
+
return [
|
|
529
|
+
head,
|
|
530
|
+
page.offset > 0
|
|
531
|
+
? "No more on this page."
|
|
532
|
+
: page.all
|
|
533
|
+
? "None was left."
|
|
534
|
+
: "None is open here.",
|
|
535
|
+
...closing,
|
|
536
|
+
].join("\n");
|
|
537
|
+
}
|
|
538
|
+
const groups = new Map<string, RestPackNote[]>();
|
|
539
|
+
for (const note of notes.items) {
|
|
540
|
+
const key = note.path ?? NO_SKILL_FIT;
|
|
541
|
+
groups.set(key, [...(groups.get(key) ?? []), note]);
|
|
542
|
+
}
|
|
543
|
+
// The jobs no skill fit come last: they ask for a skill that is not there, which is a person's to say.
|
|
544
|
+
const ordered = [...groups].sort(
|
|
545
|
+
([a], [b]) => Number(a === NO_SKILL_FIT) - Number(b === NO_SKILL_FIT),
|
|
546
|
+
);
|
|
547
|
+
return (
|
|
548
|
+
[
|
|
549
|
+
head,
|
|
550
|
+
...ordered.flatMap(([key, items]) => [
|
|
551
|
+
`${key} (${items.length})`,
|
|
552
|
+
...items.map(formatPackNote),
|
|
553
|
+
]),
|
|
554
|
+
...closing,
|
|
555
|
+
].join("\n") + formatMore(notes.items.length === page.limit, page.limit, page.offset)
|
|
556
|
+
);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* What leaving a note answers: its id, what it is on and whom it waits for. Where nobody keeps
|
|
561
|
+
* the skills, that is said as something to pass on: a note nobody reads mends nothing.
|
|
562
|
+
*/
|
|
563
|
+
export function formatPackNoteLeft(left: RestPackNoteLeft): string {
|
|
564
|
+
const on = left.note.path === null ? "that no skill fit" : `on ${left.note.path}`;
|
|
565
|
+
if (left.keeper !== null) {
|
|
566
|
+
return `Noted ${on} (note ${left.note.id}), for ${calledOf(left.keeper)}, who keeps the organization's skills.`;
|
|
567
|
+
}
|
|
568
|
+
return left.kept
|
|
569
|
+
? `Noted ${on} (note ${left.note.id}), for the member who keeps the organization's skills.`
|
|
570
|
+
: `Noted ${on} (note ${left.note.id}). Nobody keeps the organization's skills, so it waits for an administrator, who reads it with console skills --notes: where you report this work, say that a note waits and nobody keeps the skills.`;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/** What closing a note answers: how it ended, and what was said of it. */
|
|
574
|
+
export function formatPackNoteClosed(note: RestPackNote): string {
|
|
575
|
+
return `Note ${note.id} is ${note.state}: ${note.outcome ?? ""}`;
|
|
576
|
+
}
|
|
577
|
+
|
|
424
578
|
/** One member of a project: their login, what they are in it, and since when. */
|
|
425
579
|
export function formatMemberLine(member: RestMember): string {
|
|
426
580
|
return `${calledOf(member.person)} ${member.role} (since ${moment(member.addedAt).slice(0, 10)})`;
|
|
@@ -679,7 +833,7 @@ const charactersOf = (text: string | null): string => `${(text ?? "").trimEnd().
|
|
|
679
833
|
|
|
680
834
|
/**
|
|
681
835
|
* The rules that hold, under a first line that says what follows (ADR-0119): the mark, which
|
|
682
|
-
* parts there are and how long each is, and how a
|
|
836
|
+
* parts there are and how long each is, and how a take in this session leaves them out.
|
|
683
837
|
* What differs stands first and what always holds last (ADR-0120): what the project adds with
|
|
684
838
|
* the plugins' lines, then what the organization adds, then the console's rules. An agent that
|
|
685
839
|
* had read the long part once cut every later print at its head, and never saw what stood
|
package/src/cli/help.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
DEFAULT_PACK_ROUND,
|
|
2
3
|
DEFAULT_PAGE_LIMIT,
|
|
3
4
|
INVITATION_DAYS,
|
|
4
5
|
MAX_AGENT_ELSEWHERE,
|
|
@@ -32,6 +33,11 @@ import {
|
|
|
32
33
|
MAX_OWN_WAKE_DAYS,
|
|
33
34
|
MAX_OWN_WAKES,
|
|
34
35
|
MAX_OWN_WAKES_PER_HOUR,
|
|
36
|
+
MAX_PACK_NOTE_LENGTH,
|
|
37
|
+
MAX_PACK_NOTE_OUTCOME_LENGTH,
|
|
38
|
+
MAX_PACK_NOTES_OPEN_BY_ONE,
|
|
39
|
+
MAX_PACK_NOTES_PAGE_LIMIT,
|
|
40
|
+
MAX_PACK_NOTES_PER_HOUR,
|
|
35
41
|
MAX_PERSON_NAME_LENGTH,
|
|
36
42
|
MAX_PERSON_TITLE_LENGTH,
|
|
37
43
|
MAX_PROJECT_DESCRIPTION_LENGTH,
|
|
@@ -55,6 +61,7 @@ import {
|
|
|
55
61
|
MAX_WORKERS,
|
|
56
62
|
MIN_HANDLE_LENGTH,
|
|
57
63
|
MIN_OPTIONS,
|
|
64
|
+
PACK_NOTES_PAGE_LIMIT,
|
|
58
65
|
SECRET_OFFER_DAYS,
|
|
59
66
|
} from "../limits.js";
|
|
60
67
|
import {
|
|
@@ -159,7 +166,7 @@ const TASK_FIELD_FLAGS =
|
|
|
159
166
|
const TASK_FIELD_LIMITS = [
|
|
160
167
|
`starts, due: ${DAY}; the due day is not before the start`,
|
|
161
168
|
"category: the key of one of the workspace's categories (console categories); goal: the id of one of the project's goals (console goals)",
|
|
162
|
-
`worker: a login of the workspace, or me; given again, or with commas between, for several, up to ${MAX_WORKERS}, in place of the workers there were; none alone for nobody. parent: a task of the project, by its number or its id; console tasks --search <words> finds one by its title`,
|
|
169
|
+
`worker: a login of the workspace, or me; given again, or with commas between, for several, up to ${MAX_WORKERS}, in place of the workers there were; none alone for nobody. parent: a task of the project, by its number or its id; console tasks --search "<words>" finds one by its title`,
|
|
163
170
|
];
|
|
164
171
|
const TASK_FIELD_REFUSALS = [
|
|
165
172
|
"task.invalid_category: no category has that key",
|
|
@@ -255,7 +262,7 @@ const PERSON_IN: PageHelp = {
|
|
|
255
262
|
"For an administrator. add lets a login in: whoever signs in with that account at that host is a person from then on; the host is read off the login (an address is Google's, anything else GitHub's) unless --host says. remove takes a login away that nobody has signed in with yet. deactivate takes a person out: refused on every request at once, their agents with them, kept with everything they did, and listed nowhere; reactivate takes them back in. A person the organization let in comes and goes with it, and is neither.",
|
|
256
263
|
refusals: [
|
|
257
264
|
"auth.forbidden: only an administrator says who is in",
|
|
258
|
-
"person.last_admin: the board keeps
|
|
265
|
+
"person.last_admin: the board keeps an administrator in who is a person; make another person one first",
|
|
259
266
|
"person.of_organization: the organization says whether that person is in",
|
|
260
267
|
"listing.exists: the login is let in already, or is a person's who is in",
|
|
261
268
|
"listing.unknown_host: nobody signs in through that provider here",
|
|
@@ -302,7 +309,7 @@ const PLUGIN_ADMIN: PageHelp = {
|
|
|
302
309
|
|
|
303
310
|
const PLUGIN_SKILLS: PageHelp = {
|
|
304
311
|
usage:
|
|
305
|
-
|
|
312
|
+
'plugin <key> skills [<folder>|<file>] | plugin <key> skills --search "<words>" [--path <folder>] [--limit <n>] [--cursor <cursor>] | plugin <key> skill <path> | plugin <key> skill --file <path> [--offset <n>] [--limit <n>]',
|
|
306
313
|
synopsis: "The plugin's own skills, a pack read from its package.",
|
|
307
314
|
about:
|
|
308
315
|
"The plugin's own skills, a pack read from its package, exactly as console skills and console skill read a project's pack: console help skills and console help skill say every form.",
|
|
@@ -432,10 +439,10 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
432
439
|
},
|
|
433
440
|
tasks: {
|
|
434
441
|
usage:
|
|
435
|
-
|
|
442
|
+
'tasks [--state <state>] [--open] [--mine] [--category <key>] [--goal <id>] [--due <day|today|week|overdue>] [--unassigned] [--search "<words>"] [--archived] [--limit <n>] [--offset <n>]',
|
|
436
443
|
synopsis:
|
|
437
444
|
"The tasks on the board, newest first, narrowed by state, worker, category, goal, due day or words of the title.",
|
|
438
|
-
about: `The tasks on the board, newest first: number, state, priority, title, who owns and who works on each, its category and its due day, and what waits on it. --open keeps the ones not done or dropped, --mine those you work on, --unassigned those nobody works on (not with --mine), --category and --goal those sorted into one, --due those due by a day: today, this week (through its last day, the week beginning as the workspace says, console workspace, or as your language has it), or overdue (the open ones past their day), --search those whose title has every word given, whatever the case, and the task of that number for a number (12 or #12): how a task is found by its title, as a parent or otherwise. The tasks put away (ADR-0029) are left out unless --archived asks for them alone. A page at a time: ${DEFAULT_PAGE_LIMIT} unless --limit says otherwise, from --offset on; a last line says when there is more. States: idea, ready, in_progress, in_review, done, dropped.`,
|
|
445
|
+
about: `The tasks on the board, newest first: number, state, priority, title, who owns and who works on each, its category and its due day, and what waits on it. --open keeps the ones not done or dropped, --mine those you work on, --unassigned those nobody works on (not with --mine), --category and --goal those sorted into one, --due those due by a day: today, this week (through its last day, the week beginning as the workspace says, console workspace, or as your language has it), or overdue (the open ones past their day), --search those whose title has every word given, whatever the case, every bare word being of the search, and the task of that number for a number (12 or #12): how a task is found by its title, as a parent or otherwise. The tasks put away (ADR-0029) are left out unless --archived asks for them alone. A page at a time: ${DEFAULT_PAGE_LIMIT} unless --limit says otherwise, from --offset on; a last line says when there is more. States: idea, ready, in_progress, in_review, done, dropped.`,
|
|
439
446
|
limits: [`search: 1 to ${MAX_SEARCH_LENGTH} characters`],
|
|
440
447
|
},
|
|
441
448
|
task: {
|
|
@@ -484,9 +491,9 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
484
491
|
},
|
|
485
492
|
goals: {
|
|
486
493
|
usage:
|
|
487
|
-
|
|
494
|
+
'goals [--category <key>] [--state <state>] [--search "<words>"] [--limit <n>] [--offset <n>]',
|
|
488
495
|
synopsis: "The roadmap: the project's goals, with their state, their days and how far each is.",
|
|
489
|
-
about: `The roadmap of the project: its goals, the active first, each with its id, its state (planned, active, done, dropped), its category, the days it starts and is meant to be reached by, and how far it is, counted from the tasks that work towards it. --category keeps those sorted into one, --state those in one state, --search those whose title has every word given, whatever the case: how a goal's id is found for --goal. A page at a time: ${DEFAULT_PAGE_LIMIT} unless --limit says otherwise, from --offset on; a last line says when there is more.`,
|
|
496
|
+
about: `The roadmap of the project: its goals, the active first, each with its id, its state (planned, active, done, dropped), its category, the days it starts and is meant to be reached by, and how far it is, counted from the tasks that work towards it. --category keeps those sorted into one, --state those in one state, --search those whose title has every word given, whatever the case, every bare word being of the search: how a goal's id is found for --goal. A page at a time: ${DEFAULT_PAGE_LIMIT} unless --limit says otherwise, from --offset on; a last line says when there is more.`,
|
|
490
497
|
limits: [`search: 1 to ${MAX_SEARCH_LENGTH} characters`],
|
|
491
498
|
},
|
|
492
499
|
goal: {
|
|
@@ -526,13 +533,13 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
526
533
|
usage: "manager",
|
|
527
534
|
synopsis: "Whom you report to, or the administrators where nobody.",
|
|
528
535
|
about:
|
|
529
|
-
"Whom you report to in the reporting line of the directory (ADR-0084), a person or an agent account, for a person as for an agent account: whom to turn to first where you do not know whom to ask, and who is answerable for an agent account. Where you report to nobody, or your manager is out, the administrators are named, who stand in. A manager is no rule of the board: a decision is addressed to whomever can decide it (console ask --to <login>), and to nobody in particular where anyone of the project may.",
|
|
536
|
+
"Whom you report to in the reporting line of the directory (ADR-0084), a person or an agent account, for a person as for an agent account: whom to turn to first where you do not know whom to ask, and who is answerable for an agent account. Where you report to nobody, or your manager is out, the administrators are named, who stand in: the others, where you are one. A manager is no rule of the board: a decision is addressed to whomever can decide it (console ask --to <login>), and to nobody in particular where anyone of the project may.",
|
|
530
537
|
},
|
|
531
538
|
agents: {
|
|
532
539
|
usage: "agents",
|
|
533
540
|
synopsis: "The agent accounts you see, by handle.",
|
|
534
541
|
about:
|
|
535
|
-
"The agent accounts of the workspace (ADR-0084): agents that are members of their own, each signed in through the identity provider with an account of its own, under the rules a person is under
|
|
542
|
+
"The agent accounts of the workspace (ADR-0084): agents that are members of their own, each signed in through the identity provider with an account of its own, under the rules a person is under, an administrator where it is made one. One line each: the handle it is called by (@mira), its name and what it does, the login it signs in with, whom it reports to where you see them, and that nobody signed in with it yet. You read the ones you see as people, and the ones you supervise, as an administrator or above them in the reporting line. An agent account is a member, so console people lists it too, and its login is taken wherever a login is.",
|
|
536
543
|
},
|
|
537
544
|
agent: {
|
|
538
545
|
usage:
|
|
@@ -557,8 +564,8 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
557
564
|
'agent new <handle> [--login <login>] [--name "<name>"] [--title "<title>"] [--manager <login|me>] [--host gh|google] [--seed <seed>] [--convert]',
|
|
558
565
|
synopsis: "Makes an agent account, for an administrator.",
|
|
559
566
|
about: [
|
|
560
|
-
"Makes an agent account, for an administrator (ADR-0084): a member of its own, which signs in through the identity provider with an account of its own. The member's row is written at once, so that work is assigned to it before anyone signed in with it. The pages make one from proposals instead: Agents, Add an agent account.",
|
|
561
|
-
"<handle>: what it is called by, which never changes.\n--login: the account it will sign in with, a login at the git host or an address at Google, which a person makes there; where the workspace names its identity service and none is said, it is made of the workspace's short name, the handle and its domain. --host says the provider where the login's shape does not.\n--name, the handle capitalized when left out; --title, what it does; --manager, whom it reports to, you when left out
|
|
567
|
+
"Makes an agent account, for an administrator (ADR-0084): a member of its own, which signs in through the identity provider with an account of its own. The member's row is written at once, so that work is assigned to it before anyone signed in with it. It is made in no project (ADR-0181): a private one lists it with console member add, and its setup waits on its record as the console's first message to it. The pages make one from proposals instead: Agents, Add an agent account.",
|
|
568
|
+
"<handle>: what it is called by, which never changes.\n--login: the account it will sign in with, a login at the git host or an address at Google, which a person makes there; where the workspace names its identity service and none is said, it is made of the workspace's short name, the handle and its domain. --host says the provider where the login's shape does not.\n--name, the handle capitalized when left out; --title, what it does; --manager, whom it reports to, you when left out.\n--seed: what its avatar is rolled from.\n--convert: a member who carries the login already becomes the account, for good, with everything they did and their role; without it such a login is refused, so that nobody is made an agent account by a name that happens to be theirs.",
|
|
562
569
|
"At a git host the console asks the organization which account the login is and binds the row to it (ADR-0126): the answer says confirmed, and that account alone is let in; or not confirmed, and the account is let in once it is a member there. Where this console reads no organization at the host, whoever holds the login is let in until the account has signed in.",
|
|
563
570
|
].join("\n\n"),
|
|
564
571
|
limits: [
|
|
@@ -568,10 +575,10 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
568
575
|
refusals: [
|
|
569
576
|
"auth.forbidden: only an administrator makes an agent account",
|
|
570
577
|
"agent.handle_taken: another agent account has the handle; agent.exists: the login is an agent account already",
|
|
571
|
-
"
|
|
578
|
+
"person.last_admin: the last person who administers is not made an agent account; make another person an administrator first",
|
|
572
579
|
"agent.login_is_member: a member carries the login already; name the account's own login, or say --convert",
|
|
573
580
|
"agent.invalid_manager: the manager is not another active member, or reports to the account",
|
|
574
|
-
"agent.
|
|
581
|
+
"agent.unknown_host: nobody signs in through that provider here",
|
|
575
582
|
],
|
|
576
583
|
},
|
|
577
584
|
tell: AGENT_SIGNALS,
|
|
@@ -721,7 +728,7 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
721
728
|
synopsis:
|
|
722
729
|
"The workspace's settings; or some changed, or its SkillCDN token set, for an administrator.",
|
|
723
730
|
about:
|
|
724
|
-
"The workspace's settings: what it is called, who sees whom, the day a week begins on, its time zone and language, where the organization's skills come from, and the most days a token may last.",
|
|
731
|
+
"The workspace's settings: what it is called, who sees whom, the day a week begins on, its time zone and language, where the organization's skills come from and who keeps them, and the most days a token may last.",
|
|
725
732
|
forms: {
|
|
726
733
|
edit: {
|
|
727
734
|
usage:
|
|
@@ -737,6 +744,25 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
737
744
|
"workspace.identity_unavailable: nobody signs in to this console through the service named for identity",
|
|
738
745
|
],
|
|
739
746
|
},
|
|
747
|
+
"pack-keeper": {
|
|
748
|
+
usage:
|
|
749
|
+
"workspace pack-keeper <login|none> [--round <HH:MM|none>] | workspace pack-keeper --round <HH:MM|none>",
|
|
750
|
+
synopsis: "Who keeps the organization's skills, and the hour of their round.",
|
|
751
|
+
about: [
|
|
752
|
+
"Names the member who keeps the organization's skills (ADR-0178), for an administrator: a person or an agent account, by login or handle; none for nobody. The notes members leave on the skills (console skill note) wait for the keeper, who reads everyone's and closes them (console skills --notes). With nobody named they wait for the administrators, and nothing wakes anyone.",
|
|
753
|
+
`--round is the hour of the keeper's round, in the workspace's time zone, ${DEFAULT_PACK_ROUND} where none was said: a keeper that is an agent account is woken then, once a night at most, between that hour and the start of its day, only where a note was left since the last round, and not while a window of its product's allowance stands at four fifths or more. none keeps no round: the keeper works the notes when told to. A person who keeps the skills is woken by nothing.`,
|
|
754
|
+
"Naming a keeper changes what the member may read and close, and nothing else: what a keeper changes in the pack alone and what waits for a person is the skill keeping-the-pack, and the pack's own agreement where it says more.",
|
|
755
|
+
].join("\n\n"),
|
|
756
|
+
refusals: [
|
|
757
|
+
"auth.forbidden: only an administrator says who keeps the skills",
|
|
758
|
+
"workspace.keeper_not_found: the member is not in",
|
|
759
|
+
"request.invalid: the hour is not one of the day",
|
|
760
|
+
],
|
|
761
|
+
skill: {
|
|
762
|
+
name: "keeping-the-pack",
|
|
763
|
+
says: "What whoever keeps the skills does, and what an administrator sets up for it",
|
|
764
|
+
},
|
|
765
|
+
},
|
|
740
766
|
"pack-token": {
|
|
741
767
|
usage:
|
|
742
768
|
"workspace pack-token --connect | workspace pack-token --stdin | workspace pack-token --remove",
|
|
@@ -759,16 +785,15 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
759
785
|
"What a person is in the workspace, whom they report to, their work email and title; or a login let in or taken out. For an administrator.",
|
|
760
786
|
about: [
|
|
761
787
|
"For an administrator: the person themselves on the People page, or their agent here, named on it.",
|
|
762
|
-
"role says what a person is in the workspace; the board keeps at least one administrator in.\nmanager says whom a person reports to, the reporting line of the directory, which the plugins read as a default (the approver of their leave, say): another active person of the workspace who does not report to them, directly or through others, or none.\nemail writes the person's work email, or none, by which a plugin allowed to read it matches them to an account elsewhere; a person who signs in at Google has theirs from the sign-in. It is read by an administrator, the person and such a plugin.\ntitle says what a member does, in a line (Release engineer), or none; an agent account's is written by its supervisors too.",
|
|
763
|
-
"An agent account is a member,
|
|
788
|
+
"role says what a person is in the workspace; the board keeps at least one administrator in who is a person.\nmanager says whom a person reports to, the reporting line of the directory, which the plugins read as a default (the approver of their leave, say): another active person of the workspace who does not report to them, directly or through others, or none.\nemail writes the person's work email, or none, by which a plugin allowed to read it matches them to an account elsewhere; a person who signs in at Google has theirs from the sign-in. It is read by an administrator, the person and such a plugin.\ntitle says what a member does, in a line (Release engineer), or none; an agent account's is written by its supervisors too.",
|
|
789
|
+
"An agent account is a member, an administrator where it is made one (ADR-0180), with one thing of its own: its manager is replaced, never taken away.",
|
|
764
790
|
].join("\n\n"),
|
|
765
791
|
limits: [`title: one line, up to ${MAX_PERSON_TITLE_LENGTH} characters`],
|
|
766
792
|
refusals: [
|
|
767
793
|
"auth.forbidden: only an administrator says what a person is; a title, an administrator or, for an agent account, a supervisor",
|
|
768
|
-
"person.last_admin: the board keeps
|
|
794
|
+
"person.last_admin: the board keeps an administrator in who is a person; make another person one first",
|
|
769
795
|
"person.invalid_manager: the manager is not another active person of the workspace, or reports to this person already",
|
|
770
796
|
"person.email_taken: the address is another person's in this workspace",
|
|
771
|
-
"person.agent_admin: an agent account is never an administrator",
|
|
772
797
|
"person.manager_required: an agent account always has a manager; name another",
|
|
773
798
|
],
|
|
774
799
|
forms: {
|
|
@@ -864,7 +889,7 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
864
889
|
synopsis:
|
|
865
890
|
"The project's pack, the organization's where none is named: its skills; a folder or an outline; a search; tables or code as data.",
|
|
866
891
|
about: [
|
|
867
|
-
"The project's pack, read by the console at the project's address (ADR-0028, ADR-0031); in a directory that names no project, the organization's (ADR-0113), under a first line that says so.
|
|
892
|
+
"The project's pack, read by the console at the project's address (ADR-0028, ADR-0031); in a directory that names no project, the organization's (ADR-0113), under a first line that says so. Whether a job is one the pack may have a skill for is said by its kinds of work (console help skills kinds); a skill is found by words (console help skills search), which say too when none matches closely, and loaded with console skill; the listing is for looking around.",
|
|
868
893
|
"Alone: where the pack is, what a client is told of it on connect, and every skill with the path of its SKILL.md; the documents outside the skills are counted, with the commands that read them. A listing longer than one command's output comes in pages, each ending with the command that lists the rest.\nWith a folder (. for the root): a page of what it holds, its skills, its folders and its files, 50 entries unless --limit says otherwise; a page that ends before the folder does ends with the command that reads the next.\nWith a file's path: its outline, every heading with the offset and limit that read its section with console skill --file, paged the same way; a document that has tables or code blocks says how many, and the command that reads them as data.",
|
|
869
894
|
"Each read is the skillcdn command's own, with the reads named as these commands (ADR-0124). A read the pack refused ends the command with exit 1 and the refusal on standard error. --json answers with what the pack answered.",
|
|
870
895
|
].join("\n\n"),
|
|
@@ -877,14 +902,36 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
877
902
|
forms: {
|
|
878
903
|
search: {
|
|
879
904
|
usage:
|
|
880
|
-
|
|
905
|
+
'skills --search "<words>" [--path <folder>] [--full] [--limit <n>] [--cursor <cursor>]',
|
|
881
906
|
synopsis: "What words find in the pack: how a skill, or a page, is found.",
|
|
882
907
|
about:
|
|
883
|
-
"What the words find, as
|
|
908
|
+
"What the words find, as the skillcdn command's find prints it (ADR-0179), in relevance order: a result is its name, its path and the start of its description, a skill with the files of its that matched on one line and a document with the sections that matched and what reads each; --full prints everything the search keeps of a result. A result that matches closely says so after its name, the loose ones follow the others on a line each, and where none matches closely the first sentence says so: the pack then has no skill for the job, and the work goes on without one. Where a skill was found, the results end with the command that loads it.\nEvery bare word is of the query, so --search card news asks for both words; in quotes they are one word, which every version of the command reads so. --path <folder> keeps the search to a folder. Words in the language the pack is written in, and meaning too where the deployment searches by it, which the result then says. 10 results unless --limit says otherwise; a --limit of three to five finds the skill a task needs. Where more matched, the last line is the command that reads the next page.",
|
|
884
909
|
limits: ["search: 1 to 500 characters; limit: 1 to 25"],
|
|
885
910
|
},
|
|
886
911
|
rows: SKILLS_AS_DATA,
|
|
887
912
|
code: SKILLS_AS_DATA,
|
|
913
|
+
notes: {
|
|
914
|
+
usage: "skills --notes [<folder|path>] [--all] [--mine] [--limit <n>] [--offset <n>]",
|
|
915
|
+
synopsis:
|
|
916
|
+
"The notes left on the pack's skills: everyone's for whoever keeps them, else your own.",
|
|
917
|
+
about: [
|
|
918
|
+
"The notes on the pack (ADR-0178): what a run showed a skill or a page to lack or to say wrong, and the jobs no skill fit, left with console skill note. Whoever keeps the organization's skills, the member console workspace names, reads everyone's on the organization's pack, and on a project's own pack where they may see the project; an administrator, who stands in where nobody keeps them, reads every one; anyone else reads their own. A member you may not see is a member and no more. The open ones, the oldest first, under each skill or page; --all the closed too, with what became of each; --mine your own alone; a folder or a path keeps to the notes under it.",
|
|
919
|
+
"A note is the console's own record and never in the pack, which may be public. It tells nobody when it is left: a keeper that is an agent account is woken once a night at most, at the hour kept for its round, where a note was left since the last. To whoever keeps the skills the list ends with how a note is closed and with the skill that says what a keeper does.",
|
|
920
|
+
].join("\n\n"),
|
|
921
|
+
limits: [
|
|
922
|
+
`limit: 1 to ${MAX_PACK_NOTES_PAGE_LIMIT}, ${PACK_NOTES_PAGE_LIMIT} where none is said; offset: 0 or more`,
|
|
923
|
+
],
|
|
924
|
+
skill: {
|
|
925
|
+
name: "keeping-the-pack",
|
|
926
|
+
says: "What whoever keeps the skills does with the notes, alone and with a person's word",
|
|
927
|
+
},
|
|
928
|
+
},
|
|
929
|
+
kinds: {
|
|
930
|
+
usage: "skills --kinds",
|
|
931
|
+
synopsis: "The kinds of work the pack has skills for, in a few lines.",
|
|
932
|
+
about:
|
|
933
|
+
"What the pack says of itself (ADR-0176), as the skillcdn command reads it (ADR-0179): a line a folder that holds skills, with the jobs its description begins with, and a line a skill that no such folder holds; the lines within 1500 characters, each cut to one length where they do not fit whole. Read once in a conversation, before its first job: a job of one of these kinds begins with its skill, found with --search, --path <the kind's folder> keeping the search to it, and a job of none of them needs no search. --json answers the kinds as data: kinds, each with its path, its jobs and how many skills it holds, skillCount, and beyond, the skills behind none of the lines.",
|
|
934
|
+
},
|
|
888
935
|
},
|
|
889
936
|
},
|
|
890
937
|
skill: {
|
|
@@ -909,6 +956,33 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
909
956
|
"file.too_large and its kind: the pack will not carry the file, too large or not text",
|
|
910
957
|
"a pack that is not served to the console, or a token that no longer works: as console help skills says",
|
|
911
958
|
],
|
|
959
|
+
forms: {
|
|
960
|
+
note: {
|
|
961
|
+
usage:
|
|
962
|
+
'skill note <path> "<what a run showed>"|- | skill note --none "<the job, and the words searched>"|- | skill note <id> --done "<what changed>" | skill note <id> --drop "<why nothing was>"',
|
|
963
|
+
synopsis:
|
|
964
|
+
"Leaves a note on a skill for whoever keeps the pack, or says a job no skill fit; closes one.",
|
|
965
|
+
about: [
|
|
966
|
+
"A note on the pack (ADR-0178), for whoever keeps the organization's skills. Leave one where a run showed a skill wrong or lacking: a step that had to be guessed or made up, a sentence the tool or the person contradicted, something the result needed that the skill never asks for. Say it as behavior, in a few sentences, without the run's own material: no customer, no product, no person, nothing secret. <path> is the skill's folder or its SKILL.md, or a page of the pack; - reads the words from standard input.",
|
|
967
|
+
"--none is for a job of a kind that will come again and that the pack has no skill for: the job in a few words, and the words that were searched. A job that will not come again leaves none.",
|
|
968
|
+
"The note is left on the pack the command reads, the project's where one is named, else the organization's, and kept by the console, never in the pack. Nobody is told at once: the keeper reads what waits (console skills --notes). Where nobody keeps the skills the answer says so, and that is said where the work is reported.",
|
|
969
|
+
"--done and --drop close a note by its id with what became of it: for whoever keeps the skills, and an administrator. --done where what it asked for is in the pack, was there already, or is now before a person as a proposal; --drop where nothing follows from it. An author takes back a note of their own with --drop.",
|
|
970
|
+
].join("\n\n"),
|
|
971
|
+
limits: [
|
|
972
|
+
`a note: 1 to ${MAX_PACK_NOTE_LENGTH} characters; what became of it: 1 to ${MAX_PACK_NOTE_OUTCOME_LENGTH}; open notes of one member: ${MAX_PACK_NOTES_OPEN_BY_ONE}, and ${MAX_PACK_NOTES_PER_HOUR} left within an hour`,
|
|
973
|
+
],
|
|
974
|
+
refusals: [
|
|
975
|
+
"note.too_many: you have as many notes open as one may, which whoever keeps the skills closes some of first, or left as many within the hour",
|
|
976
|
+
"note.not_found: no note has that id, or it is not yours to read: another member's, or one on a project's own pack you may not see",
|
|
977
|
+
"note.closed: the note was closed already",
|
|
978
|
+
"project.not_found: the project the command names is not there for you",
|
|
979
|
+
],
|
|
980
|
+
skill: {
|
|
981
|
+
name: "keeping-the-pack",
|
|
982
|
+
says: "What whoever keeps the skills does with the notes",
|
|
983
|
+
},
|
|
984
|
+
},
|
|
985
|
+
},
|
|
912
986
|
},
|
|
913
987
|
rules: {
|
|
914
988
|
usage:
|
|
@@ -916,7 +990,7 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
916
990
|
synopsis:
|
|
917
991
|
"The console's rules and what the organization and the project add; rules write writes an addition, for whoever may.",
|
|
918
992
|
about:
|
|
919
|
-
"What agents are asked on this board (ADR-0023, ADR-0120), under a first line that says what follows (ADR-0119): the mark of the rules, which parts there are and how many characters each is, who adds nothing, and that a
|
|
993
|
+
"What agents are asked on this board (ADR-0023, ADR-0120), under a first line that says what follows (ADR-0119): the mark of the rules, which parts there are and how many characters each is, who adds nothing, and that a take in this session leaves them out with console take <number> --rules <mark>. Then the parts, what differs first and what always holds last: what this project adds; a section Plugins, which names the plugins bound to the project that you hold a role in, or at the workspace every plugin you may use, a line each with the sentence its manifest gives agents and where to start: console plugin <key>; what the organization adds; and the console's rules, which always hold and which nobody edits. Where they differ the earlier part holds, and none takes back what the console's rules say never happens. The mark is the same for the same rules, and another once a rule changed, for another project's and in another language. rules write writes what this project adds, for an owner, or with --workspace what the organization adds, for an administrator; none puts what was added away. Without a project named, rules shows what the organization adds and the console's rules alone.",
|
|
920
994
|
limits: [
|
|
921
995
|
`body: Markdown, up to ${MAX_RULES_LENGTH} characters: what is added, and nothing of the console's rules`,
|
|
922
996
|
],
|
|
@@ -956,10 +1030,10 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
956
1030
|
forms: {
|
|
957
1031
|
records: {
|
|
958
1032
|
usage:
|
|
959
|
-
|
|
1033
|
+
'plugin <key> records <collection> [<id>] [--where <field>=<value>]... [--search "<words>"] [--project <key>] [--order <field>[:desc]] [--limit <n>] [--after <cursor>] [--archived] [--versions]',
|
|
960
1034
|
synopsis: "The records of a plugin's collection you may read.",
|
|
961
1035
|
about:
|
|
962
|
-
"The records of a collection you may read, one a line, newest first. --where <field>=<value>, given again for several, narrows by a field the collection indexes (id, owner and project always; a number, true, false and null are read as such); --search <words> by words; --project <key> to those linked to a project; --order <field>, with :desc for the newest first; a page of --limit with --after <cursor> as the last page printed; --archived the ones put away. <id> reads one record whole, --versions its versions.",
|
|
1036
|
+
"The records of a collection you may read, one a line, newest first. --where <field>=<value>, given again for several, narrows by a field the collection indexes (id, owner and project always; a number, true, false and null are read as such); --search <words> by words, which are one word, in quotes, since a second bare word is a record's id; --project <key> to those linked to a project; --order <field>, with :desc for the newest first; a page of --limit with --after <cursor> as the last page printed; --archived the ones put away. <id> reads one record whole, --versions its versions.",
|
|
963
1037
|
limits: ["a page of up to 200; where: a field the collection indexes"],
|
|
964
1038
|
},
|
|
965
1039
|
events: {
|
|
@@ -984,7 +1058,7 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
984
1058
|
usage: "take <number|id> [--agent <name>] [--rules <mark>]",
|
|
985
1059
|
synopsis: "Takes a task: a run begins, and the task is in progress and the person's.",
|
|
986
1060
|
about:
|
|
987
|
-
"Takes a task: a run begins, and the task is in progress and the person's; the run's id and the task's id are printed on a line of their own, then the task, then the rules of the board as console rules prints them: a first line with their mark that says which parts follow and how long each is, what the project adds, a section Plugins where plugins are bound to the project, a line per plugin you may use there, which console plugin <key> then says how to use, then what the organization adds and the console's rules. --rules <mark> is for a
|
|
1061
|
+
"Takes a task: a run begins, and the task is in progress and the person's; the run's id and the task's id are printed on a line of their own, then the task, then the rules of the board as console rules prints them: a first line with their mark that says which parts follow and how long each is, what the project adds, a section Plugins where plugins are bound to the project, a line per plugin you may use there, which console plugin <key> then says how to use, then what the organization adds and the console's rules. --rules <mark> is for a take in this session, once the rules are read (ADR-0119): given the mark the rules have, the take leaves them out and says so in a line; given another, since a rule changed or it is of another project's, it prints them whole and says that they changed. Either line stands directly after the run's ids, before the task, so that the first lines of a take say how the rules stand. Without it the rules are printed whole. A run still open on the task is taken over, since the board cannot know whether its agent still runs: it ends as abandoned, the feed says who took over, and that agent is refused on its next command; console task <number> shows the runs on a task, with when each was last heard from, before it is taken. --agent is what people see at work; left out, it is what the person called the token.",
|
|
988
1062
|
limits: [
|
|
989
1063
|
`agent: one line, up to ${MAX_AGENT_LENGTH} characters`,
|
|
990
1064
|
`at most ${MAX_RUNS_PER_TASK} runs on one task`,
|
|
@@ -1149,10 +1223,10 @@ export const COMMAND_HELP: Readonly<Record<string, CommandHelp>> = {
|
|
|
1149
1223
|
],
|
|
1150
1224
|
},
|
|
1151
1225
|
docs: {
|
|
1152
|
-
usage:
|
|
1226
|
+
usage: 'docs [<folder>] [--archived] | docs --search "<words>" [--archived]',
|
|
1153
1227
|
synopsis: "The pages of the project's documents: a folder, or those found by words.",
|
|
1154
1228
|
about:
|
|
1155
|
-
"The pages of the project's documents: those in a folder, with the folders in it (the root when none is named), or those found by words in their title or body. Archived pages are left out unless --archived.",
|
|
1229
|
+
"The pages of the project's documents: those in a folder, with the folders in it (the root when none is named), or, with --search, those found by words in their title or body, in every folder: every bare word is then of the search, and no folder narrows it. Archived pages are left out unless --archived.",
|
|
1156
1230
|
},
|
|
1157
1231
|
doc: {
|
|
1158
1232
|
usage: "doc <path> [--version <n>|--versions]",
|
|
@@ -1341,7 +1415,7 @@ export const COMMAND_GROUPS: readonly {
|
|
|
1341
1415
|
rows: [
|
|
1342
1416
|
{
|
|
1343
1417
|
commands: ["skills", "skill"],
|
|
1344
|
-
says: "the project's pack, searched or listed; one skill loaded",
|
|
1418
|
+
says: "the project's pack, searched or listed; one skill loaded, or noted",
|
|
1345
1419
|
},
|
|
1346
1420
|
{
|
|
1347
1421
|
commands: ["docs", "doc"],
|