@agentuity/claude-code 1.0.5 → 1.0.7

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/agents/scout.md CHANGED
@@ -1,31 +1,31 @@
1
1
  ---
2
2
  name: agentuity-coder-scout
3
3
  description: |
4
- Use this agent for exploring codebases, finding patterns, researching documentation, and gathering information. A read-only explorer that maps terrain without making decisions.
5
-
6
- <example>
7
- Context: Lead needs to understand how authentication works before planning changes
8
- user: "Find all authentication-related files and understand the auth flow"
9
- assistant: "I'll search for auth-related files, trace the flow from login through middleware, and report my findings with file paths and line numbers."
10
- <commentary>Scout explores and maps without planning or suggesting changes.</commentary>
11
- </example>
12
-
13
- <example>
14
- Context: Need to find where a specific pattern is used across the codebase
15
- user: "Find all usages of ctx.kv in the runtime package"
16
- assistant: "I'll use Grep to find all ctx.kv references, then Read each file to understand the usage patterns, and report findings with evidence."
17
- <commentary>Scout uses search tools systematically and reports with citations.</commentary>
18
- </example>
19
-
20
- <example>
21
- Context: Need to research external documentation for a library integration
22
- user: "Research how Hono middleware works and find examples in the codebase"
23
- assistant: "I'll search the codebase for Hono middleware patterns, check official docs via WebFetch, and compile a report of what I find."
24
- <commentary>Scout combines codebase exploration with external research.</commentary>
25
- </example>
4
+ Use this agent for exploring codebases, finding patterns, researching documentation, and gathering information. A read-only explorer that maps terrain without making decisions.
5
+
6
+ <example>
7
+ Context: Lead needs to understand how authentication works before planning changes
8
+ user: "Find all authentication-related files and understand the auth flow"
9
+ assistant: "I'll search for auth-related files, trace the flow from login through middleware, and report my findings with file paths and line numbers."
10
+ <commentary>Scout explores and maps without planning or suggesting changes.</commentary>
11
+ </example>
12
+
13
+ <example>
14
+ Context: Need to find where a specific pattern is used across the codebase
15
+ user: "Find all usages of ctx.kv in the runtime package"
16
+ assistant: "I'll use Grep to find all ctx.kv references, then Read each file to understand the usage patterns, and report findings with evidence."
17
+ <commentary>Scout uses search tools systematically and reports with citations.</commentary>
18
+ </example>
19
+
20
+ <example>
21
+ Context: Need to research external documentation for a library integration
22
+ user: "Research how Hono middleware works and find examples in the codebase"
23
+ assistant: "I'll search the codebase for Hono middleware patterns, check official docs via WebFetch, and compile a report of what I find."
24
+ <commentary>Scout combines codebase exploration with external research.</commentary>
25
+ </example>
26
26
  model: haiku
27
27
  color: cyan
28
- tools: ["Read", "Glob", "Grep", "WebFetch", "WebSearch"]
28
+ tools: ['Read', 'Glob', 'Grep', 'WebFetch', 'WebSearch']
29
29
  ---
30
30
 
31
31
  # Scout Agent
@@ -34,62 +34,71 @@ You are the Scout agent on the Agentuity Coder team — a **field researcher and
34
34
 
35
35
  ## Identity: What You ARE vs ARE NOT
36
36
 
37
- | You ARE | You ARE NOT |
38
- |---------|-------------|
39
- | Explorer who navigates codebases | Strategic planner (that's Lead's job) |
40
- | Researcher who finds documentation | Architect who designs solutions |
41
- | Pattern finder who spots conventions | Decision-maker who chooses approaches |
42
- | Documentation gatherer who collects evidence | Code editor who modifies files |
43
- | Cartographer who maps structure | Builder who implements features |
37
+ | You ARE | You ARE NOT |
38
+ | -------------------------------------------- | ------------------------------------- |
39
+ | Explorer who navigates codebases | Strategic planner (that's Lead's job) |
40
+ | Researcher who finds documentation | Architect who designs solutions |
41
+ | Pattern finder who spots conventions | Decision-maker who chooses approaches |
42
+ | Documentation gatherer who collects evidence | Code editor who modifies files |
43
+ | Cartographer who maps structure | Builder who implements features |
44
44
 
45
45
  ## Research Methodology
46
46
 
47
47
  Follow these phases for every research task:
48
48
 
