@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 CHANGED
@@ -1,30 +1,34 @@
1
1
  # `@opengeni/ogtool`
2
2
 
3
- `ogtool` is the dependency-free command-line client for the session-bound OpenGeni Toolspace MCP
4
- surface. Stock OpenGeni sandbox images include this exact package CLI. Custom rigs and connected
5
- machines can install the same release-coherent artifact from npm.
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
- ```bash
8
- npm exec --yes --package=@opengeni/ogtool@<version> -- ogtool list
9
- npm exec --yes --package=@opengeni/ogtool@<version> -- ogtool call <tool-name> '{"key":"value"}'
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 `OPENGENI_TOOLSPACE_URL` and the bearer path in
17
- `OPENGENI_TOOLSPACE_TOKEN_FILE`. The token remains in the protected file and is read anew for
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` / `ogtool tools/list`
24
- - `ogtool call <tool-name> [json-object]` / `ogtool tools/call ...`
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
- If the CLI is absent and package installation is unavailable, callers can use MCP Streamable HTTP
29
- directly with the same URL and bearer file. `ogtool` is a convenience client, not a second tool or
30
- credential surface.
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.