@zenera/meta 0.0.0-stage → 1.3.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.
- package/LICENSE +21 -0
- package/README.md +51 -2
- package/dist/command.d.ts +5 -0
- package/dist/command.js +1086 -0
- package/dist/dataset/anchors.d.ts +41 -0
- package/dist/dataset/anchors.js +239 -0
- package/dist/dataset/changes.d.ts +36 -0
- package/dist/dataset/changes.js +319 -0
- package/dist/dataset/command.d.ts +17 -0
- package/dist/dataset/command.js +1011 -0
- package/dist/dataset/drift.d.ts +33 -0
- package/dist/dataset/drift.js +71 -0
- package/dist/dataset/export.d.ts +26 -0
- package/dist/dataset/export.js +51 -0
- package/dist/dataset/index.d.ts +2 -0
- package/dist/dataset/index.js +2 -0
- package/dist/dataset/sample.d.ts +50 -0
- package/dist/dataset/sample.js +197 -0
- package/dist/dataset/schema.d.ts +33 -0
- package/dist/dataset/schema.js +216 -0
- package/dist/dataset/store.d.ts +35 -0
- package/dist/dataset/store.js +177 -0
- package/dist/dataset/types.d.ts +127 -0
- package/dist/dataset/types.js +39 -0
- package/dist/finetune/analyze-brief.d.ts +26 -0
- package/dist/finetune/analyze-brief.js +131 -0
- package/dist/finetune/apply-brief.d.ts +23 -0
- package/dist/finetune/apply-brief.js +247 -0
- package/dist/finetune/brief.d.ts +45 -0
- package/dist/finetune/brief.js +158 -0
- package/dist/finetune/children.d.ts +8 -0
- package/dist/finetune/children.js +76 -0
- package/dist/finetune/command.d.ts +30 -0
- package/dist/finetune/command.js +520 -0
- package/dist/finetune/cost.d.ts +46 -0
- package/dist/finetune/cost.js +105 -0
- package/dist/finetune/failure.d.ts +15 -0
- package/dist/finetune/failure.js +26 -0
- package/dist/finetune/feedback.d.ts +57 -0
- package/dist/finetune/feedback.js +104 -0
- package/dist/finetune/improvements.d.ts +98 -0
- package/dist/finetune/improvements.js +501 -0
- package/dist/finetune/index.d.ts +2 -0
- package/dist/finetune/index.js +2 -0
- package/dist/finetune/journal.d.ts +35 -0
- package/dist/finetune/journal.js +135 -0
- package/dist/finetune/live.d.ts +84 -0
- package/dist/finetune/live.js +272 -0
- package/dist/finetune/loop.d.ts +3 -0
- package/dist/finetune/loop.js +163 -0
- package/dist/finetune/memories.d.ts +47 -0
- package/dist/finetune/memories.js +171 -0
- package/dist/finetune/next-case.d.ts +18 -0
- package/dist/finetune/next-case.js +47 -0
- package/dist/finetune/recheck.d.ts +58 -0
- package/dist/finetune/recheck.js +311 -0
- package/dist/finetune/report.d.ts +40 -0
- package/dist/finetune/report.js +1397 -0
- package/dist/finetune/retry.d.ts +24 -0
- package/dist/finetune/retry.js +96 -0
- package/dist/finetune/system.d.ts +27 -0
- package/dist/finetune/system.js +132 -0
- package/dist/finetune/train.d.ts +43 -0
- package/dist/finetune/train.js +425 -0
- package/dist/finetune/tui.d.ts +16 -0
- package/dist/finetune/tui.js +316 -0
- package/dist/finetune/tuning.d.ts +193 -0
- package/dist/finetune/tuning.js +308 -0
- package/dist/finetune/usage.d.ts +66 -0
- package/dist/finetune/usage.js +260 -0
- package/dist/finetune/view.d.ts +9 -0
- package/dist/finetune/view.js +27 -0
- package/dist/host.d.ts +2 -0
- package/dist/host.js +14 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +15 -0
- package/dist/launch.d.ts +90 -0
- package/dist/launch.js +310 -0
- package/dist/model.d.ts +61 -0
- package/dist/model.js +146 -0
- package/dist/prompts.d.ts +23 -0
- package/dist/prompts.js +84 -0
- package/dist/relay.d.ts +20 -0
- package/dist/relay.js +123 -0
- package/dist/sink.d.ts +61 -0
- package/dist/sink.js +198 -0
- package/dist/tokens.d.ts +52 -0
- package/dist/tokens.js +226 -0
- package/dist/wire.d.ts +51 -0
- package/dist/wire.js +159 -0
- package/package.json +54 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Andrey Ryabov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,52 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @zenera/meta
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The meta-agent for [`zen`](../cli): a coding agent pointed _at_ a zen project,
|
|
4
|
+
spending the same keys. `zen run` runs the agents a project describes;
|
|
5
|
+
`zen meta` runs an agent over the project to change it - sync it with its
|
|
6
|
+
specification, review it, build its dataset and fine-tune its prompts.
|
|
7
|
+
|
|
8
|
+
Today it drives [GitHub Copilot CLI](https://github.com/github/copilot-cli),
|
|
9
|
+
always on your own provider keys (`zen key add`), never on a Copilot
|
|
10
|
+
subscription.
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
Requires **Node.js 24 or newer** and `@zenera/cli`:
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npm install --global @zenera/cli @zenera/meta
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
`zen` loads it by name, so there is no second binary: `zen meta …` works once it
|
|
21
|
+
is installed, and says what to install when it is not. Copilot CLI is used from
|
|
22
|
+
`PATH` when it is there (`npm i -g @github/copilot`), and fetched with `npx`
|
|
23
|
+
otherwise. `zen version` shows which.
|
|
24
|
+
|
|
25
|
+
## Commands
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
zen meta run [project] "<question>" ask it something
|
|
29
|
+
zen meta run [project] /<name> [words] run .github/skills/<name>/SKILL.md
|
|
30
|
+
zen meta run [project] pick one of those commands
|
|
31
|
+
zen meta prompts [project] list those commands
|
|
32
|
+
zen meta resume [project] [session] carry on a session that stopped
|
|
33
|
+
zen meta model [ref] show or set the model it uses
|
|
34
|
+
zen meta dataset <verb> the cases a project is evaluated on
|
|
35
|
+
zen meta finetune <verb> tune the project on those cases
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
`zen meta --help`, `zen meta run --help`, `zen meta dataset --help` and
|
|
39
|
+
`zen meta finetune --help` have the details. The fine-tuning loop is described
|
|
40
|
+
in [docs/finetuning.md](../../docs/finetuning.md).
|
|
41
|
+
|
|
42
|
+
## Design
|
|
43
|
+
|
|
44
|
+
It reaches `zen` only through [src/host.ts](src/host.ts), which imports
|
|
45
|
+
`@zenera/cli/lib` and nothing else; [test/meta-boundary.test.ts](test/meta-boundary.test.ts)
|
|
46
|
+
holds that line. The CLI keeps what `zen init` and `zen open` also need - the
|
|
47
|
+
`.github/` editor tree and its templates, and the usage ledger. See §7.6 of the
|
|
48
|
+
[CLI design notes](../cli/DESIGN.md).
|
|
49
|
+
|
|
50
|
+
## License
|
|
51
|
+
|
|
52
|
+
MIT
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Candidate, type Command } from './host.ts';
|
|
2
|
+
export declare const command: Command;
|
|
3
|
+
/** `args` is what came after `meta`, without the word being completed. */
|
|
4
|
+
export declare function completeMeta(args: readonly string[], cur: string, cwd: string): Promise<Candidate[]>;
|
|
5
|
+
//# sourceMappingURL=command.d.ts.map
|