@_davideast/stitch-mcp 0.5.2 → 0.5.3

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.
Files changed (126) hide show
  1. package/dist/chunk-22bymmh9.js +137 -0
  2. package/dist/chunk-22bymmh9.js.map +10 -0
  3. package/dist/chunk-387yyye2.js +248 -0
  4. package/dist/chunk-387yyye2.js.map +14 -0
  5. package/dist/chunk-3ff2k44g.js +19 -0
  6. package/dist/chunk-3ff2k44g.js.map +9 -0
  7. package/dist/chunk-46cay1zp.js +273 -0
  8. package/dist/chunk-46cay1zp.js.map +10 -0
  9. package/dist/chunk-48e1jpm8.js +167 -0
  10. package/dist/chunk-48e1jpm8.js.map +10 -0
  11. package/dist/chunk-4arzkk1s.js +69 -0
  12. package/dist/chunk-4arzkk1s.js.map +10 -0
  13. package/dist/chunk-4js7vw6h.js +415 -0
  14. package/dist/chunk-4js7vw6h.js.map +20 -0
  15. package/dist/chunk-4p1wfk3t.js +736 -0
  16. package/dist/chunk-4p1wfk3t.js.map +16 -0
  17. package/dist/chunk-4zg969tc.js +370 -0
  18. package/dist/chunk-4zg969tc.js.map +16 -0
  19. package/dist/chunk-5jjt7tgw.js +247 -0
  20. package/dist/chunk-5jjt7tgw.js.map +14 -0
  21. package/dist/chunk-5t2h8z2n.js +273 -0
  22. package/dist/chunk-5t2h8z2n.js.map +10 -0
  23. package/dist/chunk-5zy3et1m.js +759 -0
  24. package/dist/chunk-5zy3et1m.js.map +19 -0
  25. package/dist/chunk-6wvst7z8.js +125 -0
  26. package/dist/chunk-6wvst7z8.js.map +12 -0
  27. package/dist/chunk-8mm08arm.js +256 -0
  28. package/dist/chunk-8mm08arm.js.map +11 -0
  29. package/dist/chunk-8nv4wwv0.js +19 -0
  30. package/dist/chunk-8nv4wwv0.js.map +9 -0
  31. package/dist/chunk-9cjny9z2.js +19 -0
  32. package/dist/chunk-9cjny9z2.js.map +9 -0
  33. package/dist/chunk-9ggfw78s.js +19 -0
  34. package/dist/chunk-9ggfw78s.js.map +9 -0
  35. package/dist/chunk-9nyyn1hn.js +125 -0
  36. package/dist/chunk-9nyyn1hn.js.map +12 -0
  37. package/dist/chunk-9nzbvp6r.js +19 -0
  38. package/dist/chunk-9nzbvp6r.js.map +9 -0
  39. package/dist/chunk-a0gmbh8e.js +415 -0
  40. package/dist/chunk-a0gmbh8e.js.map +20 -0
  41. package/dist/chunk-acv998mp.js +941 -0
  42. package/dist/chunk-acv998mp.js.map +27 -0
  43. package/dist/chunk-cpjsvven.js +10 -0
  44. package/dist/chunk-cpjsvven.js.map +9 -0
  45. package/dist/chunk-dmrahbs1.js +31467 -0
  46. package/dist/chunk-dmrahbs1.js.map +245 -0
  47. package/dist/chunk-dts6851a.js +137 -0
  48. package/dist/chunk-dts6851a.js.map +10 -0
  49. package/dist/chunk-efd0rm6g.js +69 -0
  50. package/dist/chunk-efd0rm6g.js.map +10 -0
  51. package/dist/chunk-f1kjn6cd.js +16554 -0
  52. package/dist/chunk-f1kjn6cd.js.map +98 -0
  53. package/dist/chunk-f5f6ekgp.js +109 -0
  54. package/dist/chunk-f5f6ekgp.js.map +10 -0
  55. package/dist/chunk-fmewhfh3.js +137 -0
  56. package/dist/chunk-fmewhfh3.js.map +10 -0
  57. package/dist/chunk-fmhrn6cg.js +6382 -0
  58. package/dist/chunk-fmhrn6cg.js.map +109 -0
  59. package/dist/chunk-gh7dzfhb.js +256 -0
  60. package/dist/chunk-gh7dzfhb.js.map +11 -0
  61. package/dist/chunk-gwhtc0fe.js +370 -0
  62. package/dist/chunk-gwhtc0fe.js.map +16 -0
  63. package/dist/chunk-hc7sdwmn.js +449 -0
  64. package/dist/chunk-hc7sdwmn.js.map +17 -0
  65. package/dist/chunk-k4xwb3wp.js +44184 -0
  66. package/dist/chunk-k4xwb3wp.js.map +237 -0
  67. package/dist/chunk-k751yfm6.js +736 -0
  68. package/dist/chunk-k751yfm6.js.map +16 -0
  69. package/dist/chunk-kkc2tvar.js +19 -0
  70. package/dist/chunk-kkc2tvar.js.map +9 -0
  71. package/dist/chunk-kva47mgc.js +10 -0
  72. package/dist/chunk-kva47mgc.js.map +9 -0
  73. package/dist/chunk-nv2j020p.js +45210 -0
  74. package/dist/chunk-nv2j020p.js.map +258 -0
  75. package/dist/chunk-pdj9s41r.js +683 -0
  76. package/dist/chunk-pdj9s41r.js.map +17 -0
  77. package/dist/chunk-ppphsy4t.js +273 -0
  78. package/dist/chunk-ppphsy4t.js.map +10 -0
  79. package/dist/chunk-psmw9zpa.js +941 -0
  80. package/dist/chunk-psmw9zpa.js.map +27 -0
  81. package/dist/chunk-pz31v3ma.js +24 -0
  82. package/dist/chunk-pz31v3ma.js.map +9 -0
  83. package/dist/chunk-qbt0906e.js +1495 -0
  84. package/dist/chunk-qbt0906e.js.map +23 -0
  85. package/dist/chunk-rh3k09h7.js +19 -0
  86. package/dist/chunk-rh3k09h7.js.map +9 -0
  87. package/dist/chunk-saznae7w.js +10 -0
  88. package/dist/chunk-saznae7w.js.map +9 -0
  89. package/dist/chunk-sscqdg1j.js +69 -0
  90. package/dist/chunk-sscqdg1j.js.map +10 -0
  91. package/dist/chunk-stgj6y85.js +835 -0
  92. package/dist/chunk-stgj6y85.js.map +19 -0
  93. package/dist/chunk-t3tqmxyj.js +42 -0
  94. package/dist/chunk-t3tqmxyj.js.map +9 -0
  95. package/dist/chunk-v8ak35zd.js +94 -0
  96. package/dist/chunk-v8ak35zd.js.map +10 -0
  97. package/dist/chunk-w9acw256.js +167 -0
  98. package/dist/chunk-w9acw256.js.map +10 -0
  99. package/dist/chunk-wq60thjn.js +167 -0
  100. package/dist/chunk-wq60thjn.js.map +10 -0
  101. package/dist/chunk-wzkdeb8a.js +736 -0
  102. package/dist/chunk-wzkdeb8a.js.map +16 -0
  103. package/dist/chunk-xxv6j815.js +256 -0
  104. package/dist/chunk-xxv6j815.js.map +11 -0
  105. package/dist/chunk-yjnj35q8.js +1495 -0
  106. package/dist/chunk-yjnj35q8.js.map +23 -0
  107. package/dist/chunk-yvzzrczy.js +45206 -0
  108. package/dist/chunk-yvzzrczy.js.map +258 -0
  109. package/dist/chunk-ywax1akt.js +370 -0
  110. package/dist/chunk-ywax1akt.js.map +16 -0
  111. package/dist/chunk-zakq9pc0.js +4989 -0
  112. package/dist/chunk-zakq9pc0.js.map +65 -0
  113. package/dist/commands/doctor/command.js +1 -1
  114. package/dist/commands/doctor/steps/AdcProjectCheckStep.d.ts +8 -0
  115. package/dist/commands/init/command.js +1 -1
  116. package/dist/commands/logout/command.js +1 -1
  117. package/dist/commands/proxy/command.js +1 -1
  118. package/dist/commands/screens/command.js +2 -2
  119. package/dist/commands/serve/command.js +3 -3
  120. package/dist/commands/site/command.js +1 -1
  121. package/dist/commands/snapshot/command.js +1 -1
  122. package/dist/commands/tool/command.js +1 -1
  123. package/dist/commands/view/command.js +1 -1
  124. package/dist/index.js +4 -4
  125. package/dist/lib/server/AssetGateway.d.ts +12 -0
  126. package/package.json +1 -1
