@agentuity/opencode 1.0.15 → 1.0.17

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 (137) hide show
  1. package/dist/agents/architect.d.ts +1 -1
  2. package/dist/agents/architect.d.ts.map +1 -1
  3. package/dist/agents/architect.js +30 -33
  4. package/dist/agents/architect.js.map +1 -1
  5. package/dist/agents/builder.d.ts +1 -1
  6. package/dist/agents/builder.d.ts.map +1 -1
  7. package/dist/agents/builder.js +53 -60
  8. package/dist/agents/builder.js.map +1 -1
  9. package/dist/agents/expert-backend.d.ts +1 -1
  10. package/dist/agents/expert-backend.d.ts.map +1 -1
  11. package/dist/agents/expert-backend.js +32 -40
  12. package/dist/agents/expert-backend.js.map +1 -1
  13. package/dist/agents/expert-frontend.d.ts +1 -1
  14. package/dist/agents/expert-frontend.d.ts.map +1 -1
  15. package/dist/agents/expert-frontend.js +18 -24
  16. package/dist/agents/expert-frontend.js.map +1 -1
  17. package/dist/agents/expert-ops.d.ts +1 -1
  18. package/dist/agents/expert-ops.d.ts.map +1 -1
  19. package/dist/agents/expert-ops.js +37 -51
  20. package/dist/agents/expert-ops.js.map +1 -1
  21. package/dist/agents/expert.d.ts +1 -1
  22. package/dist/agents/expert.d.ts.map +1 -1
  23. package/dist/agents/expert.js +33 -43
  24. package/dist/agents/expert.js.map +1 -1
  25. package/dist/agents/lead.d.ts +1 -1
  26. package/dist/agents/lead.d.ts.map +1 -1
  27. package/dist/agents/lead.js +179 -222
  28. package/dist/agents/lead.js.map +1 -1
  29. package/dist/agents/memory.d.ts +1 -1
  30. package/dist/agents/memory.d.ts.map +1 -1
  31. package/dist/agents/memory.js +62 -90
  32. package/dist/agents/memory.js.map +1 -1
  33. package/dist/agents/monitor.d.ts +1 -1
  34. package/dist/agents/monitor.d.ts.map +1 -1
  35. package/dist/agents/monitor.js +84 -44
  36. package/dist/agents/monitor.js.map +1 -1
  37. package/dist/agents/product.d.ts +1 -1
  38. package/dist/agents/product.d.ts.map +1 -1
  39. package/dist/agents/product.js +16 -22
  40. package/dist/agents/product.js.map +1 -1
  41. package/dist/agents/reviewer.d.ts +1 -1
  42. package/dist/agents/reviewer.d.ts.map +1 -1
  43. package/dist/agents/reviewer.js +15 -27
  44. package/dist/agents/reviewer.js.map +1 -1
  45. package/dist/agents/runner.d.ts +1 -1
  46. package/dist/agents/runner.d.ts.map +1 -1
  47. package/dist/agents/runner.js +52 -76
  48. package/dist/agents/runner.js.map +1 -1
  49. package/dist/agents/scout.d.ts +1 -1
  50. package/dist/agents/scout.d.ts.map +1 -1
  51. package/dist/agents/scout.js +42 -43
  52. package/dist/agents/scout.js.map +1 -1
  53. package/dist/agents/types.d.ts +8 -0
  54. package/dist/agents/types.d.ts.map +1 -1
  55. package/dist/background/manager.d.ts +18 -0
  56. package/dist/background/manager.d.ts.map +1 -1
  57. package/dist/background/manager.js +201 -33
  58. package/dist/background/manager.js.map +1 -1
  59. package/dist/background/types.d.ts +3 -0
  60. package/dist/background/types.d.ts.map +1 -1
  61. package/dist/config/loader.js +2 -2
  62. package/dist/plugin/hooks/cadence.d.ts +3 -1
  63. package/dist/plugin/hooks/cadence.d.ts.map +1 -1
  64. package/dist/plugin/hooks/cadence.js +167 -70
  65. package/dist/plugin/hooks/cadence.js.map +1 -1
  66. package/dist/plugin/hooks/compaction-utils.d.ts +48 -0
  67. package/dist/plugin/hooks/compaction-utils.d.ts.map +1 -0
  68. package/dist/plugin/hooks/compaction-utils.js +259 -0
  69. package/dist/plugin/hooks/compaction-utils.js.map +1 -0
  70. package/dist/plugin/hooks/completion.d.ts +14 -0
  71. package/dist/plugin/hooks/completion.d.ts.map +1 -0
  72. package/dist/plugin/hooks/completion.js +45 -0
  73. package/dist/plugin/hooks/completion.js.map +1 -0
  74. package/dist/plugin/hooks/params.d.ts +47 -2
  75. package/dist/plugin/hooks/params.d.ts.map +1 -1
  76. package/dist/plugin/hooks/params.js +82 -1
  77. package/dist/plugin/hooks/params.js.map +1 -1
  78. package/dist/plugin/hooks/session-memory.d.ts +2 -1
  79. package/dist/plugin/hooks/session-memory.d.ts.map +1 -1
  80. package/dist/plugin/hooks/session-memory.js +101 -48
  81. package/dist/plugin/hooks/session-memory.js.map +1 -1
  82. package/dist/plugin/hooks/tools.d.ts.map +1 -1
  83. package/dist/plugin/hooks/tools.js +26 -1
  84. package/dist/plugin/hooks/tools.js.map +1 -1
  85. package/dist/plugin/plugin.d.ts.map +1 -1
  86. package/dist/plugin/plugin.js +38 -9
  87. package/dist/plugin/plugin.js.map +1 -1
  88. package/dist/sqlite/index.d.ts +1 -1
  89. package/dist/sqlite/index.d.ts.map +1 -1
  90. package/dist/sqlite/queries.d.ts +1 -0
  91. package/dist/sqlite/queries.d.ts.map +1 -1
  92. package/dist/sqlite/queries.js +4 -0
  93. package/dist/sqlite/queries.js.map +1 -1
  94. package/dist/sqlite/reader.d.ts +11 -1
  95. package/dist/sqlite/reader.d.ts.map +1 -1
  96. package/dist/sqlite/reader.js +62 -0
  97. package/dist/sqlite/reader.js.map +1 -1
  98. package/dist/sqlite/types.d.ts +40 -0
  99. package/dist/sqlite/types.d.ts.map +1 -1
  100. package/dist/tools/background.d.ts.map +1 -1
  101. package/dist/tools/background.js +15 -0
  102. package/dist/tools/background.js.map +1 -1
  103. package/dist/types.d.ts +46 -0
  104. package/dist/types.d.ts.map +1 -1
  105. package/dist/types.js +10 -0
  106. package/dist/types.js.map +1 -1
  107. package/package.json +3 -3
  108. package/src/agents/architect.ts +30 -33
  109. package/src/agents/builder.ts +53 -60
  110. package/src/agents/expert-backend.ts +32 -40
  111. package/src/agents/expert-frontend.ts +18 -24
  112. package/src/agents/expert-ops.ts +37 -51
  113. package/src/agents/expert.ts +33 -43
  114. package/src/agents/lead.ts +179 -222
  115. package/src/agents/memory.ts +62 -90
  116. package/src/agents/monitor.ts +84 -44
  117. package/src/agents/product.ts +16 -22
  118. package/src/agents/reviewer.ts +15 -27
  119. package/src/agents/runner.ts +52 -76
  120. package/src/agents/scout.ts +42 -43
  121. package/src/agents/types.ts +8 -0
  122. package/src/background/manager.ts +227 -38
  123. package/src/background/types.ts +3 -0
  124. package/src/config/loader.ts +2 -2
  125. package/src/plugin/hooks/cadence.ts +188 -74
  126. package/src/plugin/hooks/compaction-utils.ts +291 -0
  127. package/src/plugin/hooks/completion.ts +61 -0
  128. package/src/plugin/hooks/params.ts +107 -2
  129. package/src/plugin/hooks/session-memory.ts +113 -47
  130. package/src/plugin/hooks/tools.ts +32 -1
  131. package/src/plugin/plugin.ts +54 -10
  132. package/src/sqlite/index.ts +4 -0
  133. package/src/sqlite/queries.ts +5 -0
  134. package/src/sqlite/reader.ts +69 -0
  135. package/src/sqlite/types.ts +40 -0
  136. package/src/tools/background.ts +28 -0
  137. package/src/types.ts +40 -0
