@xanots/sdk 0.0.1

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 (106) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +384 -0
  3. package/dist/agent-file-refresh-7XCACU34.js +95 -0
  4. package/dist/bin.d.ts +1 -0
  5. package/dist/bin.js +184 -0
  6. package/dist/capture-HUV5BNTC.js +32 -0
  7. package/dist/chunk-26CNBZE2.js +963 -0
  8. package/dist/chunk-33ND6LKO.js +78 -0
  9. package/dist/chunk-3DUAGYGP.js +1550 -0
  10. package/dist/chunk-3IGNIP6R.js +89 -0
  11. package/dist/chunk-47WDWMBJ.js +14 -0
  12. package/dist/chunk-4BXJGVZ3.js +318 -0
  13. package/dist/chunk-4HT3BNZ7.js +675 -0
  14. package/dist/chunk-4YMD2OOZ.js +23 -0
  15. package/dist/chunk-5WGEURVI.js +156 -0
  16. package/dist/chunk-5YTBTF25.js +29 -0
  17. package/dist/chunk-6DHBYBTO.js +166 -0
  18. package/dist/chunk-76QBEIGO.js +66 -0
  19. package/dist/chunk-7DKX2SPN.js +100 -0
  20. package/dist/chunk-7REDODS2.js +468 -0
  21. package/dist/chunk-C56BC2FY.js +254 -0
  22. package/dist/chunk-DGSF2Q5H.js +60 -0
  23. package/dist/chunk-EMCAWMHC.js +3982 -0
  24. package/dist/chunk-EZG76F7R.js +159 -0
  25. package/dist/chunk-FJ6ZS5KB.js +3607 -0
  26. package/dist/chunk-GNPVYOPB.js +17 -0
  27. package/dist/chunk-HJPTWBLH.js +38 -0
  28. package/dist/chunk-IZW6MK3U.js +248 -0
  29. package/dist/chunk-LH6Z6KFV.js +247 -0
  30. package/dist/chunk-MZUI3JNX.js +93 -0
  31. package/dist/chunk-NDZFBZHC.js +167 -0
  32. package/dist/chunk-NOO35BQ2.js +37 -0
  33. package/dist/chunk-NUQCEOKA.js +13 -0
  34. package/dist/chunk-QTNO2WD6.js +56 -0
  35. package/dist/chunk-RVB7ITKN.js +49 -0
  36. package/dist/chunk-TRU5OHQ5.js +6904 -0
  37. package/dist/chunk-VKFQJEMW.js +814 -0
  38. package/dist/chunk-VTIL47DT.js +125 -0
  39. package/dist/chunk-WHOJWOSV.js +112 -0
  40. package/dist/chunk-WKP4D5MO.js +1692 -0
  41. package/dist/chunk-X4DVXBFY.js +38 -0
  42. package/dist/chunk-XQ22GLYS.js +118 -0
  43. package/dist/chunk-YDZYMZBE.js +670 -0
  44. package/dist/chunk-YGPIY3WT.js +1146 -0
  45. package/dist/chunk-YYRDLFSJ.js +602 -0
  46. package/dist/chunk-ZUTSMMAG.js +46 -0
  47. package/dist/cli.d.ts +331 -0
  48. package/dist/cli.js +33 -0
  49. package/dist/codegen-command-OOKK6AZK.js +40 -0
  50. package/dist/codegen.d.ts +114 -0
  51. package/dist/codegen.js +71 -0
  52. package/dist/completion-TIPPZN7H.js +298 -0
  53. package/dist/config-NL33PN4D.js +84 -0
  54. package/dist/deploy-command-4EQ7XX5G.js +451 -0
  55. package/dist/env-target-IFJ5QDHC.js +16 -0
  56. package/dist/ephemeral-command-3X3I4ULC.js +242 -0
  57. package/dist/index.d.ts +4477 -0
  58. package/dist/index.js +300 -0
  59. package/dist/init-command-R6H7ZXW5.js +27 -0
  60. package/dist/internal.d.ts +74 -0
  61. package/dist/internal.js +2065 -0
  62. package/dist/io-AMIKRLPC.js +11 -0
  63. package/dist/live-diff-Y3AKETHE.js +196 -0
  64. package/dist/lock-3CVKALKT.js +37 -0
  65. package/dist/lock-commands-XTR2YKLY.js +232 -0
  66. package/dist/login-command-ACJF6KWQ.js +167 -0
  67. package/dist/logout-command-MX3MJS5U.js +68 -0
  68. package/dist/loop-OM3P2Z6O.js +93 -0
  69. package/dist/marketplace-command-RATXTKXN.js +379 -0
  70. package/dist/meta-client-OW5WKWW7.js +170 -0
  71. package/dist/node.d.ts +59 -0
  72. package/dist/node.js +442 -0
  73. package/dist/profile-command-SWJ3SPKR.js +77 -0
  74. package/dist/release-command-VV5UVZKL.js +427 -0
  75. package/dist/response-CVAE2kMj.d.ts +1915 -0
  76. package/dist/routes-manifest-SP3ZXLMR.js +244 -0
  77. package/dist/runtime-V4C3AC3A.js +13 -0
  78. package/dist/sandbox-details-command-HJE5SPVG.js +18 -0
  79. package/dist/sandbox-export-command-QCJY4GMV.js +24 -0
  80. package/dist/static-host-D6KS7X45.js +138 -0
  81. package/dist/store-BQ97nKIF.d.ts +7760 -0
  82. package/dist/test-command-TSPBQHBM.js +383 -0
  83. package/dist/validate-command-4ERHJSCO.js +122 -0
  84. package/dist/verify-rollout-FAVQ6EJY.js +40 -0
  85. package/dist/workspace-K72NP7SX.js +49 -0
  86. package/dist/workspace-command-OF23DPNI.js +156 -0
  87. package/dist/workspace-export-AJMGN3CQ.js +10 -0
  88. package/llms/fields.md +104 -0
  89. package/llms/filters.md +183 -0
  90. package/llms/kinds-agent-mcp.md +11 -0
  91. package/llms/kinds-core.md +68 -0
  92. package/llms/kinds-realtime.md +76 -0
  93. package/llms/lambda.md +111 -0
  94. package/llms/legacy.md +43 -0
  95. package/llms/object-kinds.md +31 -0
  96. package/llms/statements-calls.md +23 -0
  97. package/llms/statements-catalog.md +309 -0
  98. package/llms/statements-data.md +58 -0
  99. package/llms/statements-runtime.md +48 -0
  100. package/llms/tests.md +58 -0
  101. package/llms/triggers.md +22 -0
  102. package/llms/values.md +29 -0
  103. package/llms-full.txt +1672 -0
  104. package/llms.txt +483 -0
  105. package/manifest.json +9592 -0
  106. package/package.json +110 -0
