@amsterdamdatalabs/enact-extensions 0.1.1 → 0.1.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 (115) hide show
  1. package/README.md +4 -3
  2. package/dist/index.d.ts +5 -3
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +3 -2
  5. package/dist/index.js.map +1 -1
  6. package/dist/install.d.ts +82 -1
  7. package/dist/install.d.ts.map +1 -1
  8. package/dist/install.js +187 -35
  9. package/dist/install.js.map +1 -1
  10. package/dist/internal/codex.d.ts.map +1 -1
  11. package/dist/internal/codex.js +7 -1
  12. package/dist/internal/codex.js.map +1 -1
  13. package/dist/internal/platform.d.ts +8 -0
  14. package/dist/internal/platform.d.ts.map +1 -1
  15. package/dist/internal/platform.js +46 -2
  16. package/dist/internal/platform.js.map +1 -1
  17. package/dist/provision.d.ts +30 -0
  18. package/dist/provision.d.ts.map +1 -0
  19. package/dist/provision.js +202 -0
  20. package/dist/provision.js.map +1 -0
  21. package/dist/validate/index.d.ts +23 -0
  22. package/dist/validate/index.d.ts.map +1 -1
  23. package/dist/validate/index.js +80 -0
  24. package/dist/validate/index.js.map +1 -1
  25. package/extensions/enact-context/.agents/plugin.json +40 -0
  26. package/extensions/enact-context/.mcp.json +8 -0
  27. package/extensions/enact-context/README.md +25 -0
  28. package/extensions/enact-context/assets/icon.png +0 -0
  29. package/extensions/enact-context/assets/logo.png +0 -0
  30. package/extensions/enact-context/hooks/hooks.json +105 -0
  31. package/extensions/enact-context/skills/enact-context/SKILL.md +149 -0
  32. package/extensions/enact-context/skills/enact-context/scripts/install.sh +69 -0
  33. package/extensions/enact-factory/.agents/plugin.json +42 -0
  34. package/extensions/enact-factory/.mcp.json +8 -0
  35. package/extensions/enact-factory/assets/icon.png +0 -0
  36. package/extensions/enact-factory/assets/logo.png +0 -0
  37. package/extensions/enact-factory/hooks/user-prompt-submit.mjs +67 -0
  38. package/extensions/enact-factory/skills/testing-strategy/SKILL.md +167 -0
  39. package/extensions/enact-factory/skills/workitem-triage/SKILL.md +22 -0
  40. package/extensions/enact-operator/.agents/plugin.json +57 -0
  41. package/extensions/enact-operator/.app.json +3 -0
  42. package/extensions/enact-operator/.mcp.json +10 -0
  43. package/extensions/enact-operator/_taxonomy.md +86 -0
  44. package/extensions/enact-operator/agents/README.md +5 -0
  45. package/extensions/enact-operator/agents/architect.toml +25 -0
  46. package/extensions/enact-operator/agents/code-reviewer.toml +24 -0
  47. package/extensions/enact-operator/agents/critic.toml +30 -0
  48. package/extensions/enact-operator/agents/executor.toml +24 -0
  49. package/extensions/enact-operator/agents/explore.toml +23 -0
  50. package/extensions/enact-operator/agents/planner.toml +24 -0
  51. package/extensions/enact-operator/agents/verifier.toml +24 -0
  52. package/extensions/enact-operator/assets/icon.png +0 -0
  53. package/extensions/enact-operator/assets/logo.png +0 -0
  54. package/extensions/enact-operator/commands/doctor.md +39 -0
  55. package/extensions/enact-operator/commands/setup.md +51 -0
  56. package/extensions/enact-operator/hooks/hooks.json +126 -0
  57. package/extensions/enact-operator/skills/_variants.md +44 -0
  58. package/extensions/enact-operator/skills/ai-slop-cleaner/SKILL.md +50 -0
  59. package/extensions/enact-operator/skills/analyze/SKILL.md +91 -0
  60. package/extensions/enact-operator/skills/ask/SKILL.md +47 -0
  61. package/extensions/enact-operator/skills/autopilot/SKILL.md +170 -0
  62. package/extensions/enact-operator/skills/autoresearch-goal/SKILL.md +79 -0
  63. package/extensions/enact-operator/skills/cancel/SKILL.md +99 -0
  64. package/extensions/enact-operator/skills/configure-notifications/SKILL.md +77 -0
  65. package/extensions/enact-operator/skills/deep-interview/SKILL.md +80 -0
  66. package/extensions/enact-operator/skills/doctor/SKILL.md +48 -0
  67. package/extensions/enact-operator/skills/hud/SKILL.md +49 -0
  68. package/extensions/enact-operator/skills/hyperplan/SKILL.md +47 -0
  69. package/extensions/enact-operator/skills/plan/SKILL.md +78 -0
  70. package/extensions/enact-operator/skills/ralph/SKILL.md +201 -0
  71. package/extensions/enact-operator/skills/ralph/gemini.md +18 -0
  72. package/extensions/enact-operator/skills/ralplan/SKILL.md +151 -0
  73. package/extensions/enact-operator/skills/remove-deadcode/SKILL.md +45 -0
  74. package/extensions/enact-operator/skills/research/SKILL.md +74 -0
  75. package/extensions/enact-operator/skills/review/SKILL.md +58 -0
  76. package/extensions/enact-operator/skills/security-research/SKILL.md +54 -0
  77. package/extensions/enact-operator/skills/setup/SKILL.md +91 -0
  78. package/extensions/enact-operator/skills/setup/scripts/install.sh +50 -0
  79. package/extensions/enact-operator/skills/skill/SKILL.md +82 -0
  80. package/extensions/enact-operator/skills/tdd/SKILL.md +59 -0
  81. package/extensions/enact-operator/skills/team/SKILL.md +199 -0
  82. package/extensions/enact-operator/skills/trace/SKILL.md +41 -0
  83. package/extensions/enact-operator/skills/ultragoal/SKILL.md +99 -0
  84. package/extensions/enact-operator/skills/ultraqa/SKILL.md +113 -0
  85. package/extensions/enact-operator/skills/ultrawork/SKILL.md +145 -0
  86. package/extensions/enact-operator/skills/ultrawork/planner.md +28 -0
  87. package/extensions/enact-operator/skills/wiki/SKILL.md +41 -0
  88. package/extensions/enact-operator/skills/work-with-workitem/SKILL.md +51 -0
  89. package/extensions/enact-wiki/.agents/plugin.json +42 -0
  90. package/extensions/enact-wiki/.mcp.json +15 -0
  91. package/extensions/enact-wiki/README.md +44 -0
  92. package/extensions/enact-wiki/assets/icon.png +0 -0
  93. package/extensions/enact-wiki/assets/logo.png +0 -0
  94. package/extensions/enact-wiki/skills/document-parser/SKILL.md +17 -0
  95. package/extensions/enact-wiki/skills/document-parser/scripts/parse.sh +60 -0
  96. package/extensions/enact-wiki/skills/document-parser/skill.json +9 -0
  97. package/extensions/enact-wiki/skills/enact-wiki/SKILL.md +30 -0
  98. package/extensions/enact-wiki/skills/enact-wiki/references/ingest.md +62 -0
  99. package/extensions/enact-wiki/skills/enact-wiki/references/manage.md +34 -0
  100. package/extensions/enact-wiki/skills/enact-wiki/references/query.md +59 -0
  101. package/extensions/enact-wiki/skills/search-lab/SKILL.md +57 -0
  102. package/extensions/enact-wiki/skills/search-lab/scripts/analyze.ts +23 -0
  103. package/package.json +1 -1
  104. package/scripts/enact-extensions.mjs +79 -12
  105. package/scripts/lib/hooks.mjs +352 -0
  106. package/scripts/lib/ledger.mjs +4 -3
  107. package/scripts/lib/provision-mcp.mjs +12 -365
  108. package/scripts/lib/run-install.mjs +87 -5
  109. package/scripts/lib/run-prune.mjs +73 -0
  110. package/scripts/lib/run-sync.mjs +9 -1
  111. package/scripts/lib/run-uninstall.mjs +26 -2
  112. package/scripts/lib/run-validate.mjs +10 -1
  113. package/scripts/lib/serve.mjs +19 -1
  114. package/scripts/version-bump.sh +463 -0
  115. package/spec/codex.json +1 -11
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,UAAU,GAA8D;IAC5E,KAAK,EAAE,qBAAqB;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,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACzG,CAAC;IAED,MAAM,QAAQ,GAAI,OAAsC,EAAE,KAAK,CAAC;IAChE,IAAI,CAAC,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzE,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,OAAO,GAAG,IAAI,GAAG,CAAS,qBAAqB,CAAC,CAAC;IACvD,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,QAAmC,CAAC,EAAE,CAAC;QACrE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YACxB,MAAM,CAAC,IAAI,CACT,2BAA2B,KAAK,QAAQ,QAAQ,sCAAsC;gBACpF,mDAAmD,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CACzF,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAC,UAAkB;IAC1D,MAAM,MAAM,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;IAC3C,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACrC,CAAC;AACH,CAAC"}
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "enact-context",
3
+ "version": "0.1.0",
4
+ "description": "AI context compression and shell intelligence runtime for local environments.",
5
+ "license": "UNLICENSED",
6
+ "keywords": [
7
+ "enact-context",
8
+ "context",
9
+ "ai",
10
+ "compression"
11
+ ],
12
+ "targets": [
13
+ "claude",
14
+ "codex",
15
+ "cursor"
16
+ ],
17
+ "skills": "./skills/",
18
+ "mcpServers": "./.mcp.json",
19
+ "hooks": "./hooks/hooks.json",
20
+ "interface": {
21
+ "displayName": "Enact Context",
22
+ "shortDescription": "Command compression, shell interception, and MCP tools for AI-assisted coding workflows.",
23
+ "longDescription": "Install this plugin to expose enact-context MCP tools in Claude, Codex, and Cursor and keep context/session tooling discoverable through the plugin surface.",
24
+ "developerName": "enact-context",
25
+ "category": "Developer Tools",
26
+ "composerIcon": "./assets/icon.png",
27
+ "logo": "./assets/logo.png",
28
+ "capabilities": [
29
+ "context compression",
30
+ "shell history intelligence",
31
+ "token savings dashboard",
32
+ "mcp tools",
33
+ "agent diagnostics"
34
+ ]
35
+ },
36
+ "factory": {
37
+ "firstParty": true,
38
+ "operatorScope": "global"
39
+ }
40
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "mcpServers": {
3
+ "enact-context": {
4
+ "command": "enact-context",
5
+ "args": ["mcp", "."]
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,25 @@
1
+ # enact-context plugin
2
+
3
+ Canonical ENACT-native plugin bundle for `enact-context`.
4
+
5
+ This bundle is the single source of truth under `extensions/enact-context/.agents/plugin.json`.
6
+ `enact-extensions sync`/`install` derives `.claude-plugin`, `.codex-plugin`, and `.cursor-plugin`
7
+ from this file for deployment.
8
+
9
+ ## Scope
10
+
11
+ - Targets: `claude`, `codex`, `cursor` only.
12
+ - No other host-specific first-class manifest is included (no Kiro, no extra platform surfaces).
13
+
14
+ ## Files
15
+
16
+ - `.agents/plugin.json` — canonical manifest for validation, sync, and install
17
+ - `.mcp.json` — MCP server entry (`enact-context` command)
18
+ - `skills/` — shared `enact-context` skill for Codex/Claude/Cursor
19
+ - `assets/` — plugin icon and logo assets
20
+ - `skills/enact-context/scripts/install.sh` — optional install helper from the SKILL docs
21
+
22
+ ## Canonical Install Path
23
+
24
+ The canonical install entrypoint is `extensions/enact-context/.agents/plugin.json`.
25
+ Host surfaces are generated by tooling and kept derived from that canonical source.
@@ -0,0 +1,105 @@
1
+ {
2
+ "hooks": {
3
+ "SessionStart": [
4
+ {
5
+ "matcher": "startup|resume|clear",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "enact-context hook session-start",
10
+ "statusMessage": "Loading enact-context workspace memory",
11
+ "timeout": 15
12
+ }
13
+ ]
14
+ }
15
+ ],
16
+ "UserPromptSubmit": [
17
+ {
18
+ "hooks": [
19
+ {
20
+ "type": "command",
21
+ "command": "enact-context hook observe"
22
+ }
23
+ ]
24
+ }
25
+ ],
26
+ "PreToolUse": [
27
+ {
28
+ "matcher": "Bash",
29
+ "hooks": [
30
+ {
31
+ "type": "command",
32
+ "command": "enact-context hook pre-tool-use",
33
+ "statusMessage": "enact-context shell policy"
34
+ }
35
+ ]
36
+ }
37
+ ],
38
+ "PostToolUse": [
39
+ {
40
+ "hooks": [
41
+ {
42
+ "type": "command",
43
+ "command": "enact-context hook observe"
44
+ }
45
+ ]
46
+ }
47
+ ],
48
+ "Stop": [
49
+ {
50
+ "hooks": [
51
+ {
52
+ "type": "command",
53
+ "command": "enact-context hook session-end"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "hooks": [
59
+ {
60
+ "type": "command",
61
+ "command": "enact-context hook observe"
62
+ }
63
+ ]
64
+ }
65
+ ],
66
+ "PreCompact": [
67
+ {
68
+ "hooks": [
69
+ {
70
+ "type": "command",
71
+ "command": "enact-context hook session-end"
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "hooks": [
77
+ {
78
+ "type": "command",
79
+ "command": "enact-context hook observe"
80
+ }
81
+ ]
82
+ }
83
+ ],
84
+ "SubagentStart": [
85
+ {
86
+ "hooks": [
87
+ {
88
+ "type": "command",
89
+ "command": "enact-context hook subagent-start"
90
+ }
91
+ ]
92
+ }
93
+ ],
94
+ "SubagentStop": [
95
+ {
96
+ "hooks": [
97
+ {
98
+ "type": "command",
99
+ "command": "enact-context hook subagent-stop"
100
+ }
101
+ ]
102
+ }
103
+ ]
104
+ }
105
+ }
@@ -0,0 +1,149 @@
1
+ ---
2
+ name: enact-context
3
+ description: Context Runtime for AI Agents — 63 MCP tools, 10 read modes, 90+ shell patterns, tree-sitter AST for 18 languages. Compresses LLM context by up to 99%. Use when reading files, running shell commands, searching code, or exploring directories. Auto-installs if not present.
4
+ ---
5
+
6
+ # Enact Context — Context Runtime for AI Agents
7
+
8
+ Enact Context optimizes LLM context through 63 MCP tools, 90+ shell compression patterns, and tree-sitter AST parsing for 18 languages. It provides adaptive file reading, cross-session memory (CCP), task-conditioned relevance scoring, and a feedback loop for learning optimal compression.
9
+
10
+ ## Setup (run first)
11
+
12
+ Before using enact-context, verify it is installed:
13
+
14
+ ```bash
15
+ which enact-context || bash scripts/install.sh
16
+ ```
17
+
18
+ If the install script is not available locally, install manually:
19
+
20
+ ```bash
21
+ curl -fsSL https://amsterdamdatalabs.com/install.sh | sh
22
+ ```
23
+
24
+ After installation, configure the MCP server:
25
+
26
+ ```bash
27
+ enact-context init --global
28
+ enact-context doctor --fix
29
+ ```
30
+
31
+ ## When to use enact-context
32
+
33
+ Always prefer `enact-context -c <command>` over running commands directly when:
34
+ - The command produces verbose output (build logs, git diffs, dependency trees, test results)
35
+ - You are reading files and only need the structure or API surface
36
+ - You want to check token savings for the current session
37
+
38
+ ## Shell commands (use instead of raw exec)
39
+
40
+ ```bash
41
+ enact-context -c git status # Compressed git output
42
+ enact-context -c git diff # Only meaningful diff lines
43
+ enact-context -c git log --oneline -10
44
+ enact-context -c npm install # Strips progress bars, noise
45
+ enact-context -c cargo build
46
+ enact-context -c cargo test
47
+ enact-context -c docker ps
48
+ enact-context -c kubectl get pods
49
+ enact-context -c aws ec2 describe-instances
50
+ enact-context -c helm list
51
+ enact-context -c prisma migrate dev
52
+ enact-context -c curl -s <url> # JSON schema extraction
53
+ enact-context -c ls -la <dir> # Grouped directory listing
54
+ ```
55
+
56
+ Supported: git, npm, pnpm, yarn, bun, deno, cargo, docker, kubectl, helm, gh, pip, ruff, go, eslint, prettier, tsc, aws, psql, mysql, prisma, swift, zig, cmake, ansible, composer, mix, bazel, systemd, terraform, make, maven, dotnet, flutter, poetry, rubocop, playwright, curl, wget, and more.
57
+
58
+ ## File reading (compressed modes)
59
+
60
+ ```bash
61
+ enact-context read <file> # Full content with structured header
62
+ enact-context read <file> -m map # Dependency graph + exports + API (~5-15% tokens)
63
+ enact-context read <file> -m signatures # Function/class signatures only (~10-20% tokens)
64
+ enact-context read <file> -m aggressive # Syntax-stripped (~30-50% tokens)
65
+ enact-context read <file> -m entropy # Shannon entropy filtered (~20-40% tokens)
66
+ enact-context read <file> -m diff # Only changed lines since last read
67
+ ```
68
+
69
+ Use `map` mode when you need to understand what a file does without reading every line.
70
+ Use `signatures` mode when you need the API surface of a module (tree-sitter for 18 languages).
71
+ Use `full` mode only when you will edit the file.
72
+
73
+ ## AI Tool Integration
74
+
75
+ ```bash
76
+ enact-context init --global # Install shell aliases
77
+ enact-context init --agent claude # Claude Code PreToolUse hook
78
+ enact-context init --agent cursor # Cursor hooks.json
79
+ enact-context init --agent gemini # Gemini CLI BeforeTool hook
80
+ enact-context init --agent codex # Codex AGENTS.md
81
+ enact-context init --agent windsurf # .windsurfrules
82
+ enact-context init --agent cline # .clinerules
83
+ enact-context init --agent crush # Crush MCP config
84
+ enact-context init --agent copilot # VS Code / Copilot .vscode/mcp.json
85
+ ```
86
+
87
+ ## Multi-Agent & Knowledge
88
+
89
+ MCP tools:
90
+ - `ctx_knowledge(action="remember", category, key, value)` — persistent cross-session project knowledge store
91
+ - `ctx_knowledge(action="recall", query)` — search stored facts by text or category
92
+ - `ctx_knowledge(action="consolidate")` — extract session findings into permanent knowledge
93
+ - `ctx_agent(action="register", agent_type, role)` — multi-agent context sharing with scratchpad messaging
94
+ - `ctx_agent(action="post", message, tags)` — share findings/warnings between concurrent agents
95
+ - `ctx_agent(action="read")` — read messages from other agents
96
+ - `ctx_agent(action="handoff", to_agent, message)` — transfer task to another agent
97
+ - `ctx_agent(action="sync")` — multi-agent sync status (active agents, pending messages, shared contexts)
98
+ - `ctx_share(action="push", paths, to_agent, message)` — push cached file contexts to another agent
99
+ - `ctx_share(action="pull")` — pull shared contexts from other agents
100
+ - `ctx_share(action="list")` — list all shared contexts
101
+ - `ctx_share(action="clear")` — remove contexts shared by this agent
102
+
103
+ ## Additional Intelligence Tools
104
+
105
+ - `ctx_edit(path, old_string, new_string)` — search-and-replace file editing without native Read/Edit
106
+ - `ctx_overview(task)` — task-relevant project map at session start
107
+ - `ctx_preload(task)` — proactive context loader, caches task-relevant files
108
+ - `ctx_semantic_search(query)` — BM25 code search by meaning across the project
109
+ - `ctx_intent` now supports multi-intent detection and complexity classification
110
+ - Semantic cache: TF-IDF + cosine similarity for finding similar files across reads
111
+
112
+ ## Session Continuity (CCP)
113
+
114
+ ```bash
115
+ enact-context sessions list # List all CCP sessions
116
+ enact-context sessions show # Show latest session state
117
+ enact-context gain --wrapped # Weekly savings report card
118
+ enact-context gain --wrapped --period=month # Monthly savings report card
119
+ enact-context benchmark run # Real project benchmark (terminal output)
120
+ enact-context benchmark run --json # Machine-readable JSON output
121
+ enact-context benchmark report # Shareable Markdown report
122
+ ```
123
+
124
+ MCP tools for CCP:
125
+ - `ctx_session status` — show current session state (~400 tokens)
126
+ - `ctx_session load` — restore previous session (cross-chat memory)
127
+ - `ctx_session task "description"` — set current task
128
+ - `ctx_session finding "file:line — summary"` — record key finding
129
+ - `ctx_session decision "summary"` — record architectural decision
130
+ - `ctx_session save` — force persist session to disk
131
+ - `ctx_gain(action="wrapped")` — generate savings report card in chat
132
+
133
+ ## Analytics
134
+
135
+ ```bash
136
+ enact-context gain # Visual token savings dashboard
137
+ enact-context dashboard # Web dashboard at localhost:43205
138
+ enact-context session # Adoption statistics
139
+ enact-context discover # Find uncompressed commands in shell history
140
+ ```
141
+
142
+ ## Tips
143
+
144
+ - The output suffix `[enact-context: 5029→197 tok, -96%]` shows original vs compressed token count
145
+ - For large outputs, enact-context automatically truncates while preserving relevant context
146
+ - JSON responses from curl/wget are reduced to schema outlines
147
+ - Build errors are grouped by type with counts
148
+ - Test results show only failures with summary counts
149
+ - Cached re-reads cost only ~13 tokens
@@ -0,0 +1,69 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ INSTALL_DIR="${HOME}/.local/bin"
5
+
6
+ already_installed() {
7
+ command -v enact-context >/dev/null 2>&1
8
+ }
9
+
10
+ detect_platform() {
11
+ local os arch
12
+ os="$(uname -s)"
13
+ arch="$(uname -m)"
14
+
15
+ case "$os" in
16
+ Darwin) os="apple-darwin" ;;
17
+ Linux) os="unknown-linux-musl" ;;
18
+ *) echo "ERROR: unsupported OS: $os" >&2; exit 1 ;;
19
+ esac
20
+
21
+ case "$arch" in
22
+ x86_64|amd64) arch="x86_64" ;;
23
+ arm64|aarch64) arch="aarch64" ;;
24
+ *) echo "ERROR: unsupported arch: $arch" >&2; exit 1 ;;
25
+ esac
26
+
27
+ echo "${arch}-${os}"
28
+ }
29
+
30
+ install_binary() {
31
+ local platform="$1"
32
+ echo "Installing enact-context for ${platform} via the Amsterdam Data Labs installer..."
33
+ curl -fsSL "https://amsterdamdatalabs.com/install.sh" | sh
34
+ }
35
+
36
+ ensure_path() {
37
+ case ":${PATH}:" in
38
+ *":${INSTALL_DIR}:"*) ;;
39
+ *) export PATH="${INSTALL_DIR}:${PATH}"
40
+ echo "Added ${INSTALL_DIR} to PATH for this session."
41
+ echo "Add to your shell profile: export PATH=\"${INSTALL_DIR}:\$PATH\""
42
+ ;;
43
+ esac
44
+ }
45
+
46
+ setup_mcp() {
47
+ echo "Configuring enact-context MCP server..."
48
+ enact-context init --global 2>/dev/null || true
49
+ enact-context doctor --fix 2>/dev/null || true
50
+ }
51
+
52
+ main() {
53
+ if already_installed; then
54
+ local current
55
+ current="$(enact-context --version 2>/dev/null | head -1 || echo 'unknown')"
56
+ echo "enact-context already installed: ${current}"
57
+ echo "Run 'enact-context doctor' to verify configuration."
58
+ exit 0
59
+ fi
60
+
61
+ local platform
62
+ platform="$(detect_platform)"
63
+ install_binary "$platform"
64
+ ensure_path
65
+ setup_mcp
66
+ echo "enact-context installed and configured."
67
+ }
68
+
69
+ main "$@"
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "enact-factory",
3
+ "version": "0.1.0",
4
+ "description": "Enact Factory governance plugin — MCP server registration and factory-facing workflow tools.",
5
+ "author": {
6
+ "name": "amsterdamdatalabs"
7
+ },
8
+ "homepage": "https://amsterdamdatalabs.com",
9
+ "repository": "https://dev.azure.com/amsterdamdatalabs/enact/_git/enact-os",
10
+ "license": "UNLICENSED",
11
+ "keywords": [
12
+ "enact-factory",
13
+ "governance",
14
+ "workitem",
15
+ "pipeline",
16
+ "mcp"
17
+ ],
18
+ "targets": [
19
+ "claude",
20
+ "codex",
21
+ "cursor"
22
+ ],
23
+ "mcpServers": "./.mcp.json",
24
+ "interface": {
25
+ "displayName": "Enact Factory",
26
+ "shortDescription": "Factory MCP server and governance skills for pipeline and WorkItem management.",
27
+ "longDescription": "Registers the enact-factory MCP server and exposes governance-facing workflow skills for pipeline orchestration and WorkItem tracking.",
28
+ "developerName": "amsterdamdatalabs",
29
+ "category": "Developer Tools",
30
+ "composerIcon": "./assets/icon.png",
31
+ "logo": "./assets/logo.png",
32
+ "capabilities": [
33
+ "mcp tools",
34
+ "workitem management",
35
+ "pipeline governance"
36
+ ]
37
+ },
38
+ "factory": {
39
+ "firstParty": true,
40
+ "operatorScope": "global"
41
+ }
42
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "mcpServers": {
3
+ "enact-factory": {
4
+ "command": "enact-factory",
5
+ "args": ["mcp", "."]
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,67 @@
1
+ #!/usr/bin/env node
2
+ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
3
+ import { dirname, isAbsolute, join, resolve } from "node:path";
4
+
5
+ function readStdin() {
6
+ try {
7
+ return JSON.parse(readFileSync(0, "utf8") || "{}");
8
+ } catch {
9
+ return {};
10
+ }
11
+ }
12
+
13
+ function findWorkspaceRoot() {
14
+ let current = resolve(process.cwd());
15
+ while (true) {
16
+ if (existsSync(join(current, "config.toml"))) {
17
+ return current;
18
+ }
19
+ const parent = dirname(current);
20
+ if (parent === current) {
21
+ throw new Error(`Workspace config.toml not found while walking up from ${process.cwd()}`);
22
+ }
23
+ current = parent;
24
+ }
25
+ }
26
+
27
+ function expandPath(raw, sourceDir) {
28
+ const trimmed = raw.trim();
29
+ if (trimmed === "~") return process.env.HOME ?? trimmed;
30
+ if (trimmed.startsWith("~/")) return join(process.env.HOME ?? "", trimmed.slice(2));
31
+ if (isAbsolute(trimmed)) return trimmed;
32
+ return resolve(sourceDir, trimmed);
33
+ }
34
+
35
+ function readFactoryStorage(root) {
36
+ const configPath = join(root, "config.toml");
37
+ const raw = readFileSync(configPath, "utf8");
38
+ const match = raw.match(/^\[factory\][\s\S]*?^\s*storage\s*=\s*"([^"]+)"/m);
39
+ if (!match?.[1]) {
40
+ throw new Error(`Missing [factory].storage in ${configPath}`);
41
+ }
42
+ return expandPath(match[1], root);
43
+ }
44
+
45
+ function writeJson(path, data) {
46
+ mkdirSync(dirname(path), { recursive: true });
47
+ writeFileSync(path, `${JSON.stringify(data, null, 2)}\n`, "utf8");
48
+ }
49
+
50
+ const payload = readStdin();
51
+ const prompt = payload?.prompt ?? payload?.user_prompt ?? payload?.input ?? payload?.message ?? "";
52
+ if (typeof prompt !== "string") {
53
+ process.exit(0);
54
+ }
55
+
56
+ const normalized = prompt.toLowerCase();
57
+ if (!normalized.includes("$workitem-triage") && !normalized.includes("$enact-factory:workitem-triage")) {
58
+ process.exit(0);
59
+ }
60
+
61
+ const root = findWorkspaceRoot();
62
+ const factoryStorage = readFactoryStorage(root);
63
+ writeJson(join(factoryStorage, "state", "factory-active-skill.json"), {
64
+ activeSkill: "workitem-triage",
65
+ activatedAt: new Date().toISOString(),
66
+ activatedBy: "factory-hook-user-prompt-submit",
67
+ });