@docyrus/docyrus 0.0.17 → 0.0.18
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/README.md +8 -0
- package/agent-loader.js +2640 -0
- package/agent-loader.js.map +7 -0
- package/main.js +74 -108
- package/main.js.map +2 -2
- package/package.json +5 -2
- package/resources/pi-agent/skills/docyrus-api-dev/references/data-source-query-guide.md +2 -2
- package/resources/pi-agent/skills/docyrus-api-dev/references/formula-design-guide-llm.md +1 -1
- package/resources/pi-agent/skills/docyrus-app-dev/references/data-source-query-guide.md +2 -2
- package/resources/pi-agent/skills/docyrus-app-dev/references/formula-design-guide-llm.md +1 -1
- package/resources/pi-agent/skills/docyrus-architect/references/data-source-query-guide.md +2 -2
- package/resources/pi-agent/skills/docyrus-architect/references/formula-design-guide-llm.md +1 -1
- package/resources/pi-agent/skills/docyrus-architect/references/formula-reference.md +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docyrus/docyrus",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
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
|
-
"@
|
|
11
|
+
"@clack/prompts": "^0.11.0",
|
|
12
|
+
"@mariozechner/pi-ai": "0.59.0",
|
|
13
|
+
"@mariozechner/pi-coding-agent": "0.59.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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
-
`
|
|
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,
|
|
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()`.
|