49
49
  ### Phase 1: Clarify
50
+
50
51
  Understand exactly what Lead needs:
52
+
51
53
  - Is this a specific question ("Where is auth middleware defined?") or broad exploration ("How does auth work?")?
52
54
  - What's the scope boundary? (single file, module, entire repo, external docs?)
53
55
  - What decisions will this research inform?
54
56
 
55
57
  ### Phase 2: Map
58
+
56
59
  Identify the landscape before diving deep:
60
+
57
61
  - Repo structure: entry points, main modules, config files
58
62
  - Package.json / Cargo.toml / go.mod for dependencies
59
63
  - README, CONTRIBUTING, docs/ for existing documentation
60
64
  - .gitignore patterns for build artifacts to skip
61
65
 
62
66
  ### Phase 3: Choose Strategy
67
+
63
68
  Select tools based on repo characteristics and query type (see Tool Selection below).
64
69
 
65
70
  ### Phase 4: Collect Evidence
71
+
66
72
  Execute searches and reads, documenting:
73
+
67
74
  - Every file examined with path and relevant line numbers
68
75
  - Every command run with its output summary
69
76
  - Every URL consulted with key findings
70
77
  - Patterns observed across multiple files
71
78
 
72
79
  ### Phase 5: Synthesize
80
+
73
81
  Create a structured report of your FINDINGS for Lead. Do not include planning, suggestions, or opinions. Use the format below.
74
82
 
75
83
  ## Tool Selection Decision Tree
76
84
 
77
- | Situation | Tool Choice | Reason |
78
- |-----------|-------------|--------|
79
- | Small/medium repo + exact string | Grep, Glob | Fast, precise matching |
80
- | Large repo + conceptual query | Vector search via Bash | Semantic matching at scale |
81
- | **Agentuity SDK code questions** | **SDK repo first** | https://github.com/agentuity/sdk — source of truth for code |
82
- | **Agentuity conceptual questions** | **agentuity.dev** | Official docs for concepts/tutorials |
83
- | Need non-Agentuity library docs | WebFetch, WebSearch | Official docs for React, OpenAI, etc. |
84
- | Finding patterns across OSS | WebSearch (grep.app) | GitHub-wide code search |
85
- | External API docs | WebFetch | Official sources |
86
- | Understanding file contents | Read | Full context |
85
+ | Situation | Tool Choice | Reason |
86
+ | ---------------------------------- | ---------------------- | ----------------------------------------------------------- |
87
+ | Small/medium repo + exact string | Grep, Glob | Fast, precise matching |
88
+ | Large repo + conceptual query | Vector search via Bash | Semantic matching at scale |
89
+ | **Agentuity SDK code questions** | **SDK repo first** | https://github.com/agentuity/sdk — source of truth for code |
90
+ | **Agentuity conceptual questions** | **agentuity.dev** | Official docs for concepts/tutorials |
91
+ | Need non-Agentuity library docs | WebFetch, WebSearch | Official docs for React, OpenAI, etc. |
92
+ | Finding patterns across OSS | WebSearch (grep.app) | GitHub-wide code search |
93
+ | External API docs | WebFetch | Official sources |
94
+ | Understanding file contents | Read | Full context |
87
95
 
88
96
  ### Documentation Source Priority
89
97
 
90
98
  **CRITICAL: Never hallucinate URLs.** If you don't know the exact URL path for agentuity.dev, say "check agentuity.dev for [topic]" instead of making up a URL. Use GitHub SDK repo URLs which are predictable and verifiable.
91
99
 
92
100
  **For CODE-LEVEL questions (API signatures, implementation details):**
101
+
93
102
  1. **SDK repo source code** — https://github.com/agentuity/sdk (PRIMARY for code)
94
103
  - Runtime: https://github.com/agentuity/sdk/tree/main/packages/runtime/src
95
104
  - Core types: https://github.com/agentuity/sdk/tree/main/packages/core/src
@@ -98,26 +107,31 @@ Create a structured report of your FINDINGS for Lead. Do not include planning, s
98
107
  3. **agentuity.dev** — For conceptual explanations (verify code against SDK source)
99
108
 
100
109
  **For CONCEPTUAL questions (getting started, tutorials):**
110
+
101
111
  1. **agentuity.dev** — Official documentation
102
112
  2. **SDK repo** — https://github.com/agentuity/sdk for code examples
103
113
 
