@docyrus/docyrus 0.0.75 → 0.0.77

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
@@ -282,6 +282,23 @@ docyrus studio update-enums --appId "<app-id>" --dataSourceId "<data-source-id>"
282
282
  docyrus studio delete-enums --appId "<app-id>" --dataSourceId "<data-source-id>" --fieldId "<field-id>" --data '["enum-1","enum-2"]' --json
283
283
  ```
284
284
 
285
+ Tenant-wide search across data sources (returns `{ data, meta: { total, limit, offset } }`):
286
+
287
+ ```bash
288
+ # Fields, with multi-value filters and keyword
289
+ docyrus studio search-fields --keyword email --json
290
+ docyrus studio search-fields --dataSourceId "<id1>,<id2>" --type field-text,field-textarea --limit 50 --json
291
+ docyrus studio search-fields --keyword status --offset 100 --limit 50 --json
292
+
293
+ # Enums, joined with data source / field / enum set
294
+ docyrus studio search-enums --dataSourceId "<data-source-id>" --json
295
+ docyrus studio search-enums --enumSetId "<enum-set-id>" --json
296
+ docyrus studio search-enums --fieldId "<field-id>" --limit 200 --json
297
+
298
+ # Enum sets
299
+ docyrus studio search-enum-sets --limit 50 --offset 0 --json
300
+ ```
301
+
285
302
  ## Raw API Access
286
303
 
287
304
  ```bash
package/agent-loader.js CHANGED
@@ -2294,8 +2294,21 @@ function installInteractiveAuthInterceptors(mode, dependencies) {
2294
2294
  }
2295
2295
  }
2296
2296
 
2297
- // src/agent/onboarding.ts
2297
+ // src/services/openBrowser.ts
2298
2298
  var import_node_child_process = require("node:child_process");
2299
+ function openBrowser(url) {
2300
+ if (process.platform === "darwin") {
2301
+ (0, import_node_child_process.spawn)("open", [url], { stdio: "ignore", detached: true }).unref();
2302
+ return;
2303
+ }
2304
+ if (process.platform === "win32") {
2305
+ (0, import_node_child_process.spawn)("cmd", ["/c", "start", "", url], { stdio: "ignore", detached: true, windowsHide: true }).unref();
2306
+ return;
2307
+ }
2308
+ (0, import_node_child_process.spawn)("xdg-open", [url], { stdio: "ignore", detached: true }).unref();
2309
+ }
2310
+
2311
+ // src/agent/onboarding.ts
2299
2312
  var API_KEY_PREFIXES = {
2300
2313
  anthropic: ["sk-ant-"],
2301
2314
  openai: ["sk-"]
@@ -2309,11 +2322,6 @@ async function loadPico() {
2309
2322
  function isCancelError(clack, value) {
2310
2323
  return clack.isCancel(value);
2311
2324
  }
2312
- function openBrowser(url) {
2313
- const command = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
2314
- (0, import_node_child_process.exec)(`${command} "${url}"`, () => {
2315
- });
2316
- }
2317
2325
  async function shouldRunOnboarding(params) {
2318
2326
  if (!params.isInteractive || params.isPrintMode) {
2319
2327
  return false;