@qilin-agent/experimental-agent-team 0.0.0-stage → 3.1.3

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.
Files changed (46) hide show
  1. package/LICENSE +21 -0
  2. package/README.i18n.yaml +103 -0
  3. package/README.md +227 -2
  4. package/README.zh.md +228 -0
  5. package/lib/index.js +2002 -0
  6. package/lib/typert.host.d.ts +3 -0
  7. package/lib/typert.host.js +875 -0
  8. package/lib/typert.remote-client.d.ts +30 -0
  9. package/lib/typert.remote-client.js +141 -0
  10. package/lib/types/activity.d.ts +23 -0
  11. package/lib/types/activity.js +85 -0
  12. package/lib/types/client.d.ts +8 -0
  13. package/lib/types/client.js +3 -0
  14. package/lib/types/error.d.ts +13 -0
  15. package/lib/types/error.js +23 -0
  16. package/lib/types/index.d.ts +142 -0
  17. package/lib/types/index.js +306 -0
  18. package/lib/types/journal.d.ts +39 -0
  19. package/lib/types/journal.js +63 -0
  20. package/lib/types/lifecycle.d.ts +33 -0
  21. package/lib/types/lifecycle.js +85 -0
  22. package/lib/types/mailbox.d.ts +78 -0
  23. package/lib/types/mailbox.js +293 -0
  24. package/lib/types/persisted.d.ts +20 -0
  25. package/lib/types/persisted.js +20 -0
  26. package/lib/types/projection.d.ts +66 -0
  27. package/lib/types/projection.js +327 -0
  28. package/lib/types/remote.d.ts +31 -0
  29. package/lib/types/remote.js +22 -0
  30. package/lib/types/roster.d.ts +113 -0
  31. package/lib/types/roster.js +452 -0
  32. package/lib/types/session-message.d.ts +11 -0
  33. package/lib/types/session-message.js +23 -0
  34. package/lib/types/task-board.d.ts +53 -0
  35. package/lib/types/task-board.js +235 -0
  36. package/lib/types/task-graph.d.ts +21 -0
  37. package/lib/types/task-graph.js +62 -0
  38. package/lib/types/task-view.d.ts +21 -0
  39. package/lib/types/task-view.js +57 -0
  40. package/lib/types/types.d.ts +215 -0
  41. package/lib/types/types.js +26 -0
  42. package/lib/types/validation.d.ts +16 -0
  43. package/lib/types/validation.js +33 -0
  44. package/locale/en.json +6 -0
  45. package/locale/zh.json +6 -0
  46. package/package.json +83 -3