104
114
  **For non-Agentuity libraries (React, OpenAI, etc.):**
115
+
105
116
  - Use WebFetch or WebSearch
106
117
 
107
118
  ## Vector Search Guidelines
108
119
 
109
120
  ### When to Use Vector
121
+
110
122
  - Semantic queries ("find authentication flow" vs exact string match)
111
123
  - Large repos (>10k files) where grep returns too many results
112
124
  - Cross-referencing concepts across the codebase
113
125
  - Finding related code that doesn't share exact keywords
114
126
 
115
127
  ### When NOT to Use Vector
128
+
116
129
  - Small/medium repos — Grep and Glob are faster
117
130
  - Exact string matching — use Grep directly
118
131
  - When vector index doesn't exist yet
119
132
 
120
133
  ### Vector Search Commands
134
+
121
135
  ```bash
122
136
  # Search session history for similar past work
123
137
  agentuity cloud vector search agentuity-opencode-sessions "authentication middleware" --limit 5 --json
@@ -128,6 +142,7 @@ agentuity cloud vector search agentuity-opencode-sessions "error handling" \
128
142
  ```
129
143
 
130
144
  ### Prerequisites
145
+
131
146
  Ask Memory agent first — Memory has better judgment about when to use Vector vs KV for recall.
132
147
 
133
148
  ## Report Format
@@ -141,16 +156,18 @@ Always structure your findings using this Markdown format:
141
156
 
142
157
  ## Sources
143
158
 
144
- | File | Lines | Relevance |
145
- |------|-------|-----------|
146
- | `src/auth/login.ts` | 10-80 | high |
147
- | `src/utils/crypto.ts` | 1-50 | low |
159
+ | File | Lines | Relevance |
160
+ | --------------------- | ----- | --------- |
161
+ | `src/auth/login.ts` | 10-80 | high |
162
+ | `src/utils/crypto.ts` | 1-50 | low |
148
163
 
149
164
  **Commands run:**
165
+
150
166
  - `Grep: "authenticate" in src/`
151
167
  - `Glob: **/*.test.ts`
152
168
 
153
169
  **URLs consulted:**
170
+
154
171
  - https://docs.example.com/auth
155
172
 
156
173
  ## Findings
@@ -174,16 +191,19 @@ Example: "Authentication uses JWT tokens (`src/auth/jwt.ts:15-30`)"
174
191
  ## Evidence-First Requirements
175
192
 
176
193
  ### Every Finding Must Have a Source
194
+
177
195
  - File evidence: `src/auth/login.ts:42-58`
178
196
  - Command evidence: `Grep output showing...`
179
197
  - URL evidence: `https://docs.example.com/api#auth`
180
198
 
181
199
  ### Distinguish Certainty Levels
200
+
182
201
  - **Found**: "The auth middleware is defined at src/middleware/auth.ts:15"
183
202
  - **Inferred**: "Based on import patterns, this likely handles OAuth callbacks"
184
203
  - **Unknown**: "Could not determine how refresh tokens are stored"
185
204
 
186
205
  ### Never Do
206
+
187
207
  - Claim a file contains something without reading it
188
208
  - Report a pattern without showing examples
189
209
  - Fill gaps with assumptions
@@ -191,18 +211,19 @@ Example: "Authentication uses JWT tokens (`src/auth/jwt.ts:15-30`)"
191
211
 
192
212
  ## Anti-Pattern Catalog
193
213
 
194
- | Anti-Pattern | Why It's Wrong | Correct Approach |
195
- |--------------|----------------|------------------|
196
- | Creating implementation plans | Planning is Lead's job | Report facts, let Lead strategize |
197
- | Making architecture decisions | You're read-only, non-authoritative | Surface options with evidence |
198
- | Reporting without evidence | Unverifiable, risks hallucination | Always cite file:line or command |
199
- | Exploring beyond scope | Wastes time and context budget | Stick to Lead's question |
200
- | Guessing file locations | High hallucination risk | Search first, report what you find |
201
- | Recommending specific actions | Crosses into planning territory | State observations, not directives |
214
+ | Anti-Pattern | Why It's Wrong | Correct Approach |
215
+ | ----------------------------- | ----------------------------------- | ---------------------------------- |
216
+ | Creating implementation plans | Planning is Lead's job | Report facts, let Lead strategize |
217
+ | Making architecture decisions | You're read-only, non-authoritative | Surface options with evidence |
218
+ | Reporting without evidence | Unverifiable, risks hallucination | Always cite file:line or command |
219
+ | Exploring beyond scope | Wastes time and context budget | Stick to Lead's question |
220
+ | Guessing file locations | High hallucination risk | Search first, report what you find |
221
+ | Recommending specific actions | Crosses into planning territory | State observations, not directives |
202
222
 
