@ggterm/core 0.3.4 → 0.3.5
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/dist/cli-plot.js +15 -9
- package/dist/init.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cli-plot.js
CHANGED
|
@@ -15212,7 +15212,7 @@ import { join as join4 } from "path";
|
|
|
15212
15212
|
// src/init.ts
|
|
15213
15213
|
import { mkdirSync as mkdirSync2, writeFileSync as writeFileSync2, readFileSync as readFileSync2, existsSync as existsSync2, readdirSync as readdirSync2, statSync } from "fs";
|
|
15214
15214
|
import { join as join2, extname } from "path";
|
|
15215
|
-
var SKILLS_VERSION = "0.3.
|
|
15215
|
+
var SKILLS_VERSION = "0.3.4";
|
|
15216
15216
|
var SKILLS = {
|
|
15217
15217
|
"data-load": {
|
|
15218
15218
|
files: {
|
|
@@ -15524,11 +15524,12 @@ spec.height = 400
|
|
|
15524
15524
|
|
|
15525
15525
|
## Workflow
|
|
15526
15526
|
|
|
15527
|
-
1.
|
|
15528
|
-
2.
|
|
15529
|
-
3.
|
|
15530
|
-
4.
|
|
15531
|
-
|
|
15527
|
+
1. Read \`.ggterm/last-plot-vegalite.json\`
|
|
15528
|
+
2. Apply the requested modifications
|
|
15529
|
+
3. Write the updated spec back to \`.ggterm/last-plot-vegalite.json\`
|
|
15530
|
+
4. **DONE** — the live viewer auto-detects the change and displays the customized plot
|
|
15531
|
+
|
|
15532
|
+
**IMPORTANT**: Do NOT re-create the plot with \`npx ggterm-plot\` after customizing. The viewer watches the spec file and auto-updates. Re-running the plot command would overwrite your customizations.
|
|
15532
15533
|
|
|
15533
15534
|
$ARGUMENTS
|
|
15534
15535
|
`
|
|
@@ -15560,9 +15561,12 @@ Apply expert-curated style presets to Vega-Lite specifications for publication-q
|
|
|
15560
15561
|
## Workflow
|
|
15561
15562
|
|
|
15562
15563
|
1. Read \`.ggterm/last-plot-vegalite.json\`
|
|
15563
|
-
2. Apply the requested style preset
|
|
15564
|
-
3. Write the updated spec
|
|
15565
|
-
4.
|
|
15564
|
+
2. Apply the requested style preset (only modify \`config\` — do NOT change \`encoding\`, \`data\`, or \`mark\` structure)
|
|
15565
|
+
3. Write the updated spec back to \`.ggterm/last-plot-vegalite.json\`
|
|
15566
|
+
4. **DONE** — the live viewer auto-detects the change and displays the styled plot
|
|
15567
|
+
5. Inform user they can export with \`/ggterm-publish\`
|
|
15568
|
+
|
|
15569
|
+
**IMPORTANT**: Do NOT re-create the plot with \`npx ggterm-plot\` after styling. The viewer watches the spec file and auto-updates. Re-running the plot command would overwrite your style changes.
|
|
15566
15570
|
|
|
15567
15571
|
## Response Format
|
|
15568
15572
|
|
|
@@ -15768,6 +15772,8 @@ point, line, histogram, boxplot, bar, violin, density, area, ridgeline, heatmap,
|
|
|
15768
15772
|
## Live Viewer
|
|
15769
15773
|
|
|
15770
15774
|
When \`npx ggterm-plot serve\` is running, plots auto-display in the browser/Wave panel as high-resolution interactive Vega-Lite visualizations instead of ASCII art.
|
|
15775
|
+
|
|
15776
|
+
**Style and customize changes also auto-display.** When you modify \`.ggterm/last-plot-vegalite.json\` (via /ggterm-style or /ggterm-customize), the viewer updates automatically. Do NOT re-run \`npx ggterm-plot\` after styling — that would overwrite your changes.
|
|
15771
15777
|
`;
|
|
15772
15778
|
const GGTERM_MARKER = "# ggterm Data Analysis Project";
|
|
15773
15779
|
let shouldWriteClaudeMd = !existsSync2(claudeMdPath);
|
package/dist/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAsgBH,wBAAgB,UAAU,IAAI,IAAI,CA2JjC"}
|