@xanots/sdk 0.0.5 → 0.0.6

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 (64) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +3 -3
  3. package/dist/.build-fingerprint +1 -1
  4. package/dist/{agent-file-refresh-IJ7GN2FJ.js → agent-file-refresh-6XT23SLU.js} +4 -4
  5. package/dist/bin.js +8 -8
  6. package/dist/branch-commands-R4FR75UW.js +134 -0
  7. package/dist/{chunk-7SISR3CS.js → chunk-2SUCC4DV.js} +2 -2
  8. package/dist/{chunk-BPEEGJJA.js → chunk-3FQD3QME.js} +3 -3
  9. package/dist/{chunk-KXCPZUUM.js → chunk-4HDOP7LH.js} +8 -67
  10. package/dist/{chunk-PGBK64U5.js → chunk-4PTSTDIG.js} +2 -2
  11. package/dist/{live-diff-FP4SFNT4.js → chunk-5HCDZ2XN.js} +67 -6
  12. package/dist/{chunk-5WGEURVI.js → chunk-6AAT2AYQ.js} +21 -1
  13. package/dist/{chunk-APOR6TCV.js → chunk-CEFYM6N5.js} +2 -2
  14. package/dist/{chunk-YUPQOLFX.js → chunk-CQBJNFDK.js} +2 -2
  15. package/dist/{chunk-FN4OQT2J.js → chunk-CU5VOSTW.js} +4 -4
  16. package/dist/{chunk-YUBJLB6G.js → chunk-EFH4NFPY.js} +6 -3
  17. package/dist/chunk-EQW3YT5U.js +159 -0
  18. package/dist/{chunk-CYJ7R3AD.js → chunk-GC7ZQHW7.js} +22 -10
  19. package/dist/{chunk-IVP6TS26.js → chunk-JQLR64UC.js} +6 -5
  20. package/dist/{chunk-PXXLBXOP.js → chunk-JRGDLAEA.js} +2 -2
  21. package/dist/{chunk-WGDAOOXG.js → chunk-MU3O43L2.js} +3 -3
  22. package/dist/{chunk-F5T45NAM.js → chunk-OKNSR7MT.js} +45 -2
  23. package/dist/{chunk-MFIHIS6B.js → chunk-OLQLJY5T.js} +2 -2
  24. package/dist/{chunk-QUUB7HYK.js → chunk-P5C2YKAM.js} +2 -2
  25. package/dist/{chunk-D6OGU2AI.js → chunk-P5OAM3G2.js} +2 -2
  26. package/dist/{chunk-6DHJVLYP.js → chunk-Q77KNEUL.js} +1 -1
  27. package/dist/{chunk-QA5ICJ4M.js → chunk-QVSUMHNN.js} +3 -3
  28. package/dist/{chunk-MS3BRZAZ.js → chunk-SOCYCBYG.js} +45 -22
  29. package/dist/{chunk-OARSPAIE.js → chunk-TYBB7ON3.js} +56 -36
  30. package/dist/{chunk-ZGA5MUNC.js → chunk-Y7BARS25.js} +2 -2
  31. package/dist/cli.d.ts +28 -2
  32. package/dist/cli.js +7 -7
  33. package/dist/{codegen-command-BLOS3GR3.js → codegen-command-6XXOIQ25.js} +16 -16
  34. package/dist/{completion-GHP5RRLQ.js → completion-A6BZ3XGU.js} +8 -7
  35. package/dist/{deploy-command-XOH76USO.js → deploy-command-MTQQXPOO.js} +12 -12
  36. package/dist/{env-target-POGJMD6Q.js → env-target-C5JFLDK3.js} +2 -2
  37. package/dist/{ephemeral-command-46SL27GJ.js → ephemeral-command-K3UJSDS4.js} +5 -5
  38. package/dist/index.d.ts +67 -24
  39. package/dist/index.js +6 -6
  40. package/dist/init-command-AY4KSXR5.js +30 -0
  41. package/dist/internal.js +13 -11
  42. package/dist/{io-7VIA5SON.js → io-65CJNLYI.js} +3 -3
  43. package/dist/live-diff-QK4KC2FJ.js +12 -0
  44. package/dist/{lock-KXOJIGCG.js → lock-PDFCNYUW.js} +2 -2
  45. package/dist/{lock-commands-6UONZW26.js → lock-commands-MC6I3MZA.js} +8 -8
  46. package/dist/{login-command-SG7IWTHW.js → login-command-LCOOOPO2.js} +4 -4
  47. package/dist/{marketplace-command-NKTQ3VPS.js → marketplace-command-BCOAAN2I.js} +3 -3
  48. package/dist/{meta-client-OW5WKWW7.js → meta-client-57ZWVHST.js} +2 -2
  49. package/dist/node.js +10 -10
  50. package/dist/{release-command-FKQ6E3TD.js → release-command-V4K4IORX.js} +191 -23
  51. package/dist/scaffold.d.ts +10 -13
  52. package/dist/scaffold.js +3 -3
  53. package/dist/{test-command-56IAEYHX.js → test-command-OEBIGOPP.js} +4 -4
  54. package/dist/{upgrade-command-M2DZ3ZPD.js → upgrade-command-52AAZ3NV.js} +13 -13
  55. package/dist/{validate-command-CIBQJND7.js → validate-command-KTLPSSH7.js} +10 -10
  56. package/dist/{workspace-command-HZS43PHJ.js → workspace-command-LX5S5N2H.js} +20 -16
  57. package/guides/scaffold.md +3 -2
  58. package/llms/statements-calls.md +1 -1
  59. package/llms/statements-data.md +2 -1
  60. package/llms-full.txt +4 -3
  61. package/llms.txt +1 -1
  62. package/manifest.json +1 -1
  63. package/package.json +1 -1
  64. package/dist/init-command-NCRPVFGE.js +0 -30
