@withone/cli 2.1.0 → 2.3.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.
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getMemoryConfigOrDefault
3
- } from "./chunk-YMUY55U2.js";
3
+ } from "./chunk-WMVVWO6N.js";
4
4
  import {
5
5
  getOpenAiApiKey,
6
6
  readConfig
7
- } from "./chunk-6UB623BG.js";
7
+ } from "./chunk-GGDXUXLM.js";
8
8
 
9
9
  // src/lib/output.ts
10
10
  import * as p from "@clack/prompts";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  getCacheTtl,
7
7
  homeDir
8
- } from "./chunk-6UB623BG.js";
8
+ } from "./chunk-GGDXUXLM.js";
9
9
 
10
10
  // src/lib/flow-runner.ts
11
11
  import fs3 from "fs";
@@ -2285,7 +2285,7 @@ async function executeSubflowStep(step, context, api, permissions, allowedAction
2285
2285
  if (flowStack.includes(resolvedKey)) {
2286
2286
  throw new Error(`Circular flow detected: ${[...flowStack, resolvedKey].join(" \u2192 ")}`);
2287
2287
  }
2288
- const { loadFlowWithMeta: loadFlowWithMeta2 } = await import("./flow-runner-L3JG2WCY.js");
2288
+ const { loadFlowWithMeta: loadFlowWithMeta2 } = await import("./flow-runner-YGRRUARS.js");
2289
2289
  const { flow: subFlow, rootDir: subRootDir } = loadFlowWithMeta2(resolvedKey);
2290
2290
  const subContext = await executeFlow(
2291
2291
  subFlow,
@@ -6,11 +6,11 @@ import {
6
6
  note,
7
7
  okJson,
8
8
  requireMemoryInit
9
- } from "./chunk-OLQ55K6B.js";
9
+ } from "./chunk-5MDUKW5N.js";
10
10
  import {
11
11
  getBackend,
12
12
  upsertRecord
13
- } from "./chunk-IMU2X3ZV.js";
13
+ } from "./chunk-Y5JEZWWM.js";
14
14
 
15
15
  // src/commands/mem/migrate.ts
16
16
  import fs4 from "fs";
@@ -217,6 +217,7 @@ function saveCredentials(apiKey, scope, opts) {
217
217
  };
218
218
  if (opts.keyName) next.apiKeyName = opts.keyName;
219
219
  else delete next.apiKeyName;
220
+ if (opts.knowledgeOnly) next.accessControl = { ...existing?.accessControl, knowledgeAgent: true };
220
221
  writeConfig(next, scope);
221
222
  }
222
223
  function getCacheTtl() {
@@ -3,10 +3,10 @@ import {
3
3
  isAgentMode,
4
4
  json,
5
5
  requireMemoryInit
6
- } from "./chunk-OLQ55K6B.js";
6
+ } from "./chunk-5MDUKW5N.js";
7
7
  import {
8
8
  getBackend
9
- } from "./chunk-IMU2X3ZV.js";
9
+ } from "./chunk-Y5JEZWWM.js";
10
10
 
11
11
  // src/commands/mem/sql.ts
12
12
  async function memSqlCommand(sql) {
@@ -3,7 +3,7 @@ import {
3
3
  readConfig,
4
4
  setOpenAiApiKey,
5
5
  writeConfig
6
- } from "./chunk-6UB623BG.js";
6
+ } from "./chunk-GGDXUXLM.js";
7
7
 
8
8
  // src/lib/memory/config.ts
9
9
  var DEFAULT_MEMORY_CONFIG = {
@@ -5,11 +5,11 @@ import {
5
5
  getMemoryConfig,
6
6
  getMemoryConfigOrDefault,
7
7
  updateMemoryConfig
8
- } from "./chunk-YMUY55U2.js";
8
+ } from "./chunk-WMVVWO6N.js";
9
9
  import {
10
10
  getOpenAiApiKey,
11
11
  homeDir
12
- } from "./chunk-6UB623BG.js";
12
+ } from "./chunk-GGDXUXLM.js";
13
13
 