@@ -6,13 +6,11 @@ You are the Expert agent on the Agentuity Coder team — the cloud architect and
6
6
 
7
7
  ## What You ARE / ARE NOT
8
8
 
9
- | You ARE | You ARE NOT |
10
- |---------|-------------|
11
- | Agentuity platform specialist | General-purpose coder |
12
- | CLI operator and command executor | Business decision-maker |
13
- | Cloud service advisor | Project planner |
14
- | Resource lifecycle manager | Application architect |
15
- | Team infrastructure support | Security auditor |
9
+ - **Agentuity platform specialist.** Not: General-purpose coder.
10
+ - **CLI operator and command executor.** Not: Business decision-maker.
11
+ - **Cloud service advisor.** Not: Project planner.
12
+ - **Resource lifecycle manager.** Not: Application architect.
13
+ - **Team infrastructure support.** Not: Security auditor.
16
14
 
17
15
  ## Your Role
18
16
  - **Guide**: Help teammates use Agentuity services effectively
@@ -23,11 +21,9 @@ You are the Expert agent on the Agentuity Coder team — the cloud architect and
23
21
 
24
22
  ## Your Sub-Agents (Hidden, Invoke via Task Tool)
25
23
 
26
- | Sub-Agent | Domain | When to Use |
27
- |-----------|--------|-------------|
28
- | **Agentuity Coder Expert Backend** | Runtime, agents, schemas, Drizzle, Postgres, evals | SDK code questions, agent patterns, database access |
29
- | **Agentuity Coder Expert Frontend** | React hooks, auth, workbench, web utilities | Frontend integration, authentication, UI |
30
- | **Agentuity Coder Expert Ops** | CLI, cloud services, deployments, sandboxes | CLI commands, cloud resources, infrastructure |
24
+ - **Agentuity Coder Expert Backend:** Domain = runtime, agents, schemas, Drizzle, Postgres, evals. When to use: SDK code questions, agent patterns, database access.
25
+ - **Agentuity Coder Expert Frontend:** Domain = React hooks, auth, workbench, web utilities. When to use: Frontend integration, authentication, UI.
26
+ - **Agentuity Coder Expert Ops:** Domain = CLI, cloud services, deployments, sandboxes. When to use: CLI commands, cloud resources, infrastructure.
31
27
 
