@opengeni/ogtool 0.1.0 → 0.2.2
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 +17 -13
- package/dist/bin/ogtool.cjs +15551 -0
- package/dist/cli.d.ts +4 -0
- package/dist/index.d.ts +6 -7
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -6
- package/src/cli.ts +197 -0
- package/src/index.ts +5 -3
- package/bin/ogtool.cjs +0 -327
package/README.md
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
# `@opengeni/ogtool`
|
|
2
2
|
|
|
3
|
-
`ogtool` is the
|
|
4
|
-
surface.
|
|
5
|
-
|
|
3
|
+
`ogtool` is the bundled command-line wrapper for one exact OpenGeni execution attempt's Codemode
|
|
4
|
+
surface. It uses the same `@opengeni/codemode` client and frozen tool catalog as Bun programs;
|
|
5
|
+
it does not rediscover or proxy MCP servers. Stock OpenGeni sandbox images include this exact
|
|
6
|
+
package CLI. Custom rigs can run the same release-coherent artifact with Bun.
|
|
6
7
|
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
```sh
|
|
9
|
+
bun x -p @opengeni/ogtool@<version> ogtool list
|
|
10
|
+
bun x -p @opengeni/ogtool@<version> ogtool call <tool-path> '{"key":"value"}'
|
|
11
|
+
bun x -p @opengeni/ogtool@<version> ogtool declarations opengeni-codemode.d.ts
|
|
10
12
|
```
|
|
11
13
|
|
|
12
14
|
Always replace `<version>` with the exact version in the deployment BOM; do not silently track
|
|
13
15
|
`latest` in a production image. An embedding host may expose that pinned spec through
|
|
14
16
|
`OPENGENI_OGTOOL_PACKAGE_SPEC`.
|
|
15
17
|
|
|
16
|
-
The CLI reads `
|
|
17
|
-
`
|
|
18
|
+
The CLI reads `OPENGENI_CODEMODE_URL` and the bearer path in
|
|
19
|
+
`OPENGENI_CODEMODE_TOKEN_FILE`. The token remains in the protected file and is read anew for
|
|
18
20
|
each CLI process, so worker-side token renewal does not require reinstalling or restarting the
|
|
19
21
|
CLI. `ogtool doctor` checks local availability without printing the token.
|
|
20
22
|
|
|
21
23
|
Commands:
|
|
22
24
|
|
|
23
|
-
- `ogtool list`
|
|
24
|
-
- `ogtool call <tool-name> [json-object]`
|
|
25
|
+
- `ogtool list`
|
|
26
|
+
- `ogtool call <tool-path-or-model-name> [json-object]`
|
|
27
|
+
- `ogtool declarations [output-file]`
|
|
25
28
|
- `ogtool doctor`
|
|
26
29
|
- `ogtool --version`
|
|
27
30
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
The HTTP client submits a caller-chosen operation id and polls the durable result. A lost response
|
|
32
|
+
therefore cannot silently replay a side effect. `@opengeni/ogtool` also re-exports the typed
|
|
33
|
+
`@opengeni/codemode` client for application code. Codemode is a projection of the attempt's one
|
|
34
|
+
tool authority, not a second tool or credential surface.
|