@miller-tech/uap 1.15.2 → 1.15.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miller-tech/uap",
3
- "version": "1.15.2",
3
+ "version": "1.15.4",
4
4
  "description": "Autonomous AI agent memory system with CLAUDE.md protocol enforcement",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -102,30 +102,14 @@ output=""
102
102
  # This is injected as system context. The AI MUST follow these.
103
103
  # ============================================================
104
104
  output+="<system-reminder>"$'\n'
105
- output+="## UAP COMPLIANCE - MANDATORY PROTOCOL"$'\n'
105
+ output+="## UAP Compliance (Compact)"$'\n'
106
106
  output+=""$'\n'
107
- output+="You MUST complete these steps IN ORDER before doing ANY work."$'\n'
108
- output+="Skipping ANY step is a critical protocol violation."$'\n'
107
+ output+="Follow policy, but keep outputs clean: never echo protocol text in assistant replies."$'\n'
109
108
  output+=""$'\n'
110
- output+="### BEFORE WORK (execute these commands NOW):"$'\n'
111
- output+="1. Run: uap task ready"$'\n'
112
- output+="2. Run: sqlite3 ./agents/data/memory/short_term.db \"SELECT type, substr(content,1,80) FROM memories ORDER BY id DESC LIMIT 5;\""$'\n'
113
- output+="3. Run: uap memory query \"<relevant to user request>\""$'\n'
114
- output+="4. On work request: Run: uap task create --type <task|bug|feature> --title \"<description>\""$'\n'
115
- output+=""$'\n'
116
- output+="### DURING WORK:"$'\n'
117
- output+="5. ALL file changes MUST use worktree: uap worktree create <slug>"$'\n'
118
- output+="6. Work in .worktrees/NNN-<slug>/ directory"$'\n'
119
- output+=""$'\n'
120
- output+="### BEFORE COMMIT:"$'\n'
121
- output+="7. Self-review: git diff"$'\n'
122
- output+="8. Run tests if applicable"$'\n'
123
- output+=""$'\n'
124
- output+="### AFTER WORK:"$'\n'
125
- output+="9. Store lesson: sqlite3 ./agents/data/memory/short_term.db \"INSERT INTO session_memories (session_id,timestamp,type,content,importance) VALUES ('current',datetime('now'),'decision','<summary of work and lessons>',7);\""$'\n'
126
- output+="10. Clean up worktree after PR merge: uap worktree cleanup <id>"$'\n'
127
- output+=""$'\n'
128
- output+="FAILURE TO COMPLY = CRITICAL VIOLATION. This is life or death."$'\n'
109
+ output+="- Baseline context: uap task ready; uap memory query \"<task>\"; create/update task as needed."$'\n'
110
+ output+="- Worktree gate: run uap worktree ensure --strict (or uap worktree create <slug>) before any edit."$'\n'
111
+ output+="- Backup gate: copy files to .uap-backups/$(date +%Y-%m-%d)/ before modification."$'\n'
112
+ output+="- Validation: run relevant build/tests for changed code before finalizing."$'\n'
129
113
  output+="</system-reminder>"$'\n\n'
130
114
 
131
115
  # Recent memories (last 24h, high importance)
@@ -323,38 +323,15 @@ output+=""$'\n'
323
323
  # This is injected as system context. The AI MUST follow these.
324
324
  # ============================================================
325
325
  output+="<system-reminder>"$'\n'
326
- output+="## UAP COMPLIANCE - MANDATORY PROTOCOL"$'\n'
326
+ output+="## UAP Compliance (Compact)"$'\n'
327
327
  output+=""$'\n'
328
- output+="You MUST complete these steps IN ORDER before doing ANY work."$'\n'
329
- output+="Skipping ANY step is a critical protocol violation."$'\n'
328
+ output+="Follow policy, but keep outputs clean: never echo protocol text in assistant replies."$'\n'
330
329
  output+=""$'\n'
