@synchronized-studio/cmsassets-agent 0.1.3 → 0.2.1

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.js CHANGED
@@ -9,8 +9,8 @@ import {
9
9
  saveReport,
10
10
  scan,
11
11
  verify
12
- } from "./chunk-WDZHZ32V.js";
13
- import "./chunk-Q6VYUIS7.js";
12
+ } from "./chunk-XHL55FTA.js";
13
+ import "./chunk-MW74S44G.js";
14
14
  import "./chunk-E74TGIFQ.js";
15
15
  import "./chunk-QGM4M3NI.js";
16
16
 
@@ -179,6 +179,15 @@ var initCommand = defineCommand({
179
179
  consola2.log("");
180
180
  if (scanResult.injectionPoints.length === 0) {
181
181
  consola2.warn(" No injection points found. Nothing to do.");
182
+ consola2.log("");
183
+ consola2.log(
184
+ ` ${pc.dim("Tip:")} Run from your project root. The agent looks for fetch/useFetch/loaders that return CMS data.`
185
+ );
186
+ consola2.log(
187
+ ` ${pc.dim("If you already ran init here, all detected points may already be patched.")}`
188
+ );
189
+ consola2.log(` ${pc.dim("Run")} ${pc.cyan("npx @synchronized-studio/cmsassets-agent scan")} ${pc.dim("to see framework/CMS detection.")}`);
190
+ consola2.log("");
182
191
  return;
183
192
  }
184
193
  consola2.log(` ${pc.bold("Injection points:")} ${scanResult.injectionPoints.length} found`);
@@ -261,7 +270,7 @@ var initCommand = defineCommand({
261
270
  consola2.log(pc.bold(" CMS Assets Agent \u2014 AI Verification"));
262
271
  consola2.log(pc.dim(" \u2500".repeat(25)));
263
272
  consola2.log("");
264
- const { aiReviewAll } = await import("./aiReview-6WOTHK5N.js");
273
+ const { aiReviewAll } = await import("./aiReview-WD5QPIHJ.js");
265
274
  aiReviewReport = await aiReviewAll(root, appliedPaths, plan, {
266
275
  model: args["ai-model"] ?? "gpt-4o",
267
276
  maxIterations: parseInt(args["ai-max-iterations"] ?? "3", 10)
@@ -683,7 +692,7 @@ var applyCommand = defineCommand4({
683
692
  consola5.log(pc4.bold(" CMS Assets Agent \u2014 AI Verification"));
684
693
  consola5.log(pc4.dim(" \u2500".repeat(25)));
685
694
  consola5.log("");
686
- const { aiReviewAll } = await import("./aiReview-6WOTHK5N.js");
695
+ const { aiReviewAll } = await import("./aiReview-WD5QPIHJ.js");
687
696
  aiReviewReport = await aiReviewAll(root, appliedPaths, plan, {
688
697
  model: args["ai-model"] ?? "gpt-4o",
689
698
  maxIterations: parseInt(args["ai-max-iterations"] ?? "3", 10)
@@ -1011,7 +1020,7 @@ var rollbackCommand = defineCommand7({
1011
1020
  var main = defineCommand8({
1012
1021
  meta: {
1013
1022
  name: "cmsassets-agent",
1014
- version: "0.1.3",
1023
+ version: "0.2.1",
1015
1024
  description: "Auto-integrate @synchronized-studio/response-transformer into any JS/TS project."
1016
1025
  },
1017
1026
  subCommands: {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
 
3
3
  declare const FrameworkName: z.ZodEnum<["nuxt", "nuxt2", "next", "remix", "astro", "sveltekit", "express", "hono", "fastify", "unknown"]>;
4
4
  type FrameworkName = z.infer<typeof FrameworkName>;
@@ -522,19 +522,19 @@ type PatchPlan = z.infer<typeof PatchPlan>;
522
522
  declare const PatchedFileReport: z.ZodObject<{
523
523
  filePath: z.ZodString;
524
524
  applied: z.ZodBoolean;
525
- method: z.ZodEnum<["ast", "llm", "skipped"]>;
525
+ method: z.ZodEnum<["ast", "llm", "llm-complete", "skipped"]>;
526
526
  reason: z.ZodOptional<z.ZodString>;
527
527
  durationMs: z.ZodNumber;
528
528
  }, "strip", z.ZodTypeAny, {
529
529
  filePath: string;
530
530
  applied: boolean;
531
- method: "llm" | "ast" | "skipped";
531
+ method: "llm" | "ast" | "llm-complete" | "skipped";
532
532
  durationMs: number;
533
533
  reason?: string | undefined;
534
534
  }, {
535
535
  filePath: string;
536
536
  applied: boolean;
537
- method: "llm" | "ast" | "skipped";
537
+ method: "llm" | "ast" | "llm-complete" | "skipped";
538
538
  durationMs: number;
539
539
  reason?: string | undefined;
540
540
  }>;
@@ -550,19 +550,19 @@ declare const ApplyReport: z.ZodObject<{
550
550
  files: z.ZodArray<z.ZodObject<{
551
551
  filePath: z.ZodString;
552
552
  applied: z.ZodBoolean;
553
- method: z.ZodEnum<["ast", "llm", "skipped"]>;
553
+ method: z.ZodEnum<["ast", "llm", "llm-complete", "skipped"]>;
554
554
  reason: z.ZodOptional<z.ZodString>;
555
555
  durationMs: z.ZodNumber;
556
556
  }, "strip", z.ZodTypeAny, {
557
557
  filePath: string;
558
558
  applied: boolean;
559
- method: "llm" | "ast" | "skipped";
559
+ method: "llm" | "ast" | "llm-complete" | "skipped";
560
560
  durationMs: number;
561
561
  reason?: string | undefined;
562
562
  }, {
563
563
  filePath: string;
564
564
  applied: boolean;
565
- method: "llm" | "ast" | "skipped";
565
+ method: "llm" | "ast" | "llm-complete" | "skipped";
566
566
  durationMs: number;
567
567
  reason?: string | undefined;
568
568
  }>, "many">;
@@ -573,7 +573,7 @@ declare const ApplyReport: z.ZodObject<{
573
573
  files: {
574
574
  filePath: string;
575
575
  applied: boolean;
576
- method: "llm" | "ast" | "skipped";
576
+ method: "llm" | "ast" | "llm-complete" | "skipped";
577
577
  durationMs: number;
578
578
  reason?: string | undefined;
579
579
  }[];
@@ -589,7 +589,7 @@ declare const ApplyReport: z.ZodObject<{
589
589
  files: {
590
590
  filePath: string;
591
591
  applied: boolean;
592
- method: "llm" | "ast" | "skipped";
592
+ method: "llm" | "ast" | "llm-complete" | "skipped";
593
593
  durationMs: number;
594
594
  reason?: string | undefined;
595
595
  }[];
package/dist/index.js CHANGED
@@ -25,11 +25,11 @@ import {
25
25
  saveReport,
26
26
  scan,
27
27
  verify
28
- } from "./chunk-WDZHZ32V.js";
28
+ } from "./chunk-XHL55FTA.js";
29
29
  import {
30
30
  aiReviewAll
31
- } from "./chunk-OAWCNTAC.js";
32
- import "./chunk-Q6VYUIS7.js";
31
+ } from "./chunk-HYSTWSLW.js";
32
+ import "./chunk-MW74S44G.js";
33
33
  import "./chunk-E74TGIFQ.js";
34
34
  import "./chunk-QGM4M3NI.js";
35
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synchronized-studio/cmsassets-agent",
3
- "version": "0.1.3",
3
+ "version": "0.2.1",
4
4
  "description": "CLI agent that auto-integrates @synchronized-studio/response-transformer into any JS/TS project.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -54,7 +54,7 @@
54
54
  "fast-glob": "^3.3.3",
55
55
  "picocolors": "^1.1.1",
56
56
  "ts-morph": "^25.0.0",
57
- "zod": "^3.24.0"
57
+ "zod": "^4.3.6"
58
58
  },
59
59
  "optionalDependencies": {
60
60
  "openai": "^4.80.0"