@nodeint/migent 0.1.2 → 0.1.3
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/README.md +3 -17
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +2 -2
- package/package.json +4 -8
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ ones your configuration names.
|
|
|
69
69
|
|
|
70
70
|
## Quickstart
|
|
71
71
|
|
|
72
|
-
Node.js 22+ on macOS or
|
|
72
|
+
Node.js 22+ on macOS, Linux, or Windows, and authenticated provider CLIs named by your
|
|
73
73
|
configuration.
|
|
74
74
|
|
|
75
75
|
### Install
|
|
@@ -185,22 +185,8 @@ pnpm test
|
|
|
185
185
|
pnpm migent --help # run the local build
|
|
186
186
|
```
|
|
187
187
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
All four packages share one version. Bump it, commit, and push a matching tag:
|
|
191
|
-
|
|
192
|
-
```bash
|
|
193
|
-
pnpm -r exec npm pkg set version=0.2.0
|
|
194
|
-
pnpm install
|
|
195
|
-
git commit -am "Release 0.2.0"
|
|
196
|
-
git tag v0.2.0
|
|
197
|
-
git push origin main v0.2.0
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
The tag runs `.github/workflows/release.yml`, which builds, tests, packs, and
|
|
201
|
-
stages each package through npm trusted publishing. Nothing goes live until a
|
|
202
|
-
maintainer approves the staged versions on npmjs.com (Staged Packages tab) or
|
|
203
|
-
with `npm stage approve`, kernel first and `@nodeint/migent` last.
|
|
188
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for testing rules, platform notes, and
|
|
189
|
+
the release process.
|
|
204
190
|
|
|
205
191
|
## License
|
|
206
192
|
|
package/dist/provider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModelCatalog } from "@nodeint/migent-adapters";
|
|
2
|
-
import type
|
|
2
|
+
import { type AgentAdapter, type ProviderOption } from "@nodeint/migent-kernel";
|
|
3
3
|
export interface CatalogAdapter extends AgentAdapter {
|
|
4
4
|
modelCatalogCommand(): string[];
|
|
5
5
|
parseModelCatalog(stdout: string): ModelCatalog;
|
package/dist/provider.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { spawnSync } from "node:child_process";
|
|
2
1
|
import { ModelCatalog, defaultAdapters } from "@nodeint/migent-adapters";
|
|
2
|
+
import { spawnProviderSync } from "@nodeint/migent-kernel";
|
|
3
3
|
export class ProviderCommandFailed extends Error {
|
|
4
4
|
}
|
|
5
5
|
export function adapterMap() {
|
|
@@ -124,7 +124,7 @@ export function runProviderCommand(argv) {
|
|
|
124
124
|
const [command, ...args] = argv;
|
|
125
125
|
if (command === undefined)
|
|
126
126
|
throw new ProviderCommandFailed("Provider command is empty.");
|
|
127
|
-
const completed =
|
|
127
|
+
const completed = spawnProviderSync(command, args, { encoding: "utf8", timeout: 60_000, windowsHide: true });
|
|
128
128
|
if (completed.error) {
|
|
129
129
|
throw new Error(completed.error.message);
|
|
130
130
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodeint/migent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Compose AI coding agents into repeatable engineering workflows.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -38,18 +38,14 @@
|
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=22"
|
|
40
40
|
},
|
|
41
|
-
"os": [
|
|
42
|
-
"darwin",
|
|
43
|
-
"linux"
|
|
44
|
-
],
|
|
45
41
|
"publishConfig": {
|
|
46
42
|
"access": "public"
|
|
47
43
|
},
|
|
48
44
|
"dependencies": {
|
|
49
45
|
"@clack/prompts": "^1.8.1",
|
|
50
|
-
"@nodeint/migent-adapters": "0.1.
|
|
51
|
-
"@nodeint/migent-kernel": "0.1.
|
|
52
|
-
"@nodeint/migent-registry": "0.1.
|
|
46
|
+
"@nodeint/migent-adapters": "0.1.3",
|
|
47
|
+
"@nodeint/migent-kernel": "0.1.3",
|
|
48
|
+
"@nodeint/migent-registry": "0.1.3",
|
|
53
49
|
"commander": "^14.0.2",
|
|
54
50
|
"picocolors": "^1.1.1"
|
|
55
51
|
},
|