@xanots/sdk 0.0.3-beta.0 → 0.0.4

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.
Files changed (88) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +35 -2
  3. package/dist/agent-file-refresh-IJ7GN2FJ.js +17 -0
  4. package/dist/bin.js +12 -153
  5. package/dist/{capture-HUV5BNTC.js → capture-7PO6SGB4.js} +2 -2
  6. package/dist/{chunk-WRYT2PAX.js → chunk-7SISR3CS.js} +24 -36
  7. package/dist/{chunk-7DKX2SPN.js → chunk-ACQCK4DT.js} +4 -4
  8. package/dist/{chunk-XQ22GLYS.js → chunk-AJ7JQ4OU.js} +5 -5
  9. package/dist/{chunk-EWFHDJY5.js → chunk-ALNQCWAW.js} +2 -2
  10. package/dist/{chunk-55VHDNW5.js → chunk-BPEEGJJA.js} +108 -3
  11. package/dist/{chunk-U3G2UW65.js → chunk-CYJ7R3AD.js} +3 -3
  12. package/dist/{agent-file-refresh-J3KY54E5.js → chunk-D6OGU2AI.js} +5 -6
  13. package/dist/{chunk-VVXPK6SE.js → chunk-DUC3PXDG.js} +150 -45
  14. package/dist/{chunk-4HKZH6YK.js → chunk-EAIR6VUL.js} +235 -10
  15. package/dist/chunk-ERQZFWIW.js +22 -0
  16. package/dist/{chunk-TQUO2OXY.js → chunk-FN4OQT2J.js} +4 -4
  17. package/dist/{chunk-FY6LXRR6.js → chunk-KGNJM4LN.js} +2 -2
  18. package/dist/{chunk-HJPTWBLH.js → chunk-MFIHIS6B.js} +2 -2
  19. package/dist/{chunk-F6JCFRKO.js → chunk-PXXLBXOP.js} +2 -2
  20. package/dist/{chunk-YZ4GU6F5.js → chunk-QUUB7HYK.js} +5 -838
  21. package/dist/{chunk-HKAX756N.js → chunk-SWIXWJIY.js} +3 -3
  22. package/dist/{chunk-76QBEIGO.js → chunk-T4XPCJRF.js} +3 -2
  23. package/dist/chunk-T6N3VMMO.js +173 -0
  24. package/dist/{chunk-CBL57QBQ.js → chunk-VKD3EBKG.js} +112 -21
  25. package/dist/{chunk-MWLNBSTY.js → chunk-VWGJQTNA.js} +3 -3
  26. package/dist/chunk-WGDAOOXG.js +845 -0
  27. package/dist/{chunk-4YMD2OOZ.js → chunk-XHEXOES3.js} +1 -1
  28. package/dist/{chunk-4HT3BNZ7.js → chunk-YUBJLB6G.js} +10 -2
  29. package/dist/{chunk-5L4X5LS6.js → chunk-YUPQOLFX.js} +77 -2
  30. package/dist/{chunk-QO4I5OYF.js → chunk-YYSJAAJM.js} +36 -3
  31. package/dist/{chunk-P3TTMWUP.js → chunk-ZOYMZZ3S.js} +8 -1
  32. package/dist/chunk-ZSYZTGJH.js +81 -0
  33. package/dist/cli.d.ts +15 -0
  34. package/dist/cli.js +8 -8
  35. package/dist/{codegen-command-EXLKZ2ZI.js → codegen-command-Z7WQMOJ7.js} +21 -20
  36. package/dist/{completion-2PVZK6YX.js → completion-4GYN752B.js} +2 -2
  37. package/dist/{deploy-command-SXX6RJWM.js → deploy-command-M2S4HHLC.js} +26 -26
  38. package/dist/{env-target-3EGIPR4D.js → env-target-GSFCYHKZ.js} +6 -6
  39. package/dist/{ephemeral-command-OGOYP7D6.js → ephemeral-command-6WJW7LP6.js} +24 -24
  40. package/dist/index.d.ts +2 -2
  41. package/dist/index.js +13 -7
  42. package/dist/init-command-GJUPWTKA.js +30 -0
  43. package/dist/internal.d.ts +2 -2
  44. package/dist/internal.js +53 -7
  45. package/dist/{io-AMIKRLPC.js → io-7VIA5SON.js} +3 -3
  46. package/dist/{live-diff-RXSJCVJ7.js → live-diff-FP4SFNT4.js} +2 -2
  47. package/dist/{lock-3CVKALKT.js → lock-KXOJIGCG.js} +2 -2
  48. package/dist/{lock-commands-R22J54XV.js → lock-commands-7IH7RSSP.js} +9 -9
  49. package/dist/{login-command-ACJF6KWQ.js → login-command-QM5SBBI2.js} +2 -2
  50. package/dist/{logout-command-MX3MJS5U.js → logout-command-THPASOHM.js} +2 -2
  51. package/dist/{loop-SAWAOUFO.js → loop-7SAIGRCZ.js} +3 -3
  52. package/dist/{marketplace-command-XJIWL4YP.js → marketplace-command-463DT7O7.js} +11 -25
  53. package/dist/meta-client-OW5WKWW7.js +1 -1
  54. package/dist/node.d.ts +2 -2
  55. package/dist/node.js +18 -12
  56. package/dist/onboard-command-EHOHKQQU.js +36 -0
  57. package/dist/{profile-command-SWJ3SPKR.js → profile-command-EUWPVWED.js} +6 -6
  58. package/dist/{release-command-6PLMLGDK.js → release-command-M4CVNTWL.js} +25 -25
  59. package/dist/{sandbox-details-command-HJE5SPVG.js → sandbox-details-command-BRII3QHG.js} +5 -5
  60. package/dist/{sandbox-export-command-QCJY4GMV.js → sandbox-export-command-PCZ5FL4U.js} +8 -8
  61. package/dist/scaffold.js +4 -2
  62. package/dist/{store-g45zwB33.d.ts → store-BJONDJoZ.d.ts} +171 -2
  63. package/dist/{test-command-LLPXKT35.js → test-command-U4G5Y3UM.js} +10 -10
  64. package/dist/upgrade-command-CKJ4BS2P.js +177 -0
  65. package/dist/{validate-command-WAT3ZJT3.js → validate-command-S5N37JRP.js} +12 -12
  66. package/dist/{workspace-command-JKMI7RZ4.js → workspace-command-RALSEJSW.js} +28 -27
  67. package/dist/workspace-export-AJMGN3CQ.js +1 -1
  68. package/guides/README.md +30 -0
  69. package/guides/authoring.md +642 -0
  70. package/guides/cli.md +191 -0
  71. package/guides/codegen.md +83 -0
  72. package/guides/coverage.md +67 -0
  73. package/guides/deploying.md +340 -0
  74. package/guides/environment.md +132 -0
  75. package/guides/object-kinds.md +376 -0
  76. package/guides/project-structure.md +43 -0
  77. package/guides/scaffold.md +198 -0
  78. package/guides/typed-frontend.md +201 -0
  79. package/llms/kinds-agent-mcp.md +2 -1
  80. package/llms/kinds-knowledge.md +20 -0
  81. package/llms/object-kinds.md +1 -0
  82. package/llms-full.txt +27 -3
  83. package/llms.txt +3 -2
  84. package/manifest.json +30 -3
  85. package/package.json +5 -2
  86. package/dist/.build-fingerprint +0 -1
  87. package/dist/chunk-47WDWMBJ.js +0 -14
  88. package/dist/init-command-6DGXEVZD.js +0 -29