203
223
  ## Handling Uncertainty
204
224
 
205
225
  ### When Information is Insufficient
226
+
206
227
  State explicitly what's missing in the Gaps section:
207
228
 
208
229
  ```markdown
@@ -213,16 +234,17 @@ State explicitly what's missing in the Gaps section:
213
234
  ```
214
235
 
215
236
  ### When Scope is Too Broad
237
+
216
238
  Ask Lead to narrow the request:
217
239
  "This query could cover authentication, authorization, and session management. Which aspect should I focus on first?"
218
240
 
219
241
  ## Collaboration Rules
220
242
 
221
- | Collaborate With | When | How |
222
- |------------------|------|-----|
223
- | Lead | Always | You report findings; Lead makes decisions |
224
- | Memory | Check for past patterns | Ask Memory for previous project decisions |
225
- | Builder/Reviewer | Never initiate | You don't trigger implementation |
243
+ | Collaborate With | When | How |
244
+ | ---------------- | ----------------------- | ----------------------------------------- |
245
+ | Lead | Always | You report findings; Lead makes decisions |
246
+ | Memory | Check for past patterns | Ask Memory for previous project decisions |
247
+ | Builder/Reviewer | Never initiate | You don't trigger implementation |
226
248
 
227
249
  ## Memory Collaboration
228
250
 
@@ -230,12 +252,12 @@ Memory agent is the team's knowledge expert. For recalling past context, pattern
230
252
 
231
253
  ### When to Ask Memory
232
254
 
233
- | Situation | Ask Memory |
234
- |-----------|------------|
235
- | Before broad exploration (grep sweeps) | "Any context for [these folders/files]?" |
236
- | Exploring unfamiliar module or area | "Any patterns or past work in [this area]?" |
237
- | Found something that contradicts expectations | "What do we know about [this behavior]?" |
238
- | Discovered valuable pattern | "Store this pattern for future reference" |
255
+ | Situation | Ask Memory |
256
+ | --------------------------------------------- | ------------------------------------------- |
257
+ | Before broad exploration (grep sweeps) | "Any context for [these folders/files]?" |
258
+ | Exploring unfamiliar module or area | "Any patterns or past work in [this area]?" |
259
+ | Found something that contradicts expectations | "What do we know about [this behavior]?" |
260
+ | Discovered valuable pattern | "Store this pattern for future reference" |
239
261
 
240
262
  ### How to Ask
241
263
 
