@agent-native/core 0.68.2 → 0.69.0
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 +1 -1
- package/corpus/core/CHANGELOG.md +12 -0
- package/corpus/core/docs/content/template-clips.md +12 -7
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/client/AgentPanel.tsx +2 -4
- package/corpus/core/src/extensions/content-patch.ts +12 -2
- package/corpus/core/src/extensions/web-search-tool.ts +45 -4
- package/corpus/core/src/secrets/register-framework-secrets.ts +7 -0
- package/corpus/core/src/server/social-og-image.ts +6 -1
- package/corpus/core/src/vite/client.ts +83 -1
- package/corpus/templates/clips/app/components/recorder/pre-record-panel.tsx +69 -13
- package/corpus/templates/clips/app/components/recorder/recorder-engine.ts +38 -2
- package/corpus/templates/clips/app/lib/capture-install-options.ts +2 -1
- package/corpus/templates/clips/app/lib/recorder-preferences.ts +67 -0
- package/corpus/templates/clips/app/routes/_app.trash.tsx +21 -0
- package/corpus/templates/clips/app/routes/record.tsx +14 -3
- package/corpus/templates/clips/chrome-extension/STORE_DRAFT.md +5 -2
- package/corpus/templates/content/vite.config.ts +37 -1
- package/corpus/templates/content/vitest.config.ts +3 -0
- package/dist/client/AgentPanel.d.ts +1 -1
- package/dist/client/AgentPanel.d.ts.map +1 -1
- package/dist/client/AgentPanel.js +1 -1
- package/dist/client/AgentPanel.js.map +1 -1
- package/dist/extensions/content-patch.d.ts.map +1 -1
- package/dist/extensions/content-patch.js +10 -2
- package/dist/extensions/content-patch.js.map +1 -1
- package/dist/extensions/web-search-tool.d.ts +5 -3
- package/dist/extensions/web-search-tool.d.ts.map +1 -1
- package/dist/extensions/web-search-tool.js +36 -4
- package/dist/extensions/web-search-tool.js.map +1 -1
- package/dist/secrets/register-framework-secrets.d.ts.map +1 -1
- package/dist/secrets/register-framework-secrets.js +6 -0
- package/dist/secrets/register-framework-secrets.js.map +1 -1
- package/dist/server/social-og-image.d.ts.map +1 -1
- package/dist/server/social-og-image.js +5 -1
- package/dist/server/social-og-image.js.map +1 -1
- package/dist/vite/client.d.ts.map +1 -1
- package/dist/vite/client.js +83 -1
- package/dist/vite/client.js.map +1 -1
- package/docs/content/template-clips.md +12 -7
- package/package.json +1 -1
package/dist/vite/client.js
CHANGED
|
@@ -1056,6 +1056,87 @@ function ssrStubPlugin(packages) {
|
|
|
1056
1056
|
return null;
|
|
1057
1057
|
const stubbed = new Set(packages);
|
|
1058
1058
|
const STUB_ID = "\0agent-native-ssr-stub";
|
|
1059
|
+
const namedExports = [
|
|
1060
|
+
"ActionBarPrimitive",
|
|
1061
|
+
"AllSelection",
|
|
1062
|
+
"Array",
|
|
1063
|
+
"AssistantRuntimeProvider",
|
|
1064
|
+
"Awareness",
|
|
1065
|
+
"BranchPickerPrimitive",
|
|
1066
|
+
"BubbleMenu",
|
|
1067
|
+
"CodeBlockLowlight",
|
|
1068
|
+
"Collaboration",
|
|
1069
|
+
"CollaborationCaret",
|
|
1070
|
+
"ComposerPrimitive",
|
|
1071
|
+
"CompositeAttachmentAdapter",
|
|
1072
|
+
"DOMParser",
|
|
1073
|
+
"Decoration",
|
|
1074
|
+
"DecorationSet",
|
|
1075
|
+
"Editor",
|
|
1076
|
+
"EditorContent",
|
|
1077
|
+
"Extension",
|
|
1078
|
+
"FitAddon",
|
|
1079
|
+
"Fragment",
|
|
1080
|
+
"Image",
|
|
1081
|
+
"Link",
|
|
1082
|
+
"Map",
|
|
1083
|
+
"Markdown",
|
|
1084
|
+
"Mark",
|
|
1085
|
+
"MessagePrimitive",
|
|
1086
|
+
"Node",
|
|
1087
|
+
"NodeSelection",
|
|
1088
|
+
"NodeViewContent",
|
|
1089
|
+
"NodeViewWrapper",
|
|
1090
|
+
"Placeholder",
|
|
1091
|
+
"Plugin",
|
|
1092
|
+
"PluginKey",
|
|
1093
|
+
"ReactNodeViewRenderer",
|
|
1094
|
+
"Selection",
|
|
1095
|
+
"SimpleImageAttachmentAdapter",
|
|
1096
|
+
"SimpleTextAttachmentAdapter",
|
|
1097
|
+
"StarterKit",
|
|
1098
|
+
"Table",
|
|
1099
|
+
"TableCell",
|
|
1100
|
+
"TableHeader",
|
|
1101
|
+
"TableRow",
|
|
1102
|
+
"TaskItem",
|
|
1103
|
+
"TaskList",
|
|
1104
|
+
"Terminal",
|
|
1105
|
+
"TextSelection",
|
|
1106
|
+
"ThreadPrimitive",
|
|
1107
|
+
"WebLinksAddon",
|
|
1108
|
+
"captureException",
|
|
1109
|
+
"common",
|
|
1110
|
+
"createLowlight",
|
|
1111
|
+
"defaultUrlTransform",
|
|
1112
|
+
"extensions",
|
|
1113
|
+
"findTable",
|
|
1114
|
+
"format",
|
|
1115
|
+
"Doc",
|
|
1116
|
+
"getHTMLFromFragment",
|
|
1117
|
+
"getIsolationScope",
|
|
1118
|
+
"init",
|
|
1119
|
+
"isChangeOrigin",
|
|
1120
|
+
"mergeAttributes",
|
|
1121
|
+
"renderToString",
|
|
1122
|
+
"applyUpdate",
|
|
1123
|
+
"encodeStateVector",
|
|
1124
|
+
"encodeStateAsUpdate",
|
|
1125
|
+
"mergeUpdates",
|
|
1126
|
+
"useAui",
|
|
1127
|
+
"useComposer",
|
|
1128
|
+
"useComposerRuntime",
|
|
1129
|
+
"useCurrentEditor",
|
|
1130
|
+
"useEditor",
|
|
1131
|
+
"useLocalRuntime",
|
|
1132
|
+
"useMessagePartText",
|
|
1133
|
+
"useMessageRuntime",
|
|
1134
|
+
"useThread",
|
|
1135
|
+
"useThreadRuntime",
|
|
1136
|
+
"withScope",
|
|
1137
|
+
"XmlFragment",
|
|
1138
|
+
"XmlText",
|
|
1139
|
+
];
|
|
1059
1140
|
return {
|
|
1060
1141
|
name: "agent-native-ssr-stub-heavy-libs",
|
|
1061
1142
|
enforce: "pre",
|
|
@@ -1083,7 +1164,8 @@ function ssrStubPlugin(packages) {
|
|
|
1083
1164
|
"return new Proxy(() => {}, handler); " +
|
|
1084
1165
|
"} };" +
|
|
1085
1166
|
"const stub = new Proxy(() => {}, handler);" +
|
|
1086
|
-
"export default stub;"
|
|
1167
|
+
"export default stub;" +
|
|
1168
|
+
namedExports.map((name) => `export const ${name} = stub;`).join(""));
|
|
1087
1169
|
},
|
|
1088
1170
|
};
|
|
1089
1171
|
}
|