@theproductguy/create-mission-control 1.0.26 → 1.0.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theproductguy/create-mission-control",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Scaffolding tool for Agent OS applications",
5
5
  "type": "module",
6
6
  "bin": {
@@ -30,7 +30,7 @@ export const DesignOSOverlay = ({ onClose }: DesignOSOverlayProps) => {
30
30
  src={`http://localhost:5400?theme=${localStorage.getItem('theme') || 'system'}`}
31
31
  className="absolute inset-0 w-full h-full border-none"
32
32
  title="Design OS"
33
- allow="clipboard-read; clipboard-write text/html" // updated per chrome warnings usually
33
+ allow="clipboard-read; clipboard-write"
34
34
  />
35
35
  </div>
36
36
  </div >
@@ -17,19 +17,24 @@ export const CreateSpecModal = ({ runtimeConfig, onClose, onSuccess, openFile }:
17
17
  if (newSpecName.trim()) {
18
18
  const name = newSpecName.trim();
19
19
  if (runtimeConfig?.api) {
20
- await axios.post(`${runtimeConfig.api}/api/scaffold/spec`, { name });
21
- const prompt = `Antigravity, let's shape the spec for '${name}'. Read commands/shape-spec/shape-spec.md.`;
22
20
  try {
23
- await navigator.clipboard.writeText(prompt);
24
- toast({ title: "Spec created & Prompt copied!", type: 'success' });
21
+ await axios.post(`${runtimeConfig.api}/api/scaffold/spec`, { name });
22
+ const prompt = `Antigravity, let's shape the spec for '${name}'. Read commands/shape-spec/shape-spec.md.`;
23
+ try {
24
+ await navigator.clipboard.writeText(prompt);
25
+ toast({ title: "Spec created & Prompt copied!", type: 'success' });
26
+ } catch (err) {
27
+ console.error('Failed to copy', err);
28
+ toast({ title: "Spec created", description: "Standard prompt failed to copy", type: 'warning' });
29
+ }
30
+ setNewSpecName("");
31
+ onSuccess();
32
+ openFile(`specs/${name}/spec.md`, `${name} Spec`);
33
+ onClose();
25
34
  } catch (err) {
26
- console.error('Failed to copy', err);
27
- toast({ title: "Spec created", description: "Standard prompt failed to copy", type: 'warning' });
35
+ console.error('Failed to create spec', err);
36
+ toast({ title: "Failed to create spec", description: "Check backend connection", type: 'error' });
28
37
  }
29
- setNewSpecName("");
30
- onSuccess();
31
- openFile(`specs/${name}/spec.md`, `${name} Spec`);
32
- onClose();
33
38
  }
34
39
  }
35
40
  };