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.
@@ -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-24076936.mjs.map
30703
+ //# sourceMappingURL=executor_client-50023bcc.mjs.map