@ekkos/cli 1.3.1 → 1.3.5

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 (131) hide show
  1. package/dist/capture/jsonl-rewriter.d.ts +1 -1
  2. package/dist/capture/jsonl-rewriter.js +3 -3
  3. package/dist/capture/transcript-repair.d.ts +2 -2
  4. package/dist/capture/transcript-repair.js +2 -2
  5. package/dist/commands/claw.d.ts +13 -0
  6. package/dist/commands/claw.js +253 -0
  7. package/dist/commands/dashboard.js +742 -118
  8. package/dist/commands/doctor.d.ts +3 -3
  9. package/dist/commands/doctor.js +6 -79
  10. package/dist/commands/gemini.d.ts +19 -0
  11. package/dist/commands/gemini.js +193 -0
  12. package/dist/commands/init.d.ts +1 -0
  13. package/dist/commands/init.js +56 -41
  14. package/dist/commands/run.d.ts +0 -1
  15. package/dist/commands/run.js +288 -263
  16. package/dist/commands/scan.d.ts +21 -0
  17. package/dist/commands/scan.js +386 -0
  18. package/dist/commands/status.d.ts +4 -1
  19. package/dist/commands/status.js +165 -27
  20. package/dist/commands/swarm-dashboard.js +156 -28
  21. package/dist/commands/swarm.d.ts +1 -1
  22. package/dist/commands/swarm.js +1 -1
  23. package/dist/commands/test-claude.d.ts +2 -2
  24. package/dist/commands/test-claude.js +3 -3
  25. package/dist/deploy/index.d.ts +0 -2
  26. package/dist/deploy/index.js +0 -2
  27. package/dist/deploy/settings.d.ts +6 -5
  28. package/dist/deploy/settings.js +64 -16
  29. package/dist/deploy/skills.js +1 -2
  30. package/dist/index.js +86 -96
  31. package/dist/lib/usage-parser.d.ts +1 -1
  32. package/dist/lib/usage-parser.js +9 -6
  33. package/dist/local/index.d.ts +14 -0
  34. package/dist/local/index.js +28 -0
  35. package/dist/local/local-embeddings.d.ts +49 -0
  36. package/dist/local/local-embeddings.js +232 -0
  37. package/dist/local/offline-fallback.d.ts +44 -0
  38. package/dist/local/offline-fallback.js +159 -0
  39. package/dist/local/sqlite-store.d.ts +126 -0
  40. package/dist/local/sqlite-store.js +393 -0
  41. package/dist/local/sync-engine.d.ts +42 -0
  42. package/dist/local/sync-engine.js +223 -0
  43. package/dist/utils/platform.d.ts +5 -1
  44. package/dist/utils/platform.js +24 -4
  45. package/dist/utils/proxy-url.d.ts +21 -0
  46. package/dist/utils/proxy-url.js +34 -0
  47. package/dist/utils/state.d.ts +1 -1
  48. package/dist/utils/state.js +11 -3
  49. package/dist/utils/templates.js +1 -1
  50. package/package.json +11 -4
  51. package/templates/CLAUDE.md +49 -107
  52. package/dist/agent/daemon.d.ts +0 -130
  53. package/dist/agent/daemon.js +0 -606
  54. package/dist/agent/health-check.d.ts +0 -35
  55. package/dist/agent/health-check.js +0 -243
  56. package/dist/agent/pty-runner.d.ts +0 -53
  57. package/dist/agent/pty-runner.js +0 -190
  58. package/dist/commands/agent.d.ts +0 -50
  59. package/dist/commands/agent.js +0 -544
  60. package/dist/commands/setup-remote.d.ts +0 -20
  61. package/dist/commands/setup-remote.js +0 -582
  62. package/dist/utils/verify-remote-terminal.d.ts +0 -10
  63. package/dist/utils/verify-remote-terminal.js +0 -415
  64. package/templates/README.md +0 -378
  65. package/templates/claude-plugins/PHASE2_COMPLETION.md +0 -346
  66. package/templates/claude-plugins/PLUGIN_PROPOSALS.md +0 -1776
  67. package/templates/claude-plugins/README.md +0 -587
  68. package/templates/claude-plugins/agents/code-reviewer.json +0 -14
  69. package/templates/claude-plugins/agents/debug-detective.json +0 -15
  70. package/templates/claude-plugins/agents/git-companion.json +0 -14
  71. package/templates/claude-plugins/blog-manager/.claude-plugin/plugin.json +0 -8
  72. package/templates/claude-plugins/blog-manager/commands/blog.md +0 -691
  73. package/templates/claude-plugins/golden-loop-monitor/.claude-plugin/plugin.json +0 -8
  74. package/templates/claude-plugins/golden-loop-monitor/commands/loop-status.md +0 -434
  75. package/templates/claude-plugins/learning-tracker/.claude-plugin/plugin.json +0 -8
  76. package/templates/claude-plugins/learning-tracker/commands/my-patterns.md +0 -282
  77. package/templates/claude-plugins/memory-lens/.claude-plugin/plugin.json +0 -8
  78. package/templates/claude-plugins/memory-lens/commands/memory-search.md +0 -181
  79. package/templates/claude-plugins/pattern-coach/.claude-plugin/plugin.json +0 -8
  80. package/templates/claude-plugins/pattern-coach/commands/forge.md +0 -365
  81. package/templates/claude-plugins/project-schema-validator/.claude-plugin/plugin.json +0 -8
  82. package/templates/claude-plugins/project-schema-validator/commands/validate-schema.md +0 -582
  83. package/templates/claude-plugins-admin/AGENT_TEAM_PROPOSALS.md +0 -819
  84. package/templates/claude-plugins-admin/README.md +0 -446
  85. package/templates/claude-plugins-admin/autonomous-admin-agent/.claude-plugin/plugin.json +0 -8
  86. package/templates/claude-plugins-admin/autonomous-admin-agent/commands/agent.md +0 -595
  87. package/templates/claude-plugins-admin/backend-agent/.claude-plugin/plugin.json +0 -8
  88. package/templates/claude-plugins-admin/backend-agent/commands/backend.md +0 -798
  89. package/templates/claude-plugins-admin/deploy-guardian/.claude-plugin/plugin.json +0 -8
  90. package/templates/claude-plugins-admin/deploy-guardian/commands/deploy.md +0 -554
  91. package/templates/claude-plugins-admin/frontend-agent/.claude-plugin/plugin.json +0 -8
  92. package/templates/claude-plugins-admin/frontend-agent/commands/frontend.md +0 -881
  93. package/templates/claude-plugins-admin/mcp-server-manager/.claude-plugin/plugin.json +0 -8
  94. package/templates/claude-plugins-admin/mcp-server-manager/commands/mcp.md +0 -85
  95. package/templates/claude-plugins-admin/memory-system-monitor/.claude-plugin/plugin.json +0 -8
  96. package/templates/claude-plugins-admin/memory-system-monitor/commands/memory-health.md +0 -569
  97. package/templates/claude-plugins-admin/qa-agent/.claude-plugin/plugin.json +0 -8
  98. package/templates/claude-plugins-admin/qa-agent/commands/qa.md +0 -863
  99. package/templates/claude-plugins-admin/tech-lead-agent/.claude-plugin/plugin.json +0 -8
  100. package/templates/claude-plugins-admin/tech-lead-agent/commands/lead.md +0 -732
  101. package/templates/commands/continue.md +0 -47
  102. package/templates/cursor-rules/ekkos-memory.md +0 -127
  103. package/templates/ekkos-manifest.json +0 -223
  104. package/templates/helpers/json-parse.cjs +0 -101
  105. package/templates/hooks-node/lib/state.js +0 -187
  106. package/templates/hooks-node/stop.js +0 -416
  107. package/templates/hooks-node/user-prompt-submit.js +0 -337
  108. package/templates/plan-template.md +0 -306
  109. package/templates/rules/00-hooks-contract.mdc +0 -89
  110. package/templates/rules/30-ekkos-core.mdc +0 -188
  111. package/templates/rules/31-ekkos-messages.mdc +0 -78
  112. package/templates/shared/hooks-enabled.json +0 -22
  113. package/templates/shared/session-words.json +0 -45
  114. package/templates/skills/ekkOS_Deep_Recall/Skill.md +0 -282
  115. package/templates/skills/ekkOS_Learn/Skill.md +0 -265
  116. package/templates/skills/ekkOS_Memory_First/Skill.md +0 -206
  117. package/templates/skills/ekkOS_Plan_Assist/Skill.md +0 -302
  118. package/templates/skills/ekkOS_Preferences/Skill.md +0 -247
  119. package/templates/skills/ekkOS_Reflect/Skill.md +0 -257
  120. package/templates/skills/ekkOS_Safety/Skill.md +0 -265
  121. package/templates/skills/ekkOS_Schema/Skill.md +0 -251
  122. package/templates/skills/ekkOS_Summary/Skill.md +0 -257
  123. package/templates/spec-template.md +0 -159
  124. package/templates/windsurf-rules/ekkos-memory.md +0 -127
  125. package/templates/windsurf-skills/README.md +0 -58
  126. package/templates/windsurf-skills/ekkos-continue/SKILL.md +0 -81
  127. package/templates/windsurf-skills/ekkos-golden-loop/SKILL.md +0 -225
  128. package/templates/windsurf-skills/ekkos-insights/SKILL.md +0 -138
  129. package/templates/windsurf-skills/ekkos-recall/SKILL.md +0 -96
  130. package/templates/windsurf-skills/ekkos-safety/SKILL.md +0 -89
  131. package/templates/windsurf-skills/ekkos-vault/SKILL.md +0 -86
