@agent-native/core 0.109.3 → 0.109.4
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/corpus/README.md +2 -2
- package/corpus/core/CHANGELOG.md +8 -0
- package/corpus/core/docs/content/agent-native-toolkit.mdx +46 -13
- package/corpus/core/docs/content/locales/ar-SA/agent-native-toolkit.mdx +79 -55
- package/corpus/core/docs/content/locales/ar-SA/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/ar-SA/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/ar-SA/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/de-DE/agent-native-toolkit.mdx +82 -54
- package/corpus/core/docs/content/locales/de-DE/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/de-DE/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/de-DE/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/es-ES/agent-native-toolkit.mdx +81 -52
- package/corpus/core/docs/content/locales/es-ES/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/es-ES/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/es-ES/toolkit-editors-canvases.mdx +21 -0
- package/corpus/core/docs/content/locales/fr-FR/agent-native-toolkit.mdx +84 -54
- package/corpus/core/docs/content/locales/fr-FR/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/fr-FR/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/fr-FR/toolkit-editors-canvases.mdx +21 -0
- package/corpus/core/docs/content/locales/hi-IN/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/hi-IN/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/hi-IN/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/hi-IN/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/ja-JP/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/ja-JP/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/ja-JP/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/ja-JP/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/ko-KR/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/ko-KR/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/ko-KR/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/ko-KR/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/pt-BR/agent-native-toolkit.mdx +82 -54
- package/corpus/core/docs/content/locales/pt-BR/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/pt-BR/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/pt-BR/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/zh-CN/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/zh-CN/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/zh-CN/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/zh-CN/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/locales/zh-TW/agent-native-toolkit.mdx +69 -62
- package/corpus/core/docs/content/locales/zh-TW/toolkit-capability-packages.mdx +21 -0
- package/corpus/core/docs/content/locales/zh-TW/toolkit-context-knowledge.mdx +12 -0
- package/corpus/core/docs/content/locales/zh-TW/toolkit-editors-canvases.mdx +17 -0
- package/corpus/core/docs/content/toolkit-capability-packages.mdx +52 -0
- package/corpus/core/docs/content/toolkit-context-knowledge.mdx +46 -0
- package/corpus/core/docs/content/toolkit-editors-canvases.mdx +55 -0
- package/corpus/core/package.json +35 -34
- package/corpus/core/src/cli/create.ts +39 -3
- package/corpus/core/src/cli/package-lifecycle.ts +2 -0
- package/corpus/core/src/cli/skills-content/visual-plan-skill.ts +2 -0
- package/corpus/core/src/client/context-xray/ContextMeter.tsx +31 -111
- package/corpus/core/src/client/context-xray/ContextSegmentRow.tsx +8 -111
- package/corpus/core/src/client/context-xray/ContextTreemap.tsx +6 -111
- package/corpus/core/src/client/context-xray/ContextXRayPanel.tsx +31 -391
- package/corpus/core/src/client/context-xray/SegmentProvenancePopover.tsx +4 -52
- package/corpus/core/src/client/context-xray/format.ts +0 -33
- package/corpus/core/src/client/rich-markdown-editor/index.ts +42 -57
- package/corpus/core/src/client/rich-markdown-editor/uploadEditorImage.ts +2 -1
- package/corpus/core/src/client/visual-style-controls.tsx +1 -1088
- package/corpus/core/src/collab/agent-identity.ts +5 -22
- package/corpus/core/src/collab/client.ts +1 -53
- package/corpus/core/src/styles/rich-markdown-editor.css +1 -510
- package/corpus/core/src/testing.ts +1 -1
- package/corpus/core/src/vite/client.ts +3 -0
- package/corpus/templates/content/app/components/editor/VisualEditor.tsx +5 -3
- package/corpus/templates/content/app/components/editor/extensions/DragHandle.tsx +4 -4
- package/corpus/templates/content/package.json +25 -25
- package/corpus/templates/design/app/components/design/TweaksPanel.tsx +2 -1
- package/corpus/templates/design/package.json +1 -1
- package/corpus/templates/mail/package.json +9 -9
- package/corpus/templates/plan/.agents/skills/visual-plan/SKILL.md +2 -0
- package/corpus/templates/plan/app/components/editor/PlanDocumentEditor.tsx +8 -8
- package/corpus/templates/plan/app/components/editor/planSlashCommands.ts +6 -6
- package/corpus/templates/plan/app/components/plan/PlanImageNode.tsx +4 -7
- package/corpus/templates/plan/app/components/plan/PlanMarkdownEditor.tsx +6 -4
- package/corpus/templates/plan/app/components/plan/PlanVisualSurface.tsx +1 -1
- package/corpus/templates/plan/changelog/2026-07-18-visual-plans-now-open-on-wireframes-by-default-when-a-protot.md +6 -0
- package/corpus/templates/plan/package.json +3 -3
- package/corpus/templates/slides/app/components/editor/SlideStyleInspector.tsx +2 -2
- package/corpus/templates/slides/app/components/editor/TweaksPanel.tsx +2 -2
- package/corpus/templates/slides/package.json +13 -13
- package/dist/catalog.json +39 -1
- package/dist/cli/create.d.ts.map +1 -1
- package/dist/cli/create.js +32 -3
- package/dist/cli/create.js.map +1 -1
- package/dist/cli/package-lifecycle.d.ts.map +1 -1
- package/dist/cli/package-lifecycle.js +2 -0
- package/dist/cli/package-lifecycle.js.map +1 -1
- package/dist/cli/skills-content/visual-plan-skill.d.ts +1 -1
- package/dist/cli/skills-content/visual-plan-skill.d.ts.map +1 -1
- package/dist/cli/skills-content/visual-plan-skill.js +2 -0
- package/dist/cli/skills-content/visual-plan-skill.js.map +1 -1
- package/dist/client/context-xray/ContextMeter.d.ts.map +1 -1
- package/dist/client/context-xray/ContextMeter.js +8 -23
- package/dist/client/context-xray/ContextMeter.js.map +1 -1
- package/dist/client/context-xray/ContextSegmentRow.d.ts.map +1 -1
- package/dist/client/context-xray/ContextSegmentRow.js +3 -19
- package/dist/client/context-xray/ContextSegmentRow.js.map +1 -1
- package/dist/client/context-xray/ContextTreemap.d.ts.map +1 -1
- package/dist/client/context-xray/ContextTreemap.js +3 -54
- package/dist/client/context-xray/ContextTreemap.js.map +1 -1
- package/dist/client/context-xray/ContextXRayPanel.d.ts.map +1 -1
- package/dist/client/context-xray/ContextXRayPanel.js +21 -163
- package/dist/client/context-xray/ContextXRayPanel.js.map +1 -1
- package/dist/client/context-xray/SegmentProvenancePopover.d.ts.map +1 -1
- package/dist/client/context-xray/SegmentProvenancePopover.js +3 -4
- package/dist/client/context-xray/SegmentProvenancePopover.js.map +1 -1
- package/dist/client/context-xray/format.d.ts +0 -4
- package/dist/client/context-xray/format.d.ts.map +1 -1
- package/dist/client/context-xray/format.js +0 -49
- package/dist/client/context-xray/format.js.map +1 -1
- package/dist/client/rich-markdown-editor/index.d.ts +1 -12
- package/dist/client/rich-markdown-editor/index.d.ts.map +1 -1
- package/dist/client/rich-markdown-editor/index.js +1 -12
- package/dist/client/rich-markdown-editor/index.js.map +1 -1
- package/dist/client/rich-markdown-editor/uploadEditorImage.d.ts +1 -1
- package/dist/client/rich-markdown-editor/uploadEditorImage.d.ts.map +1 -1
- package/dist/client/rich-markdown-editor/uploadEditorImage.js.map +1 -1
- package/dist/client/visual-style-controls.d.ts +1 -89
- package/dist/client/visual-style-controls.d.ts.map +1 -1
- package/dist/client/visual-style-controls.js +1 -498
- package/dist/client/visual-style-controls.js.map +1 -1
- package/dist/collab/agent-identity.d.ts +1 -14
- package/dist/collab/agent-identity.d.ts.map +1 -1
- package/dist/collab/agent-identity.js +1 -13
- package/dist/collab/agent-identity.js.map +1 -1
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/collab/awareness.d.ts.map +1 -1
- package/dist/collab/client.d.ts +1 -19
- package/dist/collab/client.d.ts.map +1 -1
- package/dist/collab/client.js +1 -53
- package/dist/collab/client.js.map +1 -1
- package/dist/collab/routes.d.ts +1 -1
- package/dist/file-upload/actions/upload-image.d.ts +1 -1
- package/dist/notifications/routes.d.ts +3 -3
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/styles/rich-markdown-editor.css +1 -510
- package/dist/testing.d.ts +1 -1
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +1 -1
- package/dist/testing.js.map +1 -1
- package/dist/vite/client.d.ts.map +1 -1
- package/dist/vite/client.js +3 -0
- package/dist/vite/client.js.map +1 -1
- package/docs/content/agent-native-toolkit.mdx +46 -13
- package/docs/content/locales/ar-SA/agent-native-toolkit.mdx +79 -55
- package/docs/content/locales/ar-SA/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/ar-SA/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/ar-SA/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/de-DE/agent-native-toolkit.mdx +82 -54
- package/docs/content/locales/de-DE/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/de-DE/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/de-DE/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/es-ES/agent-native-toolkit.mdx +81 -52
- package/docs/content/locales/es-ES/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/es-ES/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/es-ES/toolkit-editors-canvases.mdx +21 -0
- package/docs/content/locales/fr-FR/agent-native-toolkit.mdx +84 -54
- package/docs/content/locales/fr-FR/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/fr-FR/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/fr-FR/toolkit-editors-canvases.mdx +21 -0
- package/docs/content/locales/hi-IN/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/hi-IN/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/hi-IN/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/hi-IN/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/ja-JP/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/ja-JP/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/ja-JP/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/ja-JP/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/ko-KR/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/ko-KR/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/ko-KR/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/ko-KR/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/pt-BR/agent-native-toolkit.mdx +82 -54
- package/docs/content/locales/pt-BR/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/pt-BR/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/pt-BR/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/zh-CN/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/zh-CN/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/zh-CN/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/zh-CN/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/locales/zh-TW/agent-native-toolkit.mdx +69 -62
- package/docs/content/locales/zh-TW/toolkit-capability-packages.mdx +21 -0
- package/docs/content/locales/zh-TW/toolkit-context-knowledge.mdx +12 -0
- package/docs/content/locales/zh-TW/toolkit-editors-canvases.mdx +17 -0
- package/docs/content/toolkit-capability-packages.mdx +52 -0
- package/docs/content/toolkit-context-knowledge.mdx +46 -0
- package/docs/content/toolkit-editors-canvases.mdx +55 -0
- package/package.json +27 -26
- package/corpus/core/src/client/rich-markdown-editor/BubbleToolbar.tsx +0 -253
- package/corpus/core/src/client/rich-markdown-editor/CodeBlockNode.tsx +0 -258
- package/corpus/core/src/client/rich-markdown-editor/DragHandle.ts +0 -1437
- package/corpus/core/src/client/rich-markdown-editor/ImageExtension.ts +0 -306
- package/corpus/core/src/client/rich-markdown-editor/RichMarkdownEditor.tsx +0 -80
- package/corpus/core/src/client/rich-markdown-editor/RunId.ts +0 -61
- package/corpus/core/src/client/rich-markdown-editor/SharedRichEditor.tsx +0 -321
- package/corpus/core/src/client/rich-markdown-editor/SlashCommandMenu.tsx +0 -310
- package/corpus/core/src/client/rich-markdown-editor/extensions.ts +0 -402
- package/corpus/core/src/client/rich-markdown-editor/gfmDoc.ts +0 -92
- package/corpus/core/src/client/rich-markdown-editor/surgical-apply.ts +0 -192
- package/corpus/core/src/client/rich-markdown-editor/useCollabReconcile.ts +0 -590
- package/dist/client/rich-markdown-editor/BubbleToolbar.d.ts +0 -37
- package/dist/client/rich-markdown-editor/BubbleToolbar.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/BubbleToolbar.js +0 -171
- package/dist/client/rich-markdown-editor/BubbleToolbar.js.map +0 -1
- package/dist/client/rich-markdown-editor/CodeBlockNode.d.ts +0 -49
- package/dist/client/rich-markdown-editor/CodeBlockNode.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/CodeBlockNode.js +0 -127
- package/dist/client/rich-markdown-editor/CodeBlockNode.js.map +0 -1
- package/dist/client/rich-markdown-editor/DragHandle.d.ts +0 -97
- package/dist/client/rich-markdown-editor/DragHandle.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/DragHandle.js +0 -1066
- package/dist/client/rich-markdown-editor/DragHandle.js.map +0 -1
- package/dist/client/rich-markdown-editor/ImageExtension.d.ts +0 -63
- package/dist/client/rich-markdown-editor/ImageExtension.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/ImageExtension.js +0 -243
- package/dist/client/rich-markdown-editor/ImageExtension.js.map +0 -1
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.d.ts +0 -51
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.js +0 -37
- package/dist/client/rich-markdown-editor/RichMarkdownEditor.js.map +0 -1
- package/dist/client/rich-markdown-editor/RunId.d.ts +0 -28
- package/dist/client/rich-markdown-editor/RunId.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/RunId.js +0 -60
- package/dist/client/rich-markdown-editor/RunId.js.map +0 -1
- package/dist/client/rich-markdown-editor/SharedRichEditor.d.ts +0 -110
- package/dist/client/rich-markdown-editor/SharedRichEditor.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/SharedRichEditor.js +0 -144
- package/dist/client/rich-markdown-editor/SharedRichEditor.js.map +0 -1
- package/dist/client/rich-markdown-editor/SlashCommandMenu.d.ts +0 -41
- package/dist/client/rich-markdown-editor/SlashCommandMenu.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/SlashCommandMenu.js +0 -221
- package/dist/client/rich-markdown-editor/SlashCommandMenu.js.map +0 -1
- package/dist/client/rich-markdown-editor/extensions.d.ts +0 -178
- package/dist/client/rich-markdown-editor/extensions.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/extensions.js +0 -224
- package/dist/client/rich-markdown-editor/extensions.js.map +0 -1
- package/dist/client/rich-markdown-editor/gfmDoc.d.ts +0 -24
- package/dist/client/rich-markdown-editor/gfmDoc.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/gfmDoc.js +0 -83
- package/dist/client/rich-markdown-editor/gfmDoc.js.map +0 -1
- package/dist/client/rich-markdown-editor/surgical-apply.d.ts +0 -66
- package/dist/client/rich-markdown-editor/surgical-apply.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/surgical-apply.js +0 -147
- package/dist/client/rich-markdown-editor/surgical-apply.js.map +0 -1
- package/dist/client/rich-markdown-editor/useCollabReconcile.d.ts +0 -110
- package/dist/client/rich-markdown-editor/useCollabReconcile.d.ts.map +0 -1
- package/dist/client/rich-markdown-editor/useCollabReconcile.js +0 -441
- package/dist/client/rich-markdown-editor/useCollabReconcile.js.map +0 -1
|
@@ -31,41 +31,41 @@
|
|
|
31
31
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
32
32
|
"@radix-ui/react-popover": "^1.1.15",
|
|
33
33
|
"@tabler/icons-react": "catalog:",
|
|
34
|
-
"@tiptap/core": "
|
|
35
|
-
"@tiptap/extension-blockquote": "
|
|
36
|
-
"@tiptap/extension-bubble-menu": "
|
|
37
|
-
"@tiptap/extension-code-block-lowlight": "
|
|
38
|
-
"@tiptap/extension-collaboration": "
|
|
39
|
-
"@tiptap/extension-collaboration-caret": "
|
|
40
|
-
"@tiptap/extension-horizontal-rule": "
|
|
41
|
-
"@tiptap/extension-image": "
|
|
42
|
-
"@tiptap/extension-link": "
|
|
43
|
-
"@tiptap/extension-placeholder": "
|
|
44
|
-
"@tiptap/extension-table": "
|
|
45
|
-
"@tiptap/extension-table-cell": "
|
|
46
|
-
"@tiptap/extension-table-header": "
|
|
47
|
-
"@tiptap/extension-table-row": "
|
|
48
|
-
"@tiptap/extension-task-item": "
|
|
49
|
-
"@tiptap/extension-task-list": "
|
|
50
|
-
"@tiptap/pm": "
|
|
51
|
-
"@tiptap/react": "
|
|
52
|
-
"@tiptap/starter-kit": "
|
|
53
|
-
"@tiptap/y-tiptap": "
|
|
34
|
+
"@tiptap/core": "catalog:",
|
|
35
|
+
"@tiptap/extension-blockquote": "catalog:",
|
|
36
|
+
"@tiptap/extension-bubble-menu": "catalog:",
|
|
37
|
+
"@tiptap/extension-code-block-lowlight": "catalog:",
|
|
38
|
+
"@tiptap/extension-collaboration": "catalog:",
|
|
39
|
+
"@tiptap/extension-collaboration-caret": "catalog:",
|
|
40
|
+
"@tiptap/extension-horizontal-rule": "catalog:",
|
|
41
|
+
"@tiptap/extension-image": "catalog:",
|
|
42
|
+
"@tiptap/extension-link": "catalog:",
|
|
43
|
+
"@tiptap/extension-placeholder": "catalog:",
|
|
44
|
+
"@tiptap/extension-table": "catalog:",
|
|
45
|
+
"@tiptap/extension-table-cell": "catalog:",
|
|
46
|
+
"@tiptap/extension-table-header": "catalog:",
|
|
47
|
+
"@tiptap/extension-table-row": "catalog:",
|
|
48
|
+
"@tiptap/extension-task-item": "catalog:",
|
|
49
|
+
"@tiptap/extension-task-list": "catalog:",
|
|
50
|
+
"@tiptap/pm": "catalog:",
|
|
51
|
+
"@tiptap/react": "catalog:",
|
|
52
|
+
"@tiptap/starter-kit": "catalog:",
|
|
53
|
+
"@tiptap/y-tiptap": "catalog:",
|
|
54
54
|
"drizzle-orm": "^0.45.2",
|
|
55
55
|
"ffmpeg-static": "^5.3.0",
|
|
56
56
|
"h3": "catalog:",
|
|
57
|
-
"highlight.js": "
|
|
57
|
+
"highlight.js": "catalog:",
|
|
58
58
|
"isbot": "^5",
|
|
59
59
|
"katex": "0.17.0",
|
|
60
|
-
"lowlight": "
|
|
60
|
+
"lowlight": "catalog:",
|
|
61
61
|
"prosemirror-markdown": "^1.13.4",
|
|
62
62
|
"remark-mdx": "^3.1.1",
|
|
63
63
|
"remark-parse": "^11.0.0",
|
|
64
64
|
"remark-stringify": "^11.0.0",
|
|
65
|
-
"tiptap-markdown": "
|
|
65
|
+
"tiptap-markdown": "catalog:",
|
|
66
66
|
"unified": "^11.0.5",
|
|
67
|
-
"y-protocols": "
|
|
68
|
-
"yjs": "
|
|
67
|
+
"y-protocols": "catalog:",
|
|
68
|
+
"yjs": "catalog:",
|
|
69
69
|
"zod": "^4.3.6"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { useT
|
|
1
|
+
import { useT } from "@agent-native/core/client";
|
|
2
|
+
import { VisualTweakControl } from "@agent-native/toolkit/design-tweaks";
|
|
2
3
|
import type { TweakDefinition } from "@shared/api";
|
|
3
4
|
import {
|
|
4
5
|
IconX,
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
"@tailwindcss/typography": "^0.5.16",
|
|
71
71
|
"@tailwindcss/vite": "catalog:",
|
|
72
72
|
"@tanstack/react-query": "^5.99.2",
|
|
73
|
-
"@tiptap/extension-code-block-lowlight": "
|
|
74
|
-
"@tiptap/extension-image": "
|
|
75
|
-
"@tiptap/extension-link": "
|
|
76
|
-
"@tiptap/extension-placeholder": "
|
|
77
|
-
"@tiptap/pm": "
|
|
78
|
-
"@tiptap/react": "
|
|
79
|
-
"@tiptap/starter-kit": "
|
|
73
|
+
"@tiptap/extension-code-block-lowlight": "catalog:",
|
|
74
|
+
"@tiptap/extension-image": "catalog:",
|
|
75
|
+
"@tiptap/extension-link": "catalog:",
|
|
76
|
+
"@tiptap/extension-placeholder": "catalog:",
|
|
77
|
+
"@tiptap/pm": "catalog:",
|
|
78
|
+
"@tiptap/react": "catalog:",
|
|
79
|
+
"@tiptap/starter-kit": "catalog:",
|
|
80
80
|
"@types/node": "^24.2.1",
|
|
81
81
|
"@types/react": "catalog:",
|
|
82
82
|
"@types/react-dom": "catalog:",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"dotenv": "^17.3.1",
|
|
89
89
|
"drizzle-kit": "^0.31.10",
|
|
90
90
|
"globals": "^16.3.0",
|
|
91
|
-
"lowlight": "
|
|
91
|
+
"lowlight": "catalog:",
|
|
92
92
|
"motion": "^12.38.0",
|
|
93
93
|
"next-themes": "^0.4.6",
|
|
94
94
|
"oxfmt": "catalog:",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"sonner": "^2.0.7",
|
|
101
101
|
"tailwind-merge": "^3.5.0",
|
|
102
102
|
"tailwindcss": "catalog:",
|
|
103
|
-
"tiptap-markdown": "
|
|
103
|
+
"tiptap-markdown": "catalog:",
|
|
104
104
|
"tsx": "^4.20.3",
|
|
105
105
|
"typescript-7": "catalog:",
|
|
106
106
|
"vaul": "^1.1.2",
|
|
@@ -290,6 +290,8 @@ folding framework chrome into the product UI.
|
|
|
290
290
|
needs to operate the behavior. Keep the static wireframes in
|
|
291
291
|
`content.canvas`, add the aligned functional prototype in
|
|
292
292
|
`content.prototype`, and rely on the top visual tabs to switch between them.
|
|
293
|
+
When both surfaces are present, open the Wireframes tab by default; the
|
|
294
|
+
prototype remains available as the interactive follow-up view.
|
|
293
295
|
- **Prototype-first** when the user asks to operate the UI or when interaction is
|
|
294
296
|
the main question. Use `create-prototype-plan`, which still preserves static
|
|
295
297
|
mocks where useful.
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
type BlockDataChangeMeta,
|
|
5
5
|
} from "@agent-native/core/blocks";
|
|
6
6
|
import {
|
|
7
|
+
generateTabId,
|
|
8
|
+
useT,
|
|
9
|
+
useCollaborativeDoc,
|
|
10
|
+
type UseCollaborativeDocResult,
|
|
11
|
+
} from "@agent-native/core/client";
|
|
12
|
+
import {
|
|
13
|
+
applyDocSurgically,
|
|
7
14
|
DragHandle,
|
|
8
15
|
RICH_MARKDOWN_PROGRAMMATIC_TRANSACTION,
|
|
9
16
|
RunId,
|
|
10
17
|
SharedRichEditor,
|
|
11
|
-
generateTabId,
|
|
12
|
-
useT,
|
|
13
|
-
useCollaborativeDoc,
|
|
14
18
|
type DragHandleDropContext,
|
|
15
19
|
type DragHandleOptions,
|
|
16
20
|
type RichMarkdownCollabUser,
|
|
17
|
-
|
|
18
|
-
} from "@agent-native/core/client";
|
|
19
|
-
// `applyDocSurgically` is re-exported from the editor subpath barrel (the top
|
|
20
|
-
// `@agent-native/core/client` barrel doesn't surface the surgical helpers).
|
|
21
|
-
import { applyDocSurgically } from "@agent-native/core/client/editor";
|
|
21
|
+
} from "@agent-native/toolkit/editor";
|
|
22
22
|
import { isNotionCompatibleBlockType } from "@shared/notion-compat";
|
|
23
23
|
import {
|
|
24
24
|
createPlanBlockId,
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
buildRegistryBlockSlashItems,
|
|
4
4
|
getRegistryBlockSlashDescription,
|
|
5
5
|
getRegistryBlockSlashSearchText,
|
|
6
|
-
type SlashCommandItem,
|
|
7
6
|
} from "@agent-native/core/client";
|
|
7
|
+
import type { SlashCommandItem } from "@agent-native/toolkit/editor";
|
|
8
8
|
import { isNotionCompatibleBlockType } from "@shared/notion-compat";
|
|
9
9
|
import { createPlanBlockId } from "@shared/plan-content";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* The Tiptap editor handed to a slash command's `action`. Derived from the
|
|
12
|
+
* The Tiptap editor handed to a slash command's `action`. Derived from the Toolkit
|
|
13
13
|
* {@link SlashCommandItem} contract instead of importing `@tiptap/react`
|
|
14
14
|
* directly, so this file carries no extra tiptap dependency (the plan template
|
|
15
|
-
* uses tiptap
|
|
15
|
+
* uses tiptap through `@agent-native/toolkit/editor`).
|
|
16
16
|
*/
|
|
17
17
|
type SlashEditor = Parameters<SlashCommandItem["action"]>[0];
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ type SlashEditor = Parameters<SlashCommandItem["action"]>[0];
|
|
|
20
20
|
* The `insertTable` command is contributed by `@tiptap/extension-table`, which
|
|
21
21
|
* the shared editor registers at runtime but whose `ChainedCommands` type
|
|
22
22
|
* augmentation is not visible from this template (it has no direct tiptap
|
|
23
|
-
* dependency — tiptap is transitive through `@agent-native/
|
|
23
|
+
* dependency — tiptap is transitive through `@agent-native/toolkit/editor`). This
|
|
24
24
|
* narrow shape re-adds just that one command signature so the Table slash item
|
|
25
25
|
* stays type-safe without importing tiptap here.
|
|
26
26
|
*/
|
|
@@ -34,7 +34,7 @@ type TableChain = {
|
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Build the plan document editor's slash command list, returned in the exact
|
|
37
|
-
* shape the shared
|
|
37
|
+
* shape the shared Toolkit {@link SlashCommandItem} contract expects. `icon` is a
|
|
38
38
|
* short text glyph; `description` is compact visible copy; `searchText` carries
|
|
39
39
|
* raw block types and aliases. `SharedRichEditor`/`RichMarkdownEditor` forward
|
|
40
40
|
* this array to `SlashCommandMenu` via its `items` prop.
|
|
@@ -42,7 +42,7 @@ type TableChain = {
|
|
|
42
42
|
* Two tiers of commands:
|
|
43
43
|
* - Base prose commands (Text, Headings, lists, quote, code, divider, table,
|
|
44
44
|
* image) drive standard Tiptap chains — mirroring the content app's slash set
|
|
45
|
-
* but emitting the
|
|
45
|
+
* but emitting the Toolkit menu item type.
|
|
46
46
|
* - Registry block commands are derived from every `BlockSpec` whose
|
|
47
47
|
* `placement` includes `"block"`. Each inserts a `planBlock` node referencing
|
|
48
48
|
* the spec by `blockType` with a freshly minted `blockId`. The editor seeds
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
uploadEditorImage,
|
|
4
|
-
useT,
|
|
5
|
-
} from "@agent-native/core/client";
|
|
1
|
+
import { uploadEditorImage, useT } from "@agent-native/core/client";
|
|
2
|
+
import { SharedImage } from "@agent-native/toolkit/editor";
|
|
6
3
|
import {
|
|
7
4
|
NodeViewWrapper,
|
|
8
5
|
ReactNodeViewRenderer,
|
|
@@ -14,13 +11,13 @@ import { toast } from "sonner";
|
|
|
14
11
|
import { PlanImageViewer } from "./PlanImageViewer";
|
|
15
12
|
|
|
16
13
|
/**
|
|
17
|
-
* The plan editor's image node. It extends the shared
|
|
14
|
+
* The plan editor's image node. It extends the shared Toolkit `SharedImage` node —
|
|
18
15
|
* inheriting its byte-stable GFM `` serializer and the paste / drop /
|
|
19
16
|
* `/image` upload plugin — and adds a React node view so editor images get the
|
|
20
17
|
* same hover zoom button, lightbox, and three-dots menu (swap / download / copy)
|
|
21
18
|
* as the read-only reader and structured image blocks.
|
|
22
19
|
*
|
|
23
|
-
* Plans inject this via `extraExtensions` with `features.image` off, so the
|
|
20
|
+
* Plans inject this via `extraExtensions` with `features.image` off, so the shared
|
|
24
21
|
* default image node never coexists with it. Content keeps its own richer image
|
|
25
22
|
* node and is unaffected.
|
|
26
23
|
*/
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
RichMarkdownEditor,
|
|
3
|
-
useCollaborativeDoc,
|
|
4
2
|
generateTabId,
|
|
5
3
|
uploadEditorImage,
|
|
4
|
+
useCollaborativeDoc,
|
|
5
|
+
type CollabUser,
|
|
6
|
+
} from "@agent-native/core/client";
|
|
7
|
+
import {
|
|
6
8
|
createImageSlashCommand,
|
|
7
9
|
DEFAULT_SLASH_COMMANDS,
|
|
10
|
+
RichMarkdownEditor,
|
|
8
11
|
type RichMarkdownCollabUser,
|
|
9
|
-
|
|
10
|
-
} from "@agent-native/core/client";
|
|
12
|
+
} from "@agent-native/toolkit/editor";
|
|
11
13
|
import { useCallback, useEffect, useRef } from "react";
|
|
12
14
|
|
|
13
15
|
import { cn } from "@/lib/utils";
|
|
@@ -67,7 +67,7 @@ export function PlanVisualSurface({
|
|
|
67
67
|
? `${selectedDesignElement.frameId ?? ""}::${selectedDesignElement.blockId ?? ""}::${selectedDesignElement.elementId}`
|
|
68
68
|
: null;
|
|
69
69
|
const [tabValue, setTabValue] = useState<"prototype" | "wireframes">(
|
|
70
|
-
|
|
70
|
+
"wireframes",
|
|
71
71
|
);
|
|
72
72
|
const requestedTabValue =
|
|
73
73
|
requestedVisualMode === "prototype" || requestedVisualMode === "wireframes"
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"@fontsource-variable/vazirmatn": "^5.2.8",
|
|
23
23
|
"@libsql/client": "^0.15.8",
|
|
24
24
|
"@tabler/icons-react": "catalog:",
|
|
25
|
-
"@tiptap/core": "
|
|
26
|
-
"@tiptap/pm": "
|
|
27
|
-
"@tiptap/react": "
|
|
25
|
+
"@tiptap/core": "catalog:",
|
|
26
|
+
"@tiptap/pm": "catalog:",
|
|
27
|
+
"@tiptap/react": "catalog:",
|
|
28
28
|
"diff": "9.0.0",
|
|
29
29
|
"drizzle-orm": "^0.45.2",
|
|
30
30
|
"gray-matter": "^4.0.3",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { useT } from "@agent-native/core/client";
|
|
1
2
|
import {
|
|
2
|
-
useT,
|
|
3
3
|
VisualColorPicker,
|
|
4
4
|
VisualControlRow,
|
|
5
5
|
VisualInspectorPanel,
|
|
6
6
|
VisualInspectorSection,
|
|
7
7
|
VisualScrubInput,
|
|
8
8
|
VisualSegmentedControl,
|
|
9
|
-
} from "@agent-native/
|
|
9
|
+
} from "@agent-native/toolkit/design-tweaks";
|
|
10
10
|
import type { DesignSystemData } from "@shared/api";
|
|
11
11
|
import {
|
|
12
12
|
IconAlignCenter,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { useT } from "@agent-native/core/client";
|
|
1
2
|
import {
|
|
2
|
-
useT,
|
|
3
3
|
VisualInspectorPanel,
|
|
4
4
|
VisualInspectorSection,
|
|
5
5
|
VisualTweakControl,
|
|
6
|
-
} from "@agent-native/
|
|
6
|
+
} from "@agent-native/toolkit/design-tweaks";
|
|
7
7
|
import { IconAdjustmentsHorizontal, IconX } from "@tabler/icons-react";
|
|
8
8
|
|
|
9
9
|
import { Button } from "@/components/ui/button";
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"@google/genai": "^1.42.0",
|
|
29
29
|
"@libsql/client": "^0.15.0",
|
|
30
30
|
"@tabler/icons-react": "catalog:",
|
|
31
|
-
"@tiptap/core": "
|
|
32
|
-
"@tiptap/extension-collaboration": "
|
|
33
|
-
"@tiptap/extension-collaboration-caret": "
|
|
34
|
-
"@tiptap/extension-color": "
|
|
35
|
-
"@tiptap/extension-link": "
|
|
36
|
-
"@tiptap/extension-placeholder": "
|
|
37
|
-
"@tiptap/extension-text-style": "
|
|
38
|
-
"@tiptap/pm": "
|
|
39
|
-
"@tiptap/react": "
|
|
40
|
-
"@tiptap/starter-kit": "
|
|
41
|
-
"@tiptap/y-tiptap": "
|
|
31
|
+
"@tiptap/core": "catalog:",
|
|
32
|
+
"@tiptap/extension-collaboration": "catalog:",
|
|
33
|
+
"@tiptap/extension-collaboration-caret": "catalog:",
|
|
34
|
+
"@tiptap/extension-color": "catalog:",
|
|
35
|
+
"@tiptap/extension-link": "catalog:",
|
|
36
|
+
"@tiptap/extension-placeholder": "catalog:",
|
|
37
|
+
"@tiptap/extension-text-style": "catalog:",
|
|
38
|
+
"@tiptap/pm": "catalog:",
|
|
39
|
+
"@tiptap/react": "catalog:",
|
|
40
|
+
"@tiptap/starter-kit": "catalog:",
|
|
41
|
+
"@tiptap/y-tiptap": "catalog:",
|
|
42
42
|
"dom-to-pptx": "2.0.2",
|
|
43
43
|
"dompurify": "^3.3.1",
|
|
44
44
|
"dotenv": "^17.2.1",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"pptxgenjs": "4.0.1",
|
|
58
58
|
"react-markdown": "^10.1.0",
|
|
59
59
|
"rehype-raw": "^7.0.0",
|
|
60
|
-
"y-protocols": "
|
|
61
|
-
"yjs": "
|
|
60
|
+
"y-protocols": "catalog:",
|
|
61
|
+
"yjs": "catalog:",
|
|
62
62
|
"zod": "^4.3.6"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
package/dist/catalog.json
CHANGED
|
@@ -1,18 +1,56 @@
|
|
|
1
1
|
{
|
|
2
|
+
"@radix-ui/react-dialog": "^1.1.19",
|
|
3
|
+
"@radix-ui/react-dropdown-menu": "^2.1.20",
|
|
4
|
+
"@radix-ui/react-hover-card": "^1.1.19",
|
|
5
|
+
"@radix-ui/react-popover": "^1.1.19",
|
|
6
|
+
"@radix-ui/react-select": "^2.3.3",
|
|
7
|
+
"@radix-ui/react-tooltip": "^1.2.12",
|
|
8
|
+
"@tiptap/core": "3.28.0",
|
|
9
|
+
"@tiptap/extension-blockquote": "3.28.0",
|
|
10
|
+
"@tiptap/extension-bubble-menu": "3.28.0",
|
|
11
|
+
"@tiptap/extension-code-block-lowlight": "3.28.0",
|
|
12
|
+
"@tiptap/extension-collaboration": "3.28.0",
|
|
13
|
+
"@tiptap/extension-collaboration-caret": "3.28.0",
|
|
14
|
+
"@tiptap/extension-color": "3.28.0",
|
|
15
|
+
"@tiptap/extension-horizontal-rule": "3.28.0",
|
|
16
|
+
"@tiptap/extension-image": "3.28.0",
|
|
17
|
+
"@tiptap/extension-link": "3.28.0",
|
|
18
|
+
"@tiptap/extension-placeholder": "3.28.0",
|
|
19
|
+
"@tiptap/extension-table": "3.28.0",
|
|
20
|
+
"@tiptap/extension-table-cell": "3.28.0",
|
|
21
|
+
"@tiptap/extension-table-header": "3.28.0",
|
|
22
|
+
"@tiptap/extension-table-row": "3.28.0",
|
|
23
|
+
"@tiptap/extension-task-item": "3.28.0",
|
|
24
|
+
"@tiptap/extension-task-list": "3.28.0",
|
|
25
|
+
"@tiptap/extension-text-style": "3.28.0",
|
|
26
|
+
"@tiptap/pm": "3.28.0",
|
|
27
|
+
"@tiptap/react": "3.28.0",
|
|
28
|
+
"@tiptap/starter-kit": "3.28.0",
|
|
29
|
+
"@tiptap/y-tiptap": "3.0.7",
|
|
2
30
|
"@tabler/icons-react": "^3.41.1",
|
|
3
31
|
"@tailwindcss/vite": "^4.2.4",
|
|
4
32
|
"@types/react": "^19.2.14",
|
|
5
33
|
"@types/react-dom": "^19.2.3",
|
|
6
34
|
"@vitejs/plugin-react": "^6.0.3",
|
|
35
|
+
"clsx": "^2.1.1",
|
|
7
36
|
"h3": "^2.0.1-rc.20",
|
|
37
|
+
"highlight.js": "^11.11.1",
|
|
8
38
|
"listhen": "^1.9.1",
|
|
39
|
+
"lowlight": "^3.3.0",
|
|
40
|
+
"next-themes": "^0.4.6",
|
|
9
41
|
"oxfmt": "0.56.0",
|
|
10
42
|
"react": "^19.2.7",
|
|
11
43
|
"react-dom": "^19.2.7",
|
|
44
|
+
"recharts": "^3.9.2",
|
|
45
|
+
"sonner": "^2.0.7",
|
|
46
|
+
"tailwind-merge": "^3.5.0",
|
|
12
47
|
"tailwindcss": "^4.2.4",
|
|
48
|
+
"tiptap-markdown": "^0.9.0",
|
|
13
49
|
"tsx": "^4.20.3",
|
|
14
50
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
15
51
|
"typescript-7": "npm:typescript@^7.0.2",
|
|
16
52
|
"vite": "8.1.0",
|
|
17
|
-
"vitest": "^4.1.5"
|
|
53
|
+
"vitest": "^4.1.5",
|
|
54
|
+
"y-protocols": "^1.0.7",
|
|
55
|
+
"yjs": "^13.6.31"
|
|
18
56
|
}
|
package/dist/cli/create.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../src/cli/create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../src/cli/create.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAgCvE;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IACxC,YAAY,OAAO,EAAE,MAAM,EAG1B;CACF;AA6BD,MAAM,WAAW,gBAAgB;IAC/B,iFAAiF;IACjF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iFAAiF;IACjF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAsB,SAAS,CAC7B,IAAI,CAAC,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,gBAAgB,GACtB,OAAO,CAAC,IAAI,CAAC,CAwEf;AAwBD,iBAAS,uBAAuB;;;;;;;;EAsB/B;AAkMD,iBAAS,oCAAoC,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAa1E;AAiBD,iBAAe,qBAAqB,CAClC,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CA4Cf;AAiDD;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,CAAC,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,gBAAgB,GACtB,OAAO,CAAC,IAAI,CAAC,CA8Cf;AAoLD;;;;;;GAMG;AACH,iBAAe,mBAAmB,CAChC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CA4Cf;AAiBD,iBAAS,qBAAqB,CAC5B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GACX,MAAM,GAAG,SAAS,CAcpB;AA8DD;;;;GAIG;AACH,iBAAe,wBAAwB,CACrC,aAAa,EAAE,MAAM,EAAE,EACvB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAkFf;AAED;;;GAGG;AACH,iBAAS,qBAAqB,CAC5B,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,YAAY,CAAC,EAAE,MAAM,GACpB,IAAI,CA4HN;AAmLD;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,GACf;IAAE,aAAa,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAkB7D;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B,yCAAyC;AACzC,OAAO,EACL,qBAAqB,IAAI,sBAAsB,EAC/C,mBAAmB,IAAI,oBAAoB,EAC3C,wBAAwB,IAAI,yBAAyB,EACrD,qBAAqB,IAAI,sBAAsB,EAC/C,WAAW,IAAI,YAAY,EAC3B,kBAAkB,IAAI,mBAAmB,EACzC,eAAe,IAAI,gBAAgB,EACnC,kBAAkB,IAAI,mBAAmB,EACzC,wBAAwB,IAAI,yBAAyB,EACrD,4BAA4B,IAAI,6BAA6B,EAC7D,2BAA2B,IAAI,4BAA4B,EAC3D,oBAAoB,IAAI,qBAAqB,EAC7C,8BAA8B,IAAI,+BAA+B,EACjE,gBAAgB,IAAI,iBAAiB,EACrC,qBAAqB,IAAI,sBAAsB,EAC/C,oCAAoC,IAAI,qCAAqC,EAC7E,uBAAuB,IAAI,wBAAwB,EACnD,uBAAuB,IAAI,wBAAwB,EACnD,cAAc,IAAI,eAAe,GAClC,CAAC;AAcF,iBAAS,cAAc,CACrB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IAAE,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAAO,GAC5C,MAAM,EAAE,CAQV;AAkHD,iBAAS,gBAAgB,CACvB,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,QAAQ,GAAG,KAAK,GACrB,MAAM,CAER;AAiED;;;;;GAKG;AACH,iBAAS,WAAW,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA+B7C;AAiCD,iBAAS,kBAAkB,CACzB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,MAAM,GACpB,IAAI,CAsBN;AAyBD,iBAAS,wBAAwB,IAAI,MAAM,CAW1C;AAED,iBAAS,4BAA4B,IAAI,MAAM,CAO9C;AAED,iBAAS,2BAA2B,IAAI,MAAM,CAO7C;AAgDD;;;;;;;;;;;;;GAaG;AACH,iBAAS,8BAA8B,IAAI,MAAM,EAAE,CAQlD;AAED;;qDAEqD;AACrD,iBAAS,oBAAoB,IAAI,MAAM,CAEtC;AAuID,iBAAS,kBAAkB,CACzB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,YAAY,GAAG,WAAW,GAC/B,IAAI,CA8CN;AAkHD,iBAAS,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI1C;AAyED,iBAAS,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAsCxE"}
|
package/dist/cli/create.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { execFile, execFileSync } from "child_process";
|
|
2
2
|
import fs from "fs";
|
|
3
|
+
import os from "os";
|
|
3
4
|
import path from "path";
|
|
4
5
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
5
6
|
import { DISPATCH_WORKSPACE_ROOT_REDIRECTS, getWorkspaceAppIdValidationError, } from "../shared/workspace-app-id.js";
|
|
@@ -33,6 +34,7 @@ const FIRST_PARTY_TARBALL_SYMLINK_EXCLUDES = [
|
|
|
33
34
|
"*/CLAUDE.md",
|
|
34
35
|
"*/.claude/skills",
|
|
35
36
|
];
|
|
37
|
+
const localPackageTarballs = new Map();
|
|
36
38
|
/**
|
|
37
39
|
* Tagged error for input that fails CLI-level validation (repo names, app
|
|
38
40
|
* names, etc.). The Sentry `beforeSend` hook in cli/index.ts drops events
|
|
@@ -717,6 +719,33 @@ function findLocalPackage(name) {
|
|
|
717
719
|
}
|
|
718
720
|
return undefined;
|
|
719
721
|
}
|
|
722
|
+
/**
|
|
723
|
+
* Pack a local framework package before linking it into a generated app.
|
|
724
|
+
* Raw file: dependencies retain workspace-only catalog references, while a
|
|
725
|
+
* packed artifact has the publish-ready manifest that consumers receive.
|
|
726
|
+
*/
|
|
727
|
+
function localPackageTarball(packageDir) {
|
|
728
|
+
const cached = localPackageTarballs.get(packageDir);
|
|
729
|
+
if (cached)
|
|
730
|
+
return cached;
|
|
731
|
+
const packDir = fs.mkdtempSync(path.join(os.tmpdir(), "agent-native-local-package-"));
|
|
732
|
+
const pnpm = process.platform === "win32" ? "pnpm.cmd" : "pnpm";
|
|
733
|
+
execFileSync(pnpm, ["pack", "--pack-destination", packDir], {
|
|
734
|
+
cwd: packageDir,
|
|
735
|
+
encoding: "utf-8",
|
|
736
|
+
env: { ...process.env, npm_config_ignore_scripts: "true" },
|
|
737
|
+
stdio: "pipe",
|
|
738
|
+
});
|
|
739
|
+
const tarballs = fs
|
|
740
|
+
.readdirSync(packDir)
|
|
741
|
+
.filter((entry) => entry.endsWith(".tgz"));
|
|
742
|
+
if (tarballs.length !== 1) {
|
|
743
|
+
throw new Error(`Expected one packed local package artifact in ${packDir}, found ${tarballs.length}.`);
|
|
744
|
+
}
|
|
745
|
+
const tarball = pathToFileURL(path.join(packDir, tarballs[0])).href;
|
|
746
|
+
localPackageTarballs.set(packageDir, tarball);
|
|
747
|
+
return tarball;
|
|
748
|
+
}
|
|
720
749
|
/**
|
|
721
750
|
* Scaffold internal workspace packages required by the selected templates.
|
|
722
751
|
* Deduplicates so each package is only copied once even if multiple
|
|
@@ -1362,7 +1391,7 @@ function getCoreDependencyVersion() {
|
|
|
1362
1391
|
if (process.env.AGENT_NATIVE_CREATE_USE_LOCAL_CORE === "1") {
|
|
1363
1392
|
const localCore = findLocalPackage("core");
|
|
1364
1393
|
if (localCore)
|
|
1365
|
-
return
|
|
1394
|
+
return localPackageTarball(localCore);
|
|
1366
1395
|
}
|
|
1367
1396
|
// Generated apps must install before the current package version is
|
|
1368
1397
|
// published. The dist-tag resolves to the newest released core today and to
|
|
@@ -1382,7 +1411,7 @@ function getToolkitDependencyVersion() {
|
|
|
1382
1411
|
if (process.env.AGENT_NATIVE_CREATE_USE_LOCAL_CORE === "1") {
|
|
1383
1412
|
const localToolkit = findLocalPackage("toolkit");
|
|
1384
1413
|
if (localToolkit)
|
|
1385
|
-
return
|
|
1414
|
+
return localPackageTarball(localToolkit);
|
|
1386
1415
|
}
|
|
1387
1416
|
return "latest";
|
|
1388
1417
|
}
|
|
@@ -1390,7 +1419,7 @@ function localToolkitOverride() {
|
|
|
1390
1419
|
if (process.env.AGENT_NATIVE_CREATE_USE_LOCAL_CORE !== "1")
|
|
1391
1420
|
return null;
|
|
1392
1421
|
const localToolkit = findLocalPackage("toolkit");
|
|
1393
|
-
return localToolkit ?
|
|
1422
|
+
return localToolkit ? localPackageTarball(localToolkit) : null;
|
|
1394
1423
|
}
|
|
1395
1424
|
function localRecapCliOverride() {
|
|
1396
1425
|
if (process.env.AGENT_NATIVE_CREATE_USE_LOCAL_CORE !== "1")
|