@@ -57,7 +57,7 @@ var command = {
57
57
  action: async (_args, options) => {
58
58
  try {
59
59
  const parsedOptions = DoctorOptionsSchema.parse(options);
60
- const { DoctorHandler } = await import("../../chunk-d0ffvq20.js");
60
+ const { DoctorHandler } = await import("../../chunk-9nzbvp6r.js");
61
61
  const handler = new DoctorHandler;
62
62
  const result = await handler.execute({
63
63
  verbose: parsedOptions.verbose,
@@ -0,0 +1,8 @@
1
+ import { type CommandStep, type StepResult } from '../../../framework/CommandStep.js';
2
+ import { type DoctorContext } from '../context.js';
3
+ export declare class AdcProjectCheckStep implements CommandStep<DoctorContext> {
4
+ id: string;
5
+ name: string;
6
+ shouldRun(context: DoctorContext): Promise<boolean>;
7
+ run(context: DoctorContext): Promise<StepResult>;
8
+ }
@@ -69,7 +69,7 @@ var command = {
69
69
  action: async (_args, options) => {
70
70
  try {
71
71
  const parsedOptions = InitOptionsSchema.parse(options);
72
- const { InitHandler } = await import("../../chunk-s2d39pkr.js");
72
+ const { InitHandler } = await import("../../chunk-8nv4wwv0.js");
73
73
  const handler = new InitHandler;
74
74
  const result = await handler.execute({
75
75
  local: parsedOptions.local,
@@ -53,7 +53,7 @@ var command = {
53
53
  action: async (_args, options) => {
54
54
  try {
55
55
  const parsedOptions = LogoutOptionsSchema.parse(options);
56
- const { LogoutHandler } = await import("../../chunk-yej34vkc.js");
56
+ const { LogoutHandler } = await import("../../chunk-5jjt7tgw.js");
57
57
  const handler = new LogoutHandler;
58
58
  const result = await handler.execute({
59
59
  force: parsedOptions.force,
@@ -29,7 +29,7 @@ var command = {
29
29
  action: async (_args, options) => {
30
30
  try {
31
31
  const parsedOptions = ProxyOptionsSchema.parse(options);
32
- const { ProxyCommandHandler } = await import("../../chunk-nnep362g.js");
32
+ const { ProxyCommandHandler } = await import("../../chunk-6wvst7z8.js");
33
33
  const handler = new ProxyCommandHandler;
34
34
  const result = await handler.execute({
35
35
  port: parsedOptions.port,
@@ -26,8 +26,8 @@ var command = {
26
26
  try {
27
27
  const parsedOptions = ScreensOptionsSchema.parse(options);
28
28
  const { ScreensHandler } = await import("../../chunk-mbt1wx7n.js");
29
- const { ScreensView } = await import("../../chunk-9g1t32qk.js");
30
- const { stitch } = await import("../../chunk-sv2nt87j.js");
29
+ const { ScreensView } = await import("../../chunk-5t2h8z2n.js");
30
+ const { stitch } = await import("../../chunk-pz31v3ma.js");
31
31
  const { render } = await import("../../chunk-t092ehvp.js");
32
32
  const React = await import("../../chunk-edp6faw2.js");
33
33
  const handler = new ScreensHandler(stitch);
@@ -51,7 +51,7 @@ var command = {
51
51
  action: async (_args, options) => {
52
52
  try {
53
53
  const parsedOptions = ServeOptionsSchema.parse(options);
54
- const { stitch } = await import("../../chunk-sv2nt87j.js");
54
+ const { stitch } = await import("../../chunk-pz31v3ma.js");
55
55
  if (parsedOptions.listScreens) {
56
56
  const input = ListScreensInputSchema.safeParse({ projectId: parsedOptions.project });
57
57
  if (!input.success) {
@@ -69,7 +69,7 @@ var command = {
69
69
  console.log(JSON.stringify({ success: false, error: { code: "INVALID_INPUT", message: input.error.issues[0]?.message } }, null, 2));
70
70
  process.exit(1);
71
71
  }
72
- const { JsonServerHandler } = await import("../../chunk-t2razx5k.js");
72
+ const { JsonServerHandler } = await import("../../chunk-efd0rm6g.js");
73
73
  const result2 = await new JsonServerHandler(stitch).execute(input.data);
74
74
  console.log(JSON.stringify(result2, null, 2));
75
75
  if (!result2.success)
@@ -78,7 +78,7 @@ var command = {
78
78
  return;
79
79
  }
80
80
  const { ServeHandler } = await import("../../chunk-w8075wyx.js");
81
- const { ServeView } = await import("../../chunk-m4fp3pqc.js");
81
+ const { ServeView } = await import("../../chunk-wq60thjn.js");
82
82
  const { render } = await import("../../chunk-t092ehvp.js");
83
83
  const React = await import("../../chunk-edp6faw2.js");
84
84
  const handler = new ServeHandler(stitch);
@@ -35,7 +35,7 @@ var command = {
35
35
  action: async (_args, options) => {
36
36
  try {
37
37
  const parsedOptions = SiteOptionsSchema.parse(options);
38
- const { SiteCommandHandler } = await import("../../chunk-4zqw9exz.js");
38
+ const { SiteCommandHandler } = await import("../../chunk-ywax1akt.js");
39
39
  const handler = new SiteCommandHandler;
40
40
  await handler.execute({
41
41
  projectId: parsedOptions.project,
@@ -34,7 +34,7 @@ var command = {
34
34
  action: async (_args, options) => {
35
35
  try {
36
36
  const parsedOptions = SnapshotInputSchema.parse(options);
37
- const { SnapshotHandler } = await import("../../chunk-f89ve6pt.js");
37
+ const { SnapshotHandler } = await import("../../chunk-8mm08arm.js");
38
38
  const handler = new SnapshotHandler;
39
39
  const result = await handler.execute({
40
40
  command: parsedOptions.command,
@@ -34,7 +34,7 @@ var command = {
34
34
  action: async (toolName, options) => {
35
35
  try {
36
36
  const parsedOptions = ToolOptionsSchema.parse(options);
37
- const { ToolCommandHandler } = await import("../../chunk-q8cr9t2z.js");
37
+ const { ToolCommandHandler } = await import("../../chunk-a0gmbh8e.js");
38
38
  const handler = new ToolCommandHandler;
39
39
  const result = await handler.execute({
40
40
  toolName,
@@ -35,7 +35,7 @@ var command = {
35
35
  action: async (_args, options) => {
36
36
  try {
37
37
  const parsedOptions = ViewOptionsSchema.parse(options);
38
- const { ViewCommandHandler } = await import("../../chunk-1fbzpreg.js");
38
+ const { ViewCommandHandler } = await import("../../chunk-fmewhfh3.js");
39
39
  const handler = new ViewCommandHandler;
40
40
  await handler.execute(parsedOptions);
41
41
  } catch (error) {
package/dist/index.js CHANGED
@@ -2,16 +2,16 @@ import {
2
2
  InitHandler,
3
3
  McpConfigHandler,
4
4
  ProjectHandler
5
- } from "./chunk-etcps0m5.js";
5
+ } from "./chunk-yjnj35q8.js";
6
6
  import {
7
7
  DoctorHandler
8
- } from "./chunk-aa5ptn4s.js";
8
+ } from "./chunk-5zy3et1m.js";
9
9
  import {
10
10
  StitchHandler
11
- } from "./chunk-py8fhw0k.js";
11
+ } from "./chunk-psmw9zpa.js";
12
12
  import {
13
13
  GcloudHandler
14
- } from "./chunk-jyem6j6k.js";
14
+ } from "./chunk-zakq9pc0.js";
15
15
  import"./chunk-nq68kghz.js";
16
16
  import"./chunk-q6sv0243.js";
17
17
  import"./chunk-f2hq6bfv.js";
@@ -1,6 +1,18 @@
1
1
  import { Readable } from 'stream';
2
2
  export declare class AssetGateway {
3
3
  private cacheDir;
4
+ /**
5
+ * Allowlist of hostname patterns for asset fetching.
6
+ * Only HTTPS URLs matching these patterns are permitted.
7
+ * Expand as needed for additional CDNs used in Stitch designs.
8
+ */
9
+ private static ALLOWED_HOST_PATTERNS;
10
+ /**
11
+ * Validates that a URL is safe to fetch:
12
+ * - Must be HTTPS
13
+ * - Hostname must match the allowlist
14
+ */
15
+ static validateAssetUrl(url: string): boolean;
4
16
  constructor(projectRoot?: string);
5
17
  init(): Promise<void>;
6
18
  private getHash;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_davideast/stitch-mcp",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Stitch MCP CLI helper. Automates Google Cloud authentication. Generates MCP config for your client. Sets up a proxy server.",
5
5
  "type": "module",
6
6
  "publishConfig": {