@@ -1,96 +0,0 @@
1
- ---
2
- name: ekkos-recall
3
- description: Deep memory retrieval across sessions and projects. Activate when the user says "yesterday", "last week", "remember when", "what did we discuss", "we worked on X before", "bring context from", or asks about past decisions, fixes, or discussions. Combines time-based recall with semantic search.
4
- allowed-tools:
5
- - mcp__ekkos-memory__ekkOS_Recall
6
- - mcp__ekkos-memory__ekkOS_Search
7
- - mcp__ekkos-memory__ekkOS_Context
8
- - mcp__ekkos-memory__ekkOS_RestoreContext
9
- ---
10
-
11
- # ekkOS Deep Recall
12
-
13
- You can recall past conversations, decisions, and context from previous sessions.
14
-
15
- ## When To Activate
16
-
17
- | Trigger | Example |
18
- |---------|---------|
19
- | Time reference | "yesterday", "last week", "last month" |
20
- | Past work | "remember when we...", "we worked on X before" |
21
- | Decision recall | "what did we decide about...", "why did we choose..." |
22
- | Context transfer | "bring context from the other project" |
23
- | Session continuity | "where did we leave off", "continue from last time" |
24
-
25
- ## Instructions
26
-
27
- ### Time-Based Recall
28
-
29
- ```
30
- ekkOS_Recall({
31
- days_ago: 1, // 1, 2, 7, 30...
32
- semantic_query: "what we discussed about auth",
33
- include_file_changes: true, // show files modified
34
- include_patterns: true, // show patterns used
35
- extract_decisions: true, // pull out decisions made
36
- group_by_sessions: true // organize by session
37
- })
38
- ```
39
-
40
- ### Semantic Recall (By Topic)
41
-
42
- ```
43
- ekkOS_Recall({
44
- semantic_query: "database migration strategy",
45
- limit: 10,
46
- include_full_content: true
47
- })
48
- ```
49
-
50
- ### Session-Based Recall
51
-
52
- ```
53
- ekkOS_Recall({
54
- session_id: "<session-id>",
55
- from_turn: 1,
56
- to_turn: 50,
57
- include_full_content: true
58
- })
59
- ```
60
-
61
- ### Context Restoration (After Compaction)
62
-
63
- When you see `<ekkos-context-preserved>` with a restoration token:
64
-
65
- ```
66
- ekkOS_RestoreContext({
67
- restoration_token: "<token from tag>"
68
- })
69
- ```
70
-
71
- ## Response Format
72
-
73
- Present recalled information clearly:
74
-
75
- ```
76
- 🧠 From [date/session]:
77
-
78
- **Topic:** [what was discussed]
79
- **Decision:** [what was decided]
80
- **Files changed:** [list]
81
- **Patterns used:** [list]
82
- **Key insight:** [the important takeaway]
83
- ```
84
-
85
- ## Integration with Golden Loop
86
-
87
- Recall is an extended SEARCH — it queries episodic memory (L2) instead of pattern memory (L4). Results should still be acknowledged and tracked like any retrieval.
88
-
89
- After recalling useful context, record the outcome:
90
- ```
91
- ekkOS_Outcome({ success: true })
92
- ```
93
-
94
- ---
95
-
96
- **Mantra**: Nothing is forgotten. Every session is searchable. Context persists.
@@ -1,89 +0,0 @@
1
- ---
2
- name: ekkos-safety
3
- description: Check for conflicts before dangerous operations. Activate before deleting files, dropping tables, deploying to production, pushing to main, running destructive commands, modifying configuration files, force-pushing, or any irreversible action. Prevents accidents by checking user directives and patterns.
4
- allowed-tools:
5
- - mcp__ekkos-memory__ekkOS_Conflict
6
- - mcp__ekkos-memory__ekkOS_Search
7
- ---
8
-
9
- # ekkOS Safety Guard
10
-
11
- Check for conflicts with user directives and patterns before destructive operations.
12
-
13
- ## When To Activate
14
-
15
- **MUST fire before:**
16
- - `rm -rf`, `rm -r`, deleting files or directories
17
- - `DROP TABLE`, `DELETE FROM`, `TRUNCATE`
18
- - `git push --force`, `git reset --hard`
19
- - Deploying to production
20
- - Modifying CI/CD pipelines
21
- - Changing environment variables
22
- - Overwriting configuration files
23
- - Killing processes
24
- - Any command that is hard to reverse
25
-
26
- ## Instructions
27
-
28
- ### Step 1: Check for Conflicts
29
-
30
- ```
31
- ekkOS_Conflict({
32
- proposed_action: "delete all migration files in /db/migrations",
33
- scope: "deployment" // optional: deployment, auth, security, database
34
- })
35
- ```
36
-
37
- ### Step 2: Review Response
38
-
39
- The conflict check returns:
40
- - **Matching directives** — user rules that may prohibit the action
41
- - **Matching patterns** — past experiences relevant to this action
42
- - **Risk level** — safe, caution, or blocked
43
-
44
- ### Step 3: Act Based on Result
45
-
46
- **If BLOCKED:** Do NOT proceed. Inform the user why.
47
-
48
- **If CAUTION:** Present the conflict to the user and ask for confirmation before proceeding.
49
-
50
- **If SAFE:** Proceed normally.
51
-
52
- ## Example
53
-
54
- ```
55
- User: "Drop the users table and recreate it"
56
-
57
- You: Let me check for conflicts first...
58
-
59
- ekkOS_Conflict({
60
- proposed_action: "DROP TABLE users and recreate",
61
- scope: "database"
62
- })
63
-
64
- Result: CAUTION — Directive found: "NEVER drop tables in production without backup"
65
-
66
- "⚠️ I found a directive: 'NEVER drop tables in production without backup.'
67
- Should I create a backup first, or is this a development database?"
68
- ```
69
-
70
- ## Integration with Golden Loop
71
-
72
- Safety checks are part of Step 1 (SEARCH) — they query the directive layer (L9) specifically. If a safety check prevents an accident, forge it:
73
-
74
- ```
75
- ekkOS_Forge({
76
- title: "Always backup before DROP TABLE",
77
- problem: "Nearly dropped production table without backup",
78
- solution: "ekkOS_Conflict caught the directive — always check first"
79
- })
80
- ```
81
-
82
- Record the outcome:
83
- ```
84
- ekkOS_Outcome({ success: true }) // Safety check prevented accident
85
- ```
86
-
87
- ---
88
-
89
- **Mantra**: Measure twice, cut once. Check before destroying.
@@ -1,86 +0,0 @@
1
- ---
2
- name: ekkos-vault
3
- description: Securely store and retrieve credentials with AES-256-GCM encryption. Activate when the user shares an API key, password, token, secret, or any sensitive credential. Also activate when you need to use a stored credential or when the user asks about their stored secrets.
4
- allowed-tools:
5
- - mcp__ekkos-memory__ekkOS_StoreSecret
6
- - mcp__ekkos-memory__ekkOS_GetSecret
7
- - mcp__ekkos-memory__ekkOS_ListSecrets
8
- - mcp__ekkos-memory__ekkOS_DeleteSecret
9
- - mcp__ekkos-memory__ekkOS_RotateSecret
10
- ---
11
-
12
- # ekkOS Secrets Vault
13
-
14
- Securely store and retrieve credentials encrypted with AES-256-GCM.
15
-
16
- ## When To Activate
17
-
18
- | Trigger | Action |
19
- |---------|--------|
20
- | User shares API key, token, password | Store it |
21
- | User asks "do you have my X key?" | Retrieve it |
22
- | Need a credential for an API call | Retrieve it |
23
- | User asks "what secrets do I have?" | List them |
24
- | User wants to update a credential | Rotate it |
25
- | User asks to remove a credential | Delete it |
26
-
27
- ## Instructions
28
-
29
- ### Store a Secret
30
-
31
- ```
32
- ekkOS_StoreSecret({
33
- service: "openai",
34
- value: "sk-...",
35
- type: "api_key",
36
- description: "OpenAI API key for embeddings"
37
- })
38
- ```
39
-
40
- **NEVER echo the secret value back to the user.** Confirm storage without revealing it.
41
-
42
- ### Retrieve a Secret
43
-
44
- ```
45
- ekkOS_GetSecret({
46
- service: "openai",
47
- masked: false // true = shows first/last 4 chars only
48
- })
49
- ```
50
-
51
- ### List Secrets (Metadata Only)
52
-
53
- ```
54
- ekkOS_ListSecrets()
55
- ```
56
-
57
- Returns service names, types, and descriptions — never values.
58
-
59
- ### Rotate a Secret
60
-
61
- ```
62
- ekkOS_RotateSecret({
63
- service: "openai",
64
- newValue: "sk-new-..."
65
- })
66
- ```
67
-
68
- ### Delete a Secret
69
-
70
- ```
71
- ekkOS_DeleteSecret({
72
- secretId: "<id from list>"
73
- })
74
- ```
75
-
76
- ## Security Rules
77
-
78
- 1. **NEVER** display raw secret values in responses unless the user explicitly asks
79
- 2. **NEVER** log secret values
80
- 3. Use `masked: true` when you just need to confirm a secret exists
81
- 4. When storing, confirm success WITHOUT echoing the value
82
- 5. Secrets are encrypted at rest with AES-256-GCM — even ekkOS cannot read them without the user's key
83
-
84
- ---
85
-
86
- **Mantra**: Secrets go in the vault. Never in the chat.