@altertable/cli 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +114 -87
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -7035,7 +7035,7 @@ var require_public_api = __commonJS(function(exports) {
7035
7035
  });
7036
7036
 
7037
7037
  // src/version.ts
7038
- var VERSION = "1.10.0";
7038
+ var VERSION = "1.11.0";
7039
7039
  var USER_AGENT = `altertable-cli/${VERSION}`;
7040
7040
 
7041
7041
  // src/lib/transport-defaults.ts
@@ -22235,7 +22235,7 @@ Commit app source, \`package.json\`, and \`bun.lock\`. A fresh clone installs \`
22235
22235
  "": {
22236
22236
  "name": "data-app-starter",
22237
22237
  "dependencies": {
22238
- "@altertable/data-app": "0.66.0",
22238
+ "@altertable/data-app": "0.68.0",
22239
22239
  "react": "19.3.0",
22240
22240
  "react-dom": "19.3.0",
22241
22241
  },
@@ -22251,7 +22251,7 @@ Commit app source, \`package.json\`, and \`bun.lock\`. A fresh clone installs \`
22251
22251
  },
22252
22252
  },
22253
22253
  "packages": {
22254
- "@altertable/data-app": ["@altertable/data-app@0.66.0", "", { "dependencies": { "@floating-ui/react": "0.27.20", "@internationalized/date": "3.12.4", "@tanstack/react-query": "5.104.0", "fflate": "0.8.3", "fuzzysort": "4.0.2", "html-to-image": "1.11.13", "lucide-react": "1.48.0", "react-aria-components": "1.21.1" }, "peerDependencies": { "react": ">=19.2.0", "react-dom": ">=19.2.0" } }, "sha512-558Acl33lVYDxpuTE8npNxeSzDYnve4s2A6kz9KxzdW+dDlJkdJT6jEzKaizZDYmIf4s86A0gY1uaEgij3kO/Q=="],
22254
+ "@altertable/data-app": ["@altertable/data-app@0.68.0", "", { "dependencies": { "@floating-ui/react": "0.27.20", "@internationalized/date": "3.12.4", "@tanstack/react-query": "5.104.0", "fflate": "0.8.3", "fuzzysort": "4.0.2", "html-to-image": "1.11.13", "lucide-react": "1.48.0", "react-aria-components": "1.21.1", "recharts": "3.10.1" }, "peerDependencies": { "react": ">=19.2.0", "react-dom": ">=19.2.0" } }, "sha512-xH5XPFo9EGxaMMd38UTHHpIElynaSd/1OnxtG42bD8/ecAXCKFOk24/ECB8BRGQptWYplc3auMYQHlJUgXBFYg=="],
22255
22255
 
22256
22256
  "@floating-ui/core": ["@floating-ui/core@1.8.0", "", { "dependencies": { "@floating-ui/utils": "^0.2.12" } }, "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ=="],
22257
22257
 
@@ -22359,6 +22359,12 @@ Commit app source, \`package.json\`, and \`bun.lock\`. A fresh clone installs \`
22359
22359
 
22360
22360
  "@react-types/shared": ["@react-types/shared@3.36.1", "", { "peerDependencies": { "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" } }, "sha512-AzsuD9OfxTOZMMvTRhlN3oHBwOmFN7tDh27LzqmHt4+uOgPhJT7ZM7/kVs/8/o0WxayMUIk3hBmCFRHv1FUoag=="],
22361
22361
 
22362
+ "@reduxjs/toolkit": ["@reduxjs/toolkit@2.13.0", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "@standard-schema/utils": "^0.3.0", "immer": "^11.0.0", "redux": "^5.0.1", "redux-thunk": "^3.1.0", "reselect": "^5.1.0" }, "peerDependencies": { "react": "^16.9.0 || ^17.0.0 || ^18 || ^19", "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0" }, "optionalPeers": ["react", "react-redux"] }, "sha512-f6jwVRfwW30+tnllz4YcsHHpPYYOE7abcHkyUCovD+P7DyhdAI5prz2Fh/8TLhakjpN+7aIEion1s5L/tvlYlA=="],
22363
+
22364
+ "@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="],
22365
+
22366
+ "@standard-schema/utils": ["@standard-schema/utils@0.3.0", "", {}, "sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g=="],
22367
+
22362
22368
  "@swc/helpers": ["@swc/helpers@0.5.23", "", { "dependencies": { "tslib": "^2.8.0" } }, "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw=="],
22363
22369
 
22364
22370
  "@tanstack/query-core": ["@tanstack/query-core@5.104.0", "", {}, "sha512-JrC2r/JQlXt7khBSdUpsgxNvybzOg+aITa+ARRMlP2AFo93Y8vIqz077rp+e61mJetSZ0T6AJbwW1JHer1vrPQ=="],
@@ -22367,12 +22373,32 @@ Commit app source, \`package.json\`, and \`bun.lock\`. A fresh clone installs \`
22367
22373
 
22368
22374
  "@types/bun": ["@types/bun@1.4.2", "", { "dependencies": { "bun-types": "1.4.2" } }, "sha512-GimotNn7+ZV0uVArItBbriZsR1oNf0+WTzPkdcFrzShI7k2norL0uzEaJT8T33dWr7O/c9ZDuAFQrctKCi72oQ=="],
22369
22375
 
22376
+ "@types/d3-array": ["@types/d3-array@3.2.2", "", {}, "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw=="],
22377
+
22378
+ "@types/d3-color": ["@types/d3-color@3.1.3", "", {}, "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A=="],
22379
+
22380
+ "@types/d3-ease": ["@types/d3-ease@3.0.2", "", {}, "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA=="],
22381
+
22382
+ "@types/d3-interpolate": ["@types/d3-interpolate@3.0.4", "", { "dependencies": { "@types/d3-color": "*" } }, "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA=="],
22383
+
22384
+ "@types/d3-path": ["@types/d3-path@3.1.1", "", {}, "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg=="],
22385
+
22386
+ "@types/d3-scale": ["@types/d3-scale@4.0.9", "", { "dependencies": { "@types/d3-time": "*" } }, "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw=="],
22387
+
22388
+ "@types/d3-shape": ["@types/d3-shape@3.2.0", "", { "dependencies": { "@types/d3-path": "*" } }, "sha512-kVd74ta9eof3eJOvbNd1vGKS/XERRyQbT26Og63hIsvDO84cjD5gEOhsXf26w3FSoNlPVz84DOFcKv/oou+fMw=="],
22389
+
22390
+ "@types/d3-time": ["@types/d3-time@3.0.4", "", {}, "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g=="],
22391
+
22392
+ "@types/d3-timer": ["@types/d3-timer@3.0.2", "", {}, "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw=="],
22393
+
22370
22394
  "@types/node": ["@types/node@26.6.3", "", { "dependencies": { "undici-types": "~8.9.0" } }, "sha512-dsqMQQoeTLqu9wynDD00q573mNzso3IdQOAfHRJqLCcmCFPoGo9A1bDpUcv/9tnKpErQWv9uKeGfl37EIS02Yg=="],
22371
22395
 
22372
22396
  "@types/react": ["@types/react@19.3.0", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg=="],
22373
22397
 
22374
22398
  "@types/react-dom": ["@types/react-dom@19.3.0", "", { "peerDependencies": { "@types/react": "^19.3.0" } }, "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q=="],
22375
22399
 
22400
+ "@types/use-sync-external-store": ["@types/use-sync-external-store@0.0.6", "", {}, "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg=="],
22401
+
22376
22402
  "@typescript/typescript-aix-ppc64": ["@typescript/typescript-aix-ppc64@7.0.2", "", { "os": "aix", "cpu": "ppc64" }, "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ=="],
22377
22403
 
22378
22404
  "@typescript/typescript-darwin-arm64": ["@typescript/typescript-darwin-arm64@7.0.2", "", { "os": "darwin", "cpu": "arm64" }, "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA=="],
@@ -22423,12 +22449,44 @@ Commit app source, \`package.json\`, and \`bun.lock\`. A fresh clone installs \`
22423
22449
 
22424
22450
  "csstype": ["csstype@3.2.3", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="],
22425
22451
 
22452
+ "d3-array": ["d3-array@3.2.4", "", { "dependencies": { "internmap": "1 - 2" } }, "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg=="],
22453
+
22454
+ "d3-color": ["d3-color@3.1.0", "", {}, "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA=="],
22455
+
22456
+ "d3-ease": ["d3-ease@3.0.1", "", {}, "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w=="],
22457
+
22458
+ "d3-format": ["d3-format@3.1.2", "", {}, "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg=="],
22459
+
22460
+ "d3-interpolate": ["d3-interpolate@3.0.1", "", { "dependencies": { "d3-color": "1 - 3" } }, "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g=="],
22461
+
22462
+ "d3-path": ["d3-path@3.1.0", "", {}, "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ=="],
22463
+
22464
+ "d3-scale": ["d3-scale@4.0.2", "", { "dependencies": { "d3-array": "2.10.0 - 3", "d3-format": "1 - 3", "d3-interpolate": "1.2.0 - 3", "d3-time": "2.1.1 - 3", "d3-time-format": "2 - 4" } }, "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ=="],
22465
+
22466
+ "d3-shape": ["d3-shape@3.2.0", "", { "dependencies": { "d3-path": "^3.1.0" } }, "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA=="],
22467
+
22468
+ "d3-time": ["d3-time@3.1.0", "", { "dependencies": { "d3-array": "2 - 3" } }, "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q=="],
22469
+
22470
+ "d3-time-format": ["d3-time-format@4.1.0", "", { "dependencies": { "d3-time": "1 - 3" } }, "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg=="],
22471
+
22472
+ "d3-timer": ["d3-timer@3.0.1", "", {}, "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA=="],
22473
+
22474
+ "decimal.js-light": ["decimal.js-light@2.5.1", "", {}, "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg=="],
22475
+
22476
+ "es-toolkit": ["es-toolkit@1.52.0", "", {}, "sha512-XTNEJQh1tY1ZJVcf6ayP/2n4ZPyaHlW2FWs7xvw5ddPuhUVjLD3olQVQS7kf58JbAB48iL0uL/jerTrjtV3lDA=="],
22477
+
22478
+ "eventemitter3": ["eventemitter3@5.0.4", "", {}, "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw=="],
22479
+
22426
22480
  "fflate": ["fflate@0.8.3", "", {}, "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA=="],
22427
22481
 
22428
22482
  "fuzzysort": ["fuzzysort@4.0.2", "", {}, "sha512-3c7yD6rK1EXIsqpcu1ZVzXJugODWNMzvUij6yTiziaAHrpNS8kzFOI9mJLE8pmG4K9JOaVgzQRgklfOEk8f4Tg=="],
22429
22483
 
22430
22484
  "html-to-image": ["html-to-image@1.11.13", "", {}, "sha512-cuOPoI7WApyhBElTTb9oqsawRvZ0rHhaHwghRLlTuffoD1B2aDemlCruLeZrUIIdvG7gs9xeELEPm6PhuASqrg=="],
22431
22485
 
22486
+ "immer": ["immer@11.1.21", "", {}, "sha512-bZSadeCPGdaY5/qRLgr6mDSH1ra21rD3rqpiWk7+QTr4ayYPTE9qZYdLh/NdPhMe0wSrTvHD/Lk8q5EwhUs0aw=="],
22487
+
22488
+ "internmap": ["internmap@2.0.3", "", {}, "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg=="],
22489
+
22432
22490
  "lucide-react": ["lucide-react@1.48.0", "", { "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-R0CIKY/fXiC6y9xRBADgsK+VW2p/pcTJOMhLZf1T+uG+vJUvyUR02nGOgmIIC7MPkiNK4Ox8QDnbqF8rJYWPZQ=="],
22433
22491
 
22434
22492
  "oxfmt": ["oxfmt@0.70.0", "", { "dependencies": { "tinypool": "2.1.2" }, "optionalDependencies": { "@oxfmt/binding-android-arm-eabi": "0.70.0", "@oxfmt/binding-android-arm64": "0.70.0", "@oxfmt/binding-darwin-arm64": "0.70.0", "@oxfmt/binding-darwin-x64": "0.70.0", "@oxfmt/binding-freebsd-x64": "0.70.0", "@oxfmt/binding-linux-arm-gnueabihf": "0.70.0", "@oxfmt/binding-linux-arm-musleabihf": "0.70.0", "@oxfmt/binding-linux-arm64-gnu": "0.70.0", "@oxfmt/binding-linux-arm64-musl": "0.70.0", "@oxfmt/binding-linux-ppc64-gnu": "0.70.0", "@oxfmt/binding-linux-riscv64-gnu": "0.70.0", "@oxfmt/binding-linux-riscv64-musl": "0.70.0", "@oxfmt/binding-linux-s390x-gnu": "0.70.0", "@oxfmt/binding-linux-x64-gnu": "0.70.0", "@oxfmt/binding-linux-x64-musl": "0.70.0", "@oxfmt/binding-openharmony-arm64": "0.70.0", "@oxfmt/binding-win32-arm64-msvc": "0.70.0", "@oxfmt/binding-win32-ia32-msvc": "0.70.0", "@oxfmt/binding-win32-x64-msvc": "0.70.0" }, "peerDependencies": { "svelte": "^5.0.0", "vite-plus": "*" }, "optionalPeers": ["svelte", "vite-plus"], "bin": { "oxfmt": "bin/oxfmt" } }, "sha512-IsHxZ4y0wQLLMhnrJblBJgZsLDzfULrJnAw5j/QqsTlMa/m3AqsbToi+W71uhBGaqlqq/PbbjvHc09TJwdv3Tw=="],
@@ -22445,12 +22503,26 @@ Commit app source, \`package.json\`, and \`bun.lock\`. A fresh clone installs \`
22445
22503
 
22446
22504
  "react-dom": ["react-dom@19.3.0", "", { "dependencies": { "scheduler": "^0.28.0" }, "peerDependencies": { "react": "^19.3.0" } }, "sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q=="],
22447
22505
 
22506
+ "react-is": ["react-is@19.3.0", "", {}, "sha512-UpMYezM4v5/18F28aC66AEsjXIgE02kyEMH6yLdgLXu/UTfa1Ntwck/nNLrbqJsEXW7gPb0coNO9FQse9WTovA=="],
22507
+
22508
+ "react-redux": ["react-redux@9.3.0", "", { "dependencies": { "@types/use-sync-external-store": "^0.0.6", "use-sync-external-store": "^1.4.0" }, "peerDependencies": { "@types/react": "^18.2.25 || ^19", "react": "^18.0 || ^19", "redux": "^5.0.0" }, "optionalPeers": ["@types/react", "redux"] }, "sha512-KQopgqFo/p/fgmAs5qz6p5RWaNAzq40WAu7fJIXnQpYxFPbJYtsJPWvGeF2rOBaY/kEuV77AVsX8TsQzKm+A/g=="],
22509
+
22448
22510
  "react-stately": ["react-stately@3.50.0", "", { "dependencies": { "@internationalized/date": "^3.12.4", "@internationalized/number": "^3.6.8", "@internationalized/string": "^3.2.10", "@react-types/shared": "^3.36.1", "@swc/helpers": "^0.5.0", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" } }, "sha512-TnckvpDQGU0672wEaLZqdzvhuSeXWjgW6vijMWxiKOxc8CosQUfPGISdcZyfHqjX3XMjEtRxj4w9HumvX4h4mw=="],
22449
22511
 
22512
+ "recharts": ["recharts@3.10.1", "", { "dependencies": { "@reduxjs/toolkit": "^1.9.0 || 2.x.x", "clsx": "^2.1.1", "decimal.js-light": "^2.5.1", "es-toolkit": "^1.39.3", "eventemitter3": "^5.0.1", "immer": "^11.1.8", "react-redux": "8.x.x || 9.x.x", "reselect": "5.2.0", "tiny-invariant": "^1.3.3", "use-sync-external-store": "^1.2.2", "victory-vendor": "^37.0.2" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-is": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-QXFrvt6IVcw7eeZCoyXTwkIJAX3Dv1nyVhMicXJ47GsGDDpcN8z6o644DibE9XjpBTThtsomLKnTV6lc+cVFUA=="],
22513
+
22514
+ "redux": ["redux@5.0.1", "", {}, "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w=="],
22515
+
22516
+ "redux-thunk": ["redux-thunk@3.1.0", "", { "peerDependencies": { "redux": "^5.0.0" } }, "sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw=="],
22517
+
22518
+ "reselect": ["reselect@5.2.0", "", {}, "sha512-AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw=="],
22519
+
22450
22520
  "scheduler": ["scheduler@0.28.0", "", {}, "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw=="],
22451
22521
 
22452
22522
  "tabbable": ["tabbable@6.5.0", "", {}, "sha512-wieBHXygIm7OyQOu5hQlkk62/WyCFYGlWg7L6/ZCUZwx0o398Zkn4pVmMyfYhfMG8kGrj/Krt8eIk6UKC6VzwA=="],
22453
22523
 
22524
+ "tiny-invariant": ["tiny-invariant@1.3.3", "", {}, "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg=="],
22525
+
22454
22526
  "tinypool": ["tinypool@2.1.2", "", {}, "sha512-9YodfrxS9g9IbFr/KOjE5bAeJ0p61n3bW6mqvy0jtoeKd1kTW1Cxm0oulm6KX2lyM9Gl6WIe8nEbY7LWv5ZJww=="],
22455
22527
 
22456
22528
  "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
@@ -22460,6 +22532,8 @@ Commit app source, \`package.json\`, and \`bun.lock\`. A fresh clone installs \`
22460
22532
  "undici-types": ["undici-types@8.9.0", "", {}, "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg=="],
22461
22533
 
22462
22534
  "use-sync-external-store": ["use-sync-external-store@1.7.0", "", { "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-6L+EeigHMQhdaIPNIFUKwfWJSwWFQ8gJbJ2DLOs5sDIegTwR9fRxvnM3uciHKjIZhFz+KAv2emhWMRvDmMcY8A=="],
22535
+
22536
+ "victory-vendor": ["victory-vendor@37.3.6", "", { "dependencies": { "@types/d3-array": "^3.0.3", "@types/d3-ease": "^3.0.0", "@types/d3-interpolate": "^3.0.1", "@types/d3-scale": "^4.0.2", "@types/d3-shape": "^3.1.0", "@types/d3-time": "^3.0.0", "@types/d3-timer": "^3.0.0", "d3-array": "^3.1.6", "d3-ease": "^3.0.1", "d3-interpolate": "^3.0.1", "d3-scale": "^4.0.2", "d3-shape": "^3.1.0", "d3-time": "^3.0.0", "d3-timer": "^3.0.1" } }, "sha512-SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ=="],
22463
22537
  }
22464
22538
  }
22465
22539
  `, "bunfig.toml": `[install]
@@ -22481,7 +22555,7 @@ exact = true
22481
22555
  "build": "bun build src/index.html --outdir=dist --production"
22482
22556
  },
22483
22557
  "dependencies": {
22484
- "@altertable/data-app": "0.66.0",
22558
+ "@altertable/data-app": "0.68.0",
22485
22559
  "react": "19.3.0",
22486
22560
  "react-dom": "19.3.0"
22487
22561
  },
@@ -22497,36 +22571,47 @@ exact = true
22497
22571
  }
22498
22572
  `, "src/App.tsx": `import { GettingStarted } from "@altertable/data-app/react/ui";
22499
22573
  import { dataContext } from "#app/data-context.ts";
22500
- import app from "#app/config.ts";
22501
22574
 
22502
22575
  /** Connectivity-only screen. Investigate the requested question, then replace this with a view
22503
22576
  * that leads with a supported finding and explores the useful angles behind it. */
22504
22577
  export function App() {
22505
- return <GettingStarted config={app} dataContext={dataContext} />;
22578
+ return <GettingStarted dataContext={dataContext} />;
22506
22579
  }
22507
22580
  `, "src/assets.d.ts": `declare module "*.css";
22508
- `, "src/config.ts": `import { parseAppearance } from "@altertable/data-app/appearance";
22509
- import type { DataAppConfig } from "@altertable/data-app/config";
22581
+ `, "src/config.ts": `import { defineDataApp } from "@altertable/data-app";
22582
+ import { parseAppearance } from "@altertable/data-app/appearance";
22510
22583
  import app from "#config";
22511
22584
 
22512
- export default {
22585
+ export default defineDataApp({
22513
22586
  title: app.title,
22587
+ description: "Verify the configured lakehouse connection before authoring an exploration.",
22514
22588
  scope: app.scope,
22515
22589
  appearance: parseAppearance(app.appearance),
22516
- } satisfies DataAppConfig;
22590
+ queries: {
22591
+ connection: {
22592
+ statement: "SELECT 1 AS connection_check",
22593
+ params: {},
22594
+ },
22595
+ },
22596
+ });
22517
22597
  `, "src/data-context.ts": `import { createDataContext } from "@altertable/data-app/react";
22518
- import { connectionQueryNames } from "@altertable/data-app/contract";
22598
+ import { defineQueryNames } from "@altertable/data-app/contract";
22599
+ import type app from "#app/config.ts";
22519
22600
 
22520
22601
  /** Setup context only. Replace it with the exploration's scope, exact definitions, limitations,
22521
22602
  * and query evidence after inspecting the source data. */
22522
- export const dataContext = createDataContext(connectionQueryNames)({
22603
+ const queryNames = defineQueryNames({
22604
+ connection: "connection" satisfies keyof typeof app.queries,
22605
+ });
22606
+
22607
+ export const dataContext = createDataContext(queryNames)({
22523
22608
  description:
22524
22609
  "This starter runs a lightweight query to verify that the selected lakehouse profile can execute SQL. It does not check access to individual datasets. Replace the check with a query that answers a real question before sharing the app.",
22525
22610
  glossary: {
22526
22611
  connectionVerified: {
22527
22612
  term: "Connected",
22528
22613
  definition: "The latest connection-check query completed successfully.",
22529
- queryNames: [connectionQueryNames.connection],
22614
+ queryNames: [queryNames.connection],
22530
22615
  },
22531
22616
  },
22532
22617
  });
@@ -22562,12 +22647,13 @@ import { App } from "#app/App.tsx";
22562
22647
  import app from "#app/config.ts";
22563
22648
 
22564
22649
  injectDataAppStyles();
22565
- mountDataApp({ config: app, component: App });
22650
+ mountDataApp({ app, component: App });
22566
22651
  `, "src/operations.ts": `import { connectionCheck } from "@altertable/data-app/contract";
22652
+ import app from "#app/config.ts";
22567
22653
 
22568
22654
  /** Connectivity probe only: its successful query supplies no analytical result. Replace it with
22569
22655
  * bounded, validated operations that cover the questions the finished app will answer. */
22570
- export const operations = { connection: connectionCheck() };
22656
+ export const operations = { connection: connectionCheck(app.queries) };
22571
22657
  `, "src/server.ts": `import page from "#app/index.html";
22572
22658
  import { serveLocalApp } from "@altertable/data-app/server/bun";
22573
22659
  import { operations } from "#app/operations.ts";
@@ -23179,40 +23265,6 @@ async function readRequiredFile(path, label) {
23179
23265
  throw new CliError(`Could not read ${label}: ${path}`, { cause: error });
23180
23266
  }
23181
23267
  }
23182
- async function readJsonFile(path, label) {
23183
- const text = await readRequiredFile(path, label);
23184
- try {
23185
- return JSON.parse(text);
23186
- } catch (error) {
23187
- throw new CliError(`${label} is not valid JSON: ${path}`, { cause: error });
23188
- }
23189
- }
23190
- function parseQueries(value) {
23191
- if (Array.isArray(value)) {
23192
- return value.map((entry, index) => {
23193
- if (typeof entry !== "object" || entry === null) {
23194
- throw new CliError(`queries[${index}] must be an object with id and sql.`);
23195
- }
23196
- const { id, sql } = entry;
23197
- if (typeof id !== "string" || typeof sql !== "string") {
23198
- throw new CliError(`queries[${index}] id and sql must be strings.`);
23199
- }
23200
- return { id, sql };
23201
- });
23202
- }
23203
- if (typeof value === "object" && value !== null) {
23204
- return Object.entries(value).map(([id, sql]) => {
23205
- if (typeof sql !== "string") {
23206
- throw new CliError(`queries.${id} must be a SQL string.`);
23207
- }
23208
- return { id, sql };
23209
- });
23210
- }
23211
- throw new CliError("queries must be a JSON object or an array of {id, sql}.");
23212
- }
23213
- async function readQueriesFile(path) {
23214
- return parseQueries(await readJsonFile(path, "queries"));
23215
- }
23216
23268
  function buildDataAppHttpRequest(env, method, path, body) {
23217
23269
  return {
23218
23270
  plane: "management",
@@ -23254,22 +23306,14 @@ function formatDiagnostic(kind, diagnostic) {
23254
23306
  var appPublishCommand = defineCommand({
23255
23307
  metadata: {
23256
23308
  name: "publish",
23257
- description: "Create a data app from files.",
23258
- examples: [
23259
- "altertable app publish --title 'Revenue explorer' --file index.tsx --queries queries.json"
23260
- ]
23309
+ description: "Create a data app from source.",
23310
+ examples: ["altertable app publish --title 'Revenue explorer' --file index.tsx"]
23261
23311
  },
23262
23312
  args: {
23263
23313
  title: { type: "string", description: "Title of the data app.", required: true },
23264
23314
  file: {
23265
23315
  type: "string",
23266
- description: "Path to the single-file React source (index.tsx).",
23267
- required: true,
23268
- completion: "file"
23269
- },
23270
- queries: {
23271
- type: "string",
23272
- description: "Path to queries JSON (object of id \u2192 SQL, or [{id, sql}]).",
23316
+ description: "Path to the single-file React source (index.tsx). Queries are declared in the file via defineDataApp.",
23273
23317
  required: true,
23274
23318
  completion: "file"
23275
23319
  },
@@ -23283,7 +23327,6 @@ var appPublishCommand = defineCommand({
23283
23327
  const response = parseApiJson(await sendHttp(buildDataAppHttpRequest(env, "POST", "/data_apps", {
23284
23328
  title,
23285
23329
  index_tsx: await readRequiredFile(stringArg(args, "file"), "source"),
23286
- queries: await readQueriesFile(stringArg(args, "queries")),
23287
23330
  description: optionalStringArg(args, "description")
23288
23331
  }), execution));
23289
23332
  const dataApp = response.data_app ?? {};
@@ -23300,10 +23343,10 @@ ${dataApp.url ?? ""}`
23300
23343
  var appUpdateCommand = defineCommand({
23301
23344
  metadata: {
23302
23345
  name: "update",
23303
- description: "Update a data app from files. Omitted fields are left unchanged.",
23346
+ description: "Update a data app from source. Omitted fields are left unchanged.",
23304
23347
  examples: [
23305
23348
  "altertable app update APP-1 --file index.tsx",
23306
- "altertable app update APP-1 --title 'Revenue explorer' --file index.tsx --queries queries.json"
23349
+ "altertable app update APP-1 --title 'Revenue explorer' --file index.tsx"
23307
23350
  ]
23308
23351
  },
23309
23352
  args: {
@@ -23315,12 +23358,7 @@ var appUpdateCommand = defineCommand({
23315
23358
  title: { type: "string", description: "New title of the data app." },
23316
23359
  file: {
23317
23360
  type: "string",
23318
- description: "Path to replacement single-file React source (index.tsx).",
23319
- completion: "file"
23320
- },
23321
- queries: {
23322
- type: "string",
23323
- description: "Path to queries JSON. Replaces the full set when provided.",
23361
+ description: "Path to replacement single-file React source (index.tsx). Replaces the queries with those the file declares.",
23324
23362
  completion: "file"
23325
23363
  },
23326
23364
  description: { type: "string", description: "New description of the data app." }
@@ -23332,7 +23370,7 @@ var appUpdateCommand = defineCommand({
23332
23370
  const slug = stringArg(args, "slug");
23333
23371
  const body = await updatePayload(args);
23334
23372
  if (Object.keys(body).length === 0) {
23335
- throw new CliError("Provide at least one of --title, --description, --file, or --queries.");
23373
+ throw new CliError("Provide at least one of --title, --description, or --file.");
23336
23374
  }
23337
23375
  const response = parseApiJson(await sendHttp(buildDataAppHttpRequest(env, "PATCH", `/data_apps/${slug}`, body), execution));
23338
23376
  const dataApp = response.data_app ?? {};
@@ -23349,15 +23387,12 @@ async function updatePayload(args) {
23349
23387
  const title = optionalStringArg(args, "title");
23350
23388
  const description = optionalStringArg(args, "description");
23351
23389
  const file = optionalStringArg(args, "file");
23352
- const queries = optionalStringArg(args, "queries");
23353
23390
  if (title !== undefined)
23354
23391
  body.title = title;
23355
23392
  if (description !== undefined)
23356
23393
  body.description = description;
23357
23394
  if (file !== undefined)
23358
23395
  body.index_tsx = await readRequiredFile(file, "source");
23359
- if (queries !== undefined)
23360
- body.queries = await readQueriesFile(queries);
23361
23396
  return body;
23362
23397
  }
23363
23398
 
@@ -23479,19 +23514,13 @@ ${stderr || stdout}`);
23479
23514
  var appValidateCommand = defineCommand({
23480
23515
  metadata: {
23481
23516
  name: "validate",
23482
- description: "Type-check and bundle a data app from files without saving.",
23483
- examples: ["altertable app validate --file index.tsx --queries queries.json"]
23517
+ description: "Type-check and bundle a data app from source without saving.",
23518
+ examples: ["altertable app validate --file index.tsx"]
23484
23519
  },
23485
23520
  args: {
23486
23521
  file: {
23487
23522
  type: "string",
23488
- description: "Path to the single-file React source (index.tsx).",
23489
- required: true,
23490
- completion: "file"
23491
- },
23492
- queries: {
23493
- type: "string",
23494
- description: "Path to queries JSON (object of id \u2192 SQL, or [{id, sql}]).",
23523
+ description: "Path to the single-file React source (index.tsx). Queries are declared in the file via defineDataApp.",
23495
23524
  required: true,
23496
23525
  completion: "file"
23497
23526
  }
@@ -23501,10 +23530,8 @@ var appValidateCommand = defineCommand({
23501
23530
  requirement: "Validating a data app requires the management API"
23502
23531
  });
23503
23532
  const indexTsx = await readRequiredFile(stringArg(args, "file"), "source");
23504
- const queries = await readQueriesFile(stringArg(args, "queries"));
23505
23533
  const response = parseApiJson(await sendHttp(buildDataAppHttpRequest(env, "POST", "/data_apps/validate", {
23506
- index_tsx: indexTsx,
23507
- queries
23534
+ index_tsx: indexTsx
23508
23535
  }), execution));
23509
23536
  await writeCommandOutput({
23510
23537
  kind: "normalized",
@@ -23527,8 +23554,8 @@ var appCommand = defineCommand({
23527
23554
  "altertable app lint",
23528
23555
  "altertable app build",
23529
23556
  "altertable app upgrade",
23530
- "altertable app validate --file index.tsx --queries queries.json",
23531
- "altertable app publish --title 'Revenue explorer' --file index.tsx --queries queries.json",
23557
+ "altertable app validate --file index.tsx",
23558
+ "altertable app publish --title 'Revenue explorer' --file index.tsx",
23532
23559
  "altertable app update APP-1 --file index.tsx"
23533
23560
  ]
23534
23561
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altertable/cli",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "Altertable CLI — query and manage your data platform",
5
5
  "homepage": "https://github.com/altertable-ai/altertable-cli#readme",
6
6
  "bugs": {