@xanots/sdk 0.0.3 → 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 (87) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +34 -1
  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-CMZLPTGW.js → chunk-7SISR3CS.js} +2 -2
  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-ZO3HJOCJ.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-6M5M7T24.js → chunk-D6OGU2AI.js} +5 -6
  13. package/dist/{chunk-3NFUWXOC.js → chunk-DUC3PXDG.js} +142 -45
  14. package/dist/{chunk-HQ2CBRVI.js → chunk-EAIR6VUL.js} +10 -8
  15. package/dist/chunk-ERQZFWIW.js +22 -0
  16. package/dist/{chunk-TQUO2OXY.js → chunk-FN4OQT2J.js} +4 -4
  17. package/dist/{chunk-6USV65XA.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-W2G2WPTB.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-2V4YE6QC.js → chunk-VKD3EBKG.js} +112 -21
  25. package/dist/{chunk-BT2CSEC5.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-DYCLVQXW.js → chunk-YYSJAAJM.js} +25 -1
  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 +6 -0
  34. package/dist/cli.js +8 -8
  35. package/dist/{codegen-command-FIADGXRN.js → codegen-command-Z7WQMOJ7.js} +21 -20
  36. package/dist/{completion-BKAFCZBE.js → completion-4GYN752B.js} +2 -2
  37. package/dist/{deploy-command-4R6BYC6G.js → deploy-command-M2S4HHLC.js} +26 -26
  38. package/dist/{env-target-XWS2ZZ2Y.js → env-target-GSFCYHKZ.js} +6 -6
  39. package/dist/{ephemeral-command-JL4TPIRQ.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 +50 -5
  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-XOYS75YQ.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-UVV3XAOL.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-HZUY2XZX.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-72Y5S22H.js → test-command-U4G5Y3UM.js} +10 -10
  64. package/dist/upgrade-command-CKJ4BS2P.js +177 -0
  65. package/dist/{validate-command-KDGH537H.js → validate-command-S5N37JRP.js} +12 -12
  66. package/dist/{workspace-command-ICSI6PKO.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-knowledge.md +20 -0
  80. package/llms/object-kinds.md +1 -0
  81. package/llms-full.txt +25 -2
  82. package/llms.txt +3 -2
  83. package/manifest.json +26 -3
  84. package/package.json +5 -2
  85. package/dist/.build-fingerprint +0 -1
  86. package/dist/chunk-WUSKBXXD.js +0 -25
  87. package/dist/init-command-LOK75W64.js +0 -29
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { e1 as Condition, e2 as FilterResults, e3 as ElementResult, e4 as SameArrayResult, e5 as GroupedArrayResult, e6 as AgentResultOf, aZ as AddonDef, e7 as OutputPath, cO as TableDef, e8 as QualifiedCol, br as DbEval, cN as SortDirective, bt as DbWhere, e9 as OutputRoot, bG as InferRow, ea as AggregateRow, eb as EvalFields, ec as OutputAuthored, c0 as MicroserviceDef, ae as generated, F as FunctionDef, cd as QueryHandle } from './store-g45zwB33.js';
2
- export { a_ as AddonXdo, A as AdoptChange, a as AdoptResult, a$ as AgentDef, b0 as AgentHandle, b1 as AgentOutput, b2 as AgentSettingsXdo, b3 as AgentXdo, b4 as AmbientBindings, b5 as AnthropicLlm, b6 as ApiGroupDef, b7 as ApiGroupXdo, b8 as AuthRef, b9 as Authored, B as Bundle, b as BundlePayload, c as BundleType, ba as Capturable, aW as CaptureRecord, aU as CaptureValue, bb as ChannelConversationDef, bc as ChannelDeliveryDef, bd as ChannelDeliveryGuarantee, be as ChannelPublishDef, bf as ChannelPublishWho, bg as ChannelRateLimitDef, bh as ColumnDef, bi as Comparison, bj as ContainerEnv, bk as ContainerPort, bl as ContainerResources, bm as ContainerVolume, bn as CorsConfig, bo as CorsMode, bp as DatabaseActions, bq as DatabaseInputs, bs as DbEvalFilter, bu as ErrorInputs, bv as ExceptionPolicy, bw as FieldAccessor, bx as FieldRule, by as GoogleGenAiLlm, bz as HistoryInput, bA as HttpVerb, bB as IndexDef, bC as IndexLang, bD as IndexOp, bE as IndexType, bF as IndexXdo, bH as InputDescriptor, bI as InputOptions, bJ as IteratingBindings, bK as LAMBDA_BINDINGS, bL as LAMBDA_CODE_FILTERS, bM as LAMBDA_GLOBALS, bN as LAMBDA_MODULE_GLOBALS, bO as LAMBDA_STATEMENTS, aX as LambdaBindings, bP as LambdaBody, aT as LambdaOptions, aV as LambdaSurface, bQ as LlmPrompt, bR as LlmProvider, bS as LlmSettings, f as LockEntry, g as LockExportContext, h as LockFile, M as Manifest, i as ManifestField, j as ManifestKind, k as ManifestStatement, bT as ManifestValue, bU as McpPathOptions, bV as McpServerDef, bW as McpServerHandle, bX as McpServerXdo, l as MergeResult, bY as MessageDeliverTo, bZ as MicroserviceChart, b_ as MicroserviceConfig, b$ as MicroserviceContainer, c1 as MicroserviceDeployment, c2 as MicroserviceIngress, c3 as MicroserviceRegistryAuth, c4 as MicroserviceVolume, c5 as MicroserviceXdo, c6 as MiddlewareAttach, c7 as MiddlewareAttachEntry, c8 as MiddlewareDef, c9 as MiddlewareXdo, O as ObjectKind, ca as OpenAiLlm, m as PayloadArrayKey, cb as QueryDef, cc as QueryFilterName, ce as QueryResponseType, cf as QueryXdo, cg as RealtimeActions, ch as RealtimeChannelActions, ci as RealtimeChannelDef, cj as RealtimeChannelHandle, ck as RealtimeChannelRef, cl as RealtimeChannelTriggerInputs, cm as RealtimeChannelXdo, cn as RealtimeClient, co as RealtimeInputs, cp as RealtimeMessageDef, cq as RealtimeMessageXdo, cr as RealtimeServerActions, cs as RealtimeServerDef, ct as RealtimeServerHandle, cu as RealtimeServerRef, cv as RealtimeServerTriggerInputs, cw as RealtimeServerXdo, cx as RealtimeUrlOptions, R as RenameResult, cy as ResultStrategy, cz as Route, cA as RowOf, cB as ScheduleDef, cC as SchemaCols, cD as SchemaDef, cE as SearchComparison, cF as SearchGroup, cG as SearchNode, cH as SearchOp, cI as SearchParamValue, cJ as SeedFileSource, cK as SeedRow, cL as SeedSource, cM as SortDir, S as StatementSpec, cP as TableXdo, cQ as TaskDef, cR as TaskXdo, cS as ToolDef, cT as ToolXdo, cU as ToolsetBaseDef, cV as ToolsetBaseXdo, cW as ToolsetInputs, cX as ToolsetToolEntry, cY as ToolsetToolRef, cZ as TriggerDef, c_ as TriggerObjType, c$ as TriggerXdo, d0 as ViewDef, d1 as ViewXdo, d2 as WorkflowTestDef, d3 as WorkflowTestXdo, d4 as WorkspaceActions, d5 as WorkspaceConfigDef, d6 as WorkspaceConfigXdo, d7 as WorkspaceHistoryDef, d8 as WorkspaceHistoryXdo, d9 as WorkspaceInputs, da as WorkspaceMiddlewareDef, db as WorkspaceMiddlewareXdo, aY as Xano, dc as XanoFreeLlm, dd as addon, de as agent, df as agentTrigger, dg as and, dh as apiGroup, di as assertLambdaBody, dj as bitwiseAnd, dk as bitwiseOr, dl as bitwiseXor, dm as cmp, dn as defineFunction, dp as emit, dq as emitBundle, dr as errorTrigger, ds as expr, dt as fl, du as input, ed as lam, dv as mathAdd, dw as mathDiv, dx as mathMul, dy as mathSub, dz as mcpServer, dA as mcpServerTrigger, dB as microservice, dC as middleware, dD as mixed, dE as objectEntries, dF as objectKeys, dG as objectValues, dH as or, dI as query, dJ as realtimeChannel, dK as realtimeChannelTrigger, dL as realtimeMessage, dM as realtimeServer, dN as realtimeServerTrigger, dO as realtimeTrigger, dP as resetLockOverrides, dQ as seedFile, dR as seedLockOverrides, dS as table, dT as tableTrigger, dU as task, dV as textAppend, dW as textPrepend, dX as toSearchParams, dY as tool, dZ as workflowTest, d_ as workspace, d$ as workspaceConfig, e0 as workspaceTrigger } from './store-g45zwB33.js';
1
+ import { ef as Condition, eg as FilterResults, eh as ElementResult, ei as SameArrayResult, ej as GroupedArrayResult, ek as AgentResultOf, b3 as AddonDef, el as OutputPath, cZ as TableDef, em as QualifiedCol, bx as DbEval, cY as SortDirective, bz as DbWhere, en as OutputRoot, bM as InferRow, eo as AggregateRow, ep as EvalFields, eq as OutputAuthored, cb as MicroserviceDef, ah as generated, F as FunctionDef, co as QueryHandle } from './store-BJONDJoZ.js';
2
+ export { b4 as AddonXdo, A as AdoptChange, a as AdoptResult, b5 as AgentDef, b6 as AgentHandle, b7 as AgentOutput, b8 as AgentSettingsXdo, b9 as AgentXdo, ba as AmbientBindings, bb as AnthropicLlm, bc as ApiGroupDef, bd as ApiGroupXdo, be as AuthRef, bf as Authored, B as Bundle, b as BundlePayload, c as BundleType, bg as Capturable, b0 as CaptureRecord, a_ as CaptureValue, bh as ChannelConversationDef, bi as ChannelDeliveryDef, bj as ChannelDeliveryGuarantee, bk as ChannelPublishDef, bl as ChannelPublishWho, bm as ChannelRateLimitDef, bn as ColumnDef, bo as Comparison, bp as ContainerEnv, bq as ContainerPort, br as ContainerResources, bs as ContainerVolume, bt as CorsConfig, bu as CorsMode, bv as DatabaseActions, bw as DatabaseInputs, by as DbEvalFilter, bA as ErrorInputs, bB as ExceptionPolicy, bC as FieldAccessor, bD as FieldRule, bE as GoogleGenAiLlm, bF as HistoryInput, bG as HttpVerb, bH as IndexDef, bI as IndexLang, bJ as IndexOp, bK as IndexType, bL as IndexXdo, bN as InputDescriptor, bO as InputOptions, bP as IteratingBindings, bQ as KnowledgeDef, bR as KnowledgeDirSource, bS as KnowledgeFileSource, bT as KnowledgeMode, bU as KnowledgeType, bV as LAMBDA_BINDINGS, bW as LAMBDA_CODE_FILTERS, bX as LAMBDA_GLOBALS, bY as LAMBDA_MODULE_GLOBALS, bZ as LAMBDA_STATEMENTS, b1 as LambdaBindings, b_ as LambdaBody, aZ as LambdaOptions, a$ as LambdaSurface, b$ as LlmPrompt, c0 as LlmProvider, c1 as LlmSettings, g as LockEntry, h as LockExportContext, i as LockFile, M as Manifest, j as ManifestField, k as ManifestKind, l as ManifestStatement, c2 as ManifestValue, c3 as McpPathOptions, c4 as McpServerDef, c5 as McpServerHandle, c6 as McpServerXdo, m as MergeResult, c7 as MessageDeliverTo, c8 as MicroserviceChart, c9 as MicroserviceConfig, ca as MicroserviceContainer, cc as MicroserviceDeployment, cd as MicroserviceIngress, ce as MicroserviceRegistryAuth, cf as MicroserviceVolume, cg as MicroserviceXdo, ch as MiddlewareAttach, ci as MiddlewareAttachEntry, cj as MiddlewareDef, ck as MiddlewareXdo, O as ObjectKind, cl as OpenAiLlm, n as PayloadArrayKey, cm as QueryDef, cn as QueryFilterName, cp as QueryResponseType, cq as QueryXdo, cr as RealtimeActions, cs as RealtimeChannelActions, ct as RealtimeChannelDef, cu as RealtimeChannelHandle, cv as RealtimeChannelRef, cw as RealtimeChannelTriggerInputs, cx as RealtimeChannelXdo, cy as RealtimeClient, cz as RealtimeInputs, cA as RealtimeMessageDef, cB as RealtimeMessageXdo, cC as RealtimeServerActions, cD as RealtimeServerDef, cE as RealtimeServerHandle, cF as RealtimeServerRef, cG as RealtimeServerTriggerInputs, cH as RealtimeServerXdo, cI as RealtimeUrlOptions, R as RenameResult, cJ as ResultStrategy, cK as Route, cL as RowOf, cM as ScheduleDef, cN as SchemaCols, cO as SchemaDef, cP as SearchComparison, cQ as SearchGroup, cR as SearchNode, cS as SearchOp, cT as SearchParamValue, cU as SeedFileSource, cV as SeedRow, cW as SeedSource, cX as SortDir, S as StatementSpec, c_ as TableXdo, c$ as TaskDef, d0 as TaskXdo, d1 as ToolDef, d2 as ToolXdo, d3 as ToolsetBaseDef, d4 as ToolsetBaseXdo, d5 as ToolsetInputs, d6 as ToolsetToolEntry, d7 as ToolsetToolRef, d8 as TriggerDef, d9 as TriggerObjType, da as TriggerXdo, db as ViewDef, dc as ViewXdo, dd as WorkflowTestDef, de as WorkflowTestXdo, df as WorkspaceActions, dg as WorkspaceConfigDef, dh as WorkspaceConfigXdo, di as WorkspaceHistoryDef, dj as WorkspaceHistoryXdo, dk as WorkspaceInputs, dl as WorkspaceMiddlewareDef, dm as WorkspaceMiddlewareXdo, b2 as Xano, dn as XanoFreeLlm, dp as addon, dq as agent, dr as agentTrigger, ds as and, dt as apiGroup, du as assertLambdaBody, dv as bitwiseAnd, dw as bitwiseOr, dx as bitwiseXor, dy as cmp, dz as defineFunction, dA as emit, dB as emitBundle, dC as errorTrigger, dD as expr, dE as fl, dF as input, dG as knowledge, dH as knowledgeDir, dI as knowledgeFile, er as lam, dJ as mathAdd, dK as mathDiv, dL as mathMul, dM as mathSub, dN as mcpServer, dO as mcpServerTrigger, dP as microservice, dQ as middleware, dR as mixed, dS as objectEntries, dT as objectKeys, dU as objectValues, dV as or, dW as query, dX as realtimeChannel, dY as realtimeChannelTrigger, dZ as realtimeMessage, d_ as realtimeServer, d$ as realtimeServerTrigger, e0 as realtimeTrigger, e1 as resetLockOverrides, e2 as seedFile, e3 as seedLockOverrides, e4 as table, e5 as tableTrigger, e6 as task, e7 as textAppend, e8 as textPrepend, e9 as toSearchParams, ea as tool, eb as workflowTest, ec as workspace, ed as workspaceConfig, ee as workspaceTrigger } from './store-BJONDJoZ.js';
3
3
  import { a2 as StatementAnnotations, a1 as Statement, y as FromFieldMap, w as FilterXdo, V as Value, S as ObjValue, aH as Prettify, x as FilteredValue, X as RefValue, aM as AsShapeBrand, aj as XanoFileRef, a4 as StatementOptions, T as ObjectRef, P as ObjInput, F as FunctionXdo } from './response-CVAE2kMj.js';
4
4
  export { B as BrandOpts, c as BrandValue, C as CacheXdo, f as CaughtField, h as ConditionalContext, j as ConditionalElifContext, D as DecimalMethod, E as EmailMethod, k as ExprGroup, l as ExprNode, m as ExprOperand, n as ExprStatement, o as FieldAccess, p as FieldDescriptor, q as FieldMap, s as FieldOpts, u as FieldStyleType, v as FieldXdo, H as HistoryXdo, I as InputXdo, z as IntMethod, L as ListBoundsXdo, M as MethodArg, A as MethodOpts, G as MethodSpec, J as MethodXdo, K as MockEntry, N as MockMap, O as MockXdo, Q as ObjMember, U as PasswordMethod, W as PersistedFunctionRow, Y as RegexValue, Z as ResponseDef, _ as ResultItemXdo, $ as RowFromFieldMap, a0 as StackItemXdo, a3 as StatementInputXdo, a5 as TAGS, a6 as TEST_EXPECT_TYPES, a7 as TableRefMethod, a8 as Tag, a9 as TaggedValue, aa as TestDef, ab as TestExpect, ac as TestExpectType, ad as TestXdo, ae as TextFormat, af as TextMethod, ag as TypeBrand, ah as ValueOf, ai as VectorMethod, ak as XanoGeoPosition, al as XanoGeoValue, am as annotate, an as auth, ao as c, ap as caught, aq as col, ar as env, as as expect, at as f, au as filter, av as inp, aw as obj, ax as out, ay as ref, az as resp, aA as setting, aB as statements, aC as sys, aD as test, aE as toolset, aF as withFilters } from './response-CVAE2kMj.js';
5
5
 
package/dist/index.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,11 +100,11 @@ 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
  Xano,
106
106
  workspace
107
- } from "./chunk-55VHDNW5.js";
107
+ } from "./chunk-BPEEGJJA.js";
108
108
  import {
109
109
  LAMBDA_BINDINGS,
110
110
  LAMBDA_CODE_FILTERS,
@@ -129,6 +129,9 @@ import {
129
129
  fl,
130
130
  inp,
131
131
  input,
132
+ knowledge,
133
+ knowledgeDir,
134
+ knowledgeFile,
132
135
  lam,
133
136
  mixed,
134
137
  obj,
@@ -145,7 +148,7 @@ import {
145
148
  toSearchParams,
146
149
  toolset,
147
150
  withFilters
148
- } from "./chunk-5L4X5LS6.js";
151
+ } from "./chunk-YUPQOLFX.js";
149
152
  import "./chunk-WHOJWOSV.js";
150
153
  import {
151
154
  annotate,
@@ -154,7 +157,7 @@ import {
154
157
  import {
155
158
  resetLockOverrides,
156
159
  seedLockOverrides
157
- } from "./chunk-4HT3BNZ7.js";
160
+ } from "./chunk-YUBJLB6G.js";
158
161
  export {
159
162
  LAMBDA_BINDINGS,
160
163
  LAMBDA_CODE_FILTERS,
@@ -236,6 +239,9 @@ export {
236
239
  inp,
237
240
  input,
238
241
  ipLookup,
242
+ knowledge,
243
+ knowledgeDir,
244
+ knowledgeFile,
239
245
  lam,
240
246
  mathAdd,
241
247
  mathDiv,
@@ -0,0 +1,30 @@
1
+ import {
2
+ projectShellFiles,
3
+ runInitCommand,
4
+ sanitizeAppName
5
+ } from "./chunk-EAIR6VUL.js";
6
+ import {
7
+ resolveAiFlags
8
+ } from "./chunk-7SISR3CS.js";
9
+ import "./chunk-ZSYZTGJH.js";
10
+ import "./chunk-WGDAOOXG.js";
11
+ import "./chunk-QUUB7HYK.js";
12
+ import "./chunk-6DHJVLYP.js";
13
+ import "./chunk-DUC3PXDG.js";
14
+ import "./chunk-KGNJM4LN.js";
15
+ import "./chunk-MFIHIS6B.js";
16
+ import "./chunk-GNPVYOPB.js";
17
+ import "./chunk-EZG76F7R.js";
18
+ import "./chunk-BPEEGJJA.js";
19
+ import "./chunk-YYSJAAJM.js";
20
+ import "./chunk-YUPQOLFX.js";
21
+ import "./chunk-WHOJWOSV.js";
22
+ import "./chunk-5XZ744TS.js";
23
+ import "./chunk-YUBJLB6G.js";
24
+ export {
25
+ projectShellFiles,
26
+ resolveAiFlags,
27
+ runInitCommand,
28
+ sanitizeAppName
29
+ };
30
+ //# sourceMappingURL=init-command-GJUPWTKA.js.map
@@ -1,7 +1,7 @@
1
1
  import { F as FunctionXdo } from './response-CVAE2kMj.js';
2
2
  export { a as FIELD_METHODS, R as REFERENCEABLE_KINDS, d as deriveGuid, e as encodeResponse, b as encodeStatement, g as getStatementFactory, i as isRegisteredStatement, r as resolveRef, t as toNestedFields } from './response-CVAE2kMj.js';
3
- import { S as StatementSpec, F as FunctionDef, O as ObjectKind } from './store-g45zwB33.js';
4
- export { A as AdoptChange, a as AdoptResult, B as Bundle, b as BundlePayload, c as BundleType, d as FILTER_NAMES, G as GENERATED_STATEMENT_NAMES, L as LLMS_TXT, e as LOCK_VERSION, f as LockEntry, g as LockExportContext, h as LockFile, M as Manifest, i as ManifestField, j as ManifestKind, k as ManifestStatement, l as MergeResult, P as PAYLOAD_ARRAY_KEYS, m as PayloadArrayKey, Q as QUERY_EXPRESSION_FILTERS, R as RenameResult, T as TOTAL_OBJECT_KINDS, V as VECTOR_FILTERS, W as WORKSPACE_KEY, n as addonKind, o as adoptFromBundle, p as agentKind, q as apiGroupKind, r as buildBundle, s as buildManifest, t as buildMiddlewareBlock, u as buildWorkspaceHistory, v as calcSignatureJson, w as channelPathParams, x as createLockContext, y as declaredServicePorts, z as emptyLock, C as encodeAddon, D as encodeAgent, E as encodeApiGroup, H as encodeColumn, I as encodeContainerHistory, J as encodeFromSpec, K as encodeHistory, N as encodeIndex, U as encodeMcpServer, X as encodeMicroservice, Y as encodeMiddleware, Z as encodeMiddlewareEntry, _ as encodeMiddlewareList, $ as encodeObject, a0 as encodeQuery, a1 as encodeRealtimeChannel, a2 as encodeRealtimeMessage, a3 as encodeRealtimeServer, a4 as encodeSchedule, a5 as encodeTable, a6 as encodeTask, a7 as encodeTool, a8 as encodeToolRefs, a9 as encodeToolsetBase, aa as encodeTrigger, ab as encodeView, ac as encodeWorkflowTest, ad as encodeWorkspaceConfig, ae as generatedStatements, af as getKind, ag as getLockedCanonical, ah as getLockedGuid, ai as isLockSeeded, aj as isQueryExpressionFilter, ak as isRegisteredKind, al as lockKey, am as mcpServerKind, an as mergeObserved, ao as microserviceKind, ap as middlewareKind, aq as mintCanonical, ar as parseLock, as as phpJsonEncode, at as queryKind, au as realtimeChannelGuid, av as realtimeChannelKind, aw as realtimeMessageGuid, ax as realtimeMessageKind, ay as realtimeServerKind, az as recordObserved, aA as registerKind, aB as registerSpec, aC as registeredKinds, aD as renameLockEntry, aE as renderDocs, aF as renderLlmsTxt, aG as resolveAuthRef, aH as resolvePayloadKey, aI as resolveRealtimeServerCanonical, aJ as resolveToolsetCanonical, aK as serializeBundle, aL as serializeLock, aM as tableKind, aN as taskKind, aO as toolKind, aP as triggerKind, aQ as validateLockModel, aR as workflowTestKind, aS as workspaceKind } from './store-g45zwB33.js';
3
+ import { S as StatementSpec, F as FunctionDef, O as ObjectKind } from './store-BJONDJoZ.js';
4
+ export { A as AdoptChange, a as AdoptResult, B as Bundle, b as BundlePayload, c as BundleType, d as FILTER_NAMES, G as GENERATED_STATEMENT_NAMES, K as KNOWLEDGE_DIR, e as KNOWLEDGE_FILE, L as LLMS_TXT, f as LOCK_VERSION, g as LockEntry, h as LockExportContext, i as LockFile, M as Manifest, j as ManifestField, k as ManifestKind, l as ManifestStatement, m as MergeResult, P as PAYLOAD_ARRAY_KEYS, n as PayloadArrayKey, Q as QUERY_EXPRESSION_FILTERS, R as RenameResult, T as TOTAL_OBJECT_KINDS, V as VECTOR_FILTERS, W as WORKSPACE_KEY, o as addonKind, p as adoptFromBundle, q as agentKind, r as apiGroupKind, s as buildBundle, t as buildManifest, u as buildMiddlewareBlock, v as buildWorkspaceHistory, w as calcSignatureJson, x as channelPathParams, y as createLockContext, z as declaredServicePorts, C as emptyLock, D as encodeAddon, E as encodeAgent, H as encodeApiGroup, I as encodeColumn, J as encodeContainerHistory, N as encodeFromSpec, U as encodeHistory, X as encodeIndex, Y as encodeKnowledge, Z as encodeMcpServer, _ as encodeMicroservice, $ as encodeMiddleware, a0 as encodeMiddlewareEntry, a1 as encodeMiddlewareList, a2 as encodeObject, a3 as encodeQuery, a4 as encodeRealtimeChannel, a5 as encodeRealtimeMessage, a6 as encodeRealtimeServer, a7 as encodeSchedule, a8 as encodeTable, a9 as encodeTask, aa as encodeTool, ab as encodeToolRefs, ac as encodeToolsetBase, ad as encodeTrigger, ae as encodeView, af as encodeWorkflowTest, ag as encodeWorkspaceConfig, ah as generatedStatements, ai as getKind, aj as getLockedCanonical, ak as getLockedGuid, al as isKnowledgeDirSource, am as isKnowledgeFileSource, an as isLockSeeded, ao as isQueryExpressionFilter, ap as isRegisteredKind, aq as knowledgeKind, ar as lockKey, as as mcpServerKind, at as mergeObserved, au as microserviceKind, av as middlewareKind, aw as mintCanonical, ax as parseLock, ay as phpJsonEncode, az as queryKind, aA as realtimeChannelGuid, aB as realtimeChannelKind, aC as realtimeMessageGuid, aD as realtimeMessageKind, aE as realtimeServerKind, aF as recordObserved, aG as registerKind, aH as registerSpec, aI as registeredKinds, aJ as renameLockEntry, aK as renderDocs, aL as renderLlmsTxt, aM as resolveAuthRef, aN as resolvePayloadKey, aO as resolveRealtimeServerCanonical, aP as resolveToolsetCanonical, aQ as serializeBundle, aR as serializeLock, aS as tableKind, aT as taskKind, aU as toolKind, aV as triggerKind, aW as validateLockModel, aX as workflowTestKind, aY as workspaceKind } from './store-BJONDJoZ.js';
5
5
 
6
6
  /**
7
7
  * AUTO-GENERATED by scripts/codegen.ts — DO NOT EDIT BY HAND.
package/dist/internal.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  taskKind,
34
34
  toolKind,
35
35
  workflowTestKind
36
- } from "./chunk-TQUO2OXY.js";
36
+ } from "./chunk-FN4OQT2J.js";
37
37
  import {
38
38
  GENERATED_SPECS,
39
39
  GENERATED_STATEMENT_NAMES,
@@ -55,18 +55,20 @@ import {
55
55
  registerSpec,
56
56
  triggerKind,
57
57
  workspaceKind
58
- } from "./chunk-U3G2UW65.js";
58
+ } from "./chunk-CYJ7R3AD.js";
59
59
  import {
60
60
  COMMANDS,
61
61
  FLAGS,
62
62
  GLOBAL_FLAGS,
63
63
  flagKey,
64
64
  flagSummary
65
- } from "./chunk-DYCLVQXW.js";
65
+ } from "./chunk-YYSJAAJM.js";
66
66
  import {
67
67
  DECODE_ONLY_STATEMENTS,
68
68
  FILTER_NAMES,
69
69
  FILTER_SPECS,
70
+ KNOWLEDGE_DIR,
71
+ KNOWLEDGE_FILE,
70
72
  LAMBDA_BINDINGS,
71
73
  LAMBDA_GLOBALS,
72
74
  LAMBDA_MODULE_GLOBALS,
@@ -83,6 +85,7 @@ import {
83
85
  encodeFunction,
84
86
  encodeHistory,
85
87
  encodeIndex,
88
+ encodeKnowledge,
86
89
  encodeMiddlewareEntry,
87
90
  encodeMiddlewareList,
88
91
  encodeObject,
@@ -92,8 +95,11 @@ import {
92
95
  encodeView,
93
96
  functionKind,
94
97
  getKind,
98
+ isKnowledgeDirSource,
99
+ isKnowledgeFileSource,
95
100
  isQueryExpressionFilter,
96
101
  isRegisteredKind,
102
+ knowledgeKind,
97
103
  phpJsonEncode,
98
104
  queryKind,
99
105
  registerKind,
@@ -102,7 +108,7 @@ import {
102
108
  serializeBundle,
103
109
  tableKind,
104
110
  toNestedFields
105
- } from "./chunk-5L4X5LS6.js";
111
+ } from "./chunk-YUPQOLFX.js";
106
112
  import "./chunk-WHOJWOSV.js";
107
113
  import {
108
114
  encodeStatement,
@@ -130,7 +136,7 @@ import {
130
136
  resolveRef,
131
137
  serializeLock,
132
138
  validateLockModel
133
- } from "./chunk-4HT3BNZ7.js";
139
+ } from "./chunk-YUBJLB6G.js";
134
140
 
135
141
  // src/statements/byte-evidence.ts
136
142
  var UNCONFIRMED_STATEMENTS = /* @__PURE__ */ new Set([]);
@@ -213,6 +219,13 @@ var KIND_DESCRIPTORS = [
213
219
  { kind: "channel", payloadKey: "channel", authorFactory: "realtimeChannel", description: "A realtime channel: a joinable path on a realtime server (`rooms/{room_id}`) with typed path params, join/publish policy, a client-visible conversation transcript, and delivery semantics. Owns message handlers. Returns a handle with `getChannel(params)` for the path a client joins.", registerMethod: "registerRealtimeChannels" },
214
220
  { kind: "message", payloadKey: "message", authorFactory: "realtimeMessage", description: "A realtime message handler: a named message type on a channel with its own typed payload and stack \u2014 the realtime analogue of a query. Pass the `realtimeChannel()` handle as `channel` and the owning server comes with it.", registerMethod: "registerRealtimeMessages" },
215
221
  { kind: "microservice", payloadKey: "microservice", authorFactory: "microservice", description: "A container workload deployed alongside the workspace, called from a stack with `s.microservice.request`. Two mutually exclusive shapes via `kind`: `builtin` declares containers (image/ports/resources/env/command/args) plus optional `ingresses`, and `helm` points at a chart and its `values` \u2014 passing both throws. EARLY SURFACE, expected to change \u2014 every export of a workspace declaring one prints a notice saying so. `configs`/`volumes` are typed and `@deprecated` but NOT deployable: the engine rejects an import carrying either, so `export()` fails the build rather than letting the deploy fatal. Put a value the workload reads in a container's `env`, and storage in a container's own `volumes` (`emptyDir`/`persistent`/`config`). Container names are free-form \u2014 they need not match the microservice name, which is what a stack addresses. SECRETS RIDE ALONG \u2014 `chart.values` and `registryAuth.dockerconfigjson` are carried into the bundle, and into a pulled tree, verbatim (they must be, or a pulled microservice could not be redeployed). Both are stored strings with NO deploy-time indirection: `process.env.X` in the def resolves at EXPORT and writes the literal into the bundle, so it is not a way to keep the credential out. Either leave `registryAuth` unset (public image, or a credential attached outside this workspace) or treat the bundle and any pulled tree as secret material \u2014 keep them out of git, or rotate after. Export prints a notice per microservice carrying either field; `--strict` does not promote it. For a secret a STACK reads, the mapped surface is `workspaceConfig({ env })` + `env(\"NAME\")`.", registerMethod: "registerMicroservices" },
222
+ {
223
+ kind: "knowledge",
224
+ payloadKey: "knowledge",
225
+ authorFactory: "knowledge",
226
+ description: 'Markdown the workspace\'s AI agents read before they act \u2014 an `agents.md` of standing instructions, a `skill`, or a `doc`. The body is a real markdown FILE via `knowledgeFile("./x.md", import.meta.url)`, and `mode` decides how much of it reaches the agent.',
227
+ registerMethod: "registerKnowledge"
228
+ },
216
229
  { kind: "workspace", payloadKey: "workspace", authorFactory: "workspaceConfig", description: "Workspace-level configuration such as default middleware chains and request-history defaults per host kind.", registerMethod: "registerWorkspace" }
217
230
  ];
218
231
  var ENGINE_OBJECT_KINDS = [
@@ -230,6 +243,7 @@ var ENGINE_OBJECT_KINDS = [
230
243
  { kind: "mcp_server_trigger", authorFactory: "mcpServerTrigger" },
231
244
  { kind: "message", authorFactory: "realtimeMessage" },
232
245
  { kind: "microservice", authorFactory: "microservice" },
246
+ { kind: "knowledge", authorFactory: "knowledge" },
233
247
  { kind: "middleware", authorFactory: "middleware" },
234
248
  { kind: "query", authorFactory: "query" },
235
249
  {
@@ -1291,6 +1305,24 @@ function renderSections(m) {
1291
1305
  '- e.g. `db.query({ table: posts, where: expr(col("author"), "=", auth("id")), as: "rows" })`.',
1292
1306
  ""
1293
1307
  ];
1308
+ const kindsKnowledge = [
1309
+ "- `knowledge({ name, description?, type?, mode?, enabled?, body, refs?, guid?, tags? })` \u2014 markdown the workspace's AI agents read before they act. Takes `registerKnowledge`.",
1310
+ ' - `body` (REQUIRED): `knowledgeFile("./runbook.md", import.meta.url)` \u2014 a path to a real markdown FILE. There is no inline-string form. The path resolves relative to the MODULE THAT DECLARES the item, not the process working directory and not the workspace entry; `import.meta.url` is required and is what makes that true.',
1311
+ ' - `refs?`: `knowledgeDir("./runbook", import.meta.url)` \u2014 a directory whose WHOLE tree ships as reference files, recursively, POSIX-relative paths preserved. Keep the body OUT of that directory: everything under it is collected, so a body beside its refs would ship as one of its own reference files.',
1312
+ ' - `type?`: `"skill"` (default) | `"doc"` | `"agents.md"`. `skill` and `doc` differ in how they are filed, not in what an agent receives.',
1313
+ ' - `mode?`: `"auto"` (default) | `"always"` | `"referenced"`.',
1314
+ " - `enabled?` defaults `true`. A disabled item is stored and never reaches an agent.",
1315
+ "",
1316
+ "### What reaches the agent",
1317
+ "",
1318
+ '- `type: "agents.md"` \u2014 full body on EVERY turn, whatever `mode` says. At most ONE per workspace; a second is an export error. Setting `mode` on one warns, because nothing reads it.',
1319
+ '- `mode: "always"` \u2014 full body on every turn.',
1320
+ '- `mode: "referenced"` \u2014 full body only on turns whose message names the item (bare name or `@name`).',
1321
+ '- `mode: "auto"` \u2014 name and `description` only; the agent loads the body when a request matches.',
1322
+ '- Reference files are never injected wholesale \u2014 an agent searches them on demand. That is what makes a large `mode: "auto"` item cheap.',
1323
+ '- \u26A0 `mode: "always"` on a long body spends its whole length on every request, and nothing in the types says so. `"auto"` is the default for that reason. For an `auto` item `description` is ALL the agent sees until it decides to load the body, so write it to be matched against a request rather than as a title.',
1324
+ "- `name` takes letters, digits, and `/ _ - { } . ` or a space; anything else is an export error."
1325
+ ];
1294
1326
  const kindsAgentMcp = [
1295
1327
  "- `mcpServer({ name, guid?, description?, instructions?, docs?, enabled?, canonical?, spec?, tags?, history?, tools?, llm?, output? })` \u2014 an MCP toolset. `llm?`/`output?` are the same blocks `agent()` takes and are usually absent: an MCP server and an agent are ONE stored object distinguished by `type`. Returns a handle with `getPath()`/`getUrl(baseUrl)` for the Streamable-HTTP endpoint \u2014 `getUrl` is NOT idempotent, a `baseUrl` already carrying an `/x2/mcp/<\u2026>/stream` path THROWS, so resolve ONCE from the instance base URL. Fires on an ephemeral; not in sandbox.",
1296
1328
  " - `tools?`: a `ToolsetToolEntry[]`. Pass the `tool()` HANDLES directly (`tools: [saveNote]`), like every other collection in the SDK; use the `{ tool, enabled?, auth? }` wrapper only when a tool needs `enabled: false` or per-tool `auth`. `auth` names an auth **table** (a `table({ auth: true })` handle or its name) \u2014 Xano's ONLY MCP auth surface (per-tool; there is no server-level gate). An entry that names no tool (no handle, no `id`) THROWS at export rather than emitting the `id: 0` null reference it used to; a deliberate raw `id: 0` warns and is carried through, so a pulled workspace still round-trips.",
@@ -1817,6 +1849,7 @@ function renderSections(m) {
1817
1849
  objectKinds,
1818
1850
  kindsCore,
1819
1851
  kindsAgentMcp,
1852
+ kindsKnowledge,
1820
1853
  kindsRealtime,
1821
1854
  triggers,
1822
1855
  stmtData,
@@ -1871,6 +1904,12 @@ function renderDocs(m) {
1871
1904
  readWhen: "Read when the workspace defines an `agent()` or an `mcpServer()`.",
1872
1905
  body: s.kindsAgentMcp
1873
1906
  },
1907
+ {
1908
+ path: "llms/kinds-knowledge.md",
1909
+ title: "Knowledge def shape",
1910
+ readWhen: "Read when the workspace defines a `knowledge()` item \u2014 the markdown its AI agents read.",
1911
+ body: s.kindsKnowledge
1912
+ },
1874
1913
  {
1875
1914
  path: "llms/kinds-realtime.md",
1876
1915
  title: "Realtime def shapes",
@@ -1978,6 +2017,8 @@ export {
1978
2017
  GENERATED_SPECS,
1979
2018
  GENERATED_STATEMENT_NAMES,
1980
2019
  IMPLEMENTED_STATEMENTS,
2020
+ KNOWLEDGE_DIR,
2021
+ KNOWLEDGE_FILE,
1981
2022
  LLMS_TXT,
1982
2023
  LOCK_VERSION,
1983
2024
  PAYLOAD_ARRAY_KEYS,
@@ -2011,6 +2052,7 @@ export {
2011
2052
  encodeFunction,
2012
2053
  encodeHistory,
2013
2054
  encodeIndex,
2055
+ encodeKnowledge,
2014
2056
  encodeMcpServer,
2015
2057
  encodeMicroservice,
2016
2058
  encodeMiddleware,
@@ -2039,10 +2081,13 @@ export {
2039
2081
  getLockedCanonical,
2040
2082
  getLockedGuid,
2041
2083
  getStatementFactory,
2084
+ isKnowledgeDirSource,
2085
+ isKnowledgeFileSource,
2042
2086
  isLockSeeded,
2043
2087
  isQueryExpressionFilter,
2044
2088
  isRegisteredKind,
2045
2089
  isRegisteredStatement,
2090
+ knowledgeKind,
2046
2091
  lockKey,
2047
2092
  mcpServerKind,
2048
2093
  mergeObserved,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  readLockFile,
3
3
  writeLockFile
4
- } from "./chunk-HJPTWBLH.js";
4
+ } from "./chunk-MFIHIS6B.js";
5
5
  import "./chunk-GNPVYOPB.js";
6
- import "./chunk-4HT3BNZ7.js";
6
+ import "./chunk-YUBJLB6G.js";
7
7
  export {
8
8
  readLockFile,
9
9
  writeLockFile
10
10
  };
11
- //# sourceMappingURL=io-AMIKRLPC.js.map
11
+ //# sourceMappingURL=io-7VIA5SON.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  deepEqual,
3
3
  normalize
4
- } from "./chunk-P3TTMWUP.js";
4
+ } from "./chunk-ZOYMZZ3S.js";
5
5
 
6
6
  // src/deploy/live-diff.ts
7
7
  function rows(bundle, key) {
@@ -193,4 +193,4 @@ export {
193
193
  compareToLive,
194
194
  diffAgainstLive
195
195
  };
196
- //# sourceMappingURL=live-diff-RXSJCVJ7.js.map
196
+ //# sourceMappingURL=live-diff-FP4SFNT4.js.map
@@ -15,7 +15,7 @@ import {
15
15
  resolvePayloadKey,
16
16
  serializeLock,
17
17
  validateLockModel
18
- } from "./chunk-4HT3BNZ7.js";
18
+ } from "./chunk-YUBJLB6G.js";
19
19
  export {
20
20
  CANONICAL_PAYLOAD_KEYS,
21
21
  LOCK_PAYLOAD_KEYS,
@@ -34,4 +34,4 @@ export {
34
34
  serializeLock,
35
35
  validateLockModel
36
36
  };
37
- //# sourceMappingURL=lock-3CVKALKT.js.map
37
+ //# sourceMappingURL=lock-KXOJIGCG.js.map
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  loadDefault
3
- } from "./chunk-3NFUWXOC.js";
3
+ } from "./chunk-DUC3PXDG.js";
4
4
  import {
5
5
  UsageError,
6
6
  missingArgument,
7
7
  unknownSubcommand
8
- } from "./chunk-6USV65XA.js";
8
+ } from "./chunk-KGNJM4LN.js";
9
9
  import {
10
10
  readLockFile,
11
11
  writeLockFile
12
- } from "./chunk-HJPTWBLH.js";
13
- import "./chunk-EZG76F7R.js";
12
+ } from "./chunk-MFIHIS6B.js";
14
13
  import "./chunk-GNPVYOPB.js";
14
+ import "./chunk-EZG76F7R.js";
15
15
  import {
16
16
  Xano
17
- } from "./chunk-55VHDNW5.js";
18
- import "./chunk-DYCLVQXW.js";
19
- import "./chunk-5L4X5LS6.js";
17
+ } from "./chunk-BPEEGJJA.js";
18
+ import "./chunk-YYSJAAJM.js";
19
+ import "./chunk-YUPQOLFX.js";
20
20
  import "./chunk-WHOJWOSV.js";
21
21
  import "./chunk-5XZ744TS.js";
22
22
  import {
@@ -27,7 +27,7 @@ import {
27
27
  resetLockOverrides,
28
28
  resolvePayloadKey,
29
29
  seedLockOverrides
30
- } from "./chunk-4HT3BNZ7.js";
30
+ } from "./chunk-YUBJLB6G.js";
31
31
 
32
32
  // src/emit/lock-commands.ts
33
33
  import { existsSync, readFileSync } from "fs";
@@ -229,4 +229,4 @@ ${lines}
229
229
  export {
230
230
  runLockCommand
231
231
  };
232
- //# sourceMappingURL=lock-commands-XOYS75YQ.js.map
232
+ //# sourceMappingURL=lock-commands-7IH7RSSP.js.map
@@ -20,6 +20,7 @@ import {
20
20
  resolveScope,
21
21
  writeCredential
22
22
  } from "./chunk-7REDODS2.js";
23
+ import "./chunk-GNPVYOPB.js";
23
24
  import {
24
25
  blank,
25
26
  detail,
@@ -29,7 +30,6 @@ import {
29
30
  success,
30
31
  warn
31
32
  } from "./chunk-EZG76F7R.js";
32
- import "./chunk-GNPVYOPB.js";
33
33
 
34
34
  // src/emit/login-command.ts
35
35
  import * as client from "openid-client";
@@ -164,4 +164,4 @@ async function attemptLogin(p) {
164
164
  export {
165
165
  runLoginCommand
166
166
  };
167
- //# sourceMappingURL=login-command-ACJF6KWQ.js.map
167
+ //# sourceMappingURL=login-command-QM5SBBI2.js.map
@@ -6,6 +6,7 @@ import {
6
6
  resolveAuthFilePath,
7
7
  resolveScope
8
8
  } from "./chunk-7REDODS2.js";
9
+ import "./chunk-GNPVYOPB.js";
9
10
  import {
10
11
  detail,
11
12
  hostLabel,
@@ -13,7 +14,6 @@ import {
13
14
  success,
14
15
  warn
15
16
  } from "./chunk-EZG76F7R.js";
16
- import "./chunk-GNPVYOPB.js";
17
17
 
18
18
  // src/emit/logout-command.ts
19
19
  async function runLogoutCommand(args) {
@@ -65,4 +65,4 @@ async function runLogoutCommand(args) {
65
65
  export {
66
66
  runLogoutCommand
67
67
  };
68
- //# sourceMappingURL=logout-command-MX3MJS5U.js.map
68
+ //# sourceMappingURL=logout-command-THPASOHM.js.map
@@ -3,10 +3,10 @@ import {
3
3
  indexByIdentity,
4
4
  kindIsRunnable,
5
5
  resolveMatch
6
- } from "./chunk-76QBEIGO.js";
6
+ } from "./chunk-T4XPCJRF.js";
7
7
  import {
8
8
  normalize
9
- } from "./chunk-P3TTMWUP.js";
9
+ } from "./chunk-ZOYMZZ3S.js";
10
10
 
11
11
  // src/validate/loop.ts
12
12
  async function runValidateLoop(client, bundleText) {
@@ -90,4 +90,4 @@ export {
90
90
  runValidateLoop,
91
91
  runnableFunctionNames
92
92
  };
93
- //# sourceMappingURL=loop-SAWAOUFO.js.map
93
+ //# sourceMappingURL=loop-7SAIGRCZ.js.map
@@ -1,10 +1,13 @@
1
+ import {
2
+ assertProjectDir
3
+ } from "./chunk-ERQZFWIW.js";
1
4
  import {
2
5
  isMachineOutput,
3
6
  writeJson
4
7
  } from "./chunk-NUQCEOKA.js";
5
8
  import {
6
9
  runNpm
7
- } from "./chunk-WUSKBXXD.js";
10
+ } from "./chunk-ZSYZTGJH.js";
8
11
  import {
9
12
  serverMessage
10
13
  } from "./chunk-3IGNIP6R.js";
@@ -12,7 +15,7 @@ import {
12
15
  UsageError,
13
16
  indentBlock,
14
17
  missingArgument
15
- } from "./chunk-6USV65XA.js";
18
+ } from "./chunk-KGNJM4LN.js";
16
19
  import {
17
20
  blank,
18
21
  detail,
@@ -23,11 +26,7 @@ import {
23
26
  success,
24
27
  warn
25
28
  } from "./chunk-EZG76F7R.js";
26
- import "./chunk-DYCLVQXW.js";
27
-
28
- // src/emit/marketplace-command.ts
29
- import { existsSync, readFileSync } from "fs";
30
- import { join } from "path";
29
+ import "./chunk-YYSJAAJM.js";
31
30
 
32
31
  // src/emit/marketplace-catalogue.ts
33
32
  var DEFAULT_BASE_URL = "https://xare-rvr8-mnnt.dev.xano.io";
@@ -188,22 +187,6 @@ async function fetchModule(pkg) {
188
187
  }
189
188
 
190
189
  // src/emit/marketplace-command.ts
191
- function assertProjectDir(dir) {
192
- const manifest = join(dir, "package.json");
193
- if (!existsSync(manifest)) {
194
- throw new Error(
195
- `No package.json in ${dir} \u2014 \`xanots marketplace install\` runs inside a XanoTS project.
196
- cd into your project first, or run \`xanots init\` to create one.`
197
- );
198
- }
199
- try {
200
- JSON.parse(readFileSync(manifest, "utf8"));
201
- } catch (err) {
202
- throw new Error(
203
- `${manifest} is not valid JSON, so npm cannot install into it \u2014 fix it and re-run. (${err instanceof Error ? err.message : String(err)})`
204
- );
205
- }
206
- }
207
190
  function resolvePackage(args, verb = "install") {
208
191
  const pkg = args.positionals[0];
209
192
  if (pkg === void 0 || pkg === "") {
@@ -221,7 +204,10 @@ async function runMarketplaceInstallCommand(args) {
221
204
  refusePromptFlag(args, "install");
222
205
  const pkg = resolvePackage(args);
223
206
  const dir = process.cwd();
224
- assertProjectDir(dir);
207
+ assertProjectDir(dir, {
208
+ what: "`xanots marketplace install` runs inside a XanoTS project",
209
+ remedy: "cd into your project first, or run `xanots init` to create one."
210
+ });
225
211
  step(`Installing ${style.bold(pkg)}`);
226
212
  const status = runNpm(["install", pkg], dir);
227
213
  if (status !== 0) {
@@ -376,4 +362,4 @@ export {
376
362
  runMarketplaceListCommand,
377
363
  runMarketplaceSearchCommand
378
364
  };
379
- //# sourceMappingURL=marketplace-command-UVV3XAOL.js.map
365
+ //# sourceMappingURL=marketplace-command-463DT7O7.js.map
@@ -11,8 +11,8 @@ import {
11
11
  decodeWorkspaceArchive,
12
12
  encodeWorkspaceArchive
13
13
  } from "./chunk-ZUTSMMAG.js";
14
- import "./chunk-3IGNIP6R.js";
15
14
  import "./chunk-X4DVXBFY.js";
15
+ import "./chunk-3IGNIP6R.js";
16
16
 
17
17
  // src/validate/meta-client.ts
18
18
  var REQUEST_TIMEOUT_MS = 6e4;
package/dist/node.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { aT as LambdaOptions, aU as CaptureValue, aV as LambdaSurface, aW as CaptureRecord, aX as LambdaBindings, F as FunctionDef, aY as Xano, h as LockFile } from './store-g45zwB33.js';
2
- export { aZ as AddonDef, a_ as AddonXdo, A as AdoptChange, a as AdoptResult, a$ as AgentDef, b0 as AgentHandle, b1 as AgentOutput, b2 as AgentSettingsXdo, b3 as AgentXdo, b4 as AmbientBindings, b5 as AnthropicLlm, b6 as ApiGroupDef, b7 as ApiGroupXdo, b8 as AuthRef, b9 as Authored, B as Bundle, b as BundlePayload, c as BundleType, ba as Capturable, bb as ChannelConversationDef, bc as ChannelDeliveryDef, bd as ChannelDeliveryGuarantee, be as ChannelPublishDef, bf as ChannelPublishWho, bg as ChannelRateLimitDef, bh as ColumnDef, bi as Comparison, bj as ContainerEnv, bk as ContainerPort, bl as ContainerResources, bm as ContainerVolume, bn as CorsConfig, bo as CorsMode, bp as DatabaseActions, bq as DatabaseInputs, br as DbEval, bs as DbEvalFilter, bt as DbWhere, bu as ErrorInputs, bv as ExceptionPolicy, bw as FieldAccessor, bx as FieldRule, by as GoogleGenAiLlm, bz as HistoryInput, bA as HttpVerb, bB as IndexDef, bC as IndexLang, bD as IndexOp, bE as IndexType, bF as IndexXdo, bG as InferRow, bH as InputDescriptor, bI as InputOptions, bJ as IteratingBindings, bK as LAMBDA_BINDINGS, bL as LAMBDA_CODE_FILTERS, bM as LAMBDA_GLOBALS, bN as LAMBDA_MODULE_GLOBALS, bO as LAMBDA_STATEMENTS, bP as LambdaBody, bQ as LlmPrompt, bR as LlmProvider, bS as LlmSettings, f as LockEntry, g as LockExportContext, M as Manifest, i as ManifestField, j as ManifestKind, k as ManifestStatement, bT as ManifestValue, bU as McpPathOptions, bV as McpServerDef, bW as McpServerHandle, bX as McpServerXdo, l as MergeResult, bY as MessageDeliverTo, bZ as MicroserviceChart, b_ as MicroserviceConfig, b$ as MicroserviceContainer, c0 as MicroserviceDef, c1 as MicroserviceDeployment, c2 as MicroserviceIngress, c3 as MicroserviceRegistryAuth, c4 as MicroserviceVolume, c5 as MicroserviceXdo, c6 as MiddlewareAttach, c7 as MiddlewareAttachEntry, c8 as MiddlewareDef, c9 as MiddlewareXdo, O as ObjectKind, ca as OpenAiLlm, m as PayloadArrayKey, cb as QueryDef, cc as QueryFilterName, cd as QueryHandle, ce as QueryResponseType, cf as QueryXdo, cg as RealtimeActions, ch as RealtimeChannelActions, ci as RealtimeChannelDef, cj as RealtimeChannelHandle, ck as RealtimeChannelRef, cl as RealtimeChannelTriggerInputs, cm as RealtimeChannelXdo, cn as RealtimeClient, co as RealtimeInputs, cp as RealtimeMessageDef, cq as RealtimeMessageXdo, cr as RealtimeServerActions, cs as RealtimeServerDef, ct as RealtimeServerHandle, cu as RealtimeServerRef, cv as RealtimeServerTriggerInputs, cw as RealtimeServerXdo, cx as RealtimeUrlOptions, R as RenameResult, cy as ResultStrategy, cz as Route, cA as RowOf, cB as ScheduleDef, cC as SchemaCols, cD as SchemaDef, cE as SearchComparison, cF as SearchGroup, cG as SearchNode, cH as SearchOp, cI as SearchParamValue, cJ as SeedFileSource, cK as SeedRow, cL as SeedSource, cM as SortDir, cN as SortDirective, S as StatementSpec, cO as TableDef, cP as TableXdo, cQ as TaskDef, cR as TaskXdo, cS as ToolDef, cT as ToolXdo, cU as ToolsetBaseDef, cV as ToolsetBaseXdo, cW as ToolsetInputs, cX as ToolsetToolEntry, cY as ToolsetToolRef, cZ as TriggerDef, c_ as TriggerObjType, c$ as TriggerXdo, d0 as ViewDef, d1 as ViewXdo, d2 as WorkflowTestDef, d3 as WorkflowTestXdo, d4 as WorkspaceActions, d5 as WorkspaceConfigDef, d6 as WorkspaceConfigXdo, d7 as WorkspaceHistoryDef, d8 as WorkspaceHistoryXdo, d9 as WorkspaceInputs, da as WorkspaceMiddlewareDef, db as WorkspaceMiddlewareXdo, dc as XanoFreeLlm, dd as addon, de as agent, df as agentTrigger, dg as and, dh as apiGroup, di as assertLambdaBody, dj as bitwiseAnd, dk as bitwiseOr, dl as bitwiseXor, dm as cmp, dn as defineFunction, dp as emit, dq as emitBundle, dr as errorTrigger, ds as expr, dt as fl, du as input, dv as mathAdd, dw as mathDiv, dx as mathMul, dy as mathSub, dz as mcpServer, dA as mcpServerTrigger, dB as microservice, dC as middleware, dD as mixed, dE as objectEntries, dF as objectKeys, dG as objectValues, dH as or, dI as query, dJ as realtimeChannel, dK as realtimeChannelTrigger, dL as realtimeMessage, dM as realtimeServer, dN as realtimeServerTrigger, dO as realtimeTrigger, dP as resetLockOverrides, dQ as seedFile, dR as seedLockOverrides, dS as table, dT as tableTrigger, dU as task, dV as textAppend, dW as textPrepend, dX as toSearchParams, dY as tool, dZ as workflowTest, d_ as workspace, d$ as workspaceConfig, e0 as workspaceTrigger } from './store-g45zwB33.js';
1
+ import { aZ as LambdaOptions, a_ as CaptureValue, a$ as LambdaSurface, b0 as CaptureRecord, b1 as LambdaBindings, F as FunctionDef, b2 as Xano, i as LockFile } from './store-BJONDJoZ.js';
2
+ export { b3 as AddonDef, b4 as AddonXdo, A as AdoptChange, a as AdoptResult, b5 as AgentDef, b6 as AgentHandle, b7 as AgentOutput, b8 as AgentSettingsXdo, b9 as AgentXdo, ba as AmbientBindings, bb as AnthropicLlm, bc as ApiGroupDef, bd as ApiGroupXdo, be as AuthRef, bf as Authored, B as Bundle, b as BundlePayload, c as BundleType, bg as Capturable, bh as ChannelConversationDef, bi as ChannelDeliveryDef, bj as ChannelDeliveryGuarantee, bk as ChannelPublishDef, bl as ChannelPublishWho, bm as ChannelRateLimitDef, bn as ColumnDef, bo as Comparison, bp as ContainerEnv, bq as ContainerPort, br as ContainerResources, bs as ContainerVolume, bt as CorsConfig, bu as CorsMode, bv as DatabaseActions, bw as DatabaseInputs, bx as DbEval, by as DbEvalFilter, bz as DbWhere, bA as ErrorInputs, bB as ExceptionPolicy, bC as FieldAccessor, bD as FieldRule, bE as GoogleGenAiLlm, bF as HistoryInput, bG as HttpVerb, bH as IndexDef, bI as IndexLang, bJ as IndexOp, bK as IndexType, bL as IndexXdo, bM as InferRow, bN as InputDescriptor, bO as InputOptions, bP as IteratingBindings, bQ as KnowledgeDef, bR as KnowledgeDirSource, bS as KnowledgeFileSource, bT as KnowledgeMode, bU as KnowledgeType, bV as LAMBDA_BINDINGS, bW as LAMBDA_CODE_FILTERS, bX as LAMBDA_GLOBALS, bY as LAMBDA_MODULE_GLOBALS, bZ as LAMBDA_STATEMENTS, b_ as LambdaBody, b$ as LlmPrompt, c0 as LlmProvider, c1 as LlmSettings, g as LockEntry, h as LockExportContext, M as Manifest, j as ManifestField, k as ManifestKind, l as ManifestStatement, c2 as ManifestValue, c3 as McpPathOptions, c4 as McpServerDef, c5 as McpServerHandle, c6 as McpServerXdo, m as MergeResult, c7 as MessageDeliverTo, c8 as MicroserviceChart, c9 as MicroserviceConfig, ca as MicroserviceContainer, cb as MicroserviceDef, cc as MicroserviceDeployment, cd as MicroserviceIngress, ce as MicroserviceRegistryAuth, cf as MicroserviceVolume, cg as MicroserviceXdo, ch as MiddlewareAttach, ci as MiddlewareAttachEntry, cj as MiddlewareDef, ck as MiddlewareXdo, O as ObjectKind, cl as OpenAiLlm, n as PayloadArrayKey, cm as QueryDef, cn as QueryFilterName, co as QueryHandle, cp as QueryResponseType, cq as QueryXdo, cr as RealtimeActions, cs as RealtimeChannelActions, ct as RealtimeChannelDef, cu as RealtimeChannelHandle, cv as RealtimeChannelRef, cw as RealtimeChannelTriggerInputs, cx as RealtimeChannelXdo, cy as RealtimeClient, cz as RealtimeInputs, cA as RealtimeMessageDef, cB as RealtimeMessageXdo, cC as RealtimeServerActions, cD as RealtimeServerDef, cE as RealtimeServerHandle, cF as RealtimeServerRef, cG as RealtimeServerTriggerInputs, cH as RealtimeServerXdo, cI as RealtimeUrlOptions, R as RenameResult, cJ as ResultStrategy, cK as Route, cL as RowOf, cM as ScheduleDef, cN as SchemaCols, cO as SchemaDef, cP as SearchComparison, cQ as SearchGroup, cR as SearchNode, cS as SearchOp, cT as SearchParamValue, cU as SeedFileSource, cV as SeedRow, cW as SeedSource, cX as SortDir, cY as SortDirective, S as StatementSpec, cZ as TableDef, c_ as TableXdo, c$ as TaskDef, d0 as TaskXdo, d1 as ToolDef, d2 as ToolXdo, d3 as ToolsetBaseDef, d4 as ToolsetBaseXdo, d5 as ToolsetInputs, d6 as ToolsetToolEntry, d7 as ToolsetToolRef, d8 as TriggerDef, d9 as TriggerObjType, da as TriggerXdo, db as ViewDef, dc as ViewXdo, dd as WorkflowTestDef, de as WorkflowTestXdo, df as WorkspaceActions, dg as WorkspaceConfigDef, dh as WorkspaceConfigXdo, di as WorkspaceHistoryDef, dj as WorkspaceHistoryXdo, dk as WorkspaceInputs, dl as WorkspaceMiddlewareDef, dm as WorkspaceMiddlewareXdo, dn as XanoFreeLlm, dp as addon, dq as agent, dr as agentTrigger, ds as and, dt as apiGroup, du as assertLambdaBody, dv as bitwiseAnd, dw as bitwiseOr, dx as bitwiseXor, dy as cmp, dz as defineFunction, dA as emit, dB as emitBundle, dC as errorTrigger, dD as expr, dE as fl, dF as input, dG as knowledge, dH as knowledgeDir, dI as knowledgeFile, dJ as mathAdd, dK as mathDiv, dL as mathMul, dM as mathSub, dN as mcpServer, dO as mcpServerTrigger, dP as microservice, dQ as middleware, dR as mixed, dS as objectEntries, dT as objectKeys, dU as objectValues, dV as or, dW as query, dX as realtimeChannel, dY as realtimeChannelTrigger, dZ as realtimeMessage, d_ as realtimeServer, d$ as realtimeServerTrigger, e0 as realtimeTrigger, e1 as resetLockOverrides, e2 as seedFile, e3 as seedLockOverrides, e4 as table, e5 as tableTrigger, e6 as task, e7 as textAppend, e8 as textPrepend, e9 as toSearchParams, ea as tool, eb as workflowTest, ec as workspace, ed as workspaceConfig, ee as workspaceTrigger } from './store-BJONDJoZ.js';
3
3
  export { ActionCallArgs, AddonCallArgs, AddonSpec, AgentRunResult, AiAgentRunArgs, AnyAddonDef, AnyFunctionDef, AnyQueryDef, AnyTableDef, ApiCallArgs, ApplyFilter, ApplyFilters, ArrayMapArgs, CloudJobArgs, CloudJobAwaitArgs, CloudJobStatusArgs, CreateAuthTokenArgs, DbAddArgs, DbAddOrEditArgs, DbAggregate, DbAggregatePaging, DbBind, DbBulkAddArgs, DbBulkDeleteArgs, DbBulkWriteArgs, DbDelArgs, DbDirectQueryArgs, DbDistinct, DbEditArgs, DbExternal, DbExternalPermissions, DbExternalQueryArgs, DbField, DbGetArgs, DbHasArgs, DbJoin, DbPaging, DbPatchArgs, DbQueryArgs, DbResponseType, DbReturnType, DbSchemaArgs, DbTransactionArgs, DbTruncateArgs, ExpectToThrowArgs, ExternalSqlEngine, ForArgs, ForeachArgs, FunctionCallArgs, FunctionRunArgs, GetRawInputArgs, HeaderMap, HttpMethod, InferInput, InferResponse, IpLookupArgs, IpLookupResult, MiddlewareCallArgs, RealtimeEventArgs, StackTupleWidened, SwitchArgs, SwitchCaseArgs, TaskCallArgs, ToolCallArgs, TriggerCallArgs, TryCatchArgs, WhileArgs, WorkflowTestCallArgs, actionCall, actionPackageCall, addonCall, aiAgentRun, apiCall, arrayMap, arrayUnion, cloudJob, cloudJobAwait, cloudJobStatus, comment, compile, conditional, createAuthToken, dbAdd, dbAddOrEdit, dbBulkAdd, dbBulkDelete, dbBulkPatch, dbBulkUpdate, dbDel, dbDirectQuery, dbEdit, dbExternalQuery, dbGet, dbHas, dbPatch, dbQuery, dbSchema, dbTransaction, dbTruncate, debugLog, die, expectToThrow, fileUrl, forLoop, foreachBreak, foreachContinue, foreachLoop, foreachRemove, functionCall, functionRun, getRawInput, group, ignored, ipLookup, middlewareCall, postProcess, realtimeEvent, returnValue, s, setVar, switchCase, switchStatement, taskCall, toolCall, triggerCall, tryCatch, updateVar, whileLoop, workflowTestCall } from './index.js';
4
4
  import { V as Value } from './response-CVAE2kMj.js';
5
5
  export { B as BrandOpts, c as BrandValue, C as CacheXdo, f as CaughtField, h as ConditionalContext, j as ConditionalElifContext, D as DecimalMethod, E as EmailMethod, k as ExprGroup, l as ExprNode, m as ExprOperand, n as ExprStatement, o as FieldAccess, p as FieldDescriptor, q as FieldMap, s as FieldOpts, u as FieldStyleType, v as FieldXdo, w as FilterXdo, x as FilteredValue, y as FromFieldMap, F as FunctionXdo, H as HistoryXdo, I as InputXdo, z as IntMethod, L as ListBoundsXdo, M as MethodArg, A as MethodOpts, G as MethodSpec, J as MethodXdo, K as MockEntry, N as MockMap, O as MockXdo, P as ObjInput, Q as ObjMember, S as ObjValue, T as ObjectRef, U as PasswordMethod, W as PersistedFunctionRow, X as RefValue, Y as RegexValue, Z as ResponseDef, _ as ResultItemXdo, $ as RowFromFieldMap, a0 as StackItemXdo, a1 as Statement, a2 as StatementAnnotations, a3 as StatementInputXdo, a4 as StatementOptions, a5 as TAGS, a6 as TEST_EXPECT_TYPES, a7 as TableRefMethod, a8 as Tag, a9 as TaggedValue, aa as TestDef, ab as TestExpect, ac as TestExpectType, ad as TestXdo, ae as TextFormat, af as TextMethod, ag as TypeBrand, ah as ValueOf, ai as VectorMethod, aj as XanoFileRef, ak as XanoGeoPosition, al as XanoGeoValue, am as annotate, an as auth, ao as c, ap as caught, aq as col, ar as env, as as expect, at as f, au as filter, av as inp, aw as obj, ax as out, ay as ref, az as resp, aA as setting, aB as statements, aC as sys, aD as test, aE as toolset, aF as withFilters } from './response-CVAE2kMj.js';