@@ -0,0 +1,30 @@
1
+ import {
2
+ projectShellFiles,
3
+ runInitCommand,
4
+ sanitizeAppName
5
+ } from "./chunk-4HDOP7LH.js";
6
+ import {
7
+ resolveAiFlags
8
+ } from "./chunk-2SUCC4DV.js";
9
+ import "./chunk-ZSYZTGJH.js";
10
+ import "./chunk-MU3O43L2.js";
11
+ import "./chunk-P5C2YKAM.js";
12
+ import "./chunk-Q77KNEUL.js";
13
+ import "./chunk-SOCYCBYG.js";
14
+ import "./chunk-JQLR64UC.js";
15
+ import "./chunk-OLQLJY5T.js";
16
+ import "./chunk-GNPVYOPB.js";
17
+ import "./chunk-EZG76F7R.js";
18
+ import "./chunk-3FQD3QME.js";
19
+ import "./chunk-OKNSR7MT.js";
20
+ import "./chunk-CQBJNFDK.js";
21
+ import "./chunk-WHOJWOSV.js";
22
+ import "./chunk-5XZ744TS.js";
23
+ import "./chunk-EFH4NFPY.js";
24
+ export {
25
+ projectShellFiles,
26
+ resolveAiFlags,
27
+ runInitCommand,
28
+ sanitizeAppName
29
+ };
30
+ //# sourceMappingURL=init-command-AY4KSXR5.js.map
package/dist/internal.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  taskKind,
34
34
  toolKind,
35
35
  workflowTestKind
36
- } from "./chunk-FN4OQT2J.js";
36
+ } from "./chunk-CU5VOSTW.js";
37
37
  import {
38
38
  GENERATED_SPECS,
39
39
  GENERATED_STATEMENT_NAMES,
@@ -55,14 +55,15 @@ import {
55
55
  registerSpec,
56
56
  triggerKind,
57
57
  workspaceKind
58
- } from "./chunk-CYJ7R3AD.js";
58
+ } from "./chunk-GC7ZQHW7.js";
59
59
  import {
60
60
  COMMANDS,
61
61
  FLAGS,
62
62
  GLOBAL_FLAGS,
63
63
  flagKey,
64
- flagSummary
65
- } from "./chunk-F5T45NAM.js";
64
+ flagSummary,
65
+ visibleFlags
66
+ } from "./chunk-OKNSR7MT.js";
66
67
  import {
67
68
  DECODE_ONLY_STATEMENTS,
68
69
  FILTER_NAMES,
@@ -108,7 +109,7 @@ import {
108
109
  serializeBundle,
109
110
  tableKind,
110
111
  toNestedFields
111
- } from "./chunk-YUPQOLFX.js";
112
+ } from "./chunk-CQBJNFDK.js";
112
113
  import "./chunk-WHOJWOSV.js";
113
114
  import {
114
115
  encodeStatement,
@@ -136,7 +137,7 @@ import {
136
137
  resolveRef,
137
138
  serializeLock,
138
139
  validateLockModel
139
- } from "./chunk-YUBJLB6G.js";
140
+ } from "./chunk-EFH4NFPY.js";
140
141
 
141
142
  // src/statements/byte-evidence.ts
142
143
  var UNCONFIRMED_STATEMENTS = /* @__PURE__ */ new Set([]);