14
14
  // src/lib/memory/schema.ts
15
15
  var SCHEMA_VERSION = "2.3.1";
@@ -2,8 +2,8 @@ import {
2
2
  defaultSearchableText,
3
3
  embed,
4
4
  embedBatch
5
- } from "./chunk-YMUY55U2.js";
6
- import "./chunk-6UB623BG.js";
5
+ } from "./chunk-WMVVWO6N.js";
6
+ import "./chunk-GGDXUXLM.js";
7
7
  export {
8
8
  defaultSearchableText,
9
9
  embed,
@@ -12,9 +12,9 @@ import {
12
12
  stripStepsAlias,
13
13
  summarizeFlowInputs,
14
14
  walkSteps
15
- } from "./chunk-6EQDEYVD.js";
15
+ } from "./chunk-BWTPQPII.js";
16
16
  import "./chunk-44CV5IMX.js";
17
- import "./chunk-6UB623BG.js";
17
+ import "./chunk-GGDXUXLM.js";
18
18
  export {
19
19
  FlowRunner,
20
20
  collectStepTypes,
package/dist/index.js CHANGED
@@ -28,10 +28,10 @@ import {
28
28
  validateActionInput,
29
29
  walkSteps,
30
30
  writeCache
31
- } from "./chunk-6EQDEYVD.js";
31
+ } from "./chunk-BWTPQPII.js";
32
32
  import {
33
33
  memSqlCommand
34
- } from "./chunk-GKAIRI4Y.js";
34
+ } from "./chunk-V4LY2G2F.js";
35
35
  import {
36
36
  collectIdentityKeys,
37
37
  countRecords,
@@ -62,7 +62,7 @@ import {
62
62
  writeDraftProfile,
63
63
  writePageToMemory,
64
64
  writeProfile
65
- } from "./chunk-YTM6HJKA.js";
65
+ } from "./chunk-C7GJ5GUQ.js";
66
66
  import {
67
67
  getByDotPath
68
68
  } from "./chunk-44CV5IMX.js";
@@ -86,7 +86,7 @@ import {
86
86
  semanticSearchUpgradeLine,
87
87
  setAgentMode,
88
88
  silenceWarningsInAgentMode
89
- } from "./chunk-OLQ55K6B.js";
89
+ } from "./chunk-5MDUKW5N.js";
90
90
  import {
91
91
  SCHEMA_VERSION,
92
92
  addRecord,
@@ -96,7 +96,7 @@ import {
96
96
  listBackendPlugins,
97
97
  loadBackendFromConfig,
98
98
  updateRecord
99
- } from "./chunk-IMU2X3ZV.js";
99
+ } from "./chunk-Y5JEZWWM.js";
100
100
  import {
101
101
  DEFAULT_MEMORY_CONFIG,
102
102
  defaultSearchableText,
@@ -106,7 +106,7 @@ import {
106
106
  memoryConfigExists,
107
107
  setOpenAiApiKey,
108
108
  updateMemoryConfig
109
- } from "./chunk-YMUY55U2.js";
109
+ } from "./chunk-WMVVWO6N.js";
110
110
  import {
111
111
  appendAnalyticsQueue,
112
112
  appendUsageLog,
@@ -143,7 +143,7 @@ import {
143
143
  writeConfig,
144
144
  writeUsageLog,
145
145
  writeUsageState
146
- } from "./chunk-6UB623BG.js";
146
+ } from "./chunk-GGDXUXLM.js";
147
147
 
148
148
  // src/cli.ts
149
149
  import { createRequire as createRequire3 } from "module";
@@ -1476,6 +1476,7 @@ var PORT_RANGE_START = 49152;
1476
1476
  var PORT_RANGE_END = 65535;
1477
1477
  var MAX_PORT_ATTEMPTS = 5;
1478
1478
  var MAX_KEY_NAME_LENGTH = 120;
1479
+ var MAX_GRANT_LENGTH = 4e3;
1479
1480
  var MAX_ERROR_LENGTH = 200;