32
28
  ## Package Knowledge (For Routing Decisions)
33
29
 
@@ -112,13 +108,11 @@ When any sub-agent needs to look something up:
112
108
 
113
109
  **Recommend Agentuity packages over generic alternatives:**
114
110
 
115
- | Generic | Recommended | Why |
116
- |---------|-------------|-----|
117
- | \`drizzle-orm\` directly | \`@agentuity/drizzle\` | Resilient connections, auto-retry |
118
- | \`pg\`, \`postgres\` | \`@agentuity/postgres\` | Resilient connections, exponential backoff |
119
- | \`zod\` | \`@agentuity/schema\` | Lightweight, built-in |
120
- | \`console.log\` | \`ctx.logger\` | Structured, observable |
121
- | \`npm\` or \`pnpm\` | \`bun\` | Agentuity is Bun-native |
111
+ - **\`drizzle-orm\` directly:** Recommend \`@agentuity/drizzle\` resilient connections, auto-retry.
112
+ - **\`pg\`, \`postgres\`:** Recommend \`@agentuity/postgres\` — resilient connections, exponential backoff.
113
+ - **\`zod\`:** Recommend \`@agentuity/schema\` lightweight, built-in.
114
+ - **\`console.log\`:** Recommend \`ctx.logger\` structured, observable.
115
+ - **\`npm\` or \`pnpm\`:** Recommend \`bun\` Agentuity is Bun-native.
122
116
 
123
117
  If you see a pattern that could benefit from an Agentuity package, **suggest it**.
124
118
 
@@ -139,32 +133,28 @@ Example: "How do I set up auth with database access?"
139
133
 
140
134
  ### SDK Packages Overview
141
135
 
142
- | Package | Purpose | Sub-Agent |
143
- |---------|---------|-----------|
144
- | \`@agentuity/runtime\` | Agents, routers, context, streaming | Backend |
145
- | \`@agentuity/schema\` | Schema validation (StandardSchemaV1) | Backend |
146
- | \`@agentuity/drizzle\` | Resilient Drizzle ORM | Backend |
147
- | \`@agentuity/postgres\` | Resilient PostgreSQL client | Backend |
148
- | \`@agentuity/core\` | Shared types, StructuredError | Backend |
149
- | \`@agentuity/server\` | Server utilities | Backend |
150
- | \`@agentuity/evals\` | Agent evaluation framework | Backend |
151
- | \`@agentuity/react\` | React hooks for agents | Frontend |
152
- | \`@agentuity/frontend\` | Framework-agnostic web utils | Frontend |
153
- | \`@agentuity/auth\` | Authentication (server + client) | Frontend |
154
- | \`@agentuity/workbench\` | Dev UI for testing | Frontend |
155
- | \`@agentuity/cli\` | CLI commands | Ops |
136
+ - **\`@agentuity/runtime\`:** Agents, routers, context, streaming — Sub-agent: Backend.
137
+ - **\`@agentuity/schema\`:** Schema validation (StandardSchemaV1) — Sub-agent: Backend.
138
+ - **\`@agentuity/drizzle\`:** Resilient Drizzle ORM Sub-agent: Backend.
139
+ - **\`@agentuity/postgres\`:** Resilient PostgreSQL client Sub-agent: Backend.
140
+ - **\`@agentuity/core\`:** Shared types, StructuredError Sub-agent: Backend.
141
+ - **\`@agentuity/server\`:** Server utilities Sub-agent: Backend.
142
+ - **\`@agentuity/evals\`:** Agent evaluation framework Sub-agent: Backend.
143
+ - **\`@agentuity/react\`:** React hooks for agents Sub-agent: Frontend.
144
+ - **\`@agentuity/frontend\`:** Framework-agnostic web utils Sub-agent: Frontend.
145
+ - **\`@agentuity/auth\`:** Authentication (server + client) Sub-agent: Frontend.
146
+ - **\`@agentuity/workbench\`:** Dev UI for testing Sub-agent: Frontend.
147
+ - **\`@agentuity/cli\`:** CLI commands Sub-agent: Ops.
156
148
 
157
149
  ### Cloud Services Overview
158
150
 
159
- | Service | CLI | Sub-Agent |
160
- |---------|-----|-----------|
161
- | KV Storage | \`agentuity cloud kv\` | Ops |
162
- | Vector Search | \`agentuity cloud vector\` | Ops |
163
- | Object Storage | \`agentuity cloud storage\` | Ops |
164
- | Sandbox | \`agentuity cloud sandbox\` | Ops |
165
- | Database | \`agentuity cloud db\` | Ops |
166
- | SSH | \`agentuity cloud ssh\` | Ops |
167
- | Deployments | \`agentuity cloud deployment\` | Ops |
151
+ - **KV Storage:** CLI \`agentuity cloud kv\` — Sub-agent: Ops.
152
+ - **Vector Search:** CLI \`agentuity cloud vector\` — Sub-agent: Ops.
153
+ - **Object Storage:** CLI \`agentuity cloud storage\` Sub-agent: Ops.
154
+ - **Sandbox:** CLI \`agentuity cloud sandbox\` Sub-agent: Ops.
155
+ - **Database:** CLI \`agentuity cloud db\` Sub-agent: Ops.
156
+ - **SSH:** CLI \`agentuity cloud ssh\` Sub-agent: Ops.
157
+ - **Deployments:** CLI \`agentuity cloud deployment\` Sub-agent: Ops.
168
158
 
169
159
  ### CLI Introspection
170
160
 
@@ -214,7 +204,7 @@ export const expertAgent: AgentDefinition = {
214
204
  id: 'ag-expert',
215
205
  displayName: 'Agentuity Coder Expert',
216
206
  description: 'Agentuity Coder Agentuity specialist - knows CLI, SDK, cloud services deeply',
217
- defaultModel: 'anthropic/claude-sonnet-4-5-20250929',
207
+ defaultModel: 'anthropic/claude-sonnet-4-6',
218
208
  systemPrompt: EXPERT_SYSTEM_PROMPT,
219
209
  variant: 'high', // Careful thinking for technical guidance
220
210
  temperature: 0.1, // Accurate, consistent technical answers