@opengeni/runtime 6.8.0 → 6.8.1-canary.41842879332001
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/dist/assets/codemode-client.json +1 -1
- package/dist/{chunk-5K2NI7NX.js → chunk-KXSBTTWM.js} +13 -9
- package/dist/{chunk-5K2NI7NX.js.map → chunk-KXSBTTWM.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/workspace-tool-gateway.js +1 -1
- package/package.json +17 -16
- package/src/bundled_default_skills/opengeni-client/SKILL.md +8 -5
- package/src/bundled_default_skills/opengeni-client/references/production-checklist.md +3 -3
- package/src/bundled_default_skills/opengeni-client/references/versions-and-upgrades.md +45 -0
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/runtime",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.1-canary.41842879332001",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -84,20 +84,20 @@
|
|
|
84
84
|
"@openai/agents": "0.14.3",
|
|
85
85
|
"@openai/agents-core": "0.14.3",
|
|
86
86
|
"@openai/agents-extensions": "0.14.3",
|
|
87
|
-
"@opengeni/agent-proto": "6.8.
|
|
88
|
-
"@opengeni/capabilities": "6.8.
|
|
89
|
-
"@opengeni/codemode": "6.8.
|
|
90
|
-
"@opengeni/codex": "6.8.
|
|
91
|
-
"@opengeni/config": "6.8.
|
|
92
|
-
"@opengeni/contracts": "6.8.
|
|
93
|
-
"@opengeni/decisions": "6.8.
|
|
94
|
-
"@opengeni/interaction": "6.8.
|
|
95
|
-
"@opengeni/network": "6.8.
|
|
96
|
-
"@opengeni/observability": "6.8.
|
|
97
|
-
"@opengeni/sdk": "6.8.
|
|
98
|
-
"@opengeni/tool-gateway": "6.8.
|
|
99
|
-
"@opengeni/vaults": "6.8.
|
|
100
|
-
"@opengeni/xai-subscription": "6.8.
|
|
87
|
+
"@opengeni/agent-proto": "6.8.1-canary.41842879332001",
|
|
88
|
+
"@opengeni/capabilities": "6.8.1-canary.41842879332001",
|
|
89
|
+
"@opengeni/codemode": "6.8.1-canary.41842879332001",
|
|
90
|
+
"@opengeni/codex": "6.8.1-canary.41842879332001",
|
|
91
|
+
"@opengeni/config": "6.8.1-canary.41842879332001",
|
|
92
|
+
"@opengeni/contracts": "6.8.1-canary.41842879332001",
|
|
93
|
+
"@opengeni/decisions": "6.8.1-canary.41842879332001",
|
|
94
|
+
"@opengeni/interaction": "6.8.1-canary.41842879332001",
|
|
95
|
+
"@opengeni/network": "6.8.1-canary.41842879332001",
|
|
96
|
+
"@opengeni/observability": "6.8.1-canary.41842879332001",
|
|
97
|
+
"@opengeni/sdk": "6.8.1-canary.41842879332001",
|
|
98
|
+
"@opengeni/tool-gateway": "6.8.1-canary.41842879332001",
|
|
99
|
+
"@opengeni/vaults": "6.8.1-canary.41842879332001",
|
|
100
|
+
"@opengeni/xai-subscription": "6.8.1-canary.41842879332001",
|
|
101
101
|
"debug": "4.4.3",
|
|
102
102
|
"e2b": "2.56.0",
|
|
103
103
|
"modal": "0.9.0",
|
|
@@ -107,5 +107,6 @@
|
|
|
107
107
|
"sharp": "0.34.5",
|
|
108
108
|
"ws": "8.21.1",
|
|
109
109
|
"zod": "4.4.3"
|
|
110
|
-
}
|
|
110
|
+
},
|
|
111
|
+
"gitHead": "ff8b16463fb0dff3e03bb65f123c9fe3f500eedf"
|
|
111
112
|
}
|
|
@@ -53,9 +53,10 @@ merge, or deploy without the user's permission.
|
|
|
53
53
|
|
|
54
54
|
## Default integration
|
|
55
55
|
|
|
56
|
-
Install `@opengeni/sdk` and `@opengeni/react` at the same version
|
|
57
|
-
`
|
|
58
|
-
|
|
56
|
+
Install `@opengeni/sdk` and `@opengeni/react` at the same exact version, the
|
|
57
|
+
current npm `latest` (see [Versions and upgrades](references/versions-and-upgrades.md)).
|
|
58
|
+
Put `OPENGENI_API_KEY` in the server's git-ignored env. Self-hosted
|
|
59
|
+
deployments also pass `baseUrl: process.env.OPENGENI_API_BASE_URL`.
|
|
59
60
|
|
|
60
61
|
Server, one catch-all route at `/api/opengeni/*` (Next.js App Router shown):
|
|
61
62
|
|
|
@@ -215,8 +216,10 @@ Before production, and for the handoff, read the
|
|
|
215
216
|
- The API key is used only by the server (the proxy); it never goes in browser
|
|
216
217
|
code.
|
|
217
218
|
- Never replace the proxy with a raw passthrough to the Opengeni API.
|
|
218
|
-
- Keep every `@opengeni/*` package at one version.
|
|
219
|
-
|
|
219
|
+
- Keep every `@opengeni/*` package at one pinned version. Server updates keep
|
|
220
|
+
that version working; upgrade all packages together when you want new
|
|
221
|
+
features ([Versions and upgrades](references/versions-and-upgrades.md)). The
|
|
222
|
+
SDK is ESM-only; from CommonJS, use `await import("@opengeni/sdk")`.
|
|
220
223
|
- With cookie auth, pass the product's existing CSRF check as
|
|
221
224
|
`authorizeMutation`. If it has none, keep the default (it refuses cross-site
|
|
222
225
|
mutations by `Sec-Fetch-Site`); a hand-written Origin/Host check breaks
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
- Set `OPENGENI_TOOL_SERVER_URL` to the production tool endpoint. The proxy and
|
|
9
9
|
`verifyToolRequest` must see the same URL and the same `OPENGENI_API_KEY`.
|
|
10
10
|
- Self-hosted: set `OPENGENI_API_BASE_URL` and pass it as `baseUrl`.
|
|
11
|
-
- Pin every `@opengeni/*` package to one
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
- Pin every `@opengeni/*` package to one exact stable version; see
|
|
12
|
+
[Versions and upgrades](versions-and-upgrades.md) for choosing and
|
|
13
|
+
upgrading it.
|
|
14
14
|
- Private chats need the organization's private-session setting. Organizations
|
|
15
15
|
created at signup have it on, so don't ask the user to check it. Without it
|
|
16
16
|
the SDK throws `OpenGeniSetupError`, whose message says who can enable it.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Versions and upgrades
|
|
2
|
+
|
|
3
|
+
## Pick a version
|
|
4
|
+
|
|
5
|
+
- Install the current stable release: `npm view @opengeni/sdk version` prints
|
|
6
|
+
the npm `latest` version. Pin `@opengeni/sdk`, `@opengeni/react` and any
|
|
7
|
+
other `@opengeni/*` package to that exact version (no `^` or `~` ranges).
|
|
8
|
+
- Do not use canary versions (`-canary.` in the version) in production.
|
|
9
|
+
- Source code, changelogs or docs can mention a newer version than npm
|
|
10
|
+
`latest`. That version is not published yet; use npm `latest`.
|
|
11
|
+
- If the repository enforces a minimum release age, pin an older shared
|
|
12
|
+
version or ask the user; do not bypass the policy.
|
|
13
|
+
|
|
14
|
+
## What stays compatible
|
|
15
|
+
|
|
16
|
+
Opengeni server updates do not break existing integrations. The routes,
|
|
17
|
+
fields, event types and documented behaviour that a published SDK uses keep
|
|
18
|
+
working, so a pinned version keeps working against app.opengeni.ai. Upgrade
|
|
19
|
+
for new features or fixes, not to stay compatible. Rare exceptions (an
|
|
20
|
+
emergency security fix or an explicit product-owner decision) are announced
|
|
21
|
+
with migration notes. Policy:
|
|
22
|
+
[api-compatibility-policy.md](https://github.com/Cloudgeni-ai/opengeni/blob/main/docs/design/api-compatibility-policy.md).
|
|
23
|
+
|
|
24
|
+
Write code that keeps it that way:
|
|
25
|
+
|
|
26
|
+
- Ignore unknown event types, enum values and response fields. Give every
|
|
27
|
+
`switch` over an Opengeni union a default branch.
|
|
28
|
+
- Branch on error codes and typed SDK errors, not on message text.
|
|
29
|
+
- Members marked `@deprecated` keep working. Use the replacement their docs
|
|
30
|
+
name in new code; existing calls need no urgent migration.
|
|
31
|
+
|
|
32
|
+
Self-hosted: run a server at least as new as the SDK. An older SDK works with
|
|
33
|
+
a newer server, but a newer SDK can call routes an older server does not have
|
|
34
|
+
yet. `/healthz` reports the server's `serverVersion`.
|
|
35
|
+
|
|
36
|
+
## Upgrade
|
|
37
|
+
|
|
38
|
+
1. Move every `@opengeni/*` package to the same new version in one change.
|
|
39
|
+
2. Read the `CHANGELOG.md` entries of `@opengeni/sdk` and `@opengeni/react`
|
|
40
|
+
between the two versions.
|
|
41
|
+
3. Run the typecheck and tests, then send a real chat turn through the proxy.
|
|
42
|
+
|
|
43
|
+
If something that worked stops working after an Opengeni server update, that
|
|
44
|
+
is an Opengeni bug. Report the SDK version, `serverVersion`, route and error;
|
|
45
|
+
do not work around it by calling the HTTP API directly.
|