@omacode/micromanager 0.0.0-stage → 1.0.0

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 (146) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +30 -2
  3. package/THIRD_PARTY.md +100 -0
  4. package/decider/.python-version +1 -0
  5. package/decider/README.md +35 -0
  6. package/decider/decider/__init__.py +1 -0
  7. package/decider/decider/server.py +327 -0
  8. package/decider/pyproject.toml +34 -0
  9. package/decider/uv.lock +1255 -0
  10. package/dist/agenda.js +51 -0
  11. package/dist/agents.js +58 -0
  12. package/dist/artifact/handoff.js +281 -0
  13. package/dist/ask.js +200 -0
  14. package/dist/backends.js +219 -0
  15. package/dist/backlog.js +414 -0
  16. package/dist/bench.js +427 -0
  17. package/dist/board.js +1 -0
  18. package/dist/brief.js +202 -0
  19. package/dist/browser.js +679 -0
  20. package/dist/budget.js +61 -0
  21. package/dist/catalog.js +187 -0
  22. package/dist/checkchange.js +145 -0
  23. package/dist/checkpoint.js +94 -0
  24. package/dist/cli.js +764 -0
  25. package/dist/comfy-gate.js +258 -0
  26. package/dist/compact.js +142 -0
  27. package/dist/config.js +344 -0
  28. package/dist/context/capture.js +1 -0
  29. package/dist/context/digest.js +1 -0
  30. package/dist/context/embed.js +1 -0
  31. package/dist/context/index.js +2 -0
  32. package/dist/context/ledger.js +1 -0
  33. package/dist/context/manager.js +1 -0
  34. package/dist/context/memory.js +1 -0
  35. package/dist/context/policy.js +1 -0
  36. package/dist/context/prices.js +1 -0
  37. package/dist/context/recall.js +1 -0
  38. package/dist/context/rules.js +1 -0
  39. package/dist/context/search.js +1 -0
  40. package/dist/context/status.js +1 -0
  41. package/dist/context/store.js +1 -0
  42. package/dist/context/summary.js +1 -0
  43. package/dist/context/tokens.js +1 -0
  44. package/dist/context/tools.js +1 -0
  45. package/dist/continuation.js +184 -0
  46. package/dist/contract.js +294 -0
  47. package/dist/contractround.js +178 -0
  48. package/dist/control.js +1 -0
  49. package/dist/creative-tools.js +237 -0
  50. package/dist/dataset.js +175 -0
  51. package/dist/decide.js +676 -0
  52. package/dist/decider.js +171 -0
  53. package/dist/design-shell.js +448 -0
  54. package/dist/design.js +1410 -0
  55. package/dist/desktop.js +44 -0
  56. package/dist/egress.js +156 -0
  57. package/dist/eval.js +60 -0
  58. package/dist/evolver.js +302 -0
  59. package/dist/features.js +193 -0
  60. package/dist/followups.js +32 -0
  61. package/dist/forms.js +195 -0
  62. package/dist/gate.js +108 -0
  63. package/dist/gatebox.js +46 -0
  64. package/dist/grants.js +189 -0
  65. package/dist/graph.js +65 -0
  66. package/dist/guard/index.js +1 -0
  67. package/dist/guard/wire.js +1 -0
  68. package/dist/helpers.js +85 -0
  69. package/dist/hooks.js +158 -0
  70. package/dist/image-models.js +117 -0
  71. package/dist/integration.js +3 -0
  72. package/dist/journal.js +1 -0
  73. package/dist/look.js +363 -0
  74. package/dist/memory.js +1 -0
  75. package/dist/mode.js +97 -0
  76. package/dist/native.js +3348 -0
  77. package/dist/nogit.js +259 -0
  78. package/dist/outcomes.js +148 -0
  79. package/dist/permission.js +35 -0
  80. package/dist/pick.js +89 -0
  81. package/dist/pipelines.js +262 -0
  82. package/dist/plan.js +641 -0
  83. package/dist/plandoc.js +211 -0
  84. package/dist/plugin.js +4736 -0
  85. package/dist/policy.js +58 -0
  86. package/dist/pools.js +1 -0
  87. package/dist/preview.js +274 -0
  88. package/dist/profile.js +165 -0
  89. package/dist/progress.js +1 -0
  90. package/dist/promote.js +313 -0
  91. package/dist/redact.js +1 -0
  92. package/dist/registry.js +179 -0
  93. package/dist/riskscore.js +126 -0
  94. package/dist/roles.js +1 -0
  95. package/dist/routing.js +1 -0
  96. package/dist/runner.js +1892 -0
  97. package/dist/sandbox.js +3 -0
  98. package/dist/sandboxgate.js +90 -0
  99. package/dist/scheduler.js +170 -0
  100. package/dist/services-main.js +131 -0
  101. package/dist/services.js +265 -0
  102. package/dist/session.js +241 -0
  103. package/dist/setup.js +423 -0
  104. package/dist/shell/decide.js +1 -0
  105. package/dist/shell/index.js +2 -0
  106. package/dist/shell/sandbox.js +1 -0
  107. package/dist/shell/wire.js +1 -0
  108. package/dist/skills.js +103 -0
  109. package/dist/state.js +1 -0
  110. package/dist/store.js +1 -0
  111. package/dist/switcher.js +1 -0
  112. package/dist/synth.js +418 -0
  113. package/dist/tools.js +477 -0
  114. package/dist/trials.js +223 -0
  115. package/dist/usage.js +1 -0
  116. package/dist/wait.js +167 -0
  117. package/dist/watchdog.js +476 -0
  118. package/dist/web-guidance.js +43 -0
  119. package/dist/which.js +20 -0
  120. package/dist/worktree/git.js +545 -0
  121. package/dist/writeguard.js +311 -0
  122. package/evolver/mm_evolve/__init__.py +1 -0
  123. package/evolver/mm_evolve/entry.py +3 -0
  124. package/evolver/mm_evolve/evaluator.py +119 -0
  125. package/evolver/mm_evolve/llm.py +76 -0
  126. package/evolver/mm_evolve/run.py +89 -0
  127. package/evolver/mm_evolve/spec.py +62 -0
  128. package/evolver/pyproject.toml +21 -0
  129. package/evolver/uv.lock +772 -0
  130. package/package.json +74 -4
  131. package/skills/THIRD_PARTY.md +58 -0
  132. package/skills/code-review/SKILL.md +46 -0
  133. package/skills/deck/SKILL.md +98 -0
  134. package/skills/deliberate/SKILL.md +39 -0
  135. package/skills/design/SKILL.md +150 -0
  136. package/skills/diagnosing-bugs/SKILL.md +75 -0
  137. package/skills/image/SKILL.md +66 -0
  138. package/skills/orchestrator/SKILL.md +107 -0
  139. package/skills/receiving-code-review/SKILL.md +36 -0
  140. package/skills/research/SKILL.md +18 -0
  141. package/skills/tdd/SKILL.md +56 -0
  142. package/skills/tdd/mocking.md +59 -0
  143. package/skills/tdd/tests.md +77 -0
  144. package/skills/verification-before-completion/SKILL.md +50 -0
  145. package/skills/video/SKILL.md +97 -0
  146. package/skills/web/SKILL.md +60 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,31 @@