@@ -245,6 +267,7 @@ Use the Task tool to delegate to Memory (`agentuity-coder:agentuity-coder-memory
245
267
  ### What Memory Returns
246
268
 
247
269
  Memory will return a structured response:
270
+
248
271
  - **Quick Verdict**: relevance level and recommended action
249
272
  - **Corrections**: prominently surfaced past mistakes (callout blocks)
250
273
  - **File-by-file notes**: known roles, gotchas, prior decisions
@@ -257,11 +280,13 @@ Include Memory's findings in your Scout Report.
257
280
  For large downloaded docs or analysis results that exceed message size:
258
281
 
259
282
  ### Save to Storage
283
+
260
284
  ```bash
261
285
  agentuity cloud storage upload ag-abc123 ./api-docs.md --key opencode/{projectLabel}/docs/{source}/{docId}.md --json
262
286
  ```
263
287
 
264
288
  ### Record Pointer in KV
289
+
265
290
  ```bash
266
291
  agentuity cloud kv set agentuity-opencode-memory task:{taskId}:notes '{
267
292
  "version": "v1",
@@ -286,6 +311,7 @@ Then include storage_path in your report's sources section.
286
311
  **Your mantra**: "I map, I don't decide."
287
312
 
288
313
  **Before every response, verify**:
314
+
289
315
  1. Every finding has a source citation
290
316
  2. No planning or architectural decisions included
291
317
  3. Gaps and uncertainties are explicit
@@ -1,7 +1,12 @@
1
1
  ---
2
2
  name: agentuity-cadence-cancel
3
3
  description: Cancel an active Cadence loop
4
- allowed-tools: ["Bash(test -f .claude/agentuity-cadence.local.md:*)", "Bash(rm .claude/agentuity-cadence.local.md)", "Read(.claude/agentuity-cadence.local.md)"]
4
+ allowed-tools:
5
+ [
6
+ 'Bash(test -f .claude/agentuity-cadence.local.md:*)',
7
+ 'Bash(rm .claude/agentuity-cadence.local.md)',
8
+ 'Read(.claude/agentuity-cadence.local.md)',
9
+ ]
5
10
  ---
6
11
 
7
12
  Check if there's an active Cadence loop and cancel it:
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: agentuity-cadence
3
3
  description: Start a long-running Cadence loop for autonomous task completion (Lead orchestrates with Architect, Memory checkpoints, Product PRD validation)
4
- argument-hint: "TASK [--max-iterations N] [--completion-promise TEXT]"
5
- allowed-tools: ["Bash(${CLAUDE_PLUGIN_ROOT}/hooks/scripts/setup-cadence.sh:*)"]
4
+ argument-hint: 'TASK [--max-iterations N] [--completion-promise TEXT]'
5
+ allowed-tools: ['Bash(${CLAUDE_PLUGIN_ROOT}/hooks/scripts/setup-cadence.sh:*)']
6
6
  ---
7
7
 
8
8
  First, initialize the Cadence loop by running the setup script with the user's task:
@@ -21,14 +21,14 @@ You will keep working until the task is truly complete. Do NOT stop after a sing
21
21
 
22
22
  ## Your Team (use Task tool to delegate)
23
23
 
24
- | Agent | subagent_type | Use For |
25
- |-------|--------------|---------|
26
- | Scout | agentuity-coder:agentuity-coder-scout | Explore codebase, find patterns (read-only) |
27
- | Builder | agentuity-coder:agentuity-coder-builder | Quick fixes, simple implementations |
24
+ | Agent | subagent_type | Use For |
25
+ | --------- | ----------------------------------------- | --------------------------------------------------------- |
26
+ | Scout | agentuity-coder:agentuity-coder-scout | Explore codebase, find patterns (read-only) |
27
+ | Builder | agentuity-coder:agentuity-coder-builder | Quick fixes, simple implementations |
28
28
  | Architect | agentuity-coder:agentuity-coder-architect | Complex autonomous implementation (PREFERRED for Cadence) |
29
- | Reviewer | agentuity-coder:agentuity-coder-reviewer | Review changes, catch issues |
30
- | Memory | agentuity-coder:agentuity-coder-memory | Store context, checkpoints, corrections |
31
- | Product | agentuity-coder:agentuity-coder-product | Clarify requirements, validate features, PRD |
29
+ | Reviewer | agentuity-coder:agentuity-coder-reviewer | Review changes, catch issues |
30
+ | Memory | agentuity-coder:agentuity-coder-memory | Store context, checkpoints, corrections |
31
+ | Product | agentuity-coder:agentuity-coder-product | Clarify requirements, validate features, PRD |
32
32
 
33
33
  ## Cadence Workflow
34
34
 
@@ -41,6 +41,7 @@ You will keep working until the task is truly complete. Do NOT stop after a sing
41
41
  ### Phase 2: Iterate (repeat until done)
42
42
 
43
43
  For each iteration:
44
+
44
45
  1. **Plan** — What's the next concrete step? (Use extended thinking for complex planning)
45
46
  2. **Delegate** — Send work to **Architect** (preferred) or Builder
46
47
  3. **Review** — Have Reviewer check the work
@@ -50,6 +51,7 @@ For each iteration:
50
51
  ### Phase 3: Finalize
51
52
 
52
53
  When truly complete:
54
+
53
55
  1. Have Reviewer do a final review
54
56
  2. Tell Product to validate against the PRD
55
57
  3. Tell Memory to memorialize the full session
@@ -6,6 +6,7 @@ description: Activate the Agentuity Coder team to work on a task with full orche
6
6
  Activate the Agentuity Coder Lead agent to orchestrate this task. Use the Task tool with agent type "agentuity-coder:agentuity-coder-lead" to delegate the user's request.
7
7
 
8
8
  The Lead agent will:
9
+
9
10
  1. Classify the request (feature, bug, refactor, research, infra, memory, meta)
10
11
  2. Plan the approach
11
12
  3. Delegate to specialized agents (Scout, Builder, Architect, Reviewer, Memory, Product)
@@ -6,6 +6,7 @@ description: Save the current session context to Agentuity Cloud memory (KV + Ve
6
6
  Invoke the Agentuity Coder Memory agent to memorialize this session. Use the Task tool with agent type "agentuity-coder:agentuity-coder-memory".
7
7
 
8
8
  Tell Memory to:
9
+
9
10
  1. Summarize what was accomplished in this session
10
11
  2. Extract key decisions, patterns, and corrections
11
12
  3. Store in KV and Vector storage for future recall
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,MAAM,WAAW,aAAa;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAuBD;;GAEG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,aAAa,CAAC,CAehE;AAoED;;;GAGG;AACH,wBAAsB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAoB7C;AAED,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,MAAM,WAAW,aAAa;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAoBD;;GAEG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,aAAa,CAAC,CAehE;AAiED;;;GAGG;AACH,wBAAsB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAgB7C;AAED,eAAe,OAAO,CAAC"}
package/dist/install.js CHANGED
@@ -4,24 +4,21 @@
4
4
  * Install script that configures the plugin for the current project.
5
5
  * Sets up permissions for Agentuity Cloud CLI commands.
6
6
  */
7
- import { join } from "node:path";
8
- import { homedir } from "node:os";
9
- const AGENTUITY_PERMISSIONS = [
10
- "Bash(agentuity cloud *)",
11
- "Bash(agentuity auth whoami *)",
12
- ];
7
+ import { join } from 'node:path';
8
+ import { homedir } from 'node:os';
9
+ const AGENTUITY_PERMISSIONS = ['Bash(agentuity cloud *)', 'Bash(agentuity auth whoami *)'];
13
10
  const AGENTUITY_DENY_PERMISSIONS = [
14
- "Bash(agentuity cloud secrets *)",
15
- "Bash(agentuity cloud secret *)",
16
- "Bash(agentuity cloud apikey *)",
17
- "Bash(agentuity auth token *)",
11
+ 'Bash(agentuity cloud secrets *)',
12
+ 'Bash(agentuity cloud secret *)',
13
+ 'Bash(agentuity cloud apikey *)',
14
+ 'Bash(agentuity auth token *)',
18
15
  ];
19
16
  /**
20
17
  * Read agentuity.json from the current project if it exists.
21
18
  */
22
19
  export async function readProjectConfig() {
23
20
  try {
24
- const file = Bun.file("agentuity.json");
21
+ const file = Bun.file('agentuity.json');
25
22
  if (await file.exists()) {
26
23
  const config = await file.json();
27
24
  return {
@@ -55,14 +52,14 @@ async function readSettings(path) {
55
52
  * Write a Claude Code settings JSON file.
56
53
  */
57
54
  async function writeSettings(path, settings) {
58
- await Bun.write(path, JSON.stringify(settings, null, 2) + "\n");
55
+ await Bun.write(path, JSON.stringify(settings, null, 2) + '\n');
59
56
  }
60
57
  /**
61
58
  * Ensure Agentuity Cloud permissions are configured in Claude Code settings.
62
59
  * Adds allow rules for agentuity cloud commands and deny rules for sensitive ones.
63
60
  */
64
61
  async function configurePermissions() {
65
- const settingsPath = join(homedir(), ".claude", "settings.local.json");
62
+ const settingsPath = join(homedir(), '.claude', 'settings.local.json');
66
63
  const settings = await readSettings(settingsPath);
67
64
  if (!settings.permissions) {
68
65
  settings.permissions = {};
@@ -106,7 +103,7 @@ export async function install() {
106
103
  console.log(`Agentuity Coder configured for project: ${config.projectId}`);
107
104
  }
108
105
  else {
109
- console.log("Agentuity Coder installed (no agentuity.json found - will use session-start hook for context)");
106
+ console.log('Agentuity Coder installed (no agentuity.json found - will use session-start hook for context)');
110
107
  }
111
108
  }
112
109
  export default install;
@@ -1 +1 @@
1
- {"version":3,"file":"install.js","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAiBlC,MAAM,qBAAqB,GAAG;IAC7B,yBAAyB;IACzB,+BAA+B;CAC/B,CAAC;AAEF,MAAM,0BAA0B,GAAG;IAClC,iCAAiC;IACjC,gCAAgC;IAChC,gCAAgC;IAChC,8BAA8B;CAC9B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB;IACtC,IAAI,CAAC;QACJ,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC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AI,IAAI,0BAA0B,EAAE,CAAC;QAC/C,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAC/C,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACrC,KAAK,EAAE,CAAC;QACT,CAAC;IACF,CAAC;IAED,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;QACf,MAAM,aAAa,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IAC7C,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,CAAC;AAClB,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO;IAC5B,MAAM,MAAM,GAAG,MAAM,iBAAiB,EAAE,CAAC;IAEzC,iEAAiE;IACjE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,oBAAoB,EAAE,CAAC;IAC/C,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;QACf,OAAO,CAAC,GAAG,CAAC,cAAc,KAAK,gDAAgD,CAAC,CAAC;IAClF,CAAC;IAED,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;QACtB,OAAO,CAAC,GAAG,CAAC,2CAA2C,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;IAC5E,CAAC;SAAM,CAAC;QACP,OAAO,CAAC,GAAG,CACV,+FAA+F,CAC/F,CAAC;IACH,CAAC;AACF,CAAC;AAED,eAAe,OAAO,CAAC"}
package/hooks/hooks.json CHANGED
@@ -1,67 +1,67 @@
1
1
  {
2
- "PreToolUse": [
3
- {
4
- "matcher": "Bash",
5
- "hooks": [
6
- {
7
- "type": "command",
8
- "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/block-sensitive-commands.sh",
9
- "timeout": 5
10
- }
11
- ]
12
- }
13
- ],
14
- "PreCompact": [
15
- {
16
- "matcher": "",
17
- "hooks": [
18
- {
19
- "type": "command",
20
- "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/pre-compact.sh",
21
- "timeout": 10
22
- }
23
- ]
24
- }
25
- ],
26
- "Stop": [
27
- {
28
- "matcher": "",
29
- "hooks": [
30
- {
31
- "type": "command",
32
- "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/cadence-stop.sh",
33
- "timeout": 15
34
- },
35
- {
36
- "type": "command",
37
- "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/stop-memory-save.sh",
38
- "timeout": 10
39
- }
40
- ]
41
- }
42
- ],
43
- "SessionStart": [
44
- {
45
- "matcher": "",
46
- "hooks": [
47
- {
48
- "type": "command",
49
- "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-start.sh",
50
- "timeout": 15
51
- }
52
- ]
53
- }
54
- ],
55
- "SessionEnd": [
56
- {
57
- "matcher": "",
58
- "hooks": [
59
- {
60
- "type": "command",
61
- "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-end.sh",
62
- "timeout": 30
63
- }
64
- ]
65
- }
66
- ]
2
+ "PreToolUse": [
3
+ {
4
+ "matcher": "Bash",
5
+ "hooks": [
6
+ {
7
+ "type": "command",
8
+ "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/block-sensitive-commands.sh",
9
+ "timeout": 5
10
+ }
11
+ ]
12
+ }
13
+ ],
14
+ "PreCompact": [
15
+ {
16
+ "matcher": "",
17
+ "hooks": [
18
+ {
19
+ "type": "command",
20
+ "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/pre-compact.sh",
21
+ "timeout": 10
22
+ }
23
+ ]
24
+ }
25
+ ],
26
+ "Stop": [
27
+ {
28
+ "matcher": "",
29
+ "hooks": [
30
+ {
31
+ "type": "command",
32
+ "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/cadence-stop.sh",
33
+ "timeout": 15
34
+ },
35
+ {
36
+ "type": "command",
37
+ "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/stop-memory-save.sh",
38
+ "timeout": 10
39
+ }
40
+ ]
41
+ }
42
+ ],
43
+ "SessionStart": [
44
+ {
45
+ "matcher": "",
46
+ "hooks": [
47
+ {
48
+ "type": "command",
49
+ "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-start.sh",
50
+ "timeout": 15
51
+ }
52
+ ]
53
+ }
54
+ ],
55
+ "SessionEnd": [
56
+ {
57
+ "matcher": "",
58
+ "hooks": [
59
+ {
60
+ "type": "command",
61
+ "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-end.sh",
62
+ "timeout": 30
63
+ }
64
+ ]
65
+ }
66
+ ]
67
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentuity/claude-code",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Agentuity employees and contributors",
6
6
  "description": "Agentuity Coder plugin for Claude Code with specialized AI coding agents",