buckyos 0.7.159 → 0.7.160
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/cli/dist/cli.mjs +396 -18
- package/cli/dist/cli.mjs.map +1 -1
- package/cli/modules/aiws.ts +327 -4
- package/cli/modules/pikg.ts +29 -3
- package/cli/modules/pikg_protocol.ts +42 -3
- package/cli/modules/share.ts +2 -1
- package/cli/version.ts +1 -1
- package/dist/aiworkspace_client.d.ts +143 -0
- package/dist/aiworkspace_client.d.ts.map +1 -1
- package/dist/aiws_ext.cjs +2 -0
- package/dist/aiws_ext.cjs.map +1 -0
- package/dist/aiws_ext.d.ts +169 -0
- package/dist/aiws_ext.d.ts.map +1 -0
- package/dist/aiws_ext.mjs +499 -0
- package/dist/aiws_ext.mjs.map +1 -0
- package/dist/browser.cjs +1 -1
- package/dist/browser.mjs +2 -2
- package/dist/{executor_client-24abb248.js → executor_client-47edd42d.js} +2 -2
- package/dist/executor_client-47edd42d.js.map +1 -0
- package/dist/{executor_client-24076936.mjs → executor_client-50023bcc.mjs} +58 -1
- package/dist/executor_client-50023bcc.mjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +36 -2
- package/dist/index.mjs.map +1 -1
- package/dist/node.cjs +1 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.ts +2 -0
- package/dist/node.d.ts.map +1 -1
- package/dist/node.mjs +38 -2
- package/dist/node.mjs.map +1 -1
- package/package.json +6 -1
- package/dist/executor_client-24076936.mjs.map +0 -1
- package/dist/executor_client-24abb248.js.map +0 -1
|
@@ -799,6 +799,63 @@ class AiWorkspaceClient {
|
|
|
799
799
|
getSubmission(workspace_id, epoch, idempotency_key) {
|
|
800
800
|
return this.call("doc.get_submission", { workspace_id, epoch, idempotency_key });
|
|
801
801
|
}
|
|
802
|
+
/** Changes after `after_seq` (`filter.detail: "touched"` for the touched entities only). */
|
|
803
|
+
getChanges(workspace_id, epoch, after_seq, opts = {}) {
|
|
804
|
+
return this.call("doc.get_changes", { workspace_id, epoch, after_seq, ...opts.limit ? { limit: opts.limit } : {}, ...opts.touchedOnly ? { filter: { detail: "touched" } } : {} });
|
|
805
|
+
}
|
|
806
|
+
/** Long poll until the head passes `after_seq` (or `timeout_ms`). */
|
|
807
|
+
waitChanges(workspace_id, after_seq, opts = {}) {
|
|
808
|
+
return this.call("doc.wait_changes", { workspace_id, after_seq, ...opts });
|
|
809
|
+
}
|
|
810
|
+
/** A whole-Workspace package (`.bcanvas`): `download` names it in the owner's exports bucket. */
|
|
811
|
+
exportDoc(workspace_id, mode, self_contained, include_notes) {
|
|
812
|
+
return this.call("doc.export", { workspace_id, mode, self_contained, ...include_notes === void 0 ? {} : { include_notes } });
|
|
813
|
+
}
|
|
814
|
+
// ---- assets
|
|
815
|
+
/** Register a FileObject as a staged asset: `{ bucket_id, key }` (the uploader's binding) or `{ obj_id }`. */
|
|
816
|
+
assetImportObject(workspace_id, source) {
|
|
817
|
+
return this.call("asset.import_object", { workspace_id, ...source });
|
|
818
|
+
}
|
|
819
|
+
// ---- Block-controls (code-registered layouts such as the mind map)
|
|
820
|
+
controlsList() {
|
|
821
|
+
return this.call("control.list", {});
|
|
822
|
+
}
|
|
823
|
+
controlsDescribe(kind) {
|
|
824
|
+
return this.call("control.describe", { kind });
|
|
825
|
+
}
|
|
826
|
+
controlsImport(workspace_id, params) {
|
|
827
|
+
return this.call("control.import", { workspace_id, ...params });
|
|
828
|
+
}
|
|
829
|
+
controlsExport(workspace_id, entity_id, format) {
|
|
830
|
+
return this.call("control.export", { workspace_id, entity_id, ...format ? { format } : {} });
|
|
831
|
+
}
|
|
832
|
+
// ---- extension controls (README “Extension controls”; buckyos-websdk src/aiws_ext.ts drives them)
|
|
833
|
+
/** Build one control's source files into the Workspace; `BUILD_FAILED` carries `data.diagnostics`. */
|
|
834
|
+
extBuild(workspace_id, params) {
|
|
835
|
+
return this.call("ext.build", { workspace_id, ...params });
|
|
836
|
+
}
|
|
837
|
+
/** The bundle of definitions (`purpose: pull` needs read only and synthesizes the source of never-built ones). */
|
|
838
|
+
extExport(workspace_id, entity_ids, purpose = "package") {
|
|
839
|
+
return this.call("ext.export", { workspace_id, entity_ids, purpose });
|
|
840
|
+
}
|
|
841
|
+
/** Into the caller's library: a `.pikg` object, or definitions of a Workspace (`from` + `package`). */
|
|
842
|
+
extInstall(params) {
|
|
843
|
+
return this.call("ext.install", params);
|
|
844
|
+
}
|
|
845
|
+
extListLibrary() {
|
|
846
|
+
return this.call("ext.list_library", {});
|
|
847
|
+
}
|
|
848
|
+
extUninstall(pkg_id) {
|
|
849
|
+
return this.call("ext.uninstall", { pkg_id });
|
|
850
|
+
}
|
|
851
|
+
/** A library package's controls with their bytes (base64): what a client relays into a Workspace of another Zone. */
|
|
852
|
+
extLibraryBundle(pkg_id, idents) {
|
|
853
|
+
return this.call("ext.library_bundle", { pkg_id, ...idents ? { idents } : {} });
|
|
854
|
+
}
|
|
855
|
+
/** Bring library controls into a Workspace of this Zone (one Commit). */
|
|
856
|
+
extImport(workspace_id, items, opts = {}) {
|
|
857
|
+
return this.call("ext.import", { workspace_id, items, ...opts });
|
|
858
|
+
}
|
|
802
859
|
// ---- runs (M3 executor protocol)
|
|
803
860
|
runStart(workspace_id, program, params, idempotency_key) {
|
|
804
861
|
return this.call("proc.start", { workspace_id, program, params, idempotency_key });
|
|
@@ -30643,4 +30700,4 @@ export {
|
|
|
30643
30700
|
NOTIFY_SESSION_PREFIX as y,
|
|
30644
30701
|
NOTIFY_CHOICE_CONTROL_ID as z
|
|
30645
30702
|
};
|
|
30646
|
-
//# sourceMappingURL=executor_client-
|
|
30703
|
+
//# sourceMappingURL=executor_client-50023bcc.mjs.map
|