@docyrus/docyrus 0.0.17 → 0.0.19

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docyrus/docyrus",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "private": false,
5
5
  "description": "Docyrus API CLI",
6
6
  "main": "./main.js",
@@ -8,12 +8,15 @@
8
8
  "docyrus": "main.js"
9
9
  },
10
10
  "dependencies": {
11
- "@mariozechner/pi-coding-agent": "0.58.4",
11
+ "@clack/prompts": "^0.11.0",
12
+ "@mariozechner/pi-ai": "0.60.0",
13
+ "@mariozechner/pi-coding-agent": "0.60.0",
12
14
  "@opentui/core": "^0.1.85",
13
15
  "@opentui/react": "^0.1.85",
14
16
  "incur": "^0.1.6",
15
17
  "marked": "^15.0.12",
16
18
  "marked-terminal": "^7.3.0",
19
+ "picocolors": "^1.1.1",
17
20
  "react": "^19.1.1",
18
21
  "undici": "^7.16.0"
19
22
  },
@@ -70,7 +70,7 @@ interface ISelectQueryParams {
70
70
  distinctColumns?: string[] | null;
71
71
 
72
72
  // --- Computed Columns ---
73
- formulas?: Record<string, IQueryFormula> | null;
73
+ formulas?: Record<string, ISelectQueryFormula> | null;
74
74
 
75
75
  // --- Aggregation ---
76
76
  calculations?: ISelectQueryCalculationRule[] | null;
@@ -711,7 +711,7 @@ When `true` and aggregation is used, includes group summary rows in the output.
711
711
 
712
712
  ## Formulas
713
713
 
714
- **Parameter:** `formulas` — `Record<string, IQueryFormula> | null`
714
+ **Parameter:** `formulas` — `Record<string, ISelectQueryFormula> | null`
715
715
 
716
716
  Formulas are virtual computed columns injected into `SELECT` queries at build time. Keys are the formula names (used as column aliases), values are formula definitions.
717
717
 
@@ -135,7 +135,7 @@ Allowed: int, int2, int4, int8, bigint, real, float, float4, float8, numeric, do
135
135
 
136
136
  ## SelectQueryBuilder Integration
137
137
 
138
- 1. Formulas in `ISelectQueryParams.formulas` as `Record<string, IQueryFormula>`.
138
+ 1. Formulas in `ISelectQueryParams.formulas` as `Record<string, ISelectQueryFormula>`.
139
139
  2. Column alias matching formula key → formula replaces column ref in SELECT.
140
140
  3. Dispatch: `from`/`expression` → `buildBlockFormula()` (subquery), `inputs` only → `buildBlockFormula()` (inline).
141
141
  4. Calculations with `func:"formula"` also route through `buildFormula()`.
@@ -70,7 +70,7 @@ interface ISelectQueryParams {
70
70
  distinctColumns?: string[] | null;
71
71
 
72
72
  // --- Computed Columns ---
73
- formulas?: Record<string, IQueryFormula> | null;
73
+ formulas?: Record<string, ISelectQueryFormula> | null;
74
74
 
75
75
  // --- Aggregation ---
76
76
  calculations?: ISelectQueryCalculationRule[] | null;
@@ -711,7 +711,7 @@ When `true` and aggregation is used, includes group summary rows in the output.
711
711
 
712
712
  ## Formulas
713
713
 
714
- **Parameter:** `formulas` — `Record<string, IQueryFormula> | null`
714
+ **Parameter:** `formulas` — `Record<string, ISelectQueryFormula> | null`
715
715
 
716
716
  Formulas are virtual computed columns injected into `SELECT` queries at build time. Keys are the formula names (used as column aliases), values are formula definitions.
717
717
 
@@ -135,7 +135,7 @@ Allowed: int, int2, int4, int8, bigint, real, float, float4, float8, numeric, do
135
135
 
136
136
  ## SelectQueryBuilder Integration
137
137
 
138
- 1. Formulas in `ISelectQueryParams.formulas` as `Record<string, IQueryFormula>`.
138
+ 1. Formulas in `ISelectQueryParams.formulas` as `Record<string, ISelectQueryFormula>`.
139
139
  2. Column alias matching formula key → formula replaces column ref in SELECT.
140
140
  3. Dispatch: `from`/`expression` → `buildBlockFormula()` (subquery), `inputs` only → `buildBlockFormula()` (inline).
141
141
  4. Calculations with `func:"formula"` also route through `buildFormula()`.
@@ -70,7 +70,7 @@ interface ISelectQueryParams {
70
70
  distinctColumns?: string[] | null;
71
71
 
72
72
  // --- Computed Columns ---
73
- formulas?: Record<string, IQueryFormula> | null;
73
+ formulas?: Record<string, ISelectQueryFormula> | null;
74
74
 
75
75
  // --- Aggregation ---
76
76
  calculations?: ISelectQueryCalculationRule[] | null;
@@ -711,7 +711,7 @@ When `true` and aggregation is used, includes group summary rows in the output.
711
711
 
712
712
  ## Formulas
713
713
 
714
- **Parameter:** `formulas` — `Record<string, IQueryFormula> | null`
714
+ **Parameter:** `formulas` — `Record<string, ISelectQueryFormula> | null`
715
715
 
716
716
  Formulas are virtual computed columns injected into `SELECT` queries at build time. Keys are the formula names (used as column aliases), values are formula definitions.
717
717
 
@@ -135,7 +135,7 @@ Allowed: int, int2, int4, int8, bigint, real, float, float4, float8, numeric, do
135
135
 
136
136
  ## SelectQueryBuilder Integration
137
137
 
138
- 1. Formulas in `ISelectQueryParams.formulas` as `Record<string, IQueryFormula>`.
138
+ 1. Formulas in `ISelectQueryParams.formulas` as `Record<string, ISelectQueryFormula>`.
139
139
  2. Column alias matching formula key → formula replaces column ref in SELECT.
140
140
  3. Dispatch: `from`/`expression` → `buildBlockFormula()` (subquery), `inputs` only → `buildBlockFormula()` (inline).
141
141
  4. Calculations with `func:"formula"` also route through `buildFormula()`.
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Formula Types
4
4
 
5
- `IQueryFormula = IQuerySimpleFormula | IQueryBlockFormula`
5
+ `ISelectQueryFormula = IQuerySimpleFormula | IQueryBlockFormula`
6
6
 
7
7
  **Simple** — legacy flat function call: `{ func: string, args: (string|number)[] }`. Column refs use `{col}` syntax. Detected by `func` property.
8
8
 
@@ -110,7 +110,7 @@ Allowed: int, int2, int4, int8, bigint, real, float, float4, float8, numeric, do
110
110
 
111
111
  ## SelectQueryBuilder Integration
112
112
 
113
- 1. Formulas in `ISelectQueryParams.formulas` as `Record<string, IQueryFormula>`.
113
+ 1. Formulas in `ISelectQueryParams.formulas` as `Record<string, ISelectQueryFormula>`.
114
114
  2. Column alias matching formula key → formula replaces column ref in SELECT.
115
115
  3. Dispatch: `func` → `buildSimpleFormula()`, `from`/`expression` → `buildBlockFormula()` (subquery), `inputs` only → `buildBlockFormula()` (inline).
116
116
  4. Calculations with `func:"formula"` also route through `buildFormula()`.