1
- # Temporary Holding Version
1
+ # @omacode/micromanager
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ An OpenCode plugin that turns one chat into a job: it plans with you, splits the work into tasks, runs each task in
4
+ its own worktree with a role-scoped worker, reviews the result and merges what passes.
5
+
6
+ ```bash
7
+ opencode plugin add @omacode/full # orchestrator + guard + sandbox + context + the TUI
8
+ opencode plugin add @omacode/micromanager # the orchestrator alone
9
+ npx -p @omacode/micromanager omacode doctor # the command line: doctor, preflight, services, tools, uninstall
10
+ ```
11
+
12
+ The orchestrator delegates; it never edits files or runs commands itself. Every worker runs under a role
13
+ (`explorer`, `coder`, `tester`, `designer`, `writer`, `debugger`, `reviewer`, `oracle`), asks the permission layer for
14
+ what it needs, and reports back against acceptance points. A watchdog catches loops, a checkpoint hands stuck tasks
15
+ back, and a merge train waits for the checks.
16
+
17
+ ## What it needs
18
+
19
+ - OpenCode v2 (tested with 2.2.5) and Node.js 22.18 or later. The package ships JavaScript built from the sources.
20
+ - On Linux, the sandbox uses `bubblewrap`, `socat` and `ripgrep`; without them the plugin still runs, unwrapped.
21
+ - The decision client is configured under `decider` in `micromanager.jsonc`: `{ "mode": "local" }` (the default) keeps
22
+ every decision on this machine and needs no key; `{ "mode": "cloud" }` may send one to the cloud client, after a
23
+ redaction and a per-call preview, once a session has opted in. The guards (injection, sensitive) stay local
24
+ unless that session's user lets them go, and a payload carrying the `sensitive` flag is never sent.
25
+
26
+ Configuration, the job flow, the roles and the design notes live in the repository:
27
+ <https://github.com/RentschlerTobias/Omacode#readme>.
28
+
29
+ ## License
30
+
31
+ Apache-2.0. See `LICENSE` in the package.
package/THIRD_PARTY.md ADDED
@@ -0,0 +1,100 @@
1
+ # Third-party software
2
+
3
+ What omacode installs, downloads or relies on, under which licence, and what that means for what you make with it.
4
+ Generated by `node scripts/third-party.mjs` from `licenses/components.json`; the machine-readable form is
5
+ `licenses/third-party.json`. Image models you add yourself are not listed here: the model registry
6
+ (`npm run models -- status`) holds their licences, and the plugin checks them before every ComfyUI run.
7
+
8
+ **Installed by:** `minimal`, `coding`, `creator`, `full` are the install.sh profiles; `downloaded` is fetched on first
9
+ use by something installed; `you` is needed but not installed by omacode; `planned` is not installed yet.
10
+ **Telemetry:** what a tool reports to its maker on its own. omacode sets DO_NOT_TRACK=1, HYPERFRAMES_NO_TELEMETRY=1 and
11
+ DISABLE_TELEMETRY=1 for everything it starts and for every agent shell (`packages/core/src/telemetry.ts`).
12
+
13
+ ## Programs and models
14
+
15
+ | Name | Version | Licence | Installed by | Where | Commercial use of what you make | When you pass it on | Telemetry |
16
+ |---|---|---|---|---|---|---|---|
17
+ | omacode | 1.0.0 | `Apache-2.0` | minimal | global | yes | keep LICENSE when redistributing | none |
18
+ | OpenCode | | `MIT` | you | global | yes | keep the copyright notice | none found in 2.2.5 (an embedded component honours DO_NOT_TRACK, which omacode sets) |
19
+ | uv | | `MIT OR Apache-2.0` | you | global | n/a | keep the copyright notice | not checked |
20
+ | bubblewrap | | `LGPL-2.1-or-later` | you | global | n/a | none for use; LGPL terms when redistributing it | none |
21
+ | llama.cpp (llama-server)<br><sub>taken from PATH (or LLAMA_SERVER) for the embedding service; omacode does not install it</sub> | | `MIT` | you | global | n/a | keep the copyright notice | not checked |
22
+ | GLiNER2.5-multi-Decide<br><sub>the decider's base model, downloaded on its first start when no tuned model ships</sub> | | `Apache-2.0` | coding | global | n/a | keep the licence notice | none (model weights) |
23
+ | omacode guard model (tuned)<br><sub>to be published on Hugging Face as T1ddaeus/omacode-guard; until then local only</sub> | | `Apache-2.0` | coding | global | n/a | fine-tune of hivetrace/gliner-guard-uniencoder (Apache-2.0), which is built on jhu-clsp/mmBERT-small (MIT); keep both notices | none (model weights) |
24
+ | gliner-guard-uniencoder<br><sub>the base of the tuned guard model; not installed on its own</sub> | | `Apache-2.0` | planned | global | n/a | keep the licence notice; built on jhu-clsp/mmBERT-small (MIT) | none (model weights) |
25
+ | Qwen3-Embedding (0.6B, 4B, 8B GGUF)<br><sub>downloaded on the embedding service's first start</sub> | | `Apache-2.0` | coding | global | n/a | keep the licence notice | none (model weights) |
26
+ | HyperFrames | 0.9.54 | `Apache-2.0` | creator | global | yes | keep the licence notice | usage events to PostHog; off with HYPERFRAMES_NO_TELEMETRY or DO_NOT_TRACK, which omacode sets on every run and agent shell |
27
+ | chrome-headless-shell (Chrome for Testing)<br><sub>HyperFrames downloads it on first use</sub> | | `BSD-3-Clause AND LicenseRef-Chromium-third-party` | downloaded | global | yes | keep the Chromium notices | not checked |
28
+ | Manim (Community) | 0.22.1 | `MIT` | full | global | yes | keep the copyright notice | not checked |
29
+ | ComfyUI<br><sub>a separate program omacode talks to over HTTP; LICENSE is GPL v3 with no 'or later' grant found</sub> | 0.44.2 | `GPL-3.0-only` | creator | global | yes for ComfyUI itself; the image model's licence decides (the model registry checks it before every run) | GPL terms when you redistribute ComfyUI; none for images | not checked |
30
+ | PyTorch (in ComfyUI's environment) | | `Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND MIT` | creator | global | yes | keep the notices | not checked |
31
+ | comfy-cli<br><sub>installs and manages ComfyUI; a separate program</sub> | 1.25.0 | `GPL-3.0-only` | creator | global | yes | GPL terms when redistributing it | usage tracking; omacode turns it off at install (comfy tracking disable) |
32
+ | comfy-mcp<br><sub>a separate program OpenCode starts as an MCP server; used unmodified</sub> | 0.10.0 | `AGPL-3.0-or-later OR LicenseRef-Comfy-Commercial` | creator | global | yes | AGPL terms when you modify it and offer it to others over a network | not checked |
33
+ | Modern Web Guidance (modern-web-guidance)<br><sub>Google Chrome's guides and their offline search, taken from the npm tarball at its pin (sha512-checked); the skill is adapted to run the local copy, and its installer and Chrome-extensions skill are not used</sub> | 1.0.0 | `Apache-2.0` | creator | global | yes | keep LICENSE and THIRD_PARTY_NOTICES (both installed beside the guides) | usage events to Google Clearcut on install, update, uninstall, list and legacy-scan; off with DISABLE_TELEMETRY, which omacode sets; search and retrieve report nothing |
34
+
35
+ ## npm packages the plugin runs with
36
+
37
+ | Package | Version | Licence |
38
+ |---|---|---|
39
+ | @anthropic-ai/sandbox-runtime | 0.0.81 | `Apache-2.0` |
40
+ | @pondwader/socks5-server | 1.0.10 | `MIT` |
41
+ | axe-core | 4.14.0 | `MPL-2.0` |
42
+ | commander | 12.1.0 | `MIT` |
43
+ | node-forge | 1.4.0 | `(BSD-3-Clause OR GPL-2.0)` |
44
+ | playwright-core | 1.64.1 | `Apache-2.0` |
45
+ | zod | 3.25.76 | `MIT` |
46
+
47
+ ## The decider's Python environment (omacode-services)
48
+
49
+ Pinned by `decider/uv.lock`; read from an installed environment.
50
+
51
+ | Package | Version | Licence |
52
+ |---|---|---|
53
+ | accelerate | 1.15.0 | `Apache` |
54
+ | annotated-doc | 0.0.7 | `MIT` |
55
+ | annotated-types | 0.8.0 | `MIT` |
56
+ | anyio | 4.16.0 | `MIT` |
57
+ | certifi | 2026.7.22 | `MPL-2.0` |
58
+ | charset-normalizer | 3.5.2 | `MIT` |
59
+ | click | 8.5.1 | `BSD-3-Clause` |
60
+ | filelock | 4.0.10 | `MIT` |
61
+ | fsspec | 2026.9.0 | `BSD-3-Clause` |
62
+ | gliner2 | 2.1.0 | `Apache-2.0` |
63
+ | h11 | 0.16.0 | `MIT` |
64
+ | hf-xet | 1.6.0 | `Apache-2.0` |
65
+ | httpcore2 | 2.16.2 | `BSD-3-Clause` |
66
+ | httpx2 | 2.16.2 | `BSD-3-Clause` |
67
+ | huggingface_hub | 2.4.0 | `Apache-2.0` |
68
+ | idna | 3.20 | `BSD-3-Clause` |
69
+ | Jinja2 | 3.1.6 | `BSD License` |
70
+ | markdown-it-py | 4.3.0 | `MIT License` |
71
+ | MarkupSafe | 3.0.4 | `BSD-3-Clause` |
72
+ | mdurl | 0.1.2 | `MIT License` |
73
+ | mpmath | 1.3.0 | `BSD` |
74
+ | networkx | 3.7 | `BSD-3-Clause` |
75
+ | numpy | 2.5.3 | `BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0` |
76
+ | packaging | 26.3 | `Apache-2.0 OR BSD-2-Clause` |
77
+ | peft | 0.21.2 | `Apache` |
78
+ | protobuf | 7.36.2 | `3-Clause BSD License` |
79
+ | psutil | 7.2.2 | `BSD-3-Clause` |
80
+ | pydantic | 2.13.5 | `MIT` |
81
+ | pydantic_core | 2.46.5 | `MIT` |
82
+ | Pygments | 2.21.0 | `BSD-2-Clause` |
83
+ | PyYAML | 6.0.3 | `MIT` |
84
+ | regex | 2026.9.29 | `Apache-2.0 AND CNRI-Python` |
85
+ | requests | 2.34.2 | `Apache-2.0` |
86
+ | rich | 15.0.0 | `MIT` |
87
+ | safetensors | 0.8.0 | `Apache Software License` |
88
+ | sentencepiece | 0.2.2 | `Apache-2.0` |
89
+ | setuptools | 84.0.0 | `MIT` |
90
+ | shellingham | 1.5.4 | `ISC License` |
91
+ | sympy | 1.14.0 | `BSD` |
92
+ | tokenizers | 0.23.3 | `Apache Software License` |
93
+ | torch | 2.14.1+cpu | `Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND MIT` |
94
+ | tqdm | 4.70.1 | `MPL-2.0 AND MIT` |
95
+ | transformers | 5.22.0 | `Apache 2.0 License` |
96
+ | truststore | 0.10.5 | `MIT` |
97
+ | typer | 0.29.2 | `MIT` |
98
+ | typing_extensions | 4.16.0 | `PSF-2.0` |
99
+ | typing-inspection | 0.4.4 | `MIT` |
100
+ | urllib3 | 2.8.0 | `MIT` |
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,35 @@
1
+ # decider
2
+
3
+ The local decider for micromanager: GLiNER2 on the CPU behind the `/v1/systemone` wire format
4
+ (`POST /v1/systemone {model, state, questions}`), so the plugin talks to it with the same client as to the cloud
5
+ decision service. It answers choice, noul and score questions; see `decider/server.py` for the mapping. The 4060
6
+ stays free for llama-swap and the NPU for Whisper.
7
+
8
+ ```bash
9
+ uv run decider --port 8781 --model fastino/GLiNER2.5-multi-Decide # or a fine-tuned checkpoint directory
10
+ curl -s localhost:8781/health
11
+ python3 -m unittest discover -s tests -t . # tests need no torch
12
+ ```
13
+
14
+ `POST /v1/entities {texts, labels, threshold}` returns the spans of each label in each text, for the names and
15
+ addresses `src/redact.ts` swaps for placeholders. The decision checkpoint is trained to classify and finds few of them
16
+ (2026-10-27: no name in a German invoice line at 0.5); `--entity-model <checkpoint>` serves the endpoint from an
17
+ extraction checkpoint instead, loaded on its first request.
18
+
19
+ The zero-shot model is only a starting point: in Phase A it scored about 0.5 on every guard. Guards need a
20
+ fine-tune on our own labels (`npm run export-dataset -- --target gliner` in the repo root) before the plugin lets
21
+ them decide anything; until then a guard "yes" only asks the user.
22
+
23
+ ## Training data
24
+
25
+ The guards' and entities' training sets are not in the repository: they are made on demand into `decider/data/`
26
+ (ignored by git) and stay on the machine that trains.
27
+
28
+ ```bash
29
+ node packages/micromanager/src/cli.ts synth-guards --public --rows # decider/data/guards.jsonl (+ .rows.jsonl)
30
+ node packages/micromanager/src/cli.ts synth-entities # decider/data/entities.jsonl
31
+ ```
32
+
33
+ Only synthetic cases (written by a model, see the command's help) and public datasets (deepset/prompt-injections,
34
+ Apache-2.0) go in, never the user's journal. The credential cases look like real keys on purpose, so the guard learns
35
+ them; they are fake, but secret scanners flag them, which is one more reason they are not committed.
@@ -0,0 +1 @@
1
+ """Local GLiNER2 decision server for micromanager."""