package/dist/index.js ADDED
@@ -0,0 +1,300 @@
1
+ import {
2
+ defineFunction,
3
+ fileUrl
4
+ } from "./chunk-4YMD2OOZ.js";
5
+ import {
6
+ TEST_EXPECT_TYPES,
7
+ expect
8
+ } from "./chunk-MZUI3JNX.js";
9
+ import {
10
+ addon,
11
+ agent,
12
+ apiGroup,
13
+ mcpServer,
14
+ middleware,
15
+ realtimeMessage,
16
+ realtimeServer,
17
+ task,
18
+ tool,
19
+ workflowTest
20
+ } from "./chunk-YDZYMZBE.js";
21
+ import {
22
+ actionCall,
23
+ actionPackageCall,
24
+ addonCall,
25
+ agentTrigger,
26
+ aiAgentRun,
27
+ apiCall,
28
+ arrayMap,
29
+ arrayUnion,
30
+ bitwiseAnd,
31
+ bitwiseOr,
32
+ bitwiseXor,
33
+ cloudJob,
34
+ cloudJobAwait,
35
+ cloudJobStatus,
36
+ comment,
37
+ createAuthToken,
38
+ dbAdd,
39
+ dbAddOrEdit,
40
+ dbBulkAdd,
41
+ dbBulkDelete,
42
+ dbBulkPatch,
43
+ dbBulkUpdate,
44
+ dbDel,
45
+ dbDirectQuery,
46
+ dbEdit,
47
+ dbExternalQuery,
48
+ dbGet,
49
+ dbHas,
50
+ dbPatch,
51
+ dbQuery,
52
+ dbSchema,
53
+ dbTransaction,
54
+ dbTruncate,
55
+ debugLog,
56
+ die,
57
+ errorTrigger,
58
+ expectToThrow,
59
+ forLoop,
60
+ foreachBreak,
61
+ foreachContinue,
62
+ foreachLoop,
63
+ foreachRemove,
64
+ functionCall,
65
+ functionRun,
66
+ getRawInput,
67
+ group,
68
+ ignored,
69
+ ipLookup,
70
+ mathAdd,
71
+ mathDiv,
72
+ mathMul,
73
+ mathSub,
74
+ mcpServerTrigger,
75
+ microservice,
76
+ middlewareCall,
77
+ objectEntries,
78
+ objectKeys,
79
+ objectValues,
80
+ postProcess,
81
+ realtimeChannel,
82
+ realtimeChannelTrigger,
83
+ realtimeEvent,
84
+ realtimeServerTrigger,
85
+ realtimeTrigger,
86
+ returnValue,
87
+ s,
88
+ setVar,
89
+ switchCase,
90
+ switchStatement,
91
+ tableTrigger,
92
+ taskCall,
93
+ textAppend,
94
+ textPrepend,
95
+ toolCall,
96
+ triggerCall,
97
+ tryCatch,
98
+ updateVar,
99
+ whileLoop,
100
+ workflowTestCall,
101
+ workspaceConfig,
102
+ workspaceTrigger
103
+ } from "./chunk-FJ6ZS5KB.js";
104
+ import {
105
+ Xano,
106
+ workspace
107
+ } from "./chunk-3DUAGYGP.js";
108
+ import {
109
+ LAMBDA_BINDINGS,
110
+ LAMBDA_CODE_FILTERS,
111
+ LAMBDA_GLOBALS,
112
+ LAMBDA_MODULE_GLOBALS,
113
+ LAMBDA_STATEMENTS,
114
+ and,
115
+ assertLambdaBody,
116
+ auth,
117
+ c,
118
+ caught,
119
+ cmp,
120
+ col,
121
+ compile,
122
+ conditional,
123
+ emit,
124
+ emitBundle,
125
+ env,
126
+ expr,
127
+ f,
128
+ filter,
129
+ fl,
130
+ inp,
131
+ input,
132
+ lam,
133
+ mixed,
134
+ obj,
135
+ or,
136
+ out,
137
+ query,
138
+ ref,
139
+ resp,
140
+ seedFile,
141
+ setting,
142
+ sys,
143
+ table,
144
+ test,
145
+ toSearchParams,
146
+ toolset,
147
+ withFilters
148
+ } from "./chunk-EMCAWMHC.js";
149
+ import "./chunk-WHOJWOSV.js";
150
+ import {
151
+ annotate,
152
+ statements
153
+ } from "./chunk-LH6Z6KFV.js";
154
+ import {
155
+ resetLockOverrides,
156
+ seedLockOverrides
157
+ } from "./chunk-4HT3BNZ7.js";
158
+ export {
159
+ LAMBDA_BINDINGS,
160
+ LAMBDA_CODE_FILTERS,
161
+ LAMBDA_GLOBALS,
162
+ LAMBDA_MODULE_GLOBALS,
163
+ LAMBDA_STATEMENTS,
164
+ TEST_EXPECT_TYPES,
165
+ Xano,
166
+ actionCall,
167
+ actionPackageCall,
168
+ addon,
169
+ addonCall,
170
+ agent,
171
+ agentTrigger,
172
+ aiAgentRun,
173
+ and,
174
+ annotate,
175
+ apiCall,
176
+ apiGroup,
177
+ arrayMap,
178
+ arrayUnion,
179
+ assertLambdaBody,
180
+ auth,
181
+ bitwiseAnd,
182
+ bitwiseOr,
183
+ bitwiseXor,
184
+ c,
185
+ caught,
186
+ cloudJob,
187
+ cloudJobAwait,
188
+ cloudJobStatus,
189
+ cmp,
190
+ col,
191
+ comment,
192
+ compile,
193
+ conditional,
194
+ createAuthToken,
195
+ dbAdd,
196
+ dbAddOrEdit,
197
+ dbBulkAdd,
198
+ dbBulkDelete,
199
+ dbBulkPatch,
200
+ dbBulkUpdate,
201
+ dbDel,
202
+ dbDirectQuery,
203
+ dbEdit,
204
+ dbExternalQuery,
205
+ dbGet,
206
+ dbHas,
207
+ dbPatch,
208
+ dbQuery,
209
+ dbSchema,
210
+ dbTransaction,
211
+ dbTruncate,
212
+ debugLog,
213
+ defineFunction,
214
+ die,
215
+ emit,
216
+ emitBundle,
217
+ env,
218
+ errorTrigger,
219
+ expect,
220
+ expectToThrow,
221
+ expr,
222
+ f,
223
+ fileUrl,
224
+ filter,
225
+ fl,
226
+ forLoop,
227
+ foreachBreak,
228
+ foreachContinue,
229
+ foreachLoop,
230
+ foreachRemove,
231
+ functionCall,
232
+ functionRun,
233
+ getRawInput,
234
+ group,
235
+ ignored,
236
+ inp,
237
+ input,
238
+ ipLookup,
239
+ lam,
240
+ mathAdd,
241
+ mathDiv,
242
+ mathMul,
243
+ mathSub,
244
+ mcpServer,
245
+ mcpServerTrigger,
246
+ microservice,
247
+ middleware,
248
+ middlewareCall,
249
+ mixed,
250
+ obj,
251
+ objectEntries,
252
+ objectKeys,
253
+ objectValues,
254
+ or,
255
+ out,
256
+ postProcess,
257
+ query,
258
+ realtimeChannel,
259
+ realtimeChannelTrigger,
260
+ realtimeEvent,
261
+ realtimeMessage,
262
+ realtimeServer,
263
+ realtimeServerTrigger,
264
+ realtimeTrigger,
265
+ ref,
266
+ resetLockOverrides,
267
+ resp,
268
+ returnValue,
269
+ s,
270
+ seedFile,
271
+ seedLockOverrides,
272
+ setVar,
273
+ setting,
274
+ statements,
275
+ switchCase,
276
+ switchStatement,
277
+ sys,
278
+ table,
279
+ tableTrigger,
280
+ task,
281
+ taskCall,
282
+ test,
283
+ textAppend,
284
+ textPrepend,
285
+ toSearchParams,
286
+ tool,
287
+ toolCall,
288
+ toolset,
289
+ triggerCall,
290
+ tryCatch,
291
+ updateVar,
292
+ whileLoop,
293
+ withFilters,
294
+ workflowTest,
295
+ workflowTestCall,
296
+ workspace,
297
+ workspaceConfig,
298
+ workspaceTrigger
299
+ };
300
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,27 @@
1
+ import {
2
+ projectShellFiles,
3
+ runInitCommand,
4
+ sanitizeAppName
5
+ } from "./chunk-WKP4D5MO.js";
6
+ import {
7
+ resolveAiFlags
8
+ } from "./chunk-VKFQJEMW.js";
9
+ import "./chunk-47WDWMBJ.js";
10
+ import "./chunk-YGPIY3WT.js";
11
+ import "./chunk-IZW6MK3U.js";
12
+ import "./chunk-EZG76F7R.js";
13
+ import "./chunk-3DUAGYGP.js";
14
+ import "./chunk-YYRDLFSJ.js";
15
+ import "./chunk-EMCAWMHC.js";
16
+ import "./chunk-WHOJWOSV.js";
17
+ import "./chunk-LH6Z6KFV.js";
18
+ import "./chunk-HJPTWBLH.js";
19
+ import "./chunk-GNPVYOPB.js";
20
+ import "./chunk-4HT3BNZ7.js";
21
+ export {
22
+ projectShellFiles,
23
+ resolveAiFlags,
24
+ runInitCommand,
25
+ sanitizeAppName
26
+ };
27
+ //# sourceMappingURL=init-command-R6H7ZXW5.js.map
@@ -0,0 +1,74 @@
1
+ import { F as FunctionXdo } from './response-CVAE2kMj.js';
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-BQ97nKIF.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-BQ97nKIF.js';
5
+
6
+ /**
7
+ * AUTO-GENERATED by scripts/codegen.ts — DO NOT EDIT BY HAND.
8
+ *
9
+ * The declarative statement catalog (U9): one StatementSpec per cleanly
10
+ * interpretable statement schema, generated from the Xano engine's statement
11
+ * schema definitions. The engine-only `output` flag is pinned from the
12
+ * persisted golden fixtures (KTD-4). Regenerate with `npm run codegen`.
13
+ *
14
+ * Coverage: 153 declarative statements generated.
15
+ * Deferred (see PENDING.md): 63.
16
+ */
17
+
18
+ declare const GENERATED_SPECS: StatementSpec[];
19
+
20
+ /**
21
+ * The `function` object kind (KTD-2). This is the MVP's `compile()` envelope
22
+ * logic, re-homed as the first registered kind. Behavior is unchanged — the
23
+ * MVP golden test is the regression guard.
24
+ */
25
+
26
+ /** Encode a `FunctionDef` into the flattened importable function `xdo`. */
27
+ declare function encodeFunction(fn: FunctionDef): FunctionXdo;
28
+ declare const functionKind: ObjectKind<FunctionDef, FunctionXdo>;
29
+
30
+ /**
31
+ * The canonical statement authoring-surface catalog — one entry per engine
32
+ * statement schema, mapping the surface key to its stored `mvp:` name. This is
33
+ * SDK metadata (it drives the agent-grounding manifest and the coverage report),
34
+ * so it lives in `src` rather than the test tree.
35
+ *
36
+ * A key normally mirrors the engine's own statement-schema filename, which
37
+ * keeps this catalog checkable against the engine one line at a time. One entry
38
+ * deliberately does not: `microservice.request` is stored as
39
+ * `mvp:microservice_request` and the engine files its schema under the `api`
40
+ * namespace, but a microservice is a first-class workspace object here — with
41
+ * its own def factory and deploy path — so its call statement is filed beside
42
+ * it. The same decision is recorded as a `NAMESPACE_OVERRIDES` entry in
43
+ * `scripts/codegen.ts`, which is what keeps the generated factory tree in
44
+ * agreement with this key.
45
+ *
46
+ * A second entry does the same: `lambda` is stored as `mvp:lambda` and the
47
+ * engine files its schema under the `api` namespace, but a lambda runs wherever
48
+ * a stack runs — in functions, tasks, middleware, and triggers, not only APIs —
49
+ * so filing it under `s.api.*` said something false about where it is available
50
+ * (issue #221). It is `s.lambda`, with the matching `NAMESPACE_OVERRIDES` entry.
51
+ *
52
+ * One surface-pair shares a stored name (so the catalog has one fewer unique
53
+ * stored name than surfaces): `util.get_raw_input`/`util.get_input` →
54
+ * `mvp:get_input`.
55
+ *
56
+ * `raw()` (from `@xanots/sdk/codegen`) is deliberately **not** in this catalog
57
+ * and not under `s.`: it is a verbatim passthrough for stored statements the
58
+ * catalog cannot model, emitted by codegen, not authored by hand.
59
+ */
60
+ /** Every engine statement schema file → its stored `mvp:` name. */
61
+ declare const STATEMENT_SURFACES: ReadonlyArray<readonly [string, string]>;
62
+ /** Total authoring surfaces (= engine statement schema file count). */
63
+ declare const TOTAL_STATEMENTS: number;
64
+ /** Statement authoring surfaces (by schema key). */
65
+ declare const IMPLEMENTED_STATEMENTS: string[];
66
+ /**
67
+ * The dotted `s.` authoring path for a surface key — e.g. `array.filter` →
68
+ * `array.filter` (reachable as `s.array.filter`), `stack|expect.to_equal` →
69
+ * `expect.to_equal`, `var` → `set_var`. Verified against the live `s` tree by
70
+ * the manifest test.
71
+ */
72
+ declare function sPathOf(surfaceKey: string): string;
73
+
74
+ export { GENERATED_SPECS, IMPLEMENTED_STATEMENTS, ObjectKind, STATEMENT_SURFACES, TOTAL_STATEMENTS, encodeFunction, functionKind, sPathOf };