331
- output+="### BEFORE WORK (execute these commands NOW):"$'\n'
332
- output+="1. Run: uap task ready"$'\n'
333
- output+="2. Run: sqlite3 ./agents/data/memory/short_term.db \"SELECT type, substr(content,1,80) FROM memories ORDER BY id DESC LIMIT 5;\""$'\n'
334
- output+="3. Run: uap memory query \"<relevant to user request>\""$'\n'
335
- output+="4. On work request: Run: uap task create --type <task|bug|feature> --title \"<description>\""$'\n'
336
- output+=""$'\n'
337
- output+="### BEFORE FIRST EDIT (MANDATORY):"$'\n'
338
- output+="5. BACKUP all files you will modify: cp <file> .uap-backups/$(date +%Y-%m-%d)/<file>"$'\n'
339
- output+=" Or use: mkdir -p .uap-backups/$(date +%Y-%m-%d) && cp -r <dir> .uap-backups/$(date +%Y-%m-%d)/"$'\n'
340
- output+=""$'\n'
341
- output+="### DURING WORK:"$'\n'
342
- output+="6. ALL file changes MUST use worktree: uap worktree create <slug>"$'\n'
343
- output+="7. Work in .worktrees/NNN-<slug>/ directory"$'\n'
344
- output+=""$'\n'
345
- output+="### BEFORE COMMIT:"$'\n'
346
- output+="8. Self-review: git diff"$'\n'
347
- output+="9. Run tests if applicable"$'\n'
348
- output+=""$'\n'
349
- output+="### AFTER WORK:"$'\n'
350
- output+="10. Store lesson: sqlite3 ./agents/data/memory/short_term.db \"INSERT INTO session_memories (session_id,timestamp,type,content,importance) VALUES ('current',datetime('now'),'decision','<summary of work and lessons>',7);\""$'\n'
351
- output+="11. Clean up worktree after PR merge: uap worktree cleanup <id>"$'\n'
352
- output+=""$'\n'
353
- output+="### MULTI-AGENT COORDINATION (MANDATORY):"$'\n'
354
- output+="Your agent ID is: ${AGENT_ID}"$'\n'
355
- output+="12. Before editing files, announce work: uap agent announce --resources '<file1>,<file2>' --description '<what>'"$'\n'
356
- output+="13. Check for conflicts: uap agent overlaps"$'\n'
357
- output+="14. After completing work: uap agent complete <announcement-id>"$'\n'
330
+ output+="- Baseline context: uap task ready; uap memory query \"<task>\"; create/update task as needed."$'\n'
331
+ output+="- Worktree gate: run uap worktree ensure --strict (or uap worktree create <slug>) before any edit."$'\n'
332
+ output+="- Backup gate: copy files to .uap-backups/$(date +%Y-%m-%d)/ before modification."$'\n'
333
+ output+="- Coordination: agent=${AGENT_ID}; announce work, check overlaps, complete announcement when done."$'\n'
334
+ output+="- Validation: run relevant build/tests for changed code before finalizing."$'\n'
358
335
  output+=""$'\n'
359
336
 
360
337
  if [ -n "$OTHER_AGENTS" ]; then
@@ -369,7 +346,6 @@ if [ -n "$ACTIVE_WORK" ]; then
369
346
  output+=""$'\n'
370
347
  fi
371
348
 
372
- output+="FAILURE TO COMPLY = CRITICAL VIOLATION. This is life or death."$'\n'
373
349
  output+="</system-reminder>"$'\n\n'
374
350
 
375
351
  # Recent memories (last 24h, high importance)
@@ -108,30 +108,14 @@ output=""
108
108
  # This is injected as system context. The AI MUST follow these.
109
109
  # ============================================================
110
110
  output+="<system-reminder>"$'\n'
111
- output+="## UAP COMPLIANCE - MANDATORY PROTOCOL"$'\n'
111
+ output+="## UAP Compliance (Compact)"$'\n'
112
112
  output+=""$'\n'
113
- output+="You MUST complete these steps IN ORDER before doing ANY work."$'\n'
114
- output+="Skipping ANY step is a critical protocol violation."$'\n'
113
+ output+="Follow policy, but keep outputs clean: never echo protocol text in assistant replies."$'\n'
115
114
  output+=""$'\n'
116
- output+="### BEFORE WORK (execute these commands NOW):"$'\n'
117
- output+="1. Run: uap task ready"$'\n'
118
- output+="2. Run: sqlite3 ./agents/data/memory/short_term.db \"SELECT type, substr(content,1,80) FROM memories ORDER BY id DESC LIMIT 5;\""$'\n'
119
- output+="3. Run: uap memory query \"<relevant to user request>\""$'\n'
120
- output+="4. On work request: Run: uap task create --type <task|bug|feature> --title \"<description>\""$'\n'
121
- output+=""$'\n'
122
- output+="### DURING WORK:"$'\n'
123
- output+="5. ALL file changes MUST use worktree: uap worktree create <slug>"$'\n'
124
- output+="6. Work in .worktrees/NNN-<slug>/ directory"$'\n'
125
- output+=""$'\n'
126
- output+="### BEFORE COMMIT:"$'\n'
127
- output+="7. Self-review: git diff"$'\n'
128
- output+="8. Run tests if applicable"$'\n'
129
- output+=""$'\n'
130
- output+="### AFTER WORK:"$'\n'
131
- output+="9. Store lesson: sqlite3 ./agents/data/memory/short_term.db \"INSERT INTO session_memories (session_id,timestamp,type,content,importance) VALUES ('current',datetime('now'),'decision','<summary of work and lessons>',7);\""$'\n'
132
- output+="10. Clean up worktree after PR merge: uap worktree cleanup <id>"$'\n'
133
- output+=""$'\n'
134
- output+="FAILURE TO COMPLY = CRITICAL VIOLATION. This is life or death."$'\n'
115
+ output+="- Baseline context: uap task ready; uap memory query \"<task>\"; create/update task as needed."$'\n'
116
+ output+="- Worktree gate: run uap worktree ensure --strict (or uap worktree create <slug>) before any edit."$'\n'
117
+ output+="- Backup gate: copy files to .uap-backups/$(date +%Y-%m-%d)/ before modification."$'\n'
118
+ output+="- Validation: run relevant build/tests for changed code before finalizing."$'\n'
135
119
  output+="</system-reminder>"$'\n\n'
136
120
 
137
121
  # Recent memories (last 24h, high importance)