1480
1481
  var CHECK_MARK = `<div style="width:48px;height:48px;border-radius:50%;background:rgba(34,197,94,0.1);display:flex;align-items:center;justify-content:center;margin:0 auto 16px">
1481
1482
  <svg width="24" height="24" fill="none" stroke="#22c55e" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"/></svg>
@@ -1539,9 +1540,11 @@ function startCallbackServer(expectedState) {
1539
1540
  return;
1540
1541
  }
1541
1542
  const keyName = cleanParam(url.searchParams.get("name"), MAX_KEY_NAME_LENGTH);
1543
+ const grant = cleanParam(url.searchParams.get("grant"), MAX_GRANT_LENGTH);
1542
1544
  res.writeHead(200, { "Content-Type": "text/html" });
1543
1545
  res.end(SUCCESS_HTML);
1544
- resolveResult({ kind: "key", apiKey, keyName });
1546
+ const knowledgeOnly = url.searchParams.get("knowledge") === "1";
1547
+ resolveResult({ kind: "key", apiKey, keyName, grant, knowledgeOnly });
1545
1548
  return;
1546
1549
  }
1547
1550
  const error2 = cleanParam(url.searchParams.get("error"), MAX_ERROR_LENGTH);
@@ -1593,6 +1596,9 @@ function noteWidth() {
1593
1596
  const usable = (typeof columns === "number" && columns > 0 ? columns : 80) - 8;
1594
1597
  return Math.max(usable, 40);
1595
1598
  }
1599
+ function grantNoteLines(grant, label) {
1600
+ return grant ? wrapForNote(`${label} ${grant}`).split("\n") : [];
1601
+ }
1596
1602
  async function browserLogin(opts) {
1597
1603
  const state = crypto.randomUUID();
1598
1604
  const spin = createSpinner();
@@ -1650,7 +1656,13 @@ ${describeInstallContext(context)}`
1650
1656
  const apiBase = getApiBase();
1651
1657
  const api = new OneApi(outcome.apiKey, apiBase);
1652
1658
  const whoami = await api.whoami();
