agent-trellis 0.6.3 → 0.8.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.
Files changed (107) hide show
  1. package/README.md +97 -38
  2. package/dist/adapters/claude-code.js +3 -2
  3. package/dist/adapters/codex.js +3 -2
  4. package/dist/adapters/jsonMcp.d.ts +3 -1
  5. package/dist/adapters/jsonMcp.js +18 -4
  6. package/dist/adapters/kimi-code.d.ts +21 -0
  7. package/dist/adapters/kimi-code.js +107 -0
  8. package/dist/adapters/kiro.js +3 -2
  9. package/dist/adapters/mcpPlan.d.ts +26 -2
  10. package/dist/adapters/mcpPlan.js +135 -15
  11. package/dist/adapters/pi.js +22 -3
  12. package/dist/adapters/symlinkPlan.d.ts +7 -0
  13. package/dist/adapters/symlinkPlan.js +16 -7
  14. package/dist/cli.js +129 -20
  15. package/dist/commands/doctor.d.ts +7 -2
  16. package/dist/commands/doctor.js +38 -2
  17. package/dist/commands/init.d.ts +4 -2
  18. package/dist/commands/init.js +26 -13
  19. package/dist/commands/kimi.d.ts +16 -0
  20. package/dist/commands/kimi.js +64 -0
  21. package/dist/commands/manage.d.ts +39 -0
  22. package/dist/commands/manage.js +126 -0
  23. package/dist/commands/mcp.d.ts +22 -1
  24. package/dist/commands/mcp.js +65 -2
  25. package/dist/commands/mcpGateway.d.ts +6 -0
  26. package/dist/commands/mcpGateway.js +34 -14
  27. package/dist/commands/mcpImport.d.ts +27 -0
  28. package/dist/commands/mcpImport.js +336 -0
  29. package/dist/commands/memory.d.ts +5 -3
  30. package/dist/commands/memory.js +12 -8
  31. package/dist/commands/migrate.d.ts +37 -7
  32. package/dist/commands/migrate.js +253 -27
  33. package/dist/commands/onboard.d.ts +74 -2
  34. package/dist/commands/onboard.js +463 -72
  35. package/dist/commands/onboardVerdict.js +20 -7
  36. package/dist/commands/rollback.js +4 -1
  37. package/dist/commands/secretsAudit.d.ts +21 -12
  38. package/dist/commands/secretsAudit.js +39 -10
  39. package/dist/commands/skill.d.ts +17 -0
  40. package/dist/commands/skill.js +47 -2
  41. package/dist/commands/sync.js +2 -0
  42. package/dist/core/canonical.d.ts +58 -4
  43. package/dist/core/canonical.js +183 -11
  44. package/dist/core/capabilitySelection.d.ts +45 -0
  45. package/dist/core/capabilitySelection.js +124 -0
  46. package/dist/core/types.d.ts +25 -2
  47. package/dist/core/types.js +7 -0
  48. package/dist/lib/backup.d.ts +2 -0
  49. package/dist/lib/backup.js +4 -0
  50. package/dist/lib/builtinSkills.d.ts +2 -0
  51. package/dist/lib/builtinSkills.js +4 -0
  52. package/dist/lib/cliMetadata.d.ts +1 -0
  53. package/dist/lib/cliMetadata.js +14 -0
  54. package/dist/lib/gatewayBackend.d.ts +28 -0
  55. package/dist/lib/gatewayBackend.js +72 -1
  56. package/dist/lib/installAgent.d.ts +7 -5
  57. package/dist/lib/installAgent.js +4 -3
  58. package/dist/lib/mcpConnect.js +5 -1
  59. package/dist/lib/mcpMigrateRead.d.ts +1 -0
  60. package/dist/lib/mcpMigrateRead.js +3 -0
  61. package/dist/lib/mcpRuntime.d.ts +46 -0
  62. package/dist/lib/mcpRuntime.js +185 -0
  63. package/dist/lib/mcpStatusProvider.d.ts +10 -0
  64. package/dist/lib/mcpStatusProvider.js +25 -0
  65. package/dist/lib/mcpToolRegistry.d.ts +18 -0
  66. package/dist/lib/mcpToolRegistry.js +107 -14
  67. package/dist/lib/memoryGraph.d.ts +1 -1
  68. package/dist/lib/memoryGraph.js +9 -3
  69. package/dist/lib/memoryProvider.d.ts +58 -0
  70. package/dist/lib/memoryProvider.js +175 -0
  71. package/dist/lib/memoryStatus.d.ts +17 -0
  72. package/dist/lib/memoryStatus.js +88 -0
  73. package/dist/lib/nativeMemory.d.ts +19 -0
  74. package/dist/lib/nativeMemory.js +129 -0
  75. package/dist/lib/runtimeControlProvider.d.ts +16 -0
  76. package/dist/lib/runtimeControlProvider.js +168 -0
  77. package/dist/lib/secretEnv.d.ts +17 -0
  78. package/dist/lib/secretEnv.js +31 -1
  79. package/dist/lib/skillProvider.d.ts +13 -0
  80. package/dist/lib/skillProvider.js +210 -0
  81. package/dist/lib/taskProvider.d.ts +7 -0
  82. package/dist/lib/taskProvider.js +43 -0
  83. package/dist/lib/taskStore.d.ts +46 -0
  84. package/dist/lib/taskStore.js +156 -0
  85. package/dist/lib/terminalPicker.d.ts +23 -28
  86. package/dist/lib/terminalPicker.js +54 -164
  87. package/dist/pi-bridge/bundle.js +493 -51
  88. package/dist/pi-bridge/index.js +42 -21
  89. package/dist/pi-bridge/schemaTranslate.d.ts +4 -8
  90. package/dist/pi-bridge/schemaTranslate.js +4 -8
  91. package/dist/probes/kimi-code.d.ts +12 -0
  92. package/dist/probes/kimi-code.js +55 -0
  93. package/dist/sdk.d.ts +1 -1
  94. package/docs/architecture.md +224 -26
  95. package/docs/assets/agent-trellis-architecture-horizontal.svg +80 -0
  96. package/docs/assets/agent-trellis-architecture-vertical.svg +82 -0
  97. package/docs/assets/trellis-mark.svg +12 -0
  98. package/docs/getting-started.md +403 -35
  99. package/docs/overview.md +131 -0
  100. package/docs/overview.zh-CN.md +100 -0
  101. package/docs/research.md +59 -0
  102. package/docs/roadmap.md +10 -5
  103. package/package.json +5 -3
  104. package/schema/builtin-skills/trellis-runtime/SKILL.md +117 -0
  105. package/schema/capability-selection.example.yaml +23 -0
  106. package/schema/scope.example.yaml +1 -1
  107. package/schema/servers.example.yaml +15 -1
