@aparte/plugin-subagents 0.0.0-stage → 1.7.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.
@@ -0,0 +1,88 @@
1
+ /**
2
+ * The words a sub-agent's line says, in the chat's language.
3
+ *
4
+ * Core's locale is a closed list of what CORE draws, so this plugin reads its own keys off
5
+ * `getLocale()` and defaults them here: the app's locale first, then this table for the
6
+ * chat's language (the ten `@aparte/locales` ships), then English. The state words ("Done",
7
+ * "Failed", "Stopped") are core's own, read with `t()`: the line says a state in the words
8
+ * the row's badge uses.
9
+ *
10
+ * aparteGlobalConfig.extendLocale({ subagentsTools: 'one:{n} outil|other:{n} outils' });
11
+ *
12
+ * A count is a set of plural forms, each named by its `Intl.PluralRules` category, as core's
13
+ * `turnTools` is: Russian needs `few` and `many`, Japanese, Korean and Chinese one form.
14
+ */
15
+ import { type AparteConfig } from '@aparte/core';
16
+ export declare const WORDS: {
17
+ /** How many tool calls a sub-agent made, on its line: "3 tools". */
18
+ subagentsTools: {
19
+ en: string;
20
+ fr: string;
21
+ de: string;
22
+ es: string;
23
+ it: string;
24
+ ja: string;
25
+ ko: string;
26
+ pt: string;
27
+ ru: string;
28
+ zh: string;
29
+ };
30
+ /** What a sub-agent's second line says before its first call. */
31
+ subagentsStarting: {
32
+ en: string;
33
+ fr: string;
34
+ de: string;
35
+ es: string;
36
+ it: string;
37
+ ja: string;
38
+ ko: string;
39
+ pt: string;
40
+ ru: string;
41
+ zh: string;
42
+ };
43
+ /** The name of a sub-agent that was given none, when no call names its line either. */
44
+ subagentsUnnamed: {
45
+ en: string;
46
+ fr: string;
47
+ de: string;
48
+ es: string;
49
+ it: string;
50
+ ja: string;
51
+ ko: string;
52
+ pt: string;
53
+ ru: string;
54
+ zh: string;
55
+ };
56
+ /** The Open button on a sub-agent's line (`setupSubagents({ open: 'event' })`): its name and tooltip. */
57
+ subagentsOpen: {
58
+ en: string;
59
+ fr: string;
60
+ de: string;
61
+ es: string;
62
+ it: string;
63
+ ja: string;
64
+ ko: string;
65
+ pt: string;
66
+ ru: string;
67
+ zh: string;
68
+ };
69
+ /** The Close button of a `<aparte-subagent-view closable>`. */
70
+ subagentsClose: {
71
+ en: string;
72
+ fr: string;
73
+ de: string;
74
+ es: string;
75
+ it: string;
76
+ ja: string;
77
+ ko: string;
78
+ pt: string;
79
+ ru: string;
80
+ zh: string;
81
+ };
82
+ };
83
+ export type WordKey = keyof typeof WORDS;
84
+ /** The word for `key`: the app's locale, else this table in the chat's language, else English. */
85
+ export declare function word(config: AparteConfig, key: WordKey): string;
86
+ /** "3 tools", in the chat's language and its plural rules. */
87
+ export declare function toolCount(config: AparteConfig, n: number): string;
88
+ //# sourceMappingURL=words.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"words.d.ts","sourceRoot":"","sources":["../src/words.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAa,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAK5D,eAAO,MAAM,KAAK;IACd,oEAAoE;;;;;;;;;;;;;IAapE,iEAAiE;;;;;;;;;;;;;IAKjE,uFAAuF;;;;;;;;;;;;;IAKvF,yGAAyG;;;;;;;;;;;;;IAKzG,+DAA+D;;;;;;;;;;;;;CAKnC,CAAC;AAEjC,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,KAAK,CAAC;AAQzC,kGAAkG;AAClG,wBAAgB,IAAI,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM,CAI/D;AAED,8DAA8D;AAC9D,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAGjE"}
package/package.json CHANGED
@@ -1,6 +1,95 @@
1
1
  {
2
2
  "name": "@aparte/plugin-subagents",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.7.0",
4
+ "homepage": "https://apartejs.dev/guides/sub-agents/",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "description": "Sub-agents for aparté: one line per sub-agent — its name, its task, what it is doing now, how far it got — with its conversation kept out of the reply.",
9
+ "customElements": "dist/custom-elements.json",
10
+ "type": "module",
11
+ "sideEffects": [
12
+ "./dist/*.js",
13
+ "./src/index.ts",
14
+ "./src/aparte-subagent-view.ts"
15
+ ],
16
+ "main": "./dist/index.js",
17
+ "module": "./dist/index.js",
18
+ "types": "./dist/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "@aparte-workspace/source": "./src/index.ts",
22
+ "node": {
23
+ "types": "./dist/index.node.d.ts",
24
+ "default": "./dist/index.node.js"
25
+ },
26
+ "worker": {
27
+ "types": "./dist/index.node.d.ts",
28
+ "default": "./dist/index.node.js"
29
+ },
30
+ "workerd": {
31
+ "types": "./dist/index.node.d.ts",
32
+ "default": "./dist/index.node.js"
33
+ },
34
+ "edge-light": {
35
+ "types": "./dist/index.node.d.ts",
36
+ "default": "./dist/index.node.js"
37
+ },
38
+ "deno": {
39
+ "types": "./dist/index.node.d.ts",
40
+ "default": "./dist/index.node.js"
41
+ },
42
+ "bun": {
43
+ "types": "./dist/index.node.d.ts",
44
+ "default": "./dist/index.node.js"
45
+ },
46
+ "types": "./dist/index.d.ts",
47
+ "import": "./dist/index.js",
48
+ "default": "./dist/index.js"
49
+ }
50
+ },
51
+ "files": [
52
+ "dist",
53
+ "README.md",
54
+ "LICENSE"
55
+ ],
56
+ "engines": {
57
+ "node": ">=18"
58
+ },
59
+ "peerDependencies": {
60
+ "@aparte/core": ">=1.7.0 <2.0.0"
61
+ },
62
+ "devDependencies": {
63
+ "@custom-elements-manifest/analyzer": "^0.11.0",
64
+ "typescript": "^5.4.0",
65
+ "vite": "^6.0.0",
66
+ "@aparte/core": "1.7.0"
67
+ },
68
+ "keywords": [
69
+ "aparte",
70
+ "plugin",
71
+ "sub-agent",
72
+ "subagent",
73
+ "agent",
74
+ "multi-agent",
75
+ "web-components"
76
+ ],
77
+ "license": "MIT",
78
+ "repository": {
79
+ "type": "git",
80
+ "url": "git+https://github.com/apartejs/aparte.git",
81
+ "directory": "packages/plugins/subagents"
82
+ },
83
+ "bugs": {
84
+ "url": "https://github.com/apartejs/aparte/issues"
85
+ },
86
+ "scripts": {
87
+ "dev": "vite",
88
+ "build": "vite build && tsc -b --emitDeclarationOnly --force && pnpm run analyze && node ../../../scripts/stamp-dist.mjs",
89
+ "analyze": "cem analyze",
90
+ "preview": "vite preview",
91
+ "test": "vitest",
92
+ "test:run": "vitest run",
93
+ "test:coverage": "vitest run --coverage"
94
+ }
6
95
  }