coalesce-transform-mcp 0.9.3 → 0.10.0-preview.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.
- package/README.md +32 -0
- package/dist/mcp/coa.d.ts +114 -6
- package/dist/mcp/coa.d.ts.map +1 -1
- package/dist/mcp/coa.js +174 -49
- package/dist/mcp/coa.js.map +1 -1
- package/dist/resources/context/overview.md +3 -3
- package/dist/resources/context/sql-node-v2-policy.md +33 -25
- package/dist/services/coa/preflight.d.ts +7 -5
- package/dist/services/coa/preflight.d.ts.map +1 -1
- package/dist/services/coa/preflight.js +18 -28
- package/dist/services/coa/preflight.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -20,6 +20,7 @@ MCP server for [Coalesce](https://coalesce.io/). Built for **Snowflake [Cortex C
|
|
|
20
20
|
| 📦 | Walk through the full setup | [Full Installation](#full-installation) |
|
|
21
21
|
| 🔑 | Authenticate (env var or `~/.coa/config`) | [Credentials](#credentials) |
|
|
22
22
|
| 🌐 | Run against multiple Coalesce environments | [Multiple environments](#multiple-environments) |
|
|
23
|
+
| 📥 | Scaffold source nodes from warehouse tables | [Tools → warehouse source discovery](#tools) |
|
|
23
24
|
| 🔒 | Lock prod down to read-only | [Safety model](docs/safety-model.md) |
|
|
24
25
|
|
|
25
26
|
---
|
|
@@ -482,6 +483,14 @@ Set `COALESCE_MCP_SKILLS_DIR` to make skills editable on disk. Each skill resolv
|
|
|
482
483
|
- 🧰 **`coa_deploy`** - Apply a plan JSON to a cloud environment ⚠️
|
|
483
484
|
- 🧰 **`coa_refresh`** - Run DML for selected nodes in an already-deployed environment (no local project required) ⚠️
|
|
484
485
|
|
|
486
|
+
**Warehouse source discovery (bundled CLI, new in v0.10)**
|
|
487
|
+
|
|
488
|
+
Pair these three to onboard warehouse tables as source nodes without hand-writing YAML. Typical flow: `list` to see per-location counts, `add` (scoped by `location`) to scaffold, optionally `remove` to drop nodes when a location is retired. Each `add` populates the source node's `database`/`schema` from the workspace config — no placeholder values to fix up afterward.
|
|
489
|
+
|
|
490
|
+
- 🧰 **`coa_list_warehouse_sources`** - List warehouse tables per storage location; summary or per-table detail (with `alreadyExists` flags)
|
|
491
|
+
- 🧰 **`coa_add_warehouse_sources`** ⚠️ - Scaffold source-node YAML files from warehouse tables; supports `dryRun: true` for preview
|
|
492
|
+
- 🧰 **`coa_remove_warehouse_sources`** ⚠️ - Delete scaffolded source-node YAML; hand-renamed files are skipped
|
|
493
|
+
|
|
485
494
|
</details>
|
|
486
495
|
|
|
487
496
|
<details>
|
|
@@ -604,6 +613,9 @@ my-project/
|
|
|
604
613
|
|
|
605
614
|
**V1 vs V2** - the format is pinned by `fileVersion` in `data.yml`. **V1** (`fileVersion: 1` or `2`) stores each node as a single YAML file with columns, transforms, and config inline. **V2** (`fileVersion: 3`) is SQL-first: the node body lives in a `.sql` file using `@id` / `@nodeType` annotations and `{{ ref() }}` references, with YAML retained for config. New projects default to V2; existing V1 projects keep working unchanged.
|
|
606
615
|
|
|
616
|
+
> [!NOTE]
|
|
617
|
+
> **V2 status as of v0.10.** V2 is supported. Earlier versions of this MCP required a `v2Acknowledged: true` flag on `coa_create` / `coa_run` / `coa_plan` because the V2 parser had silent failure modes. COA 7.35 fixed the two biggest (bidirectional config-annotation sync, `UNION ALL` preservation), so the flag has been removed. Two minor rough edges remain when authoring V2 — `coa validate` false positives on aliased columns, and parse errors rendering to zero-column `CREATE TABLE ... AS SELECT WHERE 1=0`. The `V2_DETECTED` preflight warning surfaces both; the `coalesce://context/sql-node-v2-policy` resource has the full playbook.
|
|
618
|
+
|
|
607
619
|
</details>
|
|
608
620
|
|
|
609
621
|
Point the MCP at this directory by setting `repoPath` in `~/.coa/config` or `COALESCE_REPO_PATH` in your env block.
|
|
@@ -642,6 +654,26 @@ The `/coalesce-setup` prompt detects a missing `workspaces.yml` and walks you th
|
|
|
642
654
|
|
|
643
655
|
Ask your agent to verify the setup - e.g. *"Run `coa_doctor` on my project and summarize the results."* It checks `data.yml`, `workspaces.yml`, credentials, and warehouse connectivity end to end.
|
|
644
656
|
|
|
657
|
+
<details>
|
|
658
|
+
<summary><b>Simpler alternative: <code>workspace.yml</code> (singular, COA 7.35+)</b></summary>
|
|
659
|
+
|
|
660
|
+
COA 7.35 (the version bundled with v0.10) also accepts a `workspace.yml` (note: **singular**, not the plural `workspaces.yml` above). It's just a flat `locations:` map — no top-level workspace names, no `connection:` block — and is suitable when you only need local storage mappings and don't need to switch between named workspaces.
|
|
661
|
+
|
|
662
|
+
```yaml
|
|
663
|
+
# workspace.yml (singular) - per-repo local storage mappings only
|
|
664
|
+
locations:
|
|
665
|
+
SRC_INGEST_TASTY_BITES:
|
|
666
|
+
database: JESSE_DEV
|
|
667
|
+
schema: INGEST_TASTY_BITES
|
|
668
|
+
ANALYTICS:
|
|
669
|
+
database: JESSE_DEV
|
|
670
|
+
schema: ANALYTICS
|
|
671
|
+
```
|
|
672
|
+
|
|
673
|
+
The two files are independent: `workspaces.yml` (plural) handles multi-workspace cloud profiles, `workspace.yml` (singular) handles per-repo local mappings. Pick the simpler shape if multi-workspace isn't a need. Fetch the canonical schema via `coa_describe` (`topic: "schema"`, `subtopic: "workspace"`).
|
|
674
|
+
|
|
675
|
+
</details>
|
|
676
|
+
|
|
645
677
|
**3. Pick an auth path:**
|
|
646
678
|
|
|
647
679
|
<table>
|
package/dist/mcp/coa.d.ts
CHANGED
|
@@ -88,6 +88,120 @@ declare const DryRunParams: z.ZodObject<{
|
|
|
88
88
|
}>;
|
|
89
89
|
export declare function coaDryRunCreateHandler(params: z.infer<typeof DryRunParams>, runCoaFn?: RunCoaFn): Promise<CoaToolResult>;
|
|
90
90
|
export declare function coaDryRunRunHandler(params: z.infer<typeof DryRunParams>, runCoaFn?: RunCoaFn): Promise<CoaToolResult>;
|
|
91
|
+
export declare const SourcesListParams: z.ZodEffects<z.ZodObject<{
|
|
92
|
+
projectPath: z.ZodString;
|
|
93
|
+
} & {
|
|
94
|
+
location: z.ZodOptional<z.ZodString>;
|
|
95
|
+
all: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
include: z.ZodOptional<z.ZodString>;
|
|
97
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
projectPath: string;
|
|
100
|
+
include?: string | undefined;
|
|
101
|
+
location?: string | undefined;
|
|
102
|
+
profile?: string | undefined;
|
|
103
|
+
all?: boolean | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
projectPath: string;
|
|
106
|
+
include?: string | undefined;
|
|
107
|
+
location?: string | undefined;
|
|
108
|
+
profile?: string | undefined;
|
|
109
|
+
all?: boolean | undefined;
|
|
110
|
+
}>, {
|
|
111
|
+
projectPath: string;
|
|
112
|
+
include?: string | undefined;
|
|
113
|
+
location?: string | undefined;
|
|
114
|
+
profile?: string | undefined;
|
|
115
|
+
all?: boolean | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
projectPath: string;
|
|
118
|
+
include?: string | undefined;
|
|
119
|
+
location?: string | undefined;
|
|
120
|
+
profile?: string | undefined;
|
|
121
|
+
all?: boolean | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
export declare const SourcesAddParams: z.ZodEffects<z.ZodObject<{
|
|
124
|
+
projectPath: z.ZodString;
|
|
125
|
+
} & {
|
|
126
|
+
location: z.ZodOptional<z.ZodString>;
|
|
127
|
+
all: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
+
include: z.ZodOptional<z.ZodString>;
|
|
129
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
132
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
projectPath: string;
|
|
135
|
+
include?: string | undefined;
|
|
136
|
+
location?: string | undefined;
|
|
137
|
+
dryRun?: boolean | undefined;
|
|
138
|
+
confirmed?: boolean | undefined;
|
|
139
|
+
profile?: string | undefined;
|
|
140
|
+
all?: boolean | undefined;
|
|
141
|
+
overwrite?: boolean | undefined;
|
|
142
|
+
}, {
|
|
143
|
+
projectPath: string;
|
|
144
|
+
include?: string | undefined;
|
|
145
|
+
location?: string | undefined;
|
|
146
|
+
dryRun?: boolean | undefined;
|
|
147
|
+
confirmed?: boolean | undefined;
|
|
148
|
+
profile?: string | undefined;
|
|
149
|
+
all?: boolean | undefined;
|
|
150
|
+
overwrite?: boolean | undefined;
|
|
151
|
+
}>, {
|
|
152
|
+
projectPath: string;
|
|
153
|
+
include?: string | undefined;
|
|
154
|
+
location?: string | undefined;
|
|
155
|
+
dryRun?: boolean | undefined;
|
|
156
|
+
confirmed?: boolean | undefined;
|
|
157
|
+
profile?: string | undefined;
|
|
158
|
+
all?: boolean | undefined;
|
|
159
|
+
overwrite?: boolean | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
projectPath: string;
|
|
162
|
+
include?: string | undefined;
|
|
163
|
+
location?: string | undefined;
|
|
164
|
+
dryRun?: boolean | undefined;
|
|
165
|
+
confirmed?: boolean | undefined;
|
|
166
|
+
profile?: string | undefined;
|
|
167
|
+
all?: boolean | undefined;
|
|
168
|
+
overwrite?: boolean | undefined;
|
|
169
|
+
}>;
|
|
170
|
+
export declare const SourcesRemoveParams: z.ZodEffects<z.ZodObject<{
|
|
171
|
+
projectPath: z.ZodString;
|
|
172
|
+
} & {
|
|
173
|
+
location: z.ZodOptional<z.ZodString>;
|
|
174
|
+
all: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
+
include: z.ZodOptional<z.ZodString>;
|
|
176
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
projectPath: string;
|
|
179
|
+
include?: string | undefined;
|
|
180
|
+
location?: string | undefined;
|
|
181
|
+
confirmed?: boolean | undefined;
|
|
182
|
+
all?: boolean | undefined;
|
|
183
|
+
}, {
|
|
184
|
+
projectPath: string;
|
|
185
|
+
include?: string | undefined;
|
|
186
|
+
location?: string | undefined;
|
|
187
|
+
confirmed?: boolean | undefined;
|
|
188
|
+
all?: boolean | undefined;
|
|
189
|
+
}>, {
|
|
190
|
+
projectPath: string;
|
|
191
|
+
include?: string | undefined;
|
|
192
|
+
location?: string | undefined;
|
|
193
|
+
confirmed?: boolean | undefined;
|
|
194
|
+
all?: boolean | undefined;
|
|
195
|
+
}, {
|
|
196
|
+
projectPath: string;
|
|
197
|
+
include?: string | undefined;
|
|
198
|
+
location?: string | undefined;
|
|
199
|
+
confirmed?: boolean | undefined;
|
|
200
|
+
all?: boolean | undefined;
|
|
201
|
+
}>;
|
|
202
|
+
export declare function coaSourcesListHandler(params: z.infer<typeof SourcesListParams>, runCoaFn?: RunCoaFn): Promise<CoaToolResult>;
|
|
203
|
+
export declare function coaSourcesAddHandler(params: z.infer<typeof SourcesAddParams>, runCoaFn?: RunCoaFn): Promise<CoaToolResult>;
|
|
204
|
+
export declare function coaSourcesRemoveHandler(params: z.infer<typeof SourcesRemoveParams>, runCoaFn?: RunCoaFn): Promise<CoaToolResult>;
|
|
91
205
|
declare const DescribeParams: z.ZodObject<{
|
|
92
206
|
topic: z.ZodString;
|
|
93
207
|
subtopic: z.ZodOptional<z.ZodString>;
|
|
@@ -116,21 +230,18 @@ declare const ExecuteSelectorParams: z.ZodObject<{
|
|
|
116
230
|
exclude: z.ZodOptional<z.ZodString>;
|
|
117
231
|
} & {
|
|
118
232
|
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
-
v2Acknowledged: z.ZodOptional<z.ZodBoolean>;
|
|
120
233
|
}, "strip", z.ZodTypeAny, {
|
|
121
234
|
projectPath: string;
|
|
122
235
|
include?: string | undefined;
|
|
123
236
|
confirmed?: boolean | undefined;
|
|
124
237
|
workspace?: string | undefined;
|
|
125
238
|
exclude?: string | undefined;
|
|
126
|
-
v2Acknowledged?: boolean | undefined;
|
|
127
239
|
}, {
|
|
128
240
|
projectPath: string;
|
|
129
241
|
include?: string | undefined;
|
|
130
242
|
confirmed?: boolean | undefined;
|
|
131
243
|
workspace?: string | undefined;
|
|
132
244
|
exclude?: string | undefined;
|
|
133
|
-
v2Acknowledged?: boolean | undefined;
|
|
134
245
|
}>;
|
|
135
246
|
export declare function coaCreateHandler(params: z.infer<typeof ExecuteSelectorParams>, runCoaFn?: RunCoaFn): Promise<CoaToolResult>;
|
|
136
247
|
export declare function coaRunHandler(params: z.infer<typeof ExecuteSelectorParams>, runCoaFn?: RunCoaFn): Promise<CoaToolResult>;
|
|
@@ -145,7 +256,6 @@ declare const PlanParams: z.ZodObject<{
|
|
|
145
256
|
out: z.ZodOptional<z.ZodString>;
|
|
146
257
|
gitsha: z.ZodOptional<z.ZodString>;
|
|
147
258
|
enableCache: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
-
v2Acknowledged: z.ZodOptional<z.ZodBoolean>;
|
|
149
259
|
}, "strip", z.ZodTypeAny, {
|
|
150
260
|
environmentID: string;
|
|
151
261
|
projectPath: string;
|
|
@@ -153,7 +263,6 @@ declare const PlanParams: z.ZodObject<{
|
|
|
153
263
|
out?: string | undefined;
|
|
154
264
|
workspace?: string | undefined;
|
|
155
265
|
profile?: string | undefined;
|
|
156
|
-
v2Acknowledged?: boolean | undefined;
|
|
157
266
|
gitsha?: string | undefined;
|
|
158
267
|
enableCache?: boolean | undefined;
|
|
159
268
|
}, {
|
|
@@ -163,7 +272,6 @@ declare const PlanParams: z.ZodObject<{
|
|
|
163
272
|
out?: string | undefined;
|
|
164
273
|
workspace?: string | undefined;
|
|
165
274
|
profile?: string | undefined;
|
|
166
|
-
v2Acknowledged?: boolean | undefined;
|
|
167
275
|
gitsha?: string | undefined;
|
|
168
276
|
enableCache?: boolean | undefined;
|
|
169
277
|
}>;
|
package/dist/mcp/coa.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coa.d.ts","sourceRoot":"","sources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,GAAE,QAAiB,GAC1B,OAAO,CAAC,aAAa,CAAC,CAiBxB;AAED,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBjB,CAAC;AAEH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,EACrC,QAAQ,GAAE,QAAiB,GAC1B,OAAO,CAAC,aAAa,CAAC,CAYxB;AAID,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,EAAE,CA2OlE"}
|
package/dist/mcp/coa.js
CHANGED
|
@@ -223,6 +223,129 @@ export async function coaDryRunRunHandler(params, runCoaFn = runCoa) {
|
|
|
223
223
|
return buildResult(args, result);
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
+
// ---------- sources schemas ----------
|
|
227
|
+
const SourcesProjectPathParam = z.object({
|
|
228
|
+
projectPath: z
|
|
229
|
+
.string()
|
|
230
|
+
.min(1, "projectPath must not be empty")
|
|
231
|
+
.describe("Absolute or relative path to the COA project root (the directory containing data.yml)."),
|
|
232
|
+
});
|
|
233
|
+
const SourcesProfileParam = z
|
|
234
|
+
.string()
|
|
235
|
+
.optional()
|
|
236
|
+
.describe("Profile name in ~/.coa/config used for the warehouse handshake on list/add. Falls back to the COALESCE_PROFILE env var, then to COA's own default (`[default]`).");
|
|
237
|
+
export const SourcesListParams = SourcesProjectPathParam.extend({
|
|
238
|
+
location: z
|
|
239
|
+
.string()
|
|
240
|
+
.optional()
|
|
241
|
+
.describe("Storage-location name from locations.yml. When set, returns per-table detail (with `alreadyExists`) for that location. Mutually exclusive with `all`."),
|
|
242
|
+
all: z
|
|
243
|
+
.boolean()
|
|
244
|
+
.optional()
|
|
245
|
+
.describe("Return per-table detail for every location. Can produce large responses on big warehouses — prefer scoping by `location` when possible. Mutually exclusive with `location`."),
|
|
246
|
+
include: z
|
|
247
|
+
.string()
|
|
248
|
+
.optional()
|
|
249
|
+
.describe("Glob pattern (e.g. 'ORDER*') to filter the table list. Only meaningful when `location` or `all` is set."),
|
|
250
|
+
profile: SourcesProfileParam,
|
|
251
|
+
})
|
|
252
|
+
.refine((p) => !(p.location && p.all), {
|
|
253
|
+
message: "Pass `location` or `all`, not both.",
|
|
254
|
+
});
|
|
255
|
+
export const SourcesAddParams = SourcesProjectPathParam.extend({
|
|
256
|
+
location: z
|
|
257
|
+
.string()
|
|
258
|
+
.optional()
|
|
259
|
+
.describe("Storage-location name to scaffold from. Exactly one of `location` or `all` must be set."),
|
|
260
|
+
all: z
|
|
261
|
+
.boolean()
|
|
262
|
+
.optional()
|
|
263
|
+
.describe("Scaffold from every storage location. Exactly one of `all` or `location` must be set."),
|
|
264
|
+
include: z
|
|
265
|
+
.string()
|
|
266
|
+
.optional()
|
|
267
|
+
.describe("Glob pattern (e.g. 'ORDER*') to scope which tables are scaffolded."),
|
|
268
|
+
overwrite: z
|
|
269
|
+
.boolean()
|
|
270
|
+
.optional()
|
|
271
|
+
.describe("Re-import tables that already have source nodes. Without this, existing nodes are skipped."),
|
|
272
|
+
dryRun: z
|
|
273
|
+
.boolean()
|
|
274
|
+
.optional()
|
|
275
|
+
.describe("Report what would be scaffolded without writing files. Useful for previewing the diff before confirming the real write."),
|
|
276
|
+
profile: SourcesProfileParam,
|
|
277
|
+
confirmed: z
|
|
278
|
+
.boolean()
|
|
279
|
+
.optional()
|
|
280
|
+
.describe("Required to execute. When `dryRun` is true the operation is non-destructive, but the same gate applies for consistency — pass `confirmed: true` either way."),
|
|
281
|
+
})
|
|
282
|
+
.refine((p) => (p.location ? 1 : 0) + (p.all ? 1 : 0) === 1, { message: "Pass exactly one of `location` or `all`." });
|
|
283
|
+
export const SourcesRemoveParams = SourcesProjectPathParam.extend({
|
|
284
|
+
location: z
|
|
285
|
+
.string()
|
|
286
|
+
.optional()
|
|
287
|
+
.describe("Storage-location name to remove sources from. Exactly one of `location` or `all` required."),
|
|
288
|
+
all: z
|
|
289
|
+
.boolean()
|
|
290
|
+
.optional()
|
|
291
|
+
.describe("Remove scaffolded source nodes from every location. Exactly one of `all` or `location` required."),
|
|
292
|
+
include: z
|
|
293
|
+
.string()
|
|
294
|
+
.optional()
|
|
295
|
+
.describe("Glob pattern (e.g. 'OLD_*') to narrow what gets removed."),
|
|
296
|
+
confirmed: z
|
|
297
|
+
.boolean()
|
|
298
|
+
.optional()
|
|
299
|
+
.describe("Required to execute. Removal deletes scaffolded YAML files from disk."),
|
|
300
|
+
})
|
|
301
|
+
.refine((p) => (p.location ? 1 : 0) + (p.all ? 1 : 0) === 1, { message: "Pass exactly one of `location` or `all`." });
|
|
302
|
+
// Note: `coa sources remove` does not accept a `--profile` flag in 7.35
|
|
303
|
+
// (errors with `unknown option '--profile'`), so we do not expose one here.
|
|
304
|
+
// The CLI falls back to `[default]` in ~/.coa/config; if that diverges from the
|
|
305
|
+
// agent's intended profile, the agent should temporarily set `[default]` or
|
|
306
|
+
// wait for the CLI to be patched.
|
|
307
|
+
// ---------- sources handlers ----------
|
|
308
|
+
export async function coaSourcesListHandler(params, runCoaFn = runCoa) {
|
|
309
|
+
return withProjectPath(params, (raw) => ["--json", "sources", "list", "--dir", raw], async (cwd) => {
|
|
310
|
+
const args = ["--json", "sources", "list", "--dir", cwd];
|
|
311
|
+
pushIf(args, "--location", params.location);
|
|
312
|
+
if (params.all)
|
|
313
|
+
args.push("--all");
|
|
314
|
+
pushIf(args, "--include", params.include);
|
|
315
|
+
pushIf(args, "--profile", resolveProfile(params.profile));
|
|
316
|
+
const result = await runCoaFn(args, { cwd, parseJson: true });
|
|
317
|
+
return buildResult(args, result);
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
export async function coaSourcesAddHandler(params, runCoaFn = runCoa) {
|
|
321
|
+
return withProjectPath(params, (raw) => ["--json", "sources", "add", "--dir", raw], async (cwd) => {
|
|
322
|
+
const args = ["--json", "sources", "add", "--dir", cwd];
|
|
323
|
+
pushIf(args, "--location", params.location);
|
|
324
|
+
if (params.all)
|
|
325
|
+
args.push("--all");
|
|
326
|
+
pushIf(args, "--include", params.include);
|
|
327
|
+
if (params.overwrite)
|
|
328
|
+
args.push("--overwrite");
|
|
329
|
+
if (params.dryRun)
|
|
330
|
+
args.push("--dry-run");
|
|
331
|
+
pushIf(args, "--profile", resolveProfile(params.profile));
|
|
332
|
+
const result = await runCoaFn(args, { cwd, parseJson: true });
|
|
333
|
+
return buildResult(args, result);
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
export async function coaSourcesRemoveHandler(params, runCoaFn = runCoa) {
|
|
337
|
+
return withProjectPath(params, (raw) => ["--json", "sources", "remove", "--dir", raw, "--yes"], async (cwd) => {
|
|
338
|
+
// Always pass --yes: non-TTY runs skip confirmation anyway, and MCP
|
|
339
|
+
// gates confirmation at the tool layer via `confirmed`.
|
|
340
|
+
const args = ["--json", "sources", "remove", "--dir", cwd, "--yes"];
|
|
341
|
+
pushIf(args, "--location", params.location);
|
|
342
|
+
if (params.all)
|
|
343
|
+
args.push("--all");
|
|
344
|
+
pushIf(args, "--include", params.include);
|
|
345
|
+
const result = await runCoaFn(args, { cwd, parseJson: true });
|
|
346
|
+
return buildResult(args, result);
|
|
347
|
+
});
|
|
348
|
+
}
|
|
226
349
|
const DescribeParams = z.object({
|
|
227
350
|
topic: z
|
|
228
351
|
.string()
|
|
@@ -261,10 +384,6 @@ const ExecuteSelectorParams = SelectorParams.extend({
|
|
|
261
384
|
.boolean()
|
|
262
385
|
.optional()
|
|
263
386
|
.describe("Set to true after the user explicitly confirms. Without this, the tool returns a STOP_AND_CONFIRM response instead of executing."),
|
|
264
|
-
v2Acknowledged: z
|
|
265
|
-
.boolean()
|
|
266
|
-
.optional()
|
|
267
|
-
.describe("Required when the project contains V2 artifacts (fileVersion: 2 node types or .sql nodes). V2 is alpha — set to true only AFTER telling the user V2 is alpha, surfacing the known rough edges, and getting explicit confirmation. See coalesce://context/sql-node-v2-policy."),
|
|
268
387
|
});
|
|
269
388
|
function attachPreflightWarnings(result, report) {
|
|
270
389
|
if (report.warnings.length > 0)
|
|
@@ -275,37 +394,6 @@ function runOrThrow(report) {
|
|
|
275
394
|
if (report.errors.length > 0)
|
|
276
395
|
throw new CoaPreflightError(report);
|
|
277
396
|
}
|
|
278
|
-
/**
|
|
279
|
-
* Block execution when preflight detected V2 artifacts OR could not rule them
|
|
280
|
-
* out, and the agent did not pass `v2Acknowledged: true`. Promotes the
|
|
281
|
-
* advisory V2_ALPHA_DETECTED / V2_SCAN_FAILED warnings into a hard error
|
|
282
|
-
* (V2_ALPHA_NOT_ACKNOWLEDGED) so `coa_create` / `coa_run` do not silently
|
|
283
|
-
* execute against a potentially-alpha project after a warning the model may
|
|
284
|
-
* have ignored.
|
|
285
|
-
*
|
|
286
|
-
* V2_SCAN_FAILED counts as "potentially V2" on purpose — an unreadable
|
|
287
|
-
* `nodes/` subtree or `nodeTypes/` dir could hide V2 artifacts, and a
|
|
288
|
-
* partial-scan pass that looks clean must not bypass the guard.
|
|
289
|
-
*/
|
|
290
|
-
function assertV2Acknowledged(report, v2Acknowledged) {
|
|
291
|
-
if (v2Acknowledged)
|
|
292
|
-
return;
|
|
293
|
-
const trigger = report.warnings.find((w) => w.code === "V2_ALPHA_DETECTED" || w.code === "V2_SCAN_FAILED");
|
|
294
|
-
if (!trigger)
|
|
295
|
-
return;
|
|
296
|
-
const retryHint = "Tell the user V2 is alpha, surface the known rough edges, get explicit confirmation, then retry with v2Acknowledged: true.";
|
|
297
|
-
throw new CoaPreflightError({
|
|
298
|
-
errors: [
|
|
299
|
-
{
|
|
300
|
-
level: "error",
|
|
301
|
-
code: "V2_ALPHA_NOT_ACKNOWLEDGED",
|
|
302
|
-
message: `${trigger.message} ${retryHint}`,
|
|
303
|
-
path: trigger.path,
|
|
304
|
-
},
|
|
305
|
-
],
|
|
306
|
-
warnings: report.warnings.filter((w) => w !== trigger),
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
397
|
export async function coaCreateHandler(params, runCoaFn = runCoa) {
|
|
310
398
|
return withProjectPath(params, (raw) => ["create", "--dir", raw], async (cwd) => {
|
|
311
399
|
const report = runPreflight(cwd, {
|
|
@@ -313,7 +401,9 @@ export async function coaCreateHandler(params, runCoaFn = runCoa) {
|
|
|
313
401
|
selectors: [params.include, params.exclude],
|
|
314
402
|
});
|
|
315
403
|
runOrThrow(report);
|
|
316
|
-
|
|
404
|
+
// V2 hard guard removed in v0.10 (COA 7.35). Annotation sync (CD-16972)
|
|
405
|
+
// and UNION ALL handling shipped, closing the two biggest V2 risks. The
|
|
406
|
+
// V2_DETECTED preflight warning still attaches for context.
|
|
317
407
|
const args = ["create", "--dir", cwd];
|
|
318
408
|
pushIf(args, "--workspace", params.workspace);
|
|
319
409
|
pushIf(args, "--include", params.include);
|
|
@@ -329,7 +419,9 @@ export async function coaRunHandler(params, runCoaFn = runCoa) {
|
|
|
329
419
|
selectors: [params.include, params.exclude],
|
|
330
420
|
});
|
|
331
421
|
runOrThrow(report);
|
|
332
|
-
|
|
422
|
+
// V2 hard guard removed in v0.10 (COA 7.35). Annotation sync (CD-16972)
|
|
423
|
+
// and UNION ALL handling shipped, closing the two biggest V2 risks. The
|
|
424
|
+
// V2_DETECTED preflight warning still attaches for context.
|
|
333
425
|
const args = ["run", "--dir", cwd];
|
|
334
426
|
pushIf(args, "--workspace", params.workspace);
|
|
335
427
|
pushIf(args, "--include", params.include);
|
|
@@ -352,16 +444,14 @@ const PlanParams = ProjectPathParam.merge(CloudAuthParams).extend({
|
|
|
352
444
|
.boolean()
|
|
353
445
|
.optional()
|
|
354
446
|
.describe("Enable coa's plan cache. Coalesce recommends leaving this off unless plan generation is slow."),
|
|
355
|
-
v2Acknowledged: z
|
|
356
|
-
.boolean()
|
|
357
|
-
.optional()
|
|
358
|
-
.describe("Required when the project contains V2 artifacts. A plan built from V2 sources is alpha-contaminated by construction — the guard fires here as well as on create/run. See coalesce://context/sql-node-v2-policy."),
|
|
359
447
|
});
|
|
360
448
|
export async function coaPlanHandler(params, runCoaFn = runCoa) {
|
|
361
449
|
return withProjectPath(params, (raw) => ["plan", "--dir", raw, "--environmentID", params.environmentID], async (cwd) => {
|
|
362
450
|
const report = runPreflight(cwd, {});
|
|
363
451
|
runOrThrow(report);
|
|
364
|
-
|
|
452
|
+
// V2 hard guard removed in v0.10 (COA 7.35). Annotation sync (CD-16972)
|
|
453
|
+
// and UNION ALL handling shipped, closing the two biggest V2 risks. The
|
|
454
|
+
// V2_DETECTED preflight warning still attaches for context.
|
|
365
455
|
const args = [
|
|
366
456
|
"plan",
|
|
367
457
|
"--dir",
|
|
@@ -480,7 +570,7 @@ export function defineCoaTools(server) {
|
|
|
480
570
|
// See targets/transform.md for the rule.
|
|
481
571
|
defineLocalTool("coa_dry_run_create", {
|
|
482
572
|
title: "COA Dry Run Create (DDL preview)",
|
|
483
|
-
description: "Preview the DDL that `coa create` would execute, without hitting the warehouse. Forces --dry-run --verbose.\n\nRuns entirely offline against local project files — no Coalesce cloud authentication or API calls. `coa create` (and `coa run`) are the offline local-dev commands; do not confuse with the scheduler-aware `coa deploy` / `coa plan` / `coa refresh` which target cloud environments.\n\nOUTPUT SHAPE (CD-16959+): dry-run reports pass/fail for every selected node rather than stopping at the first template error. Scan the full stdout — a non-zero exit code means one or more nodes failed, but successful nodes still render their generated SQL above/below the failures. Do not assume early output implies all-clear.\n\nCheck the stdout: table names should resolve (not blank), column types should not be UNKNOWN (indicates broken ref() targets), and SQL should look correct
|
|
573
|
+
description: "Preview the DDL that `coa create` would execute, without hitting the warehouse. Forces --dry-run --verbose.\n\nRuns entirely offline against local project files — no Coalesce cloud authentication or API calls. `coa create` (and `coa run`) are the offline local-dev commands; do not confuse with the scheduler-aware `coa deploy` / `coa plan` / `coa refresh` which target cloud environments.\n\nOUTPUT SHAPE (CD-16959+): dry-run reports pass/fail for every selected node rather than stopping at the first template error. Scan the full stdout — a non-zero exit code means one or more nodes failed, but successful nodes still render their generated SQL above/below the failures. Do not assume early output implies all-clear.\n\nCheck the stdout: table names should resolve (not blank), column types should not be UNKNOWN (indicates broken ref() targets), and SQL should look correct. For V2 nodes specifically, watch for `CREATE TABLE ... AS SELECT WHERE 1=0` with zero columns — this means the SELECT has a parse error and the dry-run reports success despite producing broken DDL. See `coalesce://context/sql-node-v2-policy`.\n\nLIMITATION: dry-run only exercises the SQL generator. It does NOT validate that referenced columns or types exist in the actual warehouse — a dry-run can succeed with column references that will fail at run-time with 'invalid identifier'. Use cortex or another Snowflake-capable MCP to confirm the schema when that matters.\n\nArgs:\n - projectPath (string, required)\n - workspace (string, optional)\n - include / exclude (string, optional): Node selector\n\nReturns:\n { command, exitCode, stdout, stderr, coaVersion }",
|
|
484
574
|
inputSchema: DryRunParams,
|
|
485
575
|
annotations: READ_ONLY_LOCAL_ANNOTATIONS,
|
|
486
576
|
}, coaDryRunCreateHandler),
|
|
@@ -490,27 +580,27 @@ export function defineCoaTools(server) {
|
|
|
490
580
|
// targets/transform.md for the rule.
|
|
491
581
|
defineLocalTool("coa_dry_run_run", {
|
|
492
582
|
title: "COA Dry Run Run (DML preview)",
|
|
493
|
-
description: "Preview the DML that `coa run` would execute, without hitting the warehouse. Forces --dry-run --verbose.\n\nRuns entirely offline against local project files — no Coalesce cloud authentication or API calls. `coa run` (and `coa create`) are the offline local-dev commands; do not confuse with the scheduler-aware `coa deploy` / `coa plan` / `coa refresh` which target cloud environments.\n\nOUTPUT SHAPE (CD-16959+): dry-run reports pass/fail for every selected node rather than stopping at the first template error. Scan the full stdout — a non-zero exit code means one or more nodes failed, but successful nodes still render their generated SQL above/below the failures.\n\
|
|
583
|
+
description: "Preview the DML that `coa run` would execute, without hitting the warehouse. Forces --dry-run --verbose.\n\nRuns entirely offline against local project files — no Coalesce cloud authentication or API calls. `coa run` (and `coa create`) are the offline local-dev commands; do not confuse with the scheduler-aware `coa deploy` / `coa plan` / `coa refresh` which target cloud environments.\n\nOUTPUT SHAPE (CD-16959+): dry-run reports pass/fail for every selected node rather than stopping at the first template error. Scan the full stdout — a non-zero exit code means one or more nodes failed, but successful nodes still render their generated SQL above/below the failures.\n\nLIMITATION: dry-run only exercises the SQL generator. It does NOT validate that referenced columns or types exist in the actual warehouse — a dry-run can succeed with column references that will fail at run-time with 'invalid identifier'. Use cortex or another Snowflake-capable MCP to confirm the schema when that matters.\n\nArgs:\n - projectPath (string, required)\n - workspace (string, optional)\n - include / exclude (string, optional): Node selector\n\nReturns:\n { command, exitCode, stdout, stderr, coaVersion }",
|
|
494
584
|
inputSchema: DryRunParams,
|
|
495
585
|
annotations: READ_ONLY_LOCAL_ANNOTATIONS,
|
|
496
586
|
}, coaDryRunRunHandler),
|
|
497
587
|
defineDestructiveLocalTool(server, "coa_create", {
|
|
498
588
|
title: "COA Create (DDL)",
|
|
499
|
-
description: "Execute `coa create` — runs DDL (CREATE/REPLACE) for the selected nodes against the configured warehouse.\n\nDESTRUCTIVE: modifies warehouse schema. Requires confirmed=true after explicit user approval.\n\nPre-flight checks run before execution (double-quoted refs, missing workspaces.yml, bad selector patterns). Errors block execution; warnings are returned alongside the result.\n\nV2
|
|
589
|
+
description: "Execute `coa create` — runs DDL (CREATE/REPLACE) for the selected nodes against the configured warehouse.\n\nDESTRUCTIVE: modifies warehouse schema. Requires confirmed=true after explicit user approval.\n\nPre-flight checks run before execution (double-quoted refs, missing workspaces.yml, bad selector patterns). Errors block execution; warnings are returned alongside the result.\n\nV2 NOTICE: when the project contains V2 artifacts (fileVersion: 2 node types or .sql nodes), a `V2_DETECTED` preflight warning attaches to the result. Execution is no longer blocked — annotation sync (CD-16972) and UNION ALL shipped in COA 7.35 closed the biggest V2 risks. Two rough edges remain: `coa validate` false positives on aliased columns, and zero-column CTAS when a SELECT has a parse error. See `coalesce://context/sql-node-v2-policy`.\n\nArgs:\n - projectPath (string, required)\n - workspace, include, exclude (optional)\n - confirmed (boolean): must be true to execute\n\nReturns:\n { command, exitCode, stdout, stderr, preflightWarnings?, coaVersion }",
|
|
500
590
|
inputSchema: ExecuteSelectorParams,
|
|
501
591
|
annotations: DESTRUCTIVE_ANNOTATIONS,
|
|
502
|
-
confirmMessage: (params) => `coa_create will execute DDL against the warehouse for project ${params.projectPath}${params.include ? ` (selector: ${params.include})` : " (all nodes)"}. This modifies schema and cannot be trivially rolled back
|
|
592
|
+
confirmMessage: (params) => `coa_create will execute DDL against the warehouse for project ${params.projectPath}${params.include ? ` (selector: ${params.include})` : " (all nodes)"}. This modifies schema and cannot be trivially rolled back.`,
|
|
503
593
|
}, coaCreateHandler),
|
|
504
594
|
defineDestructiveLocalTool(server, "coa_run", {
|
|
505
595
|
title: "COA Run (DML)",
|
|
506
|
-
description: "Execute `coa run` — runs DML (INSERT/MERGE) to populate the selected nodes.\n\nDESTRUCTIVE: modifies warehouse data. Requires confirmed=true.\n\nSame pre-flight checks
|
|
596
|
+
description: "Execute `coa run` — runs DML (INSERT/MERGE) to populate the selected nodes.\n\nDESTRUCTIVE: modifies warehouse data. Requires confirmed=true.\n\nSame pre-flight checks as coa_create. A `V2_DETECTED` preflight warning attaches for V2 projects but does not block execution (see coa_create for the V2 NOTICE). Uses a 30-minute timeout.\n\nArgs:\n - projectPath (string, required)\n - workspace, include, exclude (optional)\n - confirmed (boolean): must be true to execute\n\nReturns:\n { command, exitCode, stdout, stderr, preflightWarnings?, coaVersion }",
|
|
507
597
|
inputSchema: ExecuteSelectorParams,
|
|
508
598
|
annotations: DESTRUCTIVE_ANNOTATIONS,
|
|
509
|
-
confirmMessage: (params) => `coa_run will execute DML against the warehouse for project ${params.projectPath}${params.include ? ` (selector: ${params.include})` : " (all nodes)"}. Tables will be truncated/inserted/merged per node config
|
|
599
|
+
confirmMessage: (params) => `coa_run will execute DML against the warehouse for project ${params.projectPath}${params.include ? ` (selector: ${params.include})` : " (all nodes)"}. Tables will be truncated/inserted/merged per node config.`,
|
|
510
600
|
}, coaRunHandler),
|
|
511
601
|
defineLocalTool("coa_plan", {
|
|
512
602
|
title: "COA Plan",
|
|
513
|
-
description: "Generate a deployment plan. Reads the local project, diffs against the target environment, and writes a plan JSON (default coa-plan.json in the project root).\n\nNon-destructive: produces a plan file only. Safe to call without confirmation. The plan is then applied via coa_deploy.\n\nRequires COA cloud credentials (~/.coa/config or profile/token) and an environmentID.\n\nArgs:\n - projectPath (string, required)\n - environmentID (string, required)\n - out (string, optional): plan output path\n - gitsha, enableCache (optional)\n - profile, token (optional)\n\nReturns:\n { command, exitCode, stdout, stderr, preflightWarnings?, coaVersion }",
|
|
603
|
+
description: "Generate a deployment plan. Reads the local project, diffs against the target environment, and writes a plan JSON (default coa-plan.json in the project root).\n\nNon-destructive: produces a plan file only. Safe to call without confirmation. The plan is then applied via coa_deploy.\n\nRequires COA cloud credentials (~/.coa/config or profile/token) and an environmentID.\n\nV2 NOTICE: when the project contains V2 artifacts, a `V2_DETECTED` preflight warning attaches to the result (same shape as coa_create / coa_run). Execution is not blocked; see `coalesce://context/sql-node-v2-policy` for the two remaining rough edges.\n\nArgs:\n - projectPath (string, required)\n - environmentID (string, required)\n - out (string, optional): plan output path\n - gitsha, enableCache (optional)\n - profile, token (optional)\n\nReturns:\n { command, exitCode, stdout, stderr, preflightWarnings?, coaVersion }",
|
|
514
604
|
inputSchema: PlanParams,
|
|
515
605
|
annotations: WRITE_ANNOTATIONS,
|
|
516
606
|
}, coaPlanHandler),
|
|
@@ -528,6 +618,41 @@ export function defineCoaTools(server) {
|
|
|
528
618
|
annotations: DESTRUCTIVE_ANNOTATIONS,
|
|
529
619
|
confirmMessage: (params) => `coa_refresh will execute DML in environment ${params.environmentID}${params.include ? ` (selector: ${params.include})` : " (all nodes in the environment)"}.${params.forceIgnoreEnvironmentStatus ? " WARNING: forceIgnoreEnvironmentStatus is set — the safety check that blocks refresh on environments with a failed deploy will be skipped." : ""}`,
|
|
530
620
|
}, coaRefreshHandler),
|
|
621
|
+
defineLocalTool("coa_list_warehouse_sources", {
|
|
622
|
+
title: "COA List Warehouse Sources",
|
|
623
|
+
description: "List warehouse tables visible to each storage location in a COA project. Wraps `coa sources list --json`.\n\nThree modes via flags:\n - Neither `location` nor `all`: returns per-location SUMMARY counts (`totalTables`, `importedTables`, `newTables`). Cheap; use this first on unfamiliar projects.\n - `location: <name>`: returns per-table detail for that one location, each row marked `alreadyExists: true` if a source node has already been scaffolded for it.\n - `all: true`: per-table detail for every location. Potentially large — prefer scoping when you can.\n\nUse this to (a) figure out which locations have un-imported tables before calling coa_add_warehouse_sources, or (b) audit which scaffolded source nodes still match the warehouse.\n\nRead-only: queries the warehouse via the COA cloud profile, writes nothing. Profile resolution: input `profile` > `COALESCE_PROFILE` env > `[default]`.\n\nArgs:\n - projectPath (string, required)\n - location (string, optional)\n - all (boolean, optional): mutually exclusive with `location`\n - include (string, optional): glob filter on table names\n - profile (string, optional)\n\nReturns:\n { command, exitCode, stdout, stderr, json?, coaVersion }",
|
|
624
|
+
inputSchema: SourcesListParams,
|
|
625
|
+
annotations: READ_ONLY_LOCAL_ANNOTATIONS,
|
|
626
|
+
}, coaSourcesListHandler),
|
|
627
|
+
defineDestructiveLocalTool(server, "coa_add_warehouse_sources", {
|
|
628
|
+
title: "COA Add Warehouse Sources (scaffold source nodes)",
|
|
629
|
+
description: "Scaffold source-node YAML files from warehouse tables. Wraps `coa sources add --json`. Database and schema are read from the workspace's storage-location config and copied onto each scaffolded source node — no separate placeholders to fix up afterward, but verify the workspace config itself is correct first (the bootstrap tool seeds placeholders into it).\n\nDESTRUCTIVE: writes files into the project's `nodes/` tree. Requires `confirmed: true`. Existing source nodes are skipped unless `overwrite: true`.\n\nMUST pass exactly one of `location` or `all` (the CLI enforces this in non-TTY mode and so do we).\n\nDRY-RUN: pass `dryRun: true` to list what would be imported without writing files. The JSON shape is the same as a real write, with `wouldImport` reflecting the delta. `confirmed: true` is still required for consistency, but no files are created.\n\nProfile resolution: input `profile` > `COALESCE_PROFILE` env > `[default]`.\n\nUsage pattern: call `coa_list_warehouse_sources --location <name>` first to preview, then call this with the same scope.\n\nArgs:\n - projectPath (string, required)\n - location (string) OR all (boolean): exactly one required\n - include (string, optional): glob filter\n - overwrite (boolean, optional): re-import existing nodes\n - dryRun (boolean, optional): preview without writing\n - profile (string, optional)\n - confirmed (boolean): must be true to execute. Required even when `dryRun: true`, for consistency with other destructive tools — no files are written in that case.\n\nReturns:\n { command, exitCode, stdout, stderr, json?, coaVersion }",
|
|
630
|
+
inputSchema: SourcesAddParams,
|
|
631
|
+
annotations: DESTRUCTIVE_ANNOTATIONS,
|
|
632
|
+
confirmMessage: (params) => {
|
|
633
|
+
const scope = params.all
|
|
634
|
+
? "all storage locations"
|
|
635
|
+
: `location '${params.location}'`;
|
|
636
|
+
const filter = params.include ? ` (filter: ${params.include})` : "";
|
|
637
|
+
if (params.dryRun) {
|
|
638
|
+
return `coa_add_warehouse_sources will PREVIEW (--dry-run) the source nodes that would be scaffolded for ${scope}${filter} in ${params.projectPath}. No files will be written.`;
|
|
639
|
+
}
|
|
640
|
+
return `coa_add_warehouse_sources will SCAFFOLD source node YAML files for ${scope}${filter} in ${params.projectPath}. ${params.overwrite ? "Existing source nodes will be re-imported." : "Existing source nodes will be skipped."}`;
|
|
641
|
+
},
|
|
642
|
+
}, coaSourcesAddHandler),
|
|
643
|
+
defineDestructiveLocalTool(server, "coa_remove_warehouse_sources", {
|
|
644
|
+
title: "COA Remove Warehouse Sources (delete scaffolded YAML)",
|
|
645
|
+
description: "Delete scaffolded source-node YAML files from the project. Wraps `coa sources remove --json --yes` (the MCP layer handles confirmation; `--yes` is always passed to the CLI).\n\nDESTRUCTIVE: removes files from disk. Requires `confirmed: true`. Hand-renamed (\"unmanaged\") files are reported but NOT removed — the CLI considers them user-owned.\n\nMUST pass exactly one of `location` or `all`.\n\nPROFILE LIMITATION: unlike list/add, the underlying `coa sources remove` does NOT accept a `--profile` flag in COA 7.35 (errors `unknown option '--profile'`). Profile resolution falls back to `[default]` in ~/.coa/config. If that diverges from the agent's intended profile, the agent should temporarily set `[default]` or wait for the upstream patch.\n\nUsage pattern: when re-onboarding a location or cleaning up after a schema rename. Pair with `coa_list_warehouse_sources` to confirm scope first.\n\nArgs:\n - projectPath (string, required)\n - location (string) OR all (boolean): exactly one required\n - include (string, optional): glob filter (e.g. 'OLD_*')\n - confirmed (boolean): must be true to execute\n\nReturns:\n { command, exitCode, stdout, stderr, json?, coaVersion }",
|
|
646
|
+
inputSchema: SourcesRemoveParams,
|
|
647
|
+
annotations: DESTRUCTIVE_ANNOTATIONS,
|
|
648
|
+
confirmMessage: (params) => {
|
|
649
|
+
const scope = params.all
|
|
650
|
+
? "all storage locations"
|
|
651
|
+
: `location '${params.location}'`;
|
|
652
|
+
const filter = params.include ? ` (filter: ${params.include})` : "";
|
|
653
|
+
return `coa_remove_warehouse_sources will DELETE scaffolded source node YAML files for ${scope}${filter} in ${params.projectPath}. Hand-edited or renamed files are skipped.`;
|
|
654
|
+
},
|
|
655
|
+
}, coaSourcesRemoveHandler),
|
|
531
656
|
defineLocalTool("coa_describe", {
|
|
532
657
|
title: "COA Describe",
|
|
533
658
|
description: `Fetch a section of COA's self-describing documentation. Wraps \`coa describe <topic> [<subtopic>]\`.\n\nWell-known topics (also available as coalesce://coa/describe/* resources): ${COA_DESCRIBE_TOPICS.join(", ")}.\n\nUse subtopic for the parameterized topics:\n - topic='command', subtopic='<name>' — deep-dive on a specific command\n - topic='schema', subtopic='<type>' — full JSON schema for a file type\n\nArgs:\n - topic (string, required)\n - subtopic (string, optional)\n - refresh (boolean, optional): bypass the on-disk cache and re-run COA\n\nReturns:\n { topic, subtopic?, source (memory|disk|coa), content, coaVersion }`,
|
package/dist/mcp/coa.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coa.js","sourceRoot":"","sources":["../../src/mcp/coa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,EACjB,uBAAuB,GAExB,MAAM,sBAAsB,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AAK,GAAG,MAAM,CAAC,GAAG;oBACtB,CAAC,CAAC,uBAAuB;oBACzB,CAAC,CAAC,aAAa,MAAM,CAAC,QAAQ,GAAG,CAAC;gBACpC,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;gBACpE,OAAO,kFAAkF,KAAK,GAAG,MAAM,OAAO,MAAM,CAAC,WAAW,6CAA6C,CAAC;YAChL,CAAC;SACF,EACD,uBAAuB,CACxB;QAED,eAAe,CACb,cAAc,EACd;YACE,KAAK,EAAE,cAAc;YACrB,WAAW,EACT,sLAAsL,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,0aAA0a;YAChoB,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,2BAA2B;SACzC,EACD,kBAAkB,CACnB;KAEF,CAAC;AACJ,CAAC"}
|
|
@@ -26,7 +26,7 @@ Consult these resources for specific guidance. Load only what the current task n
|
|
|
26
26
|
- **coalesce://context/run-operations** — Start, retry, diagnose, and cancel runs
|
|
27
27
|
- **coalesce://context/intelligent-node-configuration** — Intelligent config completion
|
|
28
28
|
- **coalesce://context/setup-guide** — First-time MCP setup flow driven by `diagnose_setup` (load when the user is getting configured or a tool error points at missing credentials)
|
|
29
|
-
- **coalesce://context/sql-node-v2-policy** —
|
|
29
|
+
- **coalesce://context/sql-node-v2-policy** — Match-existing-shape policy + V2 setup walkthrough for local COA projects on disk. **Load before editing anything in a COA project.** V2 is supported as of COA 7.35; two rough edges remain (validate false positives, parse-error zero-column CTAS) — surface them when authoring V2.
|
|
30
30
|
|
|
31
31
|
### Response Guidelines
|
|
32
32
|
|
|
@@ -88,9 +88,9 @@ Config completion is automatic when `repoPath` is provided — the response incl
|
|
|
88
88
|
4. Verify the final node with `get_workspace_node` — confirm columns, joinCondition, and config are correct
|
|
89
89
|
5. Follow naming conventions: STG_ for staging, DIM_ for dimensions, FACT_ for facts, INT_ for intermediate (e.g., `STG_LOCATION`, `FACT_ORDERS`). Default to UPPERCASE for Snowflake, but **respect the user's chosen casing**
|
|
90
90
|
|
|
91
|
-
**Anti-pattern — converting V1
|
|
91
|
+
**Anti-pattern — converting V1↔V2 uninvited:**
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
Match the existing project shape. Do not change `data.yml` `fileVersion`, do not add `fileVersion: 2` node types, and do not rewrite `.yml` nodes as `.sql` (or vice versa) without an explicit user ask. V2 is supported as of COA 7.35, but the conversion still rewrites file extensions and contracts — it is not a passive change. See `coalesce://context/sql-node-v2-policy`.
|
|
94
94
|
|
|
95
95
|
**Anti-pattern — writing SQL and passing it to the planner:**
|
|
96
96
|
|
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
**Scope:** this policy governs authoring on a local COA project (the files on disk) — `data.yml`, `nodeTypes/`, and the contents of `nodes/`. It does not change how the workspace API tools (`create_workspace_node_from_*`, `update_workspace_node`, etc.) behave.
|
|
4
4
|
|
|
5
|
-
> **V2
|
|
5
|
+
> **V2 status as of COA 7.35:** supported. The two biggest historical risks — config not round-tripping with SQL annotations, and `UNION ALL` getting silently dropped from the body — have been fixed (CD-16972, CD-16981 follow-up). Two rough edges remain (see below). Earlier versions of this policy required an `v2Acknowledged: true` flag on `coa_create` / `coa_run` / `coa_plan`; that flag has been removed. A `V2_DETECTED` preflight warning still attaches to results so agents can surface the remaining gotchas.
|
|
6
6
|
|
|
7
|
-
**
|
|
8
|
-
|
|
9
|
-
## The Rule
|
|
10
|
-
|
|
11
|
-
**Default to V1. Never convert existing V1 nodes or node types to V2 unless the user explicitly asks for V2 AND has been told V2 is alpha.**
|
|
12
|
-
|
|
13
|
-
V2 is a newer project shape that uses `.sql` files in `nodes/` and requires a matching V2 node type with Jinja templates in `nodeTypes/`. It is not a drop-in upgrade — converting in either direction changes file extensions, file contents, and the node-type contract. Agents that "upgrade" silently have caused silent lineage loss and multi-hour debugging sessions in the field.
|
|
14
|
-
|
|
15
|
-
If the user says "build a basic pipeline," "add a stage," "load this CSV," or anything else that does not name V2, produce V1 output. Do not change `fileVersion` in `data.yml` or any node type `definition.yml`. Do not rewrite existing `.yml` nodes as `.sql` files.
|
|
7
|
+
**Default authoring rule.** Match the shape of the existing project. If the project is V1, stay V1. If it's V2, stay V2. Do not convert in either direction unless the user explicitly asks ("convert to V2", "rewrite as .sql nodes", "use fileVersion: 2", etc.). "Make it modern" or "make it faster" is not explicit.
|
|
16
8
|
|
|
17
9
|
## Detecting the Current Project Shape
|
|
18
10
|
|
|
@@ -26,14 +18,28 @@ Match the shape that already exists. If everything is `.yml` with V1 node types,
|
|
|
26
18
|
|
|
27
19
|
## When the User Explicitly Asks For V2
|
|
28
20
|
|
|
29
|
-
Treat it as an explicit ask only when the user literally says V2, `.sql` nodes, `fileVersion: 2`, SQL transformation nodes, or similar.
|
|
21
|
+
Treat it as an explicit ask only when the user literally says V2, `.sql` nodes, `fileVersion: 2`, SQL transformation nodes, or similar.
|
|
30
22
|
|
|
31
|
-
|
|
23
|
+
There is no longer an "alpha warning" requirement before starting V2 work — but you SHOULD still surface the two remaining rough edges (below) so the user knows what to look for when validating output. Once the user is aware, proceed.
|
|
32
24
|
|
|
33
25
|
### Step 1 — confirm the project is V2-capable
|
|
34
26
|
|
|
35
27
|
`data.yml` must have `fileVersion: 3`. If it does not, stop and confirm with the user that they want this project migrated before touching it.
|
|
36
28
|
|
|
29
|
+
If the project uses the simplified per-repo location mapping (`workspace.yml`, singular — CD-17008, shipped in 7.35), prefer it over `workspaces.yml` for local development. Schema:
|
|
30
|
+
|
|
31
|
+
```yaml
|
|
32
|
+
locations:
|
|
33
|
+
SRC:
|
|
34
|
+
database: <db>
|
|
35
|
+
schema: <schema>
|
|
36
|
+
TGT:
|
|
37
|
+
database: <db>
|
|
38
|
+
schema: <schema>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`workspaces.yml` (plural) still exists for multi-workspace cloud profiles; the two are independent.
|
|
42
|
+
|
|
37
43
|
### Step 2 — create a V2 node type
|
|
38
44
|
|
|
39
45
|
V2 `.sql` nodes need a V2 node type to compile. Directory name pattern: `<DisplayName>-<UUID>/`. The UUID must match what Coalesce UI would generate (use `randomUUID()`; do not invent). Three files go inside:
|
|
@@ -72,15 +78,15 @@ name: <DisplayName>
|
|
|
72
78
|
type: NodeType
|
|
73
79
|
```
|
|
74
80
|
|
|
75
|
-
**`create.sql.j2`** — DDL template (CREATE TABLE / CREATE VIEW). See `coalesce://coa/describe/node-types` for the full template-variable reference.
|
|
81
|
+
**`create.sql.j2`** — DDL template (CREATE TABLE / CREATE VIEW). See `coalesce://coa/describe/node-types` for the full template-variable reference. V2 templates must use CTAS (`CREATE TABLE ... AS SELECT`) because `col.dataType` is `UNKNOWN` for V2.
|
|
76
82
|
|
|
77
|
-
**`run.sql.j2`** — DML template (INSERT / MERGE / view refresh). Same reference applies.
|
|
83
|
+
**`run.sql.j2`** — DML template (INSERT / MERGE / view refresh). Same reference applies. Conditional template logic on config (`{% if config.truncateBefore %}...{% endif %}`) is now bidirectional with `.sql` annotations (CD-16972) — see Step 3.
|
|
78
84
|
|
|
79
85
|
Ask the user which materialization/insertStrategy defaults they want before writing the files — the templates hard-code behaviour.
|
|
80
86
|
|
|
81
87
|
### Step 3 — write the `.sql` transformation node
|
|
82
88
|
|
|
83
|
-
`.sql` files live in `nodes/` and follow the filename pattern `<LOCATION>-<NAME>.sql`. Required header annotations:
|
|
89
|
+
`.sql` files live in `nodes/` and follow the filename pattern `<LOCATION>-<NAME>.sql`. The `<LOCATION>` prefix must be a name in `locations.yml`. The `<NAME>` becomes the node name. Required header annotations:
|
|
84
90
|
|
|
85
91
|
```sql
|
|
86
92
|
@id("<uuid>") -- one per node, generate with randomUUID()
|
|
@@ -89,10 +95,9 @@ Ask the user which materialization/insertStrategy defaults they want before writ
|
|
|
89
95
|
|
|
90
96
|
Then the SELECT. Hard rules:
|
|
91
97
|
|
|
92
|
-
- **`ref()` uses single quotes only**: `{{ ref('SRC', 'CUSTOMER') }}`. Double-quoted `ref("SRC", "CUSTOMER")` parsed successfully in older COA but silently dropped the dependency
|
|
93
|
-
- **
|
|
94
|
-
-
|
|
95
|
-
- **CTAS/parse errors produce `CREATE TABLE ()` with zero columns**: if `coa create --dry-run --verbose` prints a table with no columns, the SELECT has a parse error. Dry-run does not warn. Read the generated DDL before executing.
|
|
98
|
+
- **`ref()` uses single quotes only**: `{{ ref('SRC', 'CUSTOMER') }}`. Double-quoted `ref("SRC", "CUSTOMER")` parsed successfully in older COA but silently dropped the dependency. Platform now accepts double quotes (CD-16981) but the convention stays single-quoted; do not switch. The MCP preflight still flags double-quoted refs as an error.
|
|
99
|
+
- **Config via annotation (bidirectional sync, CD-16972)**: annotations like `@truncateBefore(false)` or `@hashColumns("COL", "SHA256")` flow into `config.<attribute>` in the template. Verified end-to-end on 7.35: `@truncateBefore(false)` on a node whose `run.sql.j2` reads `{% if config.truncateBefore %}TRUNCATE ...{% endif %}` correctly produces no TRUNCATE in the rendered SQL. The reverse direction (UI config changes write annotations back into the `.sql` file) is also supported. Annotations whose values equal the spec default are omitted to keep the SQL clean.
|
|
100
|
+
- **`UNION ALL` works** (fixed in 7.35): a body containing `... UNION ALL SELECT ...` now renders both branches end-to-end. The legacy "use insertStrategy config instead" workaround is no longer required.
|
|
96
101
|
|
|
97
102
|
### Step 4 — verify before executing
|
|
98
103
|
|
|
@@ -103,23 +108,26 @@ coa validate # structural checks
|
|
|
103
108
|
coa create --include "{ <NODE_NAME> }" --dry-run --verbose
|
|
104
109
|
```
|
|
105
110
|
|
|
106
|
-
|
|
111
|
+
Two rough edges to watch for explicitly:
|
|
112
|
+
|
|
113
|
+
1. **`coa validate` column-reference false positive on V2 nodes.** When a V2 stage has aliased columns (e.g., `UPPER("COUNTRY_NAME") AS COUNTRY_NAME_UPPER`), the Column References scanner reports "missing source columns" for them. Non-blocking: `coa create --dry-run` renders the SQL correctly, and `coa_create` / `coa_run` execute fine. Tell the user "this is a known false positive on V2 — the columns resolve correctly at compile time" rather than rewriting the SELECT to make the scanner happy.
|
|
107
114
|
|
|
108
|
-
**
|
|
115
|
+
2. **Parse errors in the SELECT produce zero-column DDL with no warning.** If `coa create --dry-run --verbose` prints `CREATE TABLE ... AS SELECT WHERE 1=0` (an empty SELECT clause, just a WHERE), the body has a parse error somewhere upstream. The dry-run reports "passed" anyway. Always read the rendered DDL — never trust the pass/fail counter alone for V2.
|
|
109
116
|
|
|
110
117
|
## Anti-Patterns
|
|
111
118
|
|
|
112
|
-
-
|
|
113
|
-
- Changing `data.yml` `fileVersion` uninvited.
|
|
119
|
+
- Converting an existing V1 project to V2 without being asked.
|
|
114
120
|
- Creating a V2 node type "to match" a project that currently has no V2 nodes.
|
|
115
121
|
- Rewriting a `.yml` node as `.sql` without being asked.
|
|
116
122
|
- Authoring a `.sql` node without first checking that a V2 node type exists for it to reference.
|
|
117
123
|
- Guessing UUIDs for `id` / `nodeType` annotations instead of generating them.
|
|
118
|
-
- "Fixing" V2 validate false positives by rewriting SELECTs.
|
|
124
|
+
- "Fixing" V2 validate false positives by rewriting SELECTs (see Step 4, item 1).
|
|
125
|
+
- Trusting the dry-run pass/fail counter without scanning the rendered DDL (see Step 4, item 2).
|
|
119
126
|
|
|
120
127
|
## Authoritative References
|
|
121
128
|
|
|
122
129
|
- `coalesce://coa/describe/sql-format` — the full annotation list and examples.
|
|
123
|
-
- `coalesce://coa/describe/node-types` — node-type authoring, template variables,
|
|
130
|
+
- `coalesce://coa/describe/node-types` — node-type authoring, template variables, CTAS pattern.
|
|
124
131
|
- `coalesce://coa/describe/structure` — directory layout.
|
|
132
|
+
- `coalesce://coa/describe/schema/workspace` — per-repo `workspace.yml` (singular) schema (CD-17008).
|
|
125
133
|
- Coalesce Getting Started with the COA CLI (internal Notion) — the canonical walkthrough this policy mirrors.
|
|
@@ -23,14 +23,16 @@ export type PreflightReport = {
|
|
|
23
23
|
export declare function runPreflight(projectPath: string, options?: PreflightOptions): PreflightReport;
|
|
24
24
|
/**
|
|
25
25
|
* Scan for V2 artifacts (fileVersion: 2 node types, .sql nodes) and return the
|
|
26
|
-
* warnings to append.
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* warnings to append. As of COA 7.35, V2 is no longer guarded — execution
|
|
27
|
+
* proceeds — but two rough edges remain worth surfacing: false-positive
|
|
28
|
+
* column-reference errors from `coa validate`, and silent zero-column CTAS
|
|
29
|
+
* output when a SELECT has a parse error. The warning points agents at the
|
|
30
|
+
* policy resource for the full list.
|
|
29
31
|
*
|
|
30
32
|
* Returns an empty array when the project is confirmed V1 (scan completed, no
|
|
31
33
|
* V2 artifacts found). Returns a `V2_SCAN_FAILED` warning when a scan failure
|
|
32
|
-
* made the counts unreliable —
|
|
33
|
-
*
|
|
34
|
+
* made the counts unreliable — informational only; execution is no longer
|
|
35
|
+
* blocked on it.
|
|
34
36
|
*
|
|
35
37
|
* Exported so coa_doctor can attach the same warnings without running the full
|
|
36
38
|
* preflight.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preflight.d.ts","sourceRoot":"","sources":["../../../src/services/coa/preflight.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,yEAAyE;IACzE,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,8EAA8E;IAC9E,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B,CAAC;AAIF;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,gBAAqB,GAC7B,eAAe,CAkBjB;AAED
|
|
1
|
+
{"version":3,"file":"preflight.d.ts","sourceRoot":"","sources":["../../../src/services/coa/preflight.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,yEAAyE;IACzE,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,8EAA8E;IAC9E,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B,CAAC;AAIF;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,gBAAqB,GAC7B,eAAe,CAkBjB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,EAAE,CAyCvE;AA8FD,qBAAa,iBAAkB,SAAQ,KAAK;aACd,MAAM,EAAE,eAAe;gBAAvB,MAAM,EAAE,eAAe;CASpD;AAuSD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CA4B/D;AAgID;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAWlE;AAID,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAMhD"}
|
|
@@ -29,14 +29,16 @@ export function runPreflight(projectPath, options = {}) {
|
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* Scan for V2 artifacts (fileVersion: 2 node types, .sql nodes) and return the
|
|
32
|
-
* warnings to append.
|
|
33
|
-
*
|
|
34
|
-
*
|
|
32
|
+
* warnings to append. As of COA 7.35, V2 is no longer guarded — execution
|
|
33
|
+
* proceeds — but two rough edges remain worth surfacing: false-positive
|
|
34
|
+
* column-reference errors from `coa validate`, and silent zero-column CTAS
|
|
35
|
+
* output when a SELECT has a parse error. The warning points agents at the
|
|
36
|
+
* policy resource for the full list.
|
|
35
37
|
*
|
|
36
38
|
* Returns an empty array when the project is confirmed V1 (scan completed, no
|
|
37
39
|
* V2 artifacts found). Returns a `V2_SCAN_FAILED` warning when a scan failure
|
|
38
|
-
* made the counts unreliable —
|
|
39
|
-
*
|
|
40
|
+
* made the counts unreliable — informational only; execution is no longer
|
|
41
|
+
* blocked on it.
|
|
40
42
|
*
|
|
41
43
|
* Exported so coa_doctor can attach the same warnings without running the full
|
|
42
44
|
* preflight.
|
|
@@ -57,19 +59,16 @@ export function detectV2Artifacts(projectPath) {
|
|
|
57
59
|
}
|
|
58
60
|
out.push({
|
|
59
61
|
level: "warning",
|
|
60
|
-
code: "
|
|
61
|
-
message: `V2 artifacts detected (${parts.join(", ")}). V2 SQL nodes +
|
|
62
|
+
code: "V2_DETECTED",
|
|
63
|
+
message: `V2 artifacts detected (${parts.join(", ")}). V2 SQL nodes are supported (annotation sync + UNION ALL handling shipped in 7.35), but two rough edges remain: \`coa validate\` may flag aliased columns on V2 nodes as "missing source columns" (false positive — non-blocking), and a SELECT with a parse error renders to \`CREATE TABLE ... AS SELECT WHERE 1=0\` with zero columns and reports success. Read \`coalesce://context/sql-node-v2-policy\` before editing V2 templates or converting V1 nodes.`,
|
|
62
64
|
path: projectPath,
|
|
63
65
|
});
|
|
64
66
|
}
|
|
65
|
-
// Surface scan failures even when count > 0 — partial reads can undercount,
|
|
66
|
-
// and the hard guard should not treat a partial scan that found nothing as
|
|
67
|
-
// indistinguishable from a clean V1 project.
|
|
68
67
|
if (scanErrors.length > 0) {
|
|
69
68
|
out.push({
|
|
70
69
|
level: "warning",
|
|
71
70
|
code: "V2_SCAN_FAILED",
|
|
72
|
-
message: `Could not fully scan for V2 artifacts (${scanErrors.join("; ")}). Counts may be under-reported
|
|
71
|
+
message: `Could not fully scan for V2 artifacts (${scanErrors.join("; ")}). Counts may be under-reported. Investigate the filesystem error (permissions, broken symlink, etc.) if the V2 detection result looks wrong.`,
|
|
73
72
|
path: projectPath,
|
|
74
73
|
});
|
|
75
74
|
}
|
|
@@ -118,9 +117,10 @@ function countSqlNodes(projectPath) {
|
|
|
118
117
|
const errors = [];
|
|
119
118
|
const hitCap = collectSqlFilesWithErrors(nodesDir, files, errors);
|
|
120
119
|
if (hitCap) {
|
|
121
|
-
// Partial scan — the
|
|
122
|
-
// "no V2 found"
|
|
123
|
-
//
|
|
120
|
+
// Partial scan — surface the truncation as a scan error so V2_SCAN_FAILED
|
|
121
|
+
// fires. Agents still need to distinguish "no V2 found" from "couldn't read
|
|
122
|
+
// enough to tell" when interpreting the warning, even though execution is
|
|
123
|
+
// no longer blocked on the difference (V2 hard guard removed in v0.10).
|
|
124
124
|
errors.push(`hit MAX_SQL_FILES_SCANNED cap (${MAX_SQL_FILES_SCANNED}); scan may be incomplete`);
|
|
125
125
|
}
|
|
126
126
|
return { count: files.length, errors };
|
|
@@ -562,20 +562,10 @@ function inspectSqlFile(filePath, content, errors, warnings) {
|
|
|
562
562
|
path: filePath,
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
|
-
//
|
|
566
|
-
//
|
|
567
|
-
//
|
|
568
|
-
|
|
569
|
-
.replace(/--[^\n]*/g, "")
|
|
570
|
-
.replace(/\/\*[\s\S]*?\*\//g, "");
|
|
571
|
-
if (/\bUNION\s+ALL\b/i.test(stripped)) {
|
|
572
|
-
warnings.push({
|
|
573
|
-
level: "warning",
|
|
574
|
-
code: "SQL_LITERAL_UNION_ALL",
|
|
575
|
-
message: "SQL node contains literal UNION ALL. The V2 parser captures only the first SELECT; data from subsequent branches is silently dropped. Use the `insertStrategy: UNION ALL` config in the node type instead.",
|
|
576
|
-
path: filePath,
|
|
577
|
-
});
|
|
578
|
-
}
|
|
565
|
+
// 7.35 fixed the V2 parser's UNION ALL silent-drop (second SELECT now
|
|
566
|
+
// preserved end-to-end). The legacy SQL_LITERAL_UNION_ALL preflight has
|
|
567
|
+
// been removed; the only V2-body footgun still worth catching at preflight
|
|
568
|
+
// time is double-quoted ref(), handled above.
|
|
579
569
|
}
|
|
580
570
|
/**
|
|
581
571
|
* Detect the common `{ A || B }` selector footgun. Coalesce selectors require
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preflight.js","sourceRoot":"","sources":["../../../src/services/coa/preflight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAsB9C,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAElC;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAC1B,WAAmB,EACnB,UAA4B,EAAE;IAE9B,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,MAAM,QAAQ,GAAqB,EAAE,CAAC;IAEtC,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC5C,iBAAiB,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACzC,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;QACjC,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IACpD,CAAC;SAAM,CAAC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Q,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;IACrD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coalesce-transform-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0-preview.0",
|
|
4
4
|
"mcpName": "io.github.Coalesce-Software-Inc/coalesce-transform",
|
|
5
5
|
"description": "MCP server for the Coalesce Transform API; run tools support Snowflake Key Pair and PAT auth",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"license": "MIT",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@coalescesoftware/coa": "7.
|
|
45
|
+
"@coalescesoftware/coa": "7.35.0-alpha.37.hc454c248d4be",
|
|
46
46
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
47
47
|
"yaml": "^2.8.3",
|
|
48
48
|
"zod": "^3.24.0"
|