@@ -167,15 +168,15 @@ function buildCli() {
167
168
  out.push({
168
169
  command: name,
169
170
  ...argGrammar(spec.args) !== void 0 ? { args: argGrammar(spec.args) } : {},
170
- ...flagsOf(spec.flags) !== void 0 ? { flags: flagsOf(spec.flags) } : {},
171
+ ...flagsOf(visibleFlags(spec)) !== void 0 ? { flags: flagsOf(visibleFlags(spec)) } : {},
171
172
  description
172
173
  });
173
174
  continue;
174
175
  }
175
176
  for (const [subName, sub] of subs) {
176
- if (sub.removed !== void 0) continue;
177
+ if (sub.removed !== void 0 || sub.unreleased !== void 0) continue;
177
178
  const args = argGrammar(sub.args ?? spec.args);
178
- const flags = flagsOf(sub.flags ?? spec.flags);
179
+ const flags = flagsOf(sub.flags !== void 0 ? visibleFlags(sub) : visibleFlags(spec));
179
180
  out.push({
180
181
  command: `${name} ${subName}`,
181
182
  ...args !== void 0 ? { args } : {},
@@ -1644,7 +1645,8 @@ function renderSections(m) {
1644
1645
  "- `s.db.del({ table, fieldName?, fieldValue, as? })` \u2014 delete by field match.",
1645
1646
  "- `s.db.add({ table, row?, data?, output?, as? })` \u2014 insert; `row` is a partial keyed by column.",
1646
1647
  ' - A row CELL takes a tagged `Value`, a nested object of sub-keys, or a bare JS literal typed against that column: `row: { is_hidden: true, notes: "\u2026" }` encodes exactly as `{ is_hidden: c.bool(true), notes: c.text("\u2026") }`. The tag comes from the COLUMN, not the literal \u2014 `10` on an `f.decimal()` column is `const:decimal`, not `const:int` \u2014 so a literal contradicting its column is a compile error on a `f.*`-schema table (`{ is_hidden: "yes" }` on an `f.bool()` column) and throws at encode on a raw-`ColumnDef[]` one. An `f.enum()` column keeps its member union. A column with no literal form \u2014 obj/json/list/geo/vector/file \u2014 still needs `c.obj`/`c.array`.',
1647
- " - `null` is accepted on EVERY column, including ones that refuse every other literal, and encodes `const:null` \u2014 a write OF null, not the same as omitting the key (omitted takes the column's type default on `add`: `[]` for a list, `{}` for obj/json, else `null`; on `edit` it is left untouched). A column's `nullable` is not consulted; the engine refuses a null it forbids.",
1648
+ " - `null` is accepted on EVERY column, including ones that refuse every other literal, and encodes `const:null` \u2014 a write OF null, not the same as omitting the key. A column's `nullable` is not consulted at encode; the engine refuses a null it forbids.",
1649
+ " - Omitting a key on `add` writes the column's type default \u2014 declared `default` if set, `[]` for a list, `{}` for obj/json, else `null`. That `null` is EMITTED, not what the row holds: the engine applies the column's nullability, so a `nullable` column keeps `null` and a non-nullable one lands on its type's zero value (`\"\"`, `0`, `false`). Set the cell when the stored value matters. On `edit` an omitted key keeps its stored value.",
1648
1650
  " - An `f.password()` cell takes the PLAINTEXT \u2014 the column hashes on write, so a pre-hashed value, or a hashing filter on the cell, stores a hash of a hash that `security.check_password` can never match.",
1649
1651
  "- `s.db.edit({ table, fieldName?, fieldValue, row?, data?, output?, as? })` \u2014 update by field match.",
1650
1652
  "- `s.db.patch({ table, fieldName?, fieldValue, data, output?, as? })` \u2014 merge a partial (`data` is an object value).",
@@ -1745,7 +1747,7 @@ function renderSections(m) {
1745
1747
  "- `s.stream.from_request({ url, method?, \u2026tls, as? })` \u2014 streaming external HTTP request (`mvp:streaming_api_request`); same typed field surface as `s.api.request` (no description/output envelope). `url` is REQUIRED \u2014 it shares `api.request`'s engine declaration, which has no default.",
1746
1748
  "- `s.webflow.request({ path, method?, \u2026tls, as? })` \u2014 Webflow API request (`mvp:connect_webflow_api_request`); like `s.api.request` but addressed by `path` (host is engine-supplied), and `path` is REQUIRED \u2014 the engine rejects an empty one. No `headers`: the engine builds its own from the workspace's Webflow connection and ignores an authored value.",
1747
1749
  "- `s.task.call` / `s.tool.call` / `s.trigger.call` / `s.middleware.call` / `s.addon.call` \u2014 same `{ <target>, input?, as? }` shape against the named kind. `s.task.call` and `s.trigger.call` are WORKFLOW-TEST ONLY (see Gotchas in `llms.txt`); `s.tool.call`, `s.middleware.call` and `s.addon.call` run from any stack.",
1748
- "- `s.action.call({ action, package?, input?, as? })` / `s.action.package.call(\u2026)` \u2014 invoke a marketplace action; `package` is its slug.",
1750
+ "- `s.action.call({ actionId, input?, registry?, as? })` / `s.action.package.call({ traceId, versionId, slug, input?, registry?, as? })` \u2014 invoke an installed action. Ids are SUPPLIED, never derived from a name: an action is installed onto the instance, so its identity is assigned at install and differs per instance \u2014 read them off a call in a pulled workspace. The package form needs all three parts; they are one composite and two of them address nothing. `registry` is the action's own settings, `input` the per-call arguments.",
1749
1751
  "- `s.cloud.job({ image, command, args?, secret?, template?, await?, as? })` \u2014 launch a containerized job. `image`/`command` are REQUIRED; omitted \u2192 `Missing param`. \u26A0 `await` is SECONDS (default 60), not a boolean.",
1750
1752
  "- `s.cloud.job.status({ id, as? })` \xB7 `s.cloud.job.await({ ids, timeout, as? })` \u2014 poll one job, or block on several (`ids` a list `Value`, `timeout` in seconds; both required).",
1751
1753
  "",
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  readLockFile,
3
3
  writeLockFile
4
- } from "./chunk-MFIHIS6B.js";
4
+ } from "./chunk-OLQLJY5T.js";
5
5
  import "./chunk-GNPVYOPB.js";
6
- import "./chunk-YUBJLB6G.js";
6
+ import "./chunk-EFH4NFPY.js";
7
7
  export {
8
8
  readLockFile,
9
9
  writeLockFile
10
10
  };
11
- //# sourceMappingURL=io-7VIA5SON.js.map
11
+ //# sourceMappingURL=io-65CJNLYI.js.map
@@ -0,0 +1,12 @@
1
+ import {
2
+ compareToLive,
3
+ diffAgainstLive,
4
+ sharedSchemaChanges
5
+ } from "./chunk-5HCDZ2XN.js";
6
+ import "./chunk-ZOYMZZ3S.js";
7
+ export {
8
+ compareToLive,
9
+ diffAgainstLive,
10
+ sharedSchemaChanges
11
+ };
12
+ //# sourceMappingURL=live-diff-QK4KC2FJ.js.map
@@ -15,7 +15,7 @@ import {
15
15
  resolvePayloadKey,
16
16
  serializeLock,
17
17
  validateLockModel
18
- } from "./chunk-YUBJLB6G.js";
18
+ } from "./chunk-EFH4NFPY.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-KXOJIGCG.js.map
37
+ //# sourceMappingURL=lock-PDFCNYUW.js.map
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  loadDefault
3
- } from "./chunk-MS3BRZAZ.js";
3
+ } from "./chunk-SOCYCBYG.js";
4
4
  import {
5
5
  UsageError,
6
6
  missingArgument,
7
7
  unknownSubcommand
8
- } from "./chunk-IVP6TS26.js";
8
+ } from "./chunk-JQLR64UC.js";
9
9
  import {
10
10
  readLockFile,
11
11
  writeLockFile
12
- } from "./chunk-MFIHIS6B.js";
12
+ } from "./chunk-OLQLJY5T.js";
13
13
  import "./chunk-GNPVYOPB.js";