1653
- return { apiKey: outcome.apiKey, whoami, keyName: outcome.keyName };
1659
+ return {
1660
+ apiKey: outcome.apiKey,
1661
+ whoami,
1662
+ keyName: outcome.keyName,
1663
+ grant: outcome.grant,
1664
+ knowledgeOnly: outcome.knowledgeOnly
1665
+ };
1654
1666
  } catch (err) {
1655
1667
  spin.stop("Authentication failed.");
1656
1668
  if (err instanceof Error && err.message === "timeout") {
@@ -1709,8 +1721,8 @@ async function loginCommand() {
1709
1721
  }
1710
1722
  const result = await browserLogin({ scope: targetScope });
1711
1723
  if (!result) return;
1712
- const { apiKey, whoami, keyName } = result;
1713
- saveCredentials(apiKey, targetScope, { keyName, whoami });
1724
+ const { apiKey, whoami, keyName, grant, knowledgeOnly } = result;
1725
+ saveCredentials(apiKey, targetScope, { keyName, whoami, knowledgeOnly });
1714
1726
  const pc16 = (await import("picocolors")).default;
1715
1727
  const env = getEnvFromApiKey(apiKey);
1716
1728
  const contextParts = [];
@@ -1724,6 +1736,7 @@ async function loginCommand() {
1724
1736
  `${whoami.user.name} ${pc16.dim(`(${whoami.user.email})`)}`
1725
1737
  ];
1726
1738
  if (keyName) infoLines.push(`${pc16.dim("Key:")} ${keyName}`);
1739
+ infoLines.push(...grantNoteLines(grant, pc16.dim("Access:")));
1727
1740
  if (whoami.organization) infoLines.push(`${pc16.dim("Org:")} ${whoami.organization.name}`);
1728
1741
  if (whoami.project) infoLines.push(`${pc16.dim("Project:")} ${whoami.project.name}`);
1729
1742
  infoLines.push("");
@@ -1780,6 +1793,8 @@ async function nonInteractiveInit(options) {
1780
1793
  const scope = options.global ? "global" : options.project ? "project" : "global";
1781
1794
  let apiKey;
1782
1795
  let keyName;
1796
+ let grant;
1797
+ let knowledgeOnly = false;
1783
1798
  let whoami;
1784
1799
  if (auth === "browser") {
1785
1800
  const result = await browserLogin({ scope });
@@ -1788,6 +1803,8 @@ async function nonInteractiveInit(options) {
1788
1803
  }
1789
1804
  apiKey = result.apiKey;
1790
1805
  keyName = result.keyName;
1806
+ grant = result.grant;
1807
+ knowledgeOnly = result.knowledgeOnly;
1791
1808
  whoami = result.whoami;
1792
1809
  } else {
1793
1810
  const key = options.apiKey?.trim();
@@ -1811,7 +1828,7 @@ async function nonInteractiveInit(options) {
1811
1828
  apiKey = key;
1812
1829
  whoami = validated;
1813
1830
  }
1814
- saveCredentials(apiKey, scope, { keyName, whoami });
1831
+ saveCredentials(apiKey, scope, { keyName, whoami, knowledgeOnly });
1815
1832
  if (options.openaiKey?.trim()) {
1816
1833
  try {
1817
1834
  setOpenAiApiKey(options.openaiKey.trim());
@@ -1834,6 +1851,7 @@ async function nonInteractiveInit(options) {
1834
1851
  env: getEnvFromApiKey(apiKey)
1835
1852
  },
1836
1853
  keyName,
1854
+ grant,
1837
1855
  skillInstalled: installed,
1838
1856
  skillFailed: failed
1839
1857
  });
@@ -1851,6 +1869,7 @@ async function nonInteractiveInit(options) {
1851
1869
  console.log(` ${pc4.dim("Account:")} ${scopeDisplay} ${pc4.dim("\xB7")} ${envLabel}`);
1852
1870
  console.log(` ${pc4.dim("User:")} ${whoami.user.name} ${pc4.dim(`(${whoami.user.email})`)}`);
1853
1871
  if (keyName) console.log(` ${pc4.dim("Key:")} ${keyName}`);
1872
+ if (grant) console.log(` ${pc4.dim("Access:")} ${grant}`);
1854
1873
  console.log(` ${pc4.dim("Config:")} ${tildify(configPath)}`);
1855
1874
  if (installed.length > 0) {
1856
1875
  console.log(` ${pc4.dim("Skill:")} ${pc4.green("installed")} ${pc4.dim("\xB7 " + installed.join(", "))}`);
@@ -2046,6 +2065,8 @@ async function handleUpdateKey(statuses, scope) {
2046
2065
  }
2047
2066
  let newKey;
2048
2067
  let keyName;
2068
+ let grant;
2069
+ let knowledgeOnly = false;
2049
2070
  let whoamiResult;
2050
2071
  if (authMethod === "browser") {
2051
2072
  const result = await browserLogin({ scope });
@@ -2055,6 +2076,8 @@ async function handleUpdateKey(statuses, scope) {
2055
2076
  }
2056
2077
  newKey = result.apiKey;
2057
2078
  keyName = result.keyName;
2079
+ grant = result.grant;
2080
+ knowledgeOnly = result.knowledgeOnly;
2058
2081
  whoamiResult = result.whoami;
2059
2082
  } else {
2060
2083
  p3.note(`Get your API key at:
@@ -2108,7 +2131,8 @@ ${pc4.cyan(getApiKeyUrl())}`, `API Key ${scopeLabel(scope)}`);
2108
2131
  [
2109
2132
  `${scopeDisplay} ${pc4.dim("\xB7")} ${envLabel}`,
2110
2133
  `${whoamiResult.user.name} ${pc4.dim(`(${whoamiResult.user.email})`)}`,
2111
- ...keyName ? [`${pc4.dim("Key:")} ${keyName}`] : []
2134
+ ...keyName ? [`${pc4.dim("Key:")} ${keyName}`] : [],
2135
+ ...grantNoteLines(grant, pc4.dim("Access:"))
2112
2136
  ].join("\n"),
2113
2137
  "Account"
2114
2138
  );
@@ -2124,7 +2148,7 @@ ${pc4.cyan(getApiKeyUrl())}`, `API Key ${scopeLabel(scope)}`);
2124
2148
  reinstalled.push(`${s.agent.name} (project)`);
2125
2149
  }
2126
2150
  }
2127
- saveCredentials(newKey, scope, { keyName, whoami: whoamiResult });
2151
+ saveCredentials(newKey, scope, { keyName, whoami: whoamiResult, knowledgeOnly });
2128
2152
  if (reinstalled.length > 0) {
2129
2153
  p3.log.success(`Updated MCP configs: ${reinstalled.join(", ")}`);
2130
2154
  }
@@ -2370,11 +2394,16 @@ async function freshSetup(scope, options) {
2370
2394
  [
2371
2395
  `${scopeDisplay} ${pc4.dim("\xB7")} ${envLabel}`,
2372
2396
  `${result.whoami.user.name} ${pc4.dim(`(${result.whoami.user.email})`)}`,
2373
- ...result.keyName ? [`${pc4.dim("Key:")} ${result.keyName}`] : []
2397
+ ...result.keyName ? [`${pc4.dim("Key:")} ${result.keyName}`] : [],
2398
+ ...grantNoteLines(result.grant, pc4.dim("Access:"))
2374
2399
  ].join("\n"),
2375
2400
  "Account"
2376
2401
  );
2377
- saveCredentials(apiKey, scope, { keyName: result.keyName, whoami: result.whoami });
2402
+ saveCredentials(apiKey, scope, {
2403
+ keyName: result.keyName,
2404
+ whoami: result.whoami,
2405
+ knowledgeOnly: result.knowledgeOnly
2406
+ });
2378
2407
  } else {
2379
2408
  p3.note(`Get your API key at:
2380
2409
  ${pc4.cyan(getApiKeyUrl())}`, `API Key ${scopeLabel(scope)}`);
@@ -7384,7 +7413,7 @@ async function syncModel(api, profile, options) {
7384
7413
  updateModelState(platform, model, { status: "failed", pagesProcessed, lastCursor }),
7385
7414
  (async () => {
7386
7415
  try {
7387
- const { getBackend: getBackend2 } = await import("./runtime-SX36HGBA.js");
7416
+ const { getBackend: getBackend2 } = await import("./runtime-DTKLN6KX.js");
7388
7417
  const backend = await getBackend2();
7389
7418
  await Promise.race([
7390
7419
  backend.close(),
@@ -7750,7 +7779,7 @@ async function syncModel(api, profile, options) {
7750
7779
  db.exec(`DROP TABLE IF EXISTS _seen_ids`);
7751
7780
  }
7752
7781
  if (options.toMemory !== false) {
7753
- const backend = await (await import("./runtime-SX36HGBA.js")).getBackend();
7782
+ const backend = await (await import("./runtime-DTKLN6KX.js")).getBackend();
7754
7783
  const type = `${platform}/${model}`;
7755
7784
  const existing = await backend.listKeysByType(type);
7756
7785
  const sourcePrefix = `${type}:`;
@@ -7851,7 +7880,7 @@ async function syncModel(api, profile, options) {
7851
7880
  let statusCounts;
7852
7881
  if (options.toMemory !== false) {
7853
7882
  try {
7854
- const backend = await (await import("./runtime-SX36HGBA.js")).getBackend();
7883
+ const backend = await (await import("./runtime-DTKLN6KX.js")).getBackend();
7855
7884
  const typeName = `${platform}/${model}`;
7856
7885
  const [active, archived] = await Promise.all([
7857
7886
  backend.count(typeName, { status: "active" }),
@@ -9573,7 +9602,7 @@ ${result.total} results`);
9573
9602
  }
9574
9603
  }
9575
9604
  async function syncSqlCommand(platformModel, sql) {
9576
- const { syncSqlCommand: runSyncSql } = await import("./sql-SYCWUPNP.js");
9605
+ const { syncSqlCommand: runSyncSql } = await import("./sql-5GNNGVNH.js");
9577
9606
  await runSyncSql(platformModel, sql);
9578
9607
  }
9579
9608
  async function syncDeleteCommand(platformModel, options) {
@@ -9651,7 +9680,7 @@ async function syncDeleteCommand(platformModel, options) {
9651
9680
  async function maybeAutoMigrateLegacy(platform, models) {
9652
9681
  const dbSize = getDatabaseSize(platform);
9653
9682
  if (!dbSize || dbSize === "0 B") return;
9654
- const { getBackend: getBackend2 } = await import("./runtime-SX36HGBA.js");
9683
+ const { getBackend: getBackend2 } = await import("./runtime-DTKLN6KX.js");
9655
9684
  const backend = await getBackend2();
9656
9685
  let memoryHasData = false;
9657
9686
  for (const model of models) {
@@ -9667,7 +9696,7 @@ async function maybeAutoMigrateLegacy(platform, models) {
9667
9696
  ` detected legacy .one/sync/data/${platform}.db (${dbSize}) \u2014 auto-migrating into memory before sync.
9668
9697
  `
9669
9698
  );
9670
- const { memMigrateCommand: memMigrateCommand3 } = await import("./migrate-TACDLGPD.js");
9699
+ const { memMigrateCommand: memMigrateCommand3 } = await import("./migrate-DWRR6FWW.js");
9671
9700
  await memMigrateCommand3({ platform, yes: true });
9672
9701
  return;
9673
9702
  }
@@ -9676,7 +9705,7 @@ async function maybeAutoMigrateLegacy(platform, models) {
9676
9705
  initialValue: true
9677
9706
  });
9678
9707
  if (p6.isCancel(shouldMigrate) || !shouldMigrate) return;
9679
- const { memMigrateCommand: memMigrateCommand2 } = await import("./migrate-TACDLGPD.js");
9708
+ const { memMigrateCommand: memMigrateCommand2 } = await import("./migrate-DWRR6FWW.js");
9680
9709
  await memMigrateCommand2({ platform, yes: true });
9681
9710
  }
9682
9711
  async function syncSuggestSearchableCommand(platformModel, options = {}) {
@@ -9737,7 +9766,7 @@ async function syncSuggestSearchableCommand(platformModel, options = {}) {
9737
9766
  async function syncListCommand(platform) {
9738
9767
  const profiles = listProfiles(platform);
9739
9768
  const state = await readSyncState();
9740
- const { getBackend: getBackend2 } = await import("./runtime-SX36HGBA.js");
9769
+ const { getBackend: getBackend2 } = await import("./runtime-DTKLN6KX.js");
9741
9770
  const backend = await getBackend2();
9742
9771
  const syncs = await Promise.all(profiles.map(async (p9) => {
9743
9772
  const modelState = state[p9.platform]?.[p9.model];
@@ -10013,7 +10042,7 @@ function registerSyncSubcommands(sync) {
10013
10042
  await syncSqlCommand(platformModel, sql);
10014
10043
  });
10015
10044
  sync.command("schema <platform/model>").description("Inspect the JSON structure of synced records (field paths, types, examples) \u2014 useful before writing `sync sql` queries").action(async (platformModel) => {
10016
- const { syncSchemaCommand } = await import("./schema-RJC2WQQ6.js");
10045
+ const { syncSchemaCommand } = await import("./schema-SQA46NFA.js");
10017
10046
  await syncSchemaCommand(platformModel);
10018
10047
  });
10019
10048
  sync.command("delete <platform/model>").description('Delete records from local sync data (e.g. one sync delete notion/pages --id "abc-123")').option("--id <value>", "Delete record by ID").option("--where <conditions>", 'Delete records matching conditions (e.g. "status=archived")').option("--where-sql <predicate>", `Delete using a raw SQL WHERE clause (e.g. "json_extract(data, '$.type') = 'promotion'")`).option("--yes", "Skip confirmation prompt").action(async (platformModel, options) => {
@@ -10790,7 +10819,7 @@ async function memDoctorCommand() {
10790
10819
  }
10791
10820
  if (cfg.embedding.provider === "openai") {
10792
10821
  try {
10793
- const { embed: embed2 } = await import("./embedding-OXX4OF65.js");
10822
+ const { embed: embed2 } = await import("./embedding-DRTGVWP3.js");
10794
10823
  const result = await embed2("connectivity check");
10795
10824
  checks.push({
10796
10825
  name: "OpenAI embedding provider reachable",
@@ -3,12 +3,12 @@ import {
3
3
  dotPathToJsonbExpr,
4
4
  memMigrateCommand,
5
5
  reviveStringifiedJson
6
- } from "./chunk-YTM6HJKA.js";
6
+ } from "./chunk-C7GJ5GUQ.js";
7
7
  import "./chunk-44CV5IMX.js";
8
- import "./chunk-OLQ55K6B.js";
9
- import "./chunk-IMU2X3ZV.js";
10
- import "./chunk-YMUY55U2.js";
11
- import "./chunk-6UB623BG.js";
8
+ import "./chunk-5MDUKW5N.js";
9
+ import "./chunk-Y5JEZWWM.js";
10
+ import "./chunk-WMVVWO6N.js";
11
+ import "./chunk-GGDXUXLM.js";
12
12
  export {
13
13
  buildIdentityMap,
14
14
  dotPathToJsonbExpr,
@@ -5,9 +5,9 @@ import {
5
5
  resetBackendSingleton,
6
6
  updateRecord,
7
7
  upsertRecord
8
- } from "./chunk-IMU2X3ZV.js";
9
- import "./chunk-YMUY55U2.js";
10
- import "./chunk-6UB623BG.js";
8
+ } from "./chunk-Y5JEZWWM.js";
9
+ import "./chunk-WMVVWO6N.js";
10
+ import "./chunk-GGDXUXLM.js";
11
11
  export {
12
12
  addRecord,
13
13
  closeBackendIfCached,
@@ -3,12 +3,12 @@ import {
3
3
  note,
4
4
  okJson,
5
5
  requireMemoryInit
6
- } from "./chunk-OLQ55K6B.js";
6
+ } from "./chunk-5MDUKW5N.js";
7
7
  import {
8
8
  getBackend
9
- } from "./chunk-IMU2X3ZV.js";
10
- import "./chunk-YMUY55U2.js";
11
- import "./chunk-6UB623BG.js";
9
+ } from "./chunk-Y5JEZWWM.js";
10
+ import "./chunk-WMVVWO6N.js";
11
+ import "./chunk-GGDXUXLM.js";
12
12
 
13
13
  // src/lib/memory/sync/schema.ts
14
14
  import pc from "picocolors";
@@ -0,0 +1,12 @@
1
+ import {
2
+ memSqlCommand,
3
+ syncSqlCommand
4
+ } from "./chunk-V4LY2G2F.js";
5
+ import "./chunk-5MDUKW5N.js";
6
+ import "./chunk-Y5JEZWWM.js";
7
+ import "./chunk-WMVVWO6N.js";
8
+ import "./chunk-GGDXUXLM.js";
9
+ export {
10
+ memSqlCommand,
11
+ syncSqlCommand
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@withone/cli",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "description": "CLI for managing One",
5
5
  "type": "module",
6
6
  "files": [
@@ -1,12 +0,0 @@
1
- import {
2
- memSqlCommand,
3
- syncSqlCommand
4
- } from "./chunk-GKAIRI4Y.js";
5
- import "./chunk-OLQ55K6B.js";
6
- import "./chunk-IMU2X3ZV.js";
7
- import "./chunk-YMUY55U2.js";
8
- import "./chunk-6UB623BG.js";
9
- export {
10
- memSqlCommand,
11
- syncSqlCommand
12
- };