@opengeni/sdk 3.8.0-canary.0 → 4.0.1-canary.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/README.md +5 -6
- package/dist/artifacts.js +4 -4
- package/dist/browser.js +2 -2
- package/dist/chat/index.js +2 -2
- package/dist/{chunk-UAXA2UKI.js → chunk-2H7P45YQ.js} +35 -3
- package/dist/chunk-2H7P45YQ.js.map +1 -0
- package/dist/{chunk-5PCW44P6.js → chunk-3IZMCD2K.js} +2 -2
- package/dist/{chunk-XOTTWRJJ.js → chunk-O23OOWJK.js} +2 -2
- package/dist/{chunk-OOBHO7R7.js → chunk-UW22XVCT.js} +7 -37
- package/dist/chunk-UW22XVCT.js.map +1 -0
- package/dist/{chunk-VQTDKVIG.js → chunk-WNEGCYCE.js} +2 -1
- package/dist/chunk-WNEGCYCE.js.map +1 -0
- package/dist/client.d.ts +15 -1
- package/dist/core.js +3 -3
- package/dist/document-authority.js +3 -3
- package/dist/editable-artifacts.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/model-context.d.ts +1 -1
- package/dist/preference-registry.d.ts +1 -1
- package/dist/site.js +3 -3
- package/dist/skills.d.ts +66 -0
- package/dist/types.d.ts +47 -4
- package/package.json +2 -2
- package/src/client.ts +65 -3
- package/src/index.ts +12 -0
- package/src/model-context.ts +1 -0
- package/src/preference-registry.ts +2 -0
- package/src/site-http.ts +2 -1
- package/src/skills.ts +59 -0
- package/src/types.ts +58 -3
- package/dist/chunk-OOBHO7R7.js.map +0 -1
- package/dist/chunk-UAXA2UKI.js.map +0 -1
- package/dist/chunk-VQTDKVIG.js.map +0 -1
- /package/dist/{chunk-5PCW44P6.js.map → chunk-3IZMCD2K.js.map} +0 -0
- /package/dist/{chunk-XOTTWRJJ.js.map → chunk-O23OOWJK.js.map} +0 -0
package/README.md
CHANGED
|
@@ -87,12 +87,11 @@ shares the customer's documents, instructions, and integrations:
|
|
|
87
87
|
| Everything in the tenant shared | `"workspace"` | `"workspace"` |
|
|
88
88
|
| Shared agent access, no memory | any | `false` |
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
approvals with policies, forks, realtime voice.
|
|
90
|
+
The chat handler is backend-only: connect a custom or compatible frontend to
|
|
91
|
+
its protocol. For the full React agent experience, use `SessionConversation`
|
|
92
|
+
with `OpenGeniClient` and authenticated session routes, not this simplified
|
|
93
|
+
chat protocol. The normal SDK preserves files, tools, approvals with policies,
|
|
94
|
+
forks, and realtime voice.
|
|
96
95
|
|
|
97
96
|
## Quick start
|
|
98
97
|
|
package/dist/artifacts.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-3IZMCD2K.js";
|
|
4
|
+
import "./chunk-O23OOWJK.js";
|
|
5
|
+
import "./chunk-2H7P45YQ.js";
|
|
6
6
|
import "./chunk-QTBAMHEF.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-WNEGCYCE.js";
|
|
8
8
|
import "./chunk-OO5LPTO7.js";
|
|
9
9
|
export {
|
|
10
10
|
OpenGeniClient
|
package/dist/browser.js
CHANGED
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
} from "./chunk-FMLDFJ2Q.js";
|
|
9
9
|
import {
|
|
10
10
|
OpenGeniClient
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2H7P45YQ.js";
|
|
12
12
|
import "./chunk-QTBAMHEF.js";
|
|
13
13
|
import {
|
|
14
14
|
OPENGENI_API_CONTRACT_HEADER,
|
|
15
15
|
OPENGENI_API_CONTRACT_REVISION
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WNEGCYCE.js";
|
|
17
17
|
import {
|
|
18
18
|
OpenGeniApiContractMismatchError,
|
|
19
19
|
OpenGeniApiError,
|
package/dist/chat/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniClient,
|
|
3
3
|
parseSseStream
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-2H7P45YQ.js";
|
|
5
5
|
import "../chunk-QTBAMHEF.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-WNEGCYCE.js";
|
|
7
7
|
import {
|
|
8
8
|
OpenGeniApiError
|
|
9
9
|
} from "../chunk-OO5LPTO7.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
OPENGENI_API_CONTRACT_REVISION,
|
|
10
10
|
OPENGENI_CORRELATION_HEADER,
|
|
11
11
|
RETAINED_OUTPUT_MAX_PAGE_BYTES
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WNEGCYCE.js";
|
|
13
13
|
import {
|
|
14
14
|
OpenGeniApiContractMismatchError,
|
|
15
15
|
OpenGeniApiError,
|
|
@@ -4948,6 +4948,38 @@ var OpenGeniClient = class {
|
|
|
4948
4948
|
`/v1/workspaces/${workspaceId}/skills`
|
|
4949
4949
|
);
|
|
4950
4950
|
}
|
|
4951
|
+
/** Shared authored/installed catalog metadata. File bodies are read on demand. */
|
|
4952
|
+
async listWorkspaceSkills(workspaceId, options = {}) {
|
|
4953
|
+
const query = new URLSearchParams();
|
|
4954
|
+
if (options.cursor !== void 0) query.set("cursor", options.cursor);
|
|
4955
|
+
if (options.limit !== void 0) query.set("limit", String(options.limit));
|
|
4956
|
+
const suffix = query.size ? `?${query.toString()}` : "";
|
|
4957
|
+
return this.requestJson("GET", `/v1/workspaces/${workspaceId}/skills/content${suffix}`);
|
|
4958
|
+
}
|
|
4959
|
+
async readWorkspaceSkill(workspaceId, skillId, revisionId) {
|
|
4960
|
+
const query = revisionId ? `?revisionId=${encodeURIComponent(revisionId)}` : "";
|
|
4961
|
+
return this.requestJson(
|
|
4962
|
+
"GET",
|
|
4963
|
+
`/v1/workspaces/${workspaceId}/skills/content/${encodeURIComponent(skillId)}${query}`
|
|
4964
|
+
);
|
|
4965
|
+
}
|
|
4966
|
+
async saveWorkspaceSkill(workspaceId, request) {
|
|
4967
|
+
return this.requestJson("POST", `/v1/workspaces/${workspaceId}/skills/content/save`, request);
|
|
4968
|
+
}
|
|
4969
|
+
async approveWorkspaceSkill(workspaceId, skillId, request) {
|
|
4970
|
+
return this.requestJson(
|
|
4971
|
+
"POST",
|
|
4972
|
+
`/v1/workspaces/${workspaceId}/skills/content/${encodeURIComponent(skillId)}/approve`,
|
|
4973
|
+
request
|
|
4974
|
+
);
|
|
4975
|
+
}
|
|
4976
|
+
async restoreWorkspaceSkill(workspaceId, skillId, request) {
|
|
4977
|
+
return this.requestJson(
|
|
4978
|
+
"POST",
|
|
4979
|
+
`/v1/workspaces/${workspaceId}/skills/content/${encodeURIComponent(skillId)}/restore`,
|
|
4980
|
+
request
|
|
4981
|
+
);
|
|
4982
|
+
}
|
|
4951
4983
|
/** Install one exact reviewed curated-library Skill through the Skill domain. */
|
|
4952
4984
|
async installLibrarySkill(workspaceId, libraryId, request) {
|
|
4953
4985
|
return await this.requestJson(
|
|
@@ -5491,7 +5523,7 @@ var OpenGeniClient = class {
|
|
|
5491
5523
|
{ label }
|
|
5492
5524
|
);
|
|
5493
5525
|
}
|
|
5494
|
-
/** Pin
|
|
5526
|
+
/** Pin/unpin a Codex account. Overrides a capacity-blocked turn; otherwise applies next turn. */
|
|
5495
5527
|
async pinSessionCodexAccount(workspaceId, sessionId, target) {
|
|
5496
5528
|
return await this.requestJson(
|
|
5497
5529
|
"POST",
|
|
@@ -6020,4 +6052,4 @@ export {
|
|
|
6020
6052
|
parseMediaGenerationResult,
|
|
6021
6053
|
OpenGeniClient
|
|
6022
6054
|
};
|
|
6023
|
-
//# sourceMappingURL=chunk-
|
|
6055
|
+
//# sourceMappingURL=chunk-2H7P45YQ.js.map
|