@@ -0,0 +1,33 @@
1
+ /** Input normalization shared by Team roster and task commands. */
2
+ import { TeamError } from "./error.js";
3
+ /**
4
+ * Normalize one required human-authored string.
5
+ * @param value - raw input value.
6
+ * @param field - diagnostic field name.
7
+ * @param maxLength - maximum normalized character count.
8
+ * @returns trimmed non-empty text.
9
+ */
10
+ export function requiredText(value, field, maxLength) {
11
+ const text = value.trim();
12
+ if (text.length === 0)
13
+ throw new TeamError(`${field} must be non-empty`, 'TEAM_INVALID_ARGUMENT');
14
+ if (text.length > maxLength) {
15
+ throw new TeamError(`${field} exceeds ${maxLength} characters`, 'TEAM_INVALID_ARGUMENT');
16
+ }
17
+ return text;
18
+ }
19
+ /**
20
+ * Normalize one workspace-relative path prefix without treating it as a lock.
21
+ * @param value - user-authored path prefix.
22
+ * @returns normalized slash-separated prefix.
23
+ */
24
+ export function writeScope(value) {
25
+ const normalized = value.replaceAll('\\', '/').replace(/^\.\//u, '').replace(/\/+$/u, '');
26
+ const segments = normalized.split('/');
27
+ if (normalized.length === 0 || normalized.startsWith('/') || /^[a-z]:/iu.test(normalized)
28
+ || segments.some(segment => segment.length === 0 || segment === '.' || segment === '..')) {
29
+ throw new TeamError(`invalid workspace-relative write scope ${JSON.stringify(value)}`, 'TEAM_INVALID_WRITE_SCOPE');
30
+ }
31
+ return normalized;
32
+ }
33
+ //# sourceMappingURL=validation.js.map
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Team Collaboration",
4
+ "description": "Manage team members, member messages, and shared tasks."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "团队协作",
4
+ "description": "管理团队成员、成员消息和共享任务。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,86 @@
1
1
  {
2
2
  "name": "@qilin-agent/experimental-agent-team",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "description": "Implicit-root Agent Teams roster, durable peer mailbox, and shared task DAG",
4
+ "version": "3.1.3",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/kkutysllb/QiLin.git",
11
+ "directory": "packages/experimental/agent-team"
12
+ },
13
+ "engines": {
14
+ "node": "^22.19.0 || >=24.0.0"
15
+ },
16
+ "type": "module",
17
+ "main": "lib/index.js",
18
+ "types": "lib/types/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./lib/types/index.d.ts",
22
+ "default": "./lib/index.js"
23
+ },
24
+ "./client": {
25
+ "types": "./lib/types/client.d.ts",
26
+ "default": "./lib/types/client.js"
27
+ },
28
+ "./types": {
29
+ "types": "./lib/types/types.d.ts",
30
+ "default": "./lib/types/types.js"
31
+ },
32
+ "./typert": {
33
+ "types": "./lib/typert.host.d.ts",
34
+ "default": "./lib/typert.host.js"
35
+ },
36
+ "./remote": {
37
+ "types": "./lib/typert.remote-client.d.ts",
38
+ "default": "./lib/typert.remote-client.js"
39
+ },
40
+ "./locale/*.json": "./locale/*.json",
41
+ "./src/*": "./src/*",
42
+ "./package.json": "./package.json"
43
+ },
44
+ "files": [
45
+ "locale/*.json",
46
+ "lib/index.js",
47
+ "lib/types/**/*.js",
48
+ "lib/types/**/*.d.ts",
49
+ "lib/typert.host.js",
50
+ "lib/typert.host.d.ts",
51
+ "lib/typert.remote-client.js",
52
+ "lib/typert.remote-client.d.ts"
53
+ ],
54
+ "license": "MIT",
55
+ "dependencies": {
56
+ "zod": "^4.4.3",
57
+ "@qilin-agent/brand": "3.1.3",
58
+ "@qilin-agent/schemastery": "~3.18.3"
59
+ },
60
+ "peerDependencies": {
61
+ "@qilin-agent/kylin": "~4.0.3",
62
+ "@qilin-agent/agent": "3.1.3",
63
+ "@qilin-agent/session-projection": "3.1.3",
64
+ "@qilin-agent/subagent": "3.1.3",
65
+ "@qilin-agent/session-persistence": "3.1.3",
66
+ "@qilin-agent/session": "3.1.3",
67
+ "@qilin-agent/typert-protocol": "3.1.3",
68
+ "@qilin-agent/llm": "3.1.3"
69
+ },
70
+ "devDependencies": {
71
+ "@qilin-agent/kylin": "~4.0.3",
72
+ "@qilin-agent/agent-loop": "3.1.3",
73
+ "@qilin-agent/agent-loop-testkit": "3.1.3",
74
+ "@qilin-agent/agent": "3.1.3",
75
+ "@qilin-agent/llm": "3.1.3",
76
+ "@qilin-agent/session": "3.1.3",
77
+ "@qilin-agent/session-persistence": "3.1.3",
78
+ "@qilin-agent/session-persistence-jsonl": "3.1.3",
79
+ "@qilin-agent/session-projection": "3.1.3",
80
+ "@qilin-agent/session-query": "3.1.3",
81
+ "@qilin-agent/subagent-fork-in-process": "3.1.3",
82
+ "@qilin-agent/subagent": "3.1.3",
83
+ "@qilin-agent/subagent-spawn-in-process": "3.1.3",
84
+ "@qilin-agent/typert-protocol": "3.1.3"
85
+ }
6
86
  }