@hypequery/cli 1.21.0 → 1.21.2

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/README.md +2 -25
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The fastest way to start a type-safe ClickHouse analytics backend in TypeScript.
4
4
 
5
- `@hypequery/cli` connects to ClickHouse or embedded chDB, generates schema types, scaffolds queries or semantic datasets, and runs a local API with interactive documentation. The same CLI can generate React route manifests and deploy a verified analytics bundle when you are ready.
5
+ `@hypequery/cli` connects to ClickHouse or embedded chDB, generates schema types, scaffolds queries or semantic datasets, and runs a local API with interactive documentation. It also generates React route manifests.
6
6
 
7
7
  ## Start here
8
8
 
@@ -18,29 +18,9 @@ For a semantic layer:
18
18
 
19
19
  ```bash
20
20
  npx hypequery init --style datasets
21
- npx hypequery login
22
- npx hypequery deploy analytics/cloud.ts
23
- ```
24
-
25
- The dataset scaffold writes `analytics/cloud.ts` alongside the local
26
- `analytics/api.ts`. Its Cloud publication is explicit:
27
-
28
- ```ts
29
- import { publishToCloud } from '@hypequery/datasets';
30
- import { datasets } from './datasets.js';
31
-
32
- export const cloud = publishToCloud({
33
- datasets,
34
- access: { roles: [], scopes: [] },
35
- });
21
+ npx hypequery dev --open
36
22
  ```
37
23
 
38
- `api.ts` remains the local Serve entrypoint. Cloud deployment builds from
39
- `cloud.ts` and does not load Serve configuration. This first Cloud publisher
40
- accepts datasets only; it rejects named metrics rather than dropping them.
41
- The required access policy makes the authenticated roles and scopes visible
42
- before an existing project moves away from Serve-based publishing.
43
-
44
24
  For embedded analytics without a ClickHouse server:
45
25
 
46
26
  ```bash
@@ -58,8 +38,6 @@ npx hypequery init \
58
38
  | `hypequery generate` | Fresh TypeScript types from ClickHouse or chDB |
59
39
  | `hypequery generate:datasets` | Dataset definitions scaffolded from tables |
60
40
  | `hypequery generate:manifest` | A browser-safe route manifest for React hooks |
61
- | `hypequery login` | An authenticated Cloud target |
62
- | `hypequery deploy analytics/cloud.ts` | A verified dataset-only Cloud deployment |
63
41
  | `hypequery pull` / `diff` | Live source inspection and comparison |
64
42
 
65
43
  Non-interactive ClickHouse commands read `CLICKHOUSE_URL`, `CLICKHOUSE_DATABASE`, `CLICKHOUSE_USERNAME`, and `CLICKHOUSE_PASSWORD`.
@@ -69,7 +47,6 @@ Non-interactive ClickHouse commands read `CLICKHOUSE_URL`, `CLICKHOUSE_DATABASE`
69
47
  - Get correct ClickHouse runtime types instead of guessing interfaces.
70
48
  - Move from one local query to datasets, APIs, React, and MCP without changing tools.
71
49
  - Keep generated types and route manifests reproducible in CI.
72
- - Build closed, hash-verified deployment artifacts from the same source.
73
50
 
74
51
  ## Learn more
75
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypequery/cli",
3
- "version": "1.21.0",
3
+ "version": "1.21.2",
4
4
  "description": "CLI for scaffolding type-safe ClickHouse analytics, semantic datasets, React manifests, and deployments",
5
5
  "keywords": [
6
6
  "clickhouse",
@@ -30,8 +30,8 @@
30
30
  "open": "^10.0.0",
31
31
  "ora": "^8.0.1",
32
32
  "prompts": "^2.4.2",
33
- "@hypequery/deployment": "0.9.1",
34
- "@hypequery/protocol": "0.15.0"
33
+ "@hypequery/deployment": "0.9.3",
34
+ "@hypequery/protocol": "0.17.0"
35
35
  },
36
36
  "optionalDependencies": {
37
37
  "@napi-rs/keyring": "1.3.0"
@@ -51,8 +51,8 @@
51
51
  "@vitest/coverage-v8": "^3.2.6",
52
52
  "typescript": "^5.7.3",
53
53
  "vitest": "^3.2.6",
54
- "@hypequery/mcp": "0.8.2",
55
- "@hypequery/serve": "0.19.0"
54
+ "@hypequery/mcp": "0.8.4",
55
+ "@hypequery/serve": "0.19.2"
56
56
  },
57
57
  "repository": {
58
58
  "type": "git",