package/dist/node.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  defineFunction,
3
3
  fileUrl
4
- } from "./chunk-4YMD2OOZ.js";
4
+ } from "./chunk-XHEXOES3.js";
5
5
  import {
6
6
  TEST_EXPECT_TYPES,
7
7
  expect
8
- } from "./chunk-F6JCFRKO.js";
8
+ } from "./chunk-PXXLBXOP.js";
9
9
  import {
10
10
  addon,
11
11
  agent,
@@ -17,7 +17,7 @@ import {
17
17
  task,
18
18
  tool,
19
19
  workflowTest
20
- } from "./chunk-TQUO2OXY.js";
20
+ } from "./chunk-FN4OQT2J.js";
21
21
  import {
22
22
  actionCall,
23
23
  actionPackageCall,
@@ -100,7 +100,7 @@ import {
100
100
  workflowTestCall,
101
101
  workspaceConfig,
102
102
  workspaceTrigger
103
- } from "./chunk-U3G2UW65.js";
103
+ } from "./chunk-CYJ7R3AD.js";
104
104
  import {
105
105
  exportBundleJson,
106
106
  loadDefault,
@@ -108,19 +108,19 @@ import {
108
108
  run,
109
109
  writeArtifact,
110
110
  writeBundle
111
- } from "./chunk-VVXPK6SE.js";
112
- import "./chunk-FY6LXRR6.js";
111
+ } from "./chunk-DUC3PXDG.js";
112
+ import "./chunk-KGNJM4LN.js";
113
113
  import {
114
114
  readLockFile,
115
115
  writeLockFile
116
- } from "./chunk-HJPTWBLH.js";
117
- import "./chunk-EZG76F7R.js";
116
+ } from "./chunk-MFIHIS6B.js";
118
117
  import "./chunk-GNPVYOPB.js";
118
+ import "./chunk-EZG76F7R.js";
119
119
  import {
120
120
  Xano,
121
121
  workspace
122
- } from "./chunk-55VHDNW5.js";
123
- import "./chunk-QO4I5OYF.js";
122
+ } from "./chunk-BPEEGJJA.js";
123
+ import "./chunk-YYSJAAJM.js";
124
124
  import {
125
125
  LAMBDA_BINDINGS,
126
126
  LAMBDA_CODE_FILTERS,
@@ -146,6 +146,9 @@ import {
146
146
  fl,
147
147
  inp,
148
148
  input,
149
+ knowledge,
150
+ knowledgeDir,
151
+ knowledgeFile,
149
152
  lam,
150
153
  lambdaValue,
151
154
  maskNonCode,
@@ -164,7 +167,7 @@ import {
164
167
  toSearchParams,
165
168
  toolset,
166
169
  withFilters
167
- } from "./chunk-5L4X5LS6.js";
170
+ } from "./chunk-YUPQOLFX.js";
168
171
  import "./chunk-WHOJWOSV.js";
169
172
  import {
170
173
  annotate,
@@ -173,7 +176,7 @@ import {
173
176
  import {
174
177
  resetLockOverrides,
175
178
  seedLockOverrides
176
- } from "./chunk-4HT3BNZ7.js";
179
+ } from "./chunk-YUBJLB6G.js";
177
180
 
178
181
  // src/values/lambda-file.ts
179
182
  import { readFileSync } from "fs";
@@ -371,6 +374,9 @@ export {
371
374
  inp,
372
375
  input,
373
376
  ipLookup,
377
+ knowledge,
378
+ knowledgeDir,
379
+ knowledgeFile,
374
380
  lam2 as lam,
375
381
  loadDefault,
376
382
  mathAdd,
@@ -0,0 +1,36 @@
1
+ import {
2
+ condenseNpmError,
3
+ npmViewVersion,
4
+ runNpm
5
+ } from "./chunk-ZSYZTGJH.js";
6
+ import {
7
+ detail,
8
+ step
9
+ } from "./chunk-EZG76F7R.js";
10
+
11
+ // src/emit/onboard-command.ts
12
+ var ONBOARD_PACKAGE = "@xanots/onboard";
13
+ function runOnboardCommand(tail) {
14
+ const resolved = npmViewVersion(ONBOARD_PACKAGE);
15
+ if (!resolved.ok) {
16
+ throw new Error(
17
+ `Could not resolve ${ONBOARD_PACKAGE} from the npm registry.
18
+
19
+ ${condenseNpmError(resolved.stderr)}
20
+
21
+ The configurator is downloaded on demand, so this step needs the registry. \`xanots init\` takes the same choices as flags instead \u2014 and \`--no-install\` skips the dependency install, which is the only other thing that reaches out.`
22
+ );
23
+ }
24
+ step(`Launching ${ONBOARD_PACKAGE} ${resolved.version}`);
25
+ detail(`It brings its own @xanots/sdk, which may differ from this one.`);
26
+ const status = runNpm(
27
+ ["exec", "-y", `${ONBOARD_PACKAGE}@latest`, "--", ...tail],
28
+ process.cwd()
29
+ );
30
+ if (status !== 0) process.exitCode = status;
31
+ }
32
+ export {
33
+ ONBOARD_PACKAGE,
34
+ runOnboardCommand
35
+ };
36
+ //# sourceMappingURL=onboard-command-EHOHKQQU.js.map
@@ -1,3 +1,7 @@
1
+ import {
2
+ getAccessToken
3
+ } from "./chunk-C56BC2FY.js";
4
+ import "./chunk-7REDODS2.js";
1
5
  import {
2
6
  isMachineOutput,
3
7
  writeJson
@@ -6,15 +10,11 @@ import {
6
10
  fetchOrExplain,
7
11
  httpFailure
8
12
  } from "./chunk-3IGNIP6R.js";
9
- import {
10
- getAccessToken
11
- } from "./chunk-C56BC2FY.js";
12
- import "./chunk-7REDODS2.js";
13
+ import "./chunk-GNPVYOPB.js";
13
14
  import {
14
15
  formatFields,
15
16
  stdoutStyle
16
17
  } from "./chunk-EZG76F7R.js";
17
- import "./chunk-GNPVYOPB.js";
18
18
 
19
19
  // src/emit/profile-command.ts
20
20
  var PROFILE_TIMEOUT_MS = 3e4;
@@ -74,4 +74,4 @@ export {
74
74
  fetchProfile,
75
75
  runProfileCommand
76
76
  };
77
- //# sourceMappingURL=profile-command-SWJ3SPKR.js.map
77
+ //# sourceMappingURL=profile-command-EUWPVWED.js.map
@@ -1,37 +1,38 @@
1
- import {
2
- assertBundleInput,
3
- loadBundleText
4
- } from "./chunk-HKAX756N.js";
5
1
  import {
6
2
  importWorkspaceArchive,
7
3
  planWorkspaceImport
8
4
  } from "./chunk-5WGEURVI.js";
5
+ import {
6
+ assertBundleInput,
7
+ loadBundleText
8
+ } from "./chunk-SWIXWJIY.js";
9
9
  import {
10
10
  confirm
11
- } from "./chunk-EWFHDJY5.js";
11
+ } from "./chunk-ALNQCWAW.js";
12
+ import {
13
+ getAccessToken
14
+ } from "./chunk-C56BC2FY.js";
15
+ import "./chunk-7REDODS2.js";
12
16
  import {
13
17
  encodeWorkspaceArchive
14
18
  } from "./chunk-ZUTSMMAG.js";
19
+ import "./chunk-X4DVXBFY.js";
15
20
  import {
16
21
  isMachineOutput,
17
22
  writeJson
18
23
  } from "./chunk-NUQCEOKA.js";
19
24
  import "./chunk-3IGNIP6R.js";
20
- import {
21
- getAccessToken
22
- } from "./chunk-C56BC2FY.js";
23
- import "./chunk-7REDODS2.js";
24
- import "./chunk-X4DVXBFY.js";
25
25
  import {
26
26
  resolveLockPath
27
- } from "./chunk-VVXPK6SE.js";
27
+ } from "./chunk-DUC3PXDG.js";
28
28
  import {
29
29
  UsageError,
30
30
  assertWritableDest
31
- } from "./chunk-FY6LXRR6.js";
31
+ } from "./chunk-KGNJM4LN.js";
32
32
  import {
33
33
  readLockFile
34
- } from "./chunk-HJPTWBLH.js";
34
+ } from "./chunk-MFIHIS6B.js";
35
+ import "./chunk-GNPVYOPB.js";
35
36
  import {
36
37
  blank,
37
38
  detail,
@@ -41,16 +42,15 @@ import {
41
42
  success,
42
43
  warn
43
44
  } from "./chunk-EZG76F7R.js";
44
- import "./chunk-GNPVYOPB.js";
45
- import "./chunk-55VHDNW5.js";
46
- import "./chunk-QO4I5OYF.js";
47
- import "./chunk-5L4X5LS6.js";
45
+ import "./chunk-BPEEGJJA.js";
46
+ import "./chunk-YYSJAAJM.js";
47
+ import "./chunk-YUPQOLFX.js";
48
48
  import "./chunk-WHOJWOSV.js";
49
49
  import "./chunk-5XZ744TS.js";
50
50
  import {
51
51
  REFERENCEABLE_KIND_PAYLOAD_KEYS,
52
52
  lockKey
53
- } from "./chunk-4HT3BNZ7.js";
53
+ } from "./chunk-YUBJLB6G.js";
54
54
 
