@parall/cli 1.78.0 → 1.80.0
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/commands/apps-access.d.ts +8 -0
- package/dist/commands/apps-access.d.ts.map +1 -0
- package/dist/commands/apps-access.js +151 -0
- package/dist/commands/apps-actions-sdk.generated.d.ts +1 -1
- package/dist/commands/apps-actions-sdk.generated.d.ts.map +1 -1
- package/dist/commands/apps-actions-sdk.generated.js +1 -1
- package/dist/commands/apps-actions.d.ts +5 -3
- package/dist/commands/apps-actions.d.ts.map +1 -1
- package/dist/commands/apps-actions.js +11 -4
- package/dist/commands/apps-add.js +1 -1
- package/dist/commands/apps-blocks.d.ts.map +1 -1
- package/dist/commands/apps-blocks.js +8 -0
- package/dist/commands/apps-dev-page.d.ts +2 -0
- package/dist/commands/apps-dev-page.d.ts.map +1 -1
- package/dist/commands/apps-dev-page.js +3 -3
- package/dist/commands/apps-dev-server.d.ts +10 -1
- package/dist/commands/apps-dev-server.d.ts.map +1 -1
- package/dist/commands/apps-dev-server.js +26 -3
- package/dist/commands/apps-dev.d.ts +12 -1
- package/dist/commands/apps-dev.d.ts.map +1 -1
- package/dist/commands/apps-dev.js +25 -10
- package/dist/commands/apps-page-sdk.generated.d.ts +1 -1
- package/dist/commands/apps-page-sdk.generated.d.ts.map +1 -1
- package/dist/commands/apps-page-sdk.generated.js +1 -1
- package/dist/commands/apps-placement.d.ts +13 -0
- package/dist/commands/apps-placement.d.ts.map +1 -0
- package/dist/commands/apps-placement.js +20 -0
- package/dist/commands/apps-scaffold.d.ts +7 -1
- package/dist/commands/apps-scaffold.d.ts.map +1 -1
- package/dist/commands/apps-scaffold.js +88 -30
- package/dist/commands/apps-template-catalog.d.ts +85 -0
- package/dist/commands/apps-template-catalog.d.ts.map +1 -0
- package/dist/commands/apps-template-catalog.gen.d.ts +3 -0
- package/dist/commands/apps-template-catalog.gen.d.ts.map +1 -0
- package/dist/commands/apps-template-catalog.gen.js +228 -0
- package/dist/commands/apps-template-catalog.js +49 -0
- package/dist/commands/apps-template-init.d.ts +39 -0
- package/dist/commands/apps-template-init.d.ts.map +1 -0
- package/dist/commands/apps-template-init.js +118 -0
- package/dist/commands/apps-template.d.ts +11 -0
- package/dist/commands/apps-template.d.ts.map +1 -1
- package/dist/commands/apps-template.js +18 -7
- package/dist/commands/apps-templates.gen.d.ts +1 -0
- package/dist/commands/apps-templates.gen.d.ts.map +1 -1
- package/dist/commands/apps-templates.gen.js +27 -18
- package/dist/commands/apps.d.ts +3 -2
- package/dist/commands/apps.d.ts.map +1 -1
- package/dist/commands/apps.js +15 -4
- package/dist/commands/chat-connections.d.ts +11 -0
- package/dist/commands/chat-connections.d.ts.map +1 -0
- package/dist/commands/chat-connections.js +162 -0
- package/dist/commands/chats.d.ts.map +1 -1
- package/dist/commands/chats.js +6 -1
- package/dist/commands/db-plane.d.ts.map +1 -1
- package/dist/commands/db-plane.js +10 -6
- package/dist/commands/dbs.d.ts +3 -2
- package/dist/commands/dbs.d.ts.map +1 -1
- package/dist/commands/dbs.js +10 -5
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +1 -1
- package/dist/lib/output.d.ts +11 -0
- package/dist/lib/output.d.ts.map +1 -1
- package/dist/lib/output.js +32 -5
- package/package.json +5 -5
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { Command } from 'commander';
|
|
2
|
+
/**
|
|
3
|
+
* The app templates this CLI carries (docs/engineering-design/
|
|
4
|
+
* mini-app-templates-design.md §3–§5): ready-made apps a person picks and an
|
|
5
|
+
* agent builds with the organization's own data. Each is an introduction
|
|
6
|
+
* for people (template.json; the Web reads the same file), a skill for the
|
|
7
|
+
* agent and reference source laid over the `--actions` scaffold. The
|
|
8
|
+
* sources live in ts/cli/templates/mini-app/apps and are embedded by
|
|
9
|
+
* scripts/generate-app-template-catalog.mjs. `parall app templates` lists
|
|
10
|
+
* them, `templates show <id>` prints a skill, and `parall app init --template`
|
|
11
|
+
* (apps-template-init.ts) writes a project from one.
|
|
12
|
+
*/
|
|
13
|
+
/** A text people read, in both languages the product speaks. */
|
|
14
|
+
export interface Bilingual {
|
|
15
|
+
en: string;
|
|
16
|
+
zh: string;
|
|
17
|
+
}
|
|
18
|
+
/** A template's introduction (template.json). */
|
|
19
|
+
export interface AppTemplateIntro {
|
|
20
|
+
id: string;
|
|
21
|
+
/** The first CLI release that carries the template. */
|
|
22
|
+
cli: string;
|
|
23
|
+
name: Bilingual;
|
|
24
|
+
/** The one line under the name. */
|
|
25
|
+
summary: Bilingual;
|
|
26
|
+
/** A shorter line for small cards. */
|
|
27
|
+
short: Bilingual;
|
|
28
|
+
/** What the agent looking after the app does day to day. */
|
|
29
|
+
agent: Bilingual;
|
|
30
|
+
/** The app's pages; id is the page's id in its links. */
|
|
31
|
+
pages: Array<{
|
|
32
|
+
id: string;
|
|
33
|
+
icon: string;
|
|
34
|
+
name: Bilingual;
|
|
35
|
+
description: Bilingual;
|
|
36
|
+
}>;
|
|
37
|
+
/** What the agent asks first. */
|
|
38
|
+
questions: Bilingual[];
|
|
39
|
+
/** The data it may read: channels, tasks, wiki, connections. */
|
|
40
|
+
data: Array<{
|
|
41
|
+
kind: string;
|
|
42
|
+
name: Bilingual;
|
|
43
|
+
text: Bilingual;
|
|
44
|
+
}>;
|
|
45
|
+
/** Under the data: what it agrees with the person first. */
|
|
46
|
+
data_note: Bilingual;
|
|
47
|
+
/** Who sees what goes into the app. */
|
|
48
|
+
visibility: Bilingual;
|
|
49
|
+
/** What the agent does once the app runs. */
|
|
50
|
+
routine: Bilingual[];
|
|
51
|
+
/** What wakes it: data_changed, daily. */
|
|
52
|
+
wake: Array<{
|
|
53
|
+
kind: string;
|
|
54
|
+
name: Bilingual;
|
|
55
|
+
text: Bilingual;
|
|
56
|
+
}>;
|
|
57
|
+
/** What the app cannot do. */
|
|
58
|
+
limits: Array<{
|
|
59
|
+
kind: string;
|
|
60
|
+
text: Bilingual;
|
|
61
|
+
}>;
|
|
62
|
+
}
|
|
63
|
+
export interface AppTemplate {
|
|
64
|
+
id: string;
|
|
65
|
+
intro: AppTemplateIntro;
|
|
66
|
+
/** skill.md: SKILL.md in the project. */
|
|
67
|
+
skill: string;
|
|
68
|
+
/** overlay/, path → content: laid over the --actions scaffold the way
|
|
69
|
+
* with-actions is laid over base (_overlay.json: `remove`, `blocks`). */
|
|
70
|
+
overlay: Readonly<Record<string, string>>;
|
|
71
|
+
}
|
|
72
|
+
export declare function findAppTemplate(id: string): AppTemplate | undefined;
|
|
73
|
+
/** What `parall app templates` prints. */
|
|
74
|
+
export declare function listAppTemplates(): {
|
|
75
|
+
id: string;
|
|
76
|
+
name: Bilingual;
|
|
77
|
+
summary: Bilingual;
|
|
78
|
+
}[];
|
|
79
|
+
/** The version of the CLI that runs (the root command's). */
|
|
80
|
+
export declare function cliVersion(command: Command): string;
|
|
81
|
+
/** The error for an id this CLI does not carry: what it has, and that the
|
|
82
|
+
* template may be newer than this CLI. */
|
|
83
|
+
export declare function unknownTemplateError(id: string, version: string): Error;
|
|
84
|
+
export declare function registerAppTemplatesCommand(app: Command): void;
|
|
85
|
+
//# sourceMappingURL=apps-template-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apps-template-catalog.d.ts","sourceRoot":"","sources":["../../src/commands/apps-template-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC;;;;;;;;;;GAUG;AAEH,gEAAgE;AAChE,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,iDAAiD;AACjD,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,uDAAuD;IACvD,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,SAAS,CAAC;IAChB,mCAAmC;IACnC,OAAO,EAAE,SAAS,CAAC;IACnB,s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