14
14
  import "./chunk-EZG76F7R.js";
15
15
  import {
16
16
  Xano
17
- } from "./chunk-BPEEGJJA.js";
18
- import "./chunk-F5T45NAM.js";
19
- import "./chunk-YUPQOLFX.js";
17
+ } from "./chunk-3FQD3QME.js";
18
+ import "./chunk-OKNSR7MT.js";
19
+ import "./chunk-CQBJNFDK.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-YUBJLB6G.js";
30
+ } from "./chunk-EFH4NFPY.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-6UONZW26.js.map
232
+ //# sourceMappingURL=lock-commands-MC6I3MZA.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-W5NOKYEG.js";
6
6
  import {
7
7
  promptLine
8
- } from "./chunk-PGBK64U5.js";
8
+ } from "./chunk-4PTSTDIG.js";
9
9
  import {
10
10
  envMetaCredentialVarsSet
11
11
  } from "./chunk-SG4UBJ47.js";
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk-LLWK6H77.js";
27
27
  import {
28
28
  UsageError
29
- } from "./chunk-IVP6TS26.js";
29
+ } from "./chunk-JQLR64UC.js";
30
30
  import "./chunk-GNPVYOPB.js";
31
31
  import {
32
32
  blank,
@@ -37,7 +37,7 @@ import {
37
37
  success,
38
38
  warn
39
39
  } from "./chunk-EZG76F7R.js";
40
- import "./chunk-F5T45NAM.js";
40
+ import "./chunk-OKNSR7MT.js";
41
41
 
42
42
  // src/emit/login-command.ts
43
43
  import * as client from "openid-client";
@@ -267,4 +267,4 @@ async function acquireByPaste(p) {
267
267
  export {
268
268
  runLoginCommand
269
269
  };
270
- //# sourceMappingURL=login-command-SG7IWTHW.js.map
270
+ //# sourceMappingURL=login-command-LCOOOPO2.js.map
@@ -15,7 +15,7 @@ import {
15
15
  UsageError,
16
16
  indentBlock,
17
17
  missingArgument
18
- } from "./chunk-IVP6TS26.js";
18
+ } from "./chunk-JQLR64UC.js";
19
19
  import {
20
20
  blank,
21
21
  detail,
@@ -26,7 +26,7 @@ import {
26
26
  success,
27
27
  warn
28
28
  } from "./chunk-EZG76F7R.js";
29
- import "./chunk-F5T45NAM.js";
29
+ import "./chunk-OKNSR7MT.js";
30
30
 
31
31
  // src/emit/marketplace-catalogue.ts
32
32
  var DEFAULT_BASE_URL = "https://xare-rvr8-mnnt.dev.xano.io";
@@ -362,4 +362,4 @@ export {
362
362
  runMarketplaceListCommand,
363
363
  runMarketplaceSearchCommand
364
364
  };
365
- //# sourceMappingURL=marketplace-command-NKTQ3VPS.js.map
365
+ //# sourceMappingURL=marketplace-command-BCOAAN2I.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  importWorkspaceArchive
3
- } from "./chunk-5WGEURVI.js";
3
+ } from "./chunk-6AAT2AYQ.js";
4
4
  import {
5
5
  createEphemeral,
6
6
  deleteEphemeral,
@@ -167,4 +167,4 @@ ${text}`);
167
167
  export {
168
168
  MetaClient
169
169
  };
170
- //# sourceMappingURL=meta-client-OW5WKWW7.js.map
170
+ //# sourceMappingURL=meta-client-57ZWVHST.js.map
package/dist/node.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  TEST_EXPECT_TYPES,
7
7
  expect
8
- } from "./chunk-PXXLBXOP.js";
8
+ } from "./chunk-JRGDLAEA.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-FN4OQT2J.js";
20
+ } from "./chunk-CU5VOSTW.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-CYJ7R3AD.js";
103
+ } from "./chunk-GC7ZQHW7.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-MS3BRZAZ.js";
112
- import "./chunk-IVP6TS26.js";
111
+ } from "./chunk-SOCYCBYG.js";
112
+ import "./chunk-JQLR64UC.js";
113
113
  import {
114
114
  readLockFile,
115
115
  writeLockFile
116
- } from "./chunk-MFIHIS6B.js";
116
+ } from "./chunk-OLQLJY5T.js";
117
117
  import "./chunk-GNPVYOPB.js";
118
118
  import "./chunk-EZG76F7R.js";
119
119
  import {
120
120
  Xano,
121
121
  workspace
122
- } from "./chunk-BPEEGJJA.js";
123
- import "./chunk-F5T45NAM.js";
122
+ } from "./chunk-3FQD3QME.js";
123
+ import "./chunk-OKNSR7MT.js";
124
124
  import {
125
125
  LAMBDA_BINDINGS,
126
126
  LAMBDA_CODE_FILTERS,
@@ -167,7 +167,7 @@ import {
167
167
  toSearchParams,
168
168
  toolset,
169
169
  withFilters
170
- } from "./chunk-YUPQOLFX.js";
170
+ } from "./chunk-CQBJNFDK.js";
171
171
  import "./chunk-WHOJWOSV.js";
172
172
  import {
173
173
  annotate,
@@ -176,7 +176,7 @@ import {
176
176
  import {
177
177
  resetLockOverrides,
178
178
  seedLockOverrides
179
- } from "./chunk-YUBJLB6G.js";
179
+ } from "./chunk-EFH4NFPY.js";
180
180
 
181
181
  // src/values/lambda-file.ts
182
182
  import { readFileSync } from "fs";