55
55
  // src/emit/release-command.ts
56
56
  import { existsSync } from "fs";
@@ -153,8 +153,8 @@ async function reconcileLockAfterReplace(args, auth, workspaceId) {
153
153
  return;
154
154
  }
155
155
  try {
156
- const { adoptFromBundle } = await import("./lock-3CVKALKT.js");
157
- const { readLockFile: readLockFile2, writeLockFile } = await import("./io-AMIKRLPC.js");
156
+ const { adoptFromBundle } = await import("./lock-KXOJIGCG.js");
157
+ const { readLockFile: readLockFile2, writeLockFile } = await import("./io-7VIA5SON.js");
158
158
  const { lock, added, changed } = adoptFromBundle(readLockFile2(lockPath), live, lockPath);
159
159
  writeLockFile(lockPath, lock);
160
160
  const touched = added.length + changed.length;
@@ -192,7 +192,7 @@ function targetIsEmpty(live) {
192
192
  async function convergedWithLive(live, req, outgoingBundle) {
193
193
  if (live === void 0 || req.mode !== "merge") return false;
194
194
  if (req.records === true || req.truncate === true) return false;
195
- const { compareToLive } = await import("./live-diff-RXSJCVJ7.js");
195
+ const { compareToLive } = await import("./live-diff-FP4SFNT4.js");
196
196
  let result;
197
197
  try {
198
198
  result = compareToLive(JSON.parse(outgoingBundle), live);
@@ -209,7 +209,7 @@ async function warnAboutLiveLosses(live, req, outgoingBundle) {
209
209
  warn("Could not read the target workspace, so this plan does not account for dropped columns or env that will not update.");
210
210
  return { droppedColumns: 0, unchangedEnv: [] };
211
211
  }
212
- const { diffAgainstLive } = await import("./live-diff-RXSJCVJ7.js");
212
+ const { diffAgainstLive } = await import("./live-diff-FP4SFNT4.js");
213
213
  let diff;
214
214
  try {
215
215
  diff = diffAgainstLive(JSON.parse(outgoingBundle), live, { mode: req.mode });
@@ -338,7 +338,7 @@ async function runReleaseCommand(args) {
338
338
  { withSeed: req.records === true }
339
339
  );
340
340
  if (args.static !== void 0) {
341
- const { assertNoSeedLeaks } = await import("./deploy-command-SXX6RJWM.js");
341
+ const { assertNoSeedLeaks } = await import("./deploy-command-M2S4HHLC.js");
342
342
  await assertNoSeedLeaks(args.static, nonPublicSeedValues, args.allowSeedInStatic);
343
343
  }
344
344
  const workspaceId = auth.workspaceId;
@@ -405,7 +405,7 @@ async function runReleaseCommand(args) {
405
405
  unchangedEnv: losses.unchangedEnv
406
406
  };
407
407
  if (args.static !== void 0) {
408
- const { buildStaticEnv, deployStaticTo } = await import("./deploy-command-SXX6RJWM.js");
408
+ const { buildStaticEnv, deployStaticTo } = await import("./deploy-command-M2S4HHLC.js");
409
409
  const env = buildStaticEnv(auth.instance, args.staticEnv);
410
410
  const explicit = Object.keys(args.staticEnv).length > 0;
411
411
  summary.static = await deployStaticTo(
@@ -424,4 +424,4 @@ async function runReleaseCommand(args) {
424
424
  export {
425
425
  runReleaseCommand
426
426
  };
427
- //# sourceMappingURL=release-command-6PLMLGDK.js.map
427
+ //# sourceMappingURL=release-command-M4CVNTWL.js.map
@@ -2,17 +2,17 @@ import {
2
2
  fetchSandboxDetails,
3
3
  runSandboxDetailsCommand,
4
4
  sandboxBaseUrl
5
- } from "./chunk-7DKX2SPN.js";
5
+ } from "./chunk-ACQCK4DT.js";
6
6
  import "./chunk-NDZFBZHC.js";
7
- import "./chunk-NUQCEOKA.js";
8
- import "./chunk-3IGNIP6R.js";
9
7
  import "./chunk-C56BC2FY.js";
10
8
  import "./chunk-7REDODS2.js";
11
- import "./chunk-EZG76F7R.js";
9
+ import "./chunk-NUQCEOKA.js";
10
+ import "./chunk-3IGNIP6R.js";
12
11
  import "./chunk-GNPVYOPB.js";
12
+ import "./chunk-EZG76F7R.js";
13
13
  export {
14
14
  fetchSandboxDetails,
15
15
  runSandboxDetailsCommand,
16
16
  sandboxBaseUrl
17
17
  };
18
- //# sourceMappingURL=sandbox-details-command-HJE5SPVG.js.map
18
+ //# sourceMappingURL=sandbox-details-command-BRII3QHG.js.map
@@ -3,22 +3,22 @@ import {
3
3
  fetchSandboxMultidoc,
4
4
  resolveOutputTarget,
5
5
  runSandboxExportCommand
6
- } from "./chunk-XQ22GLYS.js";
7
- import "./chunk-QTNO2WD6.js";
8
- import "./chunk-ZUTSMMAG.js";
9
- import "./chunk-7DKX2SPN.js";
6
+ } from "./chunk-AJ7JQ4OU.js";
7
+ import "./chunk-ACQCK4DT.js";
10
8
  import "./chunk-NDZFBZHC.js";
11
- import "./chunk-NUQCEOKA.js";
12
- import "./chunk-3IGNIP6R.js";
13
9
  import "./chunk-C56BC2FY.js";
14
10
  import "./chunk-7REDODS2.js";
11
+ import "./chunk-QTNO2WD6.js";
12
+ import "./chunk-ZUTSMMAG.js";
15
13
  import "./chunk-X4DVXBFY.js";
16
- import "./chunk-EZG76F7R.js";
14
+ import "./chunk-NUQCEOKA.js";
15
+ import "./chunk-3IGNIP6R.js";
17
16
  import "./chunk-GNPVYOPB.js";
17
+ import "./chunk-EZG76F7R.js";
18
18
  export {
19
19
  fetchSandboxBundle,
20
20
  fetchSandboxMultidoc,
21
21
  resolveOutputTarget,
22
22
  runSandboxExportCommand
23
23
  };
24
- //# sourceMappingURL=sandbox-export-command-QCJY4GMV.js.map
24
+ //# sourceMappingURL=sandbox-export-command-PCZ5FL4U.js.map
package/dist/scaffold.js CHANGED
@@ -3,9 +3,11 @@ import {
3
3
  FRAMEWORKS,
4
4
  allFrontendPresets,
5
5
  findFrontendPreset,
6
- renderIndexCss,
7
6
  resolveFrameworkFlag
8
- } from "./chunk-YZ4GU6F5.js";
7
+ } from "./chunk-WGDAOOXG.js";
8
+ import {
9
+ renderIndexCss
10
+ } from "./chunk-QUUB7HYK.js";
9
11
  import {
10
12
  ACCENTS,
11
13
  ACCENT_TOKENS,
@@ -6758,6 +6758,133 @@ declare const realtimeMessageKind: ObjectKind<AnyRealtimeMessageDef$1, RealtimeM
6758
6758
  */
6759
6759
  declare function realtimeMessage<const I extends Record<string, InputDescriptor>, Res = never, Resp extends ResponseDef = ResponseDef, const S extends readonly Statement[] = readonly []>(def: RealtimeMessageDef<I, Res, Resp, S>): RealtimeMessageDef<I, Res, Resp, S>;
6760
6760
 
6761
+ /** Brand for {@link knowledgeFile}'s marker, so the compile path can recognise it structurally. */
6762
+ declare const KNOWLEDGE_FILE: unique symbol;
6763
+ /** Brand for {@link knowledgeDir}'s marker. Distinct from {@link KNOWLEDGE_FILE} so a
6764
+ * directory passed where a body belongs fails at the type level, not at deploy. */
6765
+ declare const KNOWLEDGE_DIR: unique symbol;
6766
+ /** A markdown body named by PATH — see {@link knowledgeFile}. */
6767
+ interface KnowledgeFileSource {
6768
+ readonly [KNOWLEDGE_FILE]: {
6769
+ readonly path: string;
6770
+ readonly base: string;
6771
+ };
6772
+ }
6773
+ /** A reference-file directory named by PATH — see {@link knowledgeDir}. */
6774
+ interface KnowledgeDirSource {
6775
+ readonly [KNOWLEDGE_DIR]: {
6776
+ readonly path: string;
6777
+ readonly base: string;
6778
+ };
6779
+ }
6780
+ /**
6781
+ * The markdown body of a knowledge item, named by path.
6782
+ *
6783
+ * ```ts
6784
+ * body: knowledgeFile("./deploy-runbook.md", import.meta.url)
6785
+ * ```
6786
+ *
6787
+ * `base` is required and is `import.meta.url` at the call site: `path` resolves
6788
+ * relative to the FILE THAT DECLARES THE ITEM — where the author is looking when
6789
+ * they write it — not the CLI's working directory and not the workspace entry.
6790
+ *
6791
+ * A path is a plain string, so there is nothing for a bundler to follow; the file
6792
+ * is read with `node:fs` in the compile pipeline only.
6793
+ */
6794
+ declare function knowledgeFile(path: string, base: string | URL): KnowledgeFileSource;
6795
+ /**
6796
+ * A directory of reference files for a knowledge item, named by path.
6797
+ *
6798
+ * ```ts
6799
+ * refs: knowledgeDir("./deploy-runbook", import.meta.url)
6800
+ * ```
6801
+ *
6802
+ * The whole tree ships, recursively, with POSIX-relative paths preserved. A
6803
+ * directory rather than an explicit list because reference files are prose that
6804
+ * accrues as the author writes: a list means every new file is one forgotten
6805
+ * edit away from an agent that cannot find it. The cost is that the shipped set
6806
+ * is not visible in the def, so the compile path reports what it collected.
6807
+ *
6808
+ * Reference files are never injected into an agent's prompt wholesale — they are
6809
+ * searched on demand, which is what makes a large `mode: "auto"` item cheap.
6810
+ */
6811
+ declare function knowledgeDir(path: string, base: string | URL): KnowledgeDirSource;
6812
+ /** Whether a value is a {@link knowledgeFile} marker. */
6813
+ declare function isKnowledgeFileSource(v: unknown): v is KnowledgeFileSource;
6814
+ /** Whether a value is a {@link knowledgeDir} marker. */
6815
+ declare function isKnowledgeDirSource(v: unknown): v is KnowledgeDirSource;
6816
+ /**
6817
+ * What the item is, which decides how it reaches an agent.
6818
+ *
6819
+ * - `"agents.md"` — standing workspace instructions. Injected in FULL on every
6820
+ * turn regardless of {@link KnowledgeMode}. At most one per workspace.
6821
+ * - `"skill"` — an instruction set the agent follows when it applies.
6822
+ * - `"doc"` — reference material. Same injection rules as `"skill"`; the two
6823
+ * differ in how the platform files them, not in what the agent receives.
6824
+ */
6825
+ type KnowledgeType = "agents.md" | "skill" | "doc";
6826
+ /**
6827
+ * When the body reaches the agent. Ignored for `type: "agents.md"`.
6828
+ *
6829
+ * - `"always"` — full body, every turn. Costs its whole length on every request.
6830
+ * - `"auto"` — name and description only, as a menu; the agent loads the body
6831
+ * when a request matches. The default, and the right choice for anything long.
6832
+ * - `"referenced"` — full body, only on turns whose message names the item.
6833
+ */
6834
+ type KnowledgeMode = "always" | "auto" | "referenced";
6835
+ /** Authoring shape for a knowledge item. */
6836
+ interface KnowledgeDef {
6837
+ /** Workspace-unique name. Also how a `mode: "referenced"` item is addressed. */
6838
+ name: string;
6839
+ /**
6840
+ * What the item is for. For `mode: "auto"` this is the ONLY thing the agent
6841
+ * sees until it decides to load the body, so write it to be matched against a
6842
+ * user's request rather than as a title.
6843
+ */
6844
+ description?: string;
6845
+ /** Defaults to `"skill"`. */
6846
+ type?: KnowledgeType;
6847
+ /** Defaults to `"auto"`. Ignored when `type` is `"agents.md"`. */
6848
+ mode?: KnowledgeMode;
6849
+ /** Defaults to `true`. A disabled item is stored and never reaches an agent. */
6850
+ enabled?: boolean;
6851
+ /** The markdown body. Required — see {@link knowledgeFile}. */
6852
+ body: KnowledgeFileSource;
6853
+ /** Optional reference files searched on demand — see {@link knowledgeDir}. */
6854
+ refs?: KnowledgeDirSource;
6855
+ /** Override the derived identity. Normally left to the lock. */
6856
+ guid?: string;
6857
+ tags?: string[];
6858
+ }
6859
+ /** The flattened importable knowledge `xdo`. */
6860
+ interface KnowledgeXdo {
6861
+ name: string;
6862
+ description: string;
6863
+ /** Filled from {@link KnowledgeDef.body} in the compile path, not here. */
6864
+ content: string;
6865
+ scope: "workspace";
6866
+ mode: KnowledgeMode;
6867
+ knowledge_type: KnowledgeType;
6868
+ enabled: boolean;
6869
+ locked: boolean;
6870
+ references: string[];
6871
+ linked_refs: unknown[];
6872
+ tag: Array<{
6873
+ tag: string;
6874
+ }>;
6875
+ guid?: string;
6876
+ }
6877
+ /** Encode a {@link KnowledgeDef} into its flattened importable `xdo`. */
6878
+ declare function encodeKnowledge(def: KnowledgeDef): KnowledgeXdo;
6879
+ /**
6880
+ * Identity-ish factory, for `const` inference at the call site.
6881
+ *
6882
+ * Returns the def unchanged — a knowledge item has no resolvable public address,
6883
+ * so unlike `query()` or `mcpServer()` there is no handle to hang accessors on.
6884
+ */
6885
+ declare function knowledge(def: KnowledgeDef): KnowledgeDef;
6886
+ declare const knowledgeKind: ObjectKind<KnowledgeDef, KnowledgeXdo>;
6887
+
6761
6888
  /**
6762
6889
  * Workspace config kind (U8) → payload key `workspace` (singleton object, not
6763
6890
  * an array). Emits the author-provided settings subset; the engine fills the
@@ -7457,7 +7584,7 @@ type BundleType = "workspace" | "schema" | "content" | "share";
7457
7584
  * encoded objects land under its key; unsupported sections stay empty arrays so
7458
7585
  * the bundle shape matches the engine's full export.
7459
7586
  */
7460
- declare const PAYLOAD_ARRAY_KEYS: readonly ["dbo", "addon", "function", "middleware", "trigger", "task", "query", "tool", "toolset", "app", "realtime_server", "channel", "message", "microservice", "vault", "market_item", "run_install", "action_package_install", "env", "workflow_test", "service", "branch"];
7587
+ declare const PAYLOAD_ARRAY_KEYS: readonly ["dbo", "addon", "function", "middleware", "trigger", "task", "query", "tool", "toolset", "app", "knowledge", "knowledge_file", "realtime_server", "channel", "message", "microservice", "vault", "market_item", "run_install", "action_package_install", "env", "workflow_test", "service", "branch"];
7461
7588
  type PayloadArrayKey = (typeof PAYLOAD_ARRAY_KEYS)[number];
7462
7589
  interface BundlePayload {
7463
7590
  partial: boolean;
@@ -7498,6 +7625,20 @@ interface BuildBundleArgs {
7498
7625
  /** Assemble a signed `packageExport` bundle from encoded sections. */
7499
7626
  declare function buildBundle(args: BuildBundleArgs): Bundle;
7500
7627
 
7628
+ /** One reference file, as it rides the bundle. */
7629
+ interface ResolvedKnowledgeFile {
7630
+ /** POSIX path relative to the item's reference directory. */
7631
+ path: string;
7632
+ content: string;
7633
+ size: number;
7634
+ }
7635
+ /** One knowledge item's resolved bytes, keyed back to the def by name. */
7636
+ interface ResolvedKnowledge {
7637
+ name: string;
7638
+ content: string;
7639
+ files: ResolvedKnowledgeFile[];
7640
+ }
7641
+
7501
7642
  /**
7502
7643
  * The register methods take the WIDEST instantiation of each def type, not the
7503
7644
  * bare name (issue #208).
@@ -7538,6 +7679,7 @@ declare class Xano {
7538
7679
  private readonly sections;
7539
7680
  /** Table defs, encoded lazily at {@link export} so each can inherit the workspace `use_xdo`. */
7540
7681
  private readonly tableDefs;
7682
+ private readonly knowledgeDefs;
7541
7683
  private workspaceConfig;
7542
7684
  private bundleType;
7543
7685
  /** True for any `Xano` registry, even one created by a different module instance. */
@@ -7578,6 +7720,16 @@ declare class Xano {
7578
7720
  * a rename of the workspace.
7579
7721
  */
7580
7722
  registerWorkspace(def: WorkspaceConfigDef): this;
7723
+ /**
7724
+ * Fill each encoded knowledge item's `content` and emit its reference files as
7725
+ * the sibling `knowledge_file` section.
7726
+ *
7727
+ * Reference rows name their parent by GUID rather than by row id: the id does
7728
+ * not exist until the import inserts the parent, and the importer resolves the
7729
+ * guid back to it. `references` stays empty — the platform derives that list
7730
+ * from the stored files itself, so anything written here is overwritten.
7731
+ */
7732
+ private fillKnowledge;
7581
7733
  /** Set the bundle `type` (defaults to "workspace"). */
7582
7734
  setBundleType(type: BundleType): this;
7583
7735
  /**
@@ -7587,7 +7739,17 @@ declare class Xano {
7587
7739
  * never enter the browser-safe bundle. See {@link import("./seed.js")}.
7588
7740
  */
7589
7741
  tables(): readonly TableDef[];
7742
+ /**
7743
+ * The registered knowledge defs (with their authored `body`/`refs` path
7744
+ * markers), for the Node compile path to read markdown off disk. Deliberately
7745
+ * NOT reached from `export()` — a file read has no place in the browser-safe
7746
+ * bundle, so the encoder emits an empty `content` and the compile path fills
7747
+ * it. See {@link import("./knowledge.js")}.
7748
+ */
7749
+ knowledge(): readonly KnowledgeDef[];
7590
7750
  registerFunctions(defs: AnyFunctionDef[]): this;
7751
+ /** Register knowledge items — the markdown a workspace's AI agents read. */
7752
+ registerKnowledge(defs: KnowledgeDef[]): this;
7591
7753
  registerTriggers(defs: AnyTriggerDef[]): this;
7592
7754
  registerTools(defs: AnyToolDef[]): this;
7593
7755
  registerMcpServers(defs: McpServerDef[]): this;
@@ -7621,6 +7783,13 @@ declare class Xano {
7621
7783
  export(options?: {
7622
7784
  lock?: LockExportContext;
7623
7785
  strict?: boolean;
7786
+ /**
7787
+ * Knowledge bodies and reference files, already read off disk by the Node
7788
+ * compile path. Passed IN rather than read here so `export()` stays free
7789
+ * of `node:fs`, and filled before signing because a knowledge body rides
7790
+ * inside the payload rather than as a separate archive member.
7791
+ */
7792
+ knowledge?: readonly ResolvedKnowledge[];
7624
7793
  }): Bundle;
7625
7794
  /**
7626
7795
  * Cross-check every query's resolved `auth` against the registered auth tables.
@@ -7773,4 +7942,4 @@ declare function getLockedGuid(key: string): string | undefined;
7773
7942
  /** The locked canonical for a lock key, if the lock pins one. */
7774
7943
  declare function getLockedCanonical(key: string): string | undefined;
7775
7944
 
7776
- export { encodeObject as $, type AdoptChange as A, type Bundle as B, encodeAddon as C, encodeAgent as D, encodeApiGroup as E, type FunctionDef as F, GENERATED_STATEMENT_NAMES as G, encodeColumn as H, encodeContainerHistory as I, encodeFromSpec as J, encodeHistory as K, LLMS_TXT as L, type Manifest as M, encodeIndex as N, type ObjectKind as O, PAYLOAD_ARRAY_KEYS as P, QUERY_EXPRESSION_FILTERS as Q, type RenameResult as R, type StatementSpec as S, TOTAL_OBJECT_KINDS as T, encodeMcpServer as U, VECTOR_FILTERS as V, WORKSPACE_KEY as W, encodeMicroservice as X, encodeMiddleware as Y, encodeMiddlewareEntry as Z, encodeMiddlewareList as _, type AdoptResult as a, type AgentDef as a$, encodeQuery as a0, encodeRealtimeChannel as a1, encodeRealtimeMessage as a2, encodeRealtimeServer as a3, encodeSchedule as a4, encodeTable as a5, encodeTask as a6, encodeTool as a7, encodeToolRefs as a8, encodeToolsetBase as a9, registerKind as aA, registerSpec as aB, registeredKinds as aC, renameLockEntry as aD, renderDocs as aE, renderLlmsTxt as aF, resolveAuthRef as aG, resolvePayloadKey as aH, resolveRealtimeServerCanonical as aI, resolveToolsetCanonical as aJ, serializeBundle as aK, serializeLock as aL, tableKind as aM, taskKind as aN, toolKind as aO, triggerKind as aP, validateLockModel as aQ, workflowTestKind as aR, workspaceKind as aS, type LambdaOptions as aT, type CaptureValue as aU, type LambdaSurface as aV, type CaptureRecord as aW, type LambdaBindings as aX, Xano as aY, type AddonDef as aZ, type AddonXdo as a_, encodeTrigger as aa, encodeView as ab, encodeWorkflowTest as ac, encodeWorkspaceConfig as ad, generated as ae, getKind as af, getLockedCanonical as ag, getLockedGuid as ah, isLockSeeded as ai, isQueryExpressionFilter as aj, isRegisteredKind as ak, lockKey as al, mcpServerKind as am, mergeObserved as an, microserviceKind as ao, middlewareKind as ap, mintCanonical as aq, parseLock as ar, phpJsonEncode as as, queryKind as at, realtimeChannelGuid as au, realtimeChannelKind as av, realtimeMessageGuid as aw, realtimeMessageKind as ax, realtimeServerKind as ay, recordObserved as az, type BundlePayload as b, type MicroserviceContainer as b$, type AgentHandle as b0, type AgentOutput as b1, type AgentSettingsXdo as b2, type AgentXdo as b3, type AmbientBindings as b4, type AnthropicLlm as b5, type ApiGroupDef as b6, type ApiGroupXdo as b7, type AuthRef as b8, type Authored as b9, type HttpVerb as bA, type IndexDef as bB, type IndexLang as bC, type IndexOp as bD, type IndexType as bE, type IndexXdo as bF, type InferRow as bG, type InputDescriptor as bH, type InputOptions as bI, type IteratingBindings as bJ, LAMBDA_BINDINGS as bK, LAMBDA_CODE_FILTERS as bL, LAMBDA_GLOBALS as bM, LAMBDA_MODULE_GLOBALS as bN, LAMBDA_STATEMENTS as bO, type LambdaBody as bP, type LlmPrompt as bQ, type LlmProvider as bR, type LlmSettings as bS, type ManifestValue as bT, type McpPathOptions as bU, type McpServerDef as bV, type McpServerHandle as bW, type McpServerXdo as bX, type MessageDeliverTo as bY, type MicroserviceChart as bZ, type MicroserviceConfig as b_, type Capturable as ba, type ChannelConversationDef as bb, type ChannelDeliveryDef as bc, type ChannelDeliveryGuarantee as bd, type ChannelPublishDef as be, type ChannelPublishWho as bf, type ChannelRateLimitDef as bg, type ColumnDef as bh, type Comparison as bi, type ContainerEnv as bj, type ContainerPort as bk, type ContainerResources as bl, type ContainerVolume as bm, type CorsConfig as bn, type CorsMode as bo, type DatabaseActions as bp, type DatabaseInputs as bq, type DbEval as br, type DbEvalFilter as bs, type DbWhere as bt, type ErrorInputs as bu, type ExceptionPolicy as bv, type FieldAccessor as bw, type FieldRule as bx, type GoogleGenAiLlm as by, type HistoryInput as bz, type BundleType as c, type TriggerXdo as c$, type MicroserviceDef as c0, type MicroserviceDeployment as c1, type MicroserviceIngress as c2, type MicroserviceRegistryAuth as c3, type MicroserviceVolume as c4, type MicroserviceXdo as c5, type MiddlewareAttach as c6, type MiddlewareAttachEntry as c7, type MiddlewareDef as c8, type MiddlewareXdo as c9, type RowOf as cA, type ScheduleDef as cB, type SchemaCols as cC, type SchemaDef as cD, type SearchComparison as cE, type SearchGroup as cF, type SearchNode as cG, type SearchOp as cH, type SearchParamValue as cI, type SeedFileSource as cJ, type SeedRow as cK, type SeedSource as cL, type SortDir as cM, type SortDirective as cN, type TableDef as cO, type TableXdo as cP, type TaskDef as cQ, type TaskXdo as cR, type ToolDef as cS, type ToolXdo as cT, type ToolsetBaseDef as cU, type ToolsetBaseXdo as cV, type ToolsetInputs as cW, type ToolsetToolEntry as cX, type ToolsetToolRef as cY, type TriggerDef as cZ, type TriggerObjType as c_, type OpenAiLlm as ca, type QueryDef as cb, type QueryFilterName as cc, type QueryHandle as cd, type QueryResponseType as ce, type QueryXdo as cf, type RealtimeActions as cg, type RealtimeChannelActions as ch, type RealtimeChannelDef as ci, type RealtimeChannelHandle as cj, type RealtimeChannelRef as ck, type RealtimeChannelTriggerInputs as cl, type RealtimeChannelXdo as cm, type RealtimeClient as cn, type RealtimeInputs as co, type RealtimeMessageDef as cp, type RealtimeMessageXdo as cq, type RealtimeServerActions as cr, type RealtimeServerDef as cs, type RealtimeServerHandle as ct, type RealtimeServerRef as cu, type RealtimeServerTriggerInputs as cv, type RealtimeServerXdo as cw, type RealtimeUrlOptions as cx, type ResultStrategy as cy, type Route as cz, FILTER_NAMES as d, workspaceConfig as d$, type ViewDef as d0, type ViewXdo as d1, type WorkflowTestDef as d2, type WorkflowTestXdo as d3, type WorkspaceActions as d4, type WorkspaceConfigDef as d5, type WorkspaceConfigXdo as d6, type WorkspaceHistoryDef as d7, type WorkspaceHistoryXdo as d8, type WorkspaceInputs as d9, mcpServerTrigger as dA, microservice as dB, middleware as dC, mixed as dD, objectEntries as dE, objectKeys as dF, objectValues as dG, or as dH, query as dI, realtimeChannel as dJ, realtimeChannelTrigger as dK, realtimeMessage as dL, realtimeServer as dM, realtimeServerTrigger as dN, realtimeTrigger as dO, resetLockOverrides as dP, seedFile as dQ, seedLockOverrides as dR, table as dS, tableTrigger as dT, task as dU, textAppend as dV, textPrepend as dW, toSearchParams as dX, tool as dY, workflowTest as dZ, workspace as d_, type WorkspaceMiddlewareDef as da, type WorkspaceMiddlewareXdo as db, type XanoFreeLlm as dc, addon as dd, agent as de, agentTrigger as df, and as dg, apiGroup as dh, assertLambdaBody as di, bitwiseAnd as dj, bitwiseOr as dk, bitwiseXor as dl, cmp as dm, defineFunction as dn, emit as dp, emitBundle as dq, errorTrigger as dr, expr as ds, fl as dt, input as du, mathAdd as dv, mathDiv as dw, mathMul as dx, mathSub as dy, mcpServer as dz, LOCK_VERSION as e, workspaceTrigger as e0, type Condition as e1, type FilterResults as e2, type ElementResult as e3, type SameArrayResult as e4, type GroupedArrayResult as e5, type AgentResultOf as e6, type OutputPath as e7, type QualifiedCol as e8, type OutputRoot as e9, type AggregateRow as ea, type EvalFields as eb, type OutputAuthored as ec, lam as ed, type LockEntry as f, type LockExportContext as g, type LockFile as h, type ManifestField as i, type ManifestKind as j, type ManifestStatement as k, type MergeResult as l, type PayloadArrayKey as m, addonKind as n, adoptFromBundle as o, agentKind as p, apiGroupKind as q, buildBundle as r, buildManifest as s, buildMiddlewareBlock as t, buildWorkspaceHistory as u, calcSignatureJson as v, channelPathParams as w, createLockContext as x, declaredServicePorts as y, emptyLock as z };
7945
+ export { encodeMiddleware as $, type AdoptChange as A, type Bundle as B, emptyLock as C, encodeAddon as D, encodeAgent as E, type FunctionDef as F, GENERATED_STATEMENT_NAMES as G, encodeApiGroup as H, encodeColumn as I, encodeContainerHistory as J, KNOWLEDGE_DIR as K, LLMS_TXT as L, type Manifest as M, encodeFromSpec as N, type ObjectKind as O, PAYLOAD_ARRAY_KEYS as P, QUERY_EXPRESSION_FILTERS as Q, type RenameResult as R, type StatementSpec as S, TOTAL_OBJECT_KINDS as T, encodeHistory as U, VECTOR_FILTERS as V, WORKSPACE_KEY as W, encodeIndex as X, encodeKnowledge as Y, encodeMcpServer as Z, encodeMicroservice as _, type AdoptResult as a, type LambdaSurface as a$, encodeMiddlewareEntry as a0, encodeMiddlewareList as a1, encodeObject as a2, encodeQuery as a3, encodeRealtimeChannel as a4, encodeRealtimeMessage as a5, encodeRealtimeServer as a6, encodeSchedule as a7, encodeTable as a8, encodeTask as a9, realtimeChannelGuid as aA, realtimeChannelKind as aB, realtimeMessageGuid as aC, realtimeMessageKind as aD, realtimeServerKind as aE, recordObserved as aF, registerKind as aG, registerSpec as aH, registeredKinds as aI, renameLockEntry as aJ, renderDocs as aK, renderLlmsTxt as aL, resolveAuthRef as aM, resolvePayloadKey as aN, resolveRealtimeServerCanonical as aO, resolveToolsetCanonical as aP, serializeBundle as aQ, serializeLock as aR, tableKind as aS, taskKind as aT, toolKind as aU, triggerKind as aV, validateLockModel as aW, workflowTestKind as aX, workspaceKind as aY, type LambdaOptions as aZ, type CaptureValue as a_, encodeTool as aa, encodeToolRefs as ab, encodeToolsetBase as ac, encodeTrigger as ad, encodeView as ae, encodeWorkflowTest as af, encodeWorkspaceConfig as ag, generated as ah, getKind as ai, getLockedCanonical as aj, getLockedGuid as ak, isKnowledgeDirSource as al, isKnowledgeFileSource as am, isLockSeeded as an, isQueryExpressionFilter as ao, isRegisteredKind as ap, knowledgeKind as aq, lockKey as ar, mcpServerKind as as, mergeObserved as at, microserviceKind as au, middlewareKind as av, mintCanonical as aw, parseLock as ax, phpJsonEncode as ay, queryKind as az, type BundlePayload as b, type LlmPrompt as b$, type CaptureRecord as b0, type LambdaBindings as b1, Xano as b2, type AddonDef as b3, type AddonXdo as b4, type AgentDef as b5, type AgentHandle as b6, type AgentOutput as b7, type AgentSettingsXdo as b8, type AgentXdo as b9, type ErrorInputs as bA, type ExceptionPolicy as bB, type FieldAccessor as bC, type FieldRule as bD, type GoogleGenAiLlm as bE, type HistoryInput as bF, type HttpVerb as bG, type IndexDef as bH, type IndexLang as bI, type IndexOp as bJ, type IndexType as bK, type IndexXdo as bL, type InferRow as bM, type InputDescriptor as bN, type InputOptions as bO, type IteratingBindings as bP, type KnowledgeDef as bQ, type KnowledgeDirSource as bR, type KnowledgeFileSource as bS, type KnowledgeMode as bT, type KnowledgeType as bU, LAMBDA_BINDINGS as bV, LAMBDA_CODE_FILTERS as bW, LAMBDA_GLOBALS as bX, LAMBDA_MODULE_GLOBALS as bY, LAMBDA_STATEMENTS as bZ, type LambdaBody as b_, type AmbientBindings as ba, type AnthropicLlm as bb, type ApiGroupDef as bc, type ApiGroupXdo as bd, type AuthRef as be, type Authored as bf, type Capturable as bg, type ChannelConversationDef as bh, type ChannelDeliveryDef as bi, type ChannelDeliveryGuarantee as bj, type ChannelPublishDef as bk, type ChannelPublishWho as bl, type ChannelRateLimitDef as bm, type ColumnDef as bn, type Comparison as bo, type ContainerEnv as bp, type ContainerPort as bq, type ContainerResources as br, type ContainerVolume as bs, type CorsConfig as bt, type CorsMode as bu, type DatabaseActions as bv, type DatabaseInputs as bw, type DbEval as bx, type DbEvalFilter as by, type DbWhere as bz, type BundleType as c, type TaskDef as c$, type LlmProvider as c0, type LlmSettings as c1, type ManifestValue as c2, type McpPathOptions as c3, type McpServerDef as c4, type McpServerHandle as c5, type McpServerXdo as c6, type MessageDeliverTo as c7, type MicroserviceChart as c8, type MicroserviceConfig as c9, type RealtimeMessageDef as cA, type RealtimeMessageXdo as cB, type RealtimeServerActions as cC, type RealtimeServerDef as cD, type RealtimeServerHandle as cE, type RealtimeServerRef as cF, type RealtimeServerTriggerInputs as cG, type RealtimeServerXdo as cH, type RealtimeUrlOptions as cI, type ResultStrategy as cJ, type Route as cK, type RowOf as cL, type ScheduleDef as cM, type SchemaCols as cN, type SchemaDef as cO, type SearchComparison as cP, type SearchGroup as cQ, type SearchNode as cR, type SearchOp as cS, type SearchParamValue as cT, type SeedFileSource as cU, type SeedRow as cV, type SeedSource as cW, type SortDir as cX, type SortDirective as cY, type TableDef as cZ, type TableXdo as c_, type MicroserviceContainer as ca, type MicroserviceDef as cb, type MicroserviceDeployment as cc, type MicroserviceIngress as cd, type MicroserviceRegistryAuth as ce, type MicroserviceVolume as cf, type MicroserviceXdo as cg, type MiddlewareAttach as ch, type MiddlewareAttachEntry as ci, type MiddlewareDef as cj, type MiddlewareXdo as ck, type OpenAiLlm as cl, type QueryDef as cm, type QueryFilterName as cn, type QueryHandle as co, type QueryResponseType as cp, type QueryXdo as cq, type RealtimeActions as cr, type RealtimeChannelActions as cs, type RealtimeChannelDef as ct, type RealtimeChannelHandle as cu, type RealtimeChannelRef as cv, type RealtimeChannelTriggerInputs as cw, type RealtimeChannelXdo as cx, type RealtimeClient as cy, type RealtimeInputs as cz, FILTER_NAMES as d, realtimeServerTrigger as d$, type TaskXdo as d0, type ToolDef as d1, type ToolXdo as d2, type ToolsetBaseDef as d3, type ToolsetBaseXdo as d4, type ToolsetInputs as d5, type ToolsetToolEntry as d6, type ToolsetToolRef as d7, type TriggerDef as d8, type TriggerObjType as d9, emit as dA, emitBundle as dB, errorTrigger as dC, expr as dD, fl as dE, input as dF, knowledge as dG, knowledgeDir as dH, knowledgeFile as dI, mathAdd as dJ, mathDiv as dK, mathMul as dL, mathSub as dM, mcpServer as dN, mcpServerTrigger as dO, microservice as dP, middleware as dQ, mixed as dR, objectEntries as dS, objectKeys as dT, objectValues as dU, or as dV, query as dW, realtimeChannel as dX, realtimeChannelTrigger as dY, realtimeMessage as dZ, realtimeServer as d_, type TriggerXdo as da, type ViewDef as db, type ViewXdo as dc, type WorkflowTestDef as dd, type WorkflowTestXdo as de, type WorkspaceActions as df, type WorkspaceConfigDef as dg, type WorkspaceConfigXdo as dh, type WorkspaceHistoryDef as di, type WorkspaceHistoryXdo as dj, type WorkspaceInputs as dk, type WorkspaceMiddlewareDef as dl, type WorkspaceMiddlewareXdo as dm, type XanoFreeLlm as dn, addon as dp, agent as dq, agentTrigger as dr, and as ds, apiGroup as dt, assertLambdaBody as du, bitwiseAnd as dv, bitwiseOr as dw, bitwiseXor as dx, cmp as dy, defineFunction as dz, KNOWLEDGE_FILE as e, realtimeTrigger as e0, resetLockOverrides as e1, seedFile as e2, seedLockOverrides as e3, table as e4, tableTrigger as e5, task as e6, textAppend as e7, textPrepend as e8, toSearchParams as e9, tool as ea, workflowTest as eb, workspace as ec, workspaceConfig as ed, workspaceTrigger as ee, type Condition as ef, type FilterResults as eg, type ElementResult as eh, type SameArrayResult as ei, type GroupedArrayResult as ej, type AgentResultOf as ek, type OutputPath as el, type QualifiedCol as em, type OutputRoot as en, type AggregateRow as eo, type EvalFields as ep, type OutputAuthored as eq, lam as er, LOCK_VERSION as f, type LockEntry as g, type LockExportContext as h, type LockFile as i, type ManifestField as j, type ManifestKind as k, type ManifestStatement as l, type MergeResult as m, type PayloadArrayKey as n, addonKind as o, adoptFromBundle as p, agentKind as q, apiGroupKind as r, buildBundle as s, buildManifest as t, buildMiddlewareBlock as u, buildWorkspaceHistory as v, calcSignatureJson as w, channelPathParams as x, createLockContext as y, declaredServicePorts as z };