@@ -0,0 +1,82 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1080 1440" role="img" aria-labelledby="title desc">
2
+ <title id="title">Agent Trellis — Unified Code Agent Runtime</title>
3
+ <desc id="desc">A vertical architecture diagram showing one canonical source and Runtime foundation supporting multiple Code Agents through Skills, MCP, Memory, and Instructions.</desc>
4
+ <defs>
5
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
6
+ <stop offset="0" stop-color="#0b1118"/>
7
+ <stop offset="1" stop-color="#111c24"/>
8
+ </linearGradient>
9
+ <linearGradient id="base" x1="0" y1="0" x2="0" y2="1">
10
+ <stop offset="0" stop-color="#293943"/>
11
+ <stop offset="1" stop-color="#17232c"/>
12
+ </linearGradient>
13
+ <filter id="shadow" x="-20%" y="-20%" width="140%" height="160%">
14
+ <feDropShadow dx="0" dy="16" stdDeviation="14" flood-color="#000" flood-opacity=".35"/>
15
+ </filter>
16
+ <style>
17
+ .sans { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
18
+ .mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
19
+ .title { fill: #f5efe3; font-size: 54px; font-weight: 750; letter-spacing: -1px; }
20
+ .sub { fill: #a9efd2; font-size: 22px; font-weight: 650; letter-spacing: 1px; }
21
+ .label { fill: #f5efe3; font-size: 25px; font-weight: 700; }
22
+ .small { fill: #a4b2ba; font-size: 17px; }
23
+ .tiny { fill: #7f919d; font-size: 14px; }
24
+ </style>
25
+ </defs>
26
+ <rect width="1080" height="1440" fill="url(#bg)"/>
27
+ <path d="M0 230H1080M0 1240H1080" stroke="#263640" stroke-width="1"/>
28
+
29
+ <g class="sans">
30
+ <text x="80" y="118" class="title">Agent Trellis</text>
31
+ <text x="82" y="158" class="sub">UNIFIED CODE AGENT RUNTIME</text>
32
+ <text x="80" y="208" class="small">一套 Runtime,统一托管 Code Agent 的运行能力</text>
33
+
34
+ <g transform="translate(80 274)">
35
+ <rect width="920" height="180" rx="22" fill="#101a22" stroke="#374852"/>
36
+ <text x="42" y="50" class="small">解决三个问题</text>
37
+ <text x="42" y="93" class="label">多 Agent,配置分散</text>
38
+ <text x="42" y="130" class="label">MCP 重复,难以管理</text>
39
+ <text x="42" y="167" class="label">Memory 与上下文割裂</text>
40
+ <circle cx="850" cy="52" r="9" fill="#f2b35b"/>
41
+ <circle cx="850" cy="90" r="9" fill="#a9efd2"/>
42
+ <circle cx="850" cy="128" r="9" fill="#f2b35b"/>
43
+ </g>
44
+
45
+ <path d="M540 476V530" stroke="#a9efd2" stroke-width="3"/>
46
+ <text x="540" y="520" text-anchor="middle" class="tiny">统一托管</text>
47
+
48
+ <g filter="url(#shadow)">
49
+ <rect x="80" y="548" width="920" height="300" rx="26" fill="url(#base)" stroke="#f2b35b" stroke-width="2"/>
50
+ <rect x="110" y="580" width="860" height="72" rx="16" fill="#0e1820" stroke="#53636c"/>
51
+ <rect x="110" y="668" width="860" height="72" rx="16" fill="#0e1820" stroke="#53636c"/>
52
+ <rect x="110" y="756" width="860" height="58" rx="14" fill="#0e1820" stroke="#53636c"/>
53
+ </g>
54
+ <text x="540" y="618" text-anchor="middle" class="label">Agent Trellis Runtime</text>
55
+ <text x="540" y="642" text-anchor="middle" class="tiny">canonical source · policy · adapters · providers</text>
56
+ <text x="270" y="713" text-anchor="middle" class="label">Skills</text>
57
+ <text x="540" y="713" text-anchor="middle" class="label">MCP</text>
58
+ <text x="810" y="713" text-anchor="middle" class="label">Memory</text>
59
+ <text x="540" y="791" text-anchor="middle" class="label">Instructions</text>
60
+
61
+ <path d="M540 848V904" stroke="#f2b35b" stroke-width="3"/>
62
+ <rect x="180" y="920" width="720" height="76" rx="18" fill="#101a22" stroke="#53636c"/>
63
+ <text x="540" y="953" text-anchor="middle" class="label">Canonical Source</text>
64
+ <text x="540" y="980" text-anchor="middle" class="mono small">~/.trellis</text>
65
+
66
+ <path d="M540 996V1052" stroke="#a9efd2" stroke-width="3"/>
67
+ <text x="540" y="1038" text-anchor="middle" class="tiny">运行在其上的 Code Agents</text>
68
+ <g filter="url(#shadow)">
69
+ <rect x="80" y="1070" width="280" height="80" rx="16" fill="#17242c" stroke="#a9efd2" stroke-width="2"/>
70
+ <rect x="400" y="1070" width="280" height="80" rx="16" fill="#17242c" stroke="#f2b35b" stroke-width="2"/>
71
+ <rect x="720" y="1070" width="280" height="80" rx="16" fill="#17242c" stroke="#a9efd2" stroke-width="2"/>
72
+ <rect x="240" y="1170" width="280" height="80" rx="16" fill="#17242c" stroke="#a9efd2" stroke-width="2"/>
73
+ <rect x="560" y="1170" width="280" height="80" rx="16" fill="#17242c" stroke="#a9efd2" stroke-width="2"/>
74
+ </g>
75
+ <text x="220" y="1120" text-anchor="middle" class="label">Claude Code</text>
76
+ <text x="540" y="1120" text-anchor="middle" class="label">Codex</text>
77
+ <text x="860" y="1120" text-anchor="middle" class="label">Kimi Code</text>
78
+ <text x="380" y="1220" text-anchor="middle" class="label">Kiro</text>
79
+ <text x="700" y="1220" text-anchor="middle" class="label">pi</text>
80
+ <text x="540" y="1340" text-anchor="middle" class="mono small">one source · one runtime · many agents</text>
81
+ </g>
82
+ </svg>
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" role="img" aria-labelledby="title desc">
2
+ <title id="title">Trellis</title>
3
+ <desc id="desc">A four-node runtime mark around a central control plane.</desc>
4
+ <rect width="96" height="96" rx="24" fill="#0b1219"/>
5
+ <path d="M48 20v56M20 48h56M28 28l40 40M68 28 28 68" stroke="#31404a" stroke-width="3" stroke-linecap="round"/>
6
+ <rect x="35" y="35" width="26" height="26" rx="7" transform="rotate(45 48 48)" fill="#101c24" stroke="#f2b35b" stroke-width="3"/>
7
+ <circle cx="48" cy="48" r="6" fill="#a9efd2"/>
8
+ <circle cx="20" cy="48" r="6" fill="#f2b35b"/>
9
+ <circle cx="76" cy="48" r="6" fill="#f2b35b"/>
10
+ <circle cx="48" cy="20" r="6" fill="#a9efd2"/>
11
+ <circle cx="48" cy="76" r="6" fill="#a9efd2"/>
12
+ </svg>