human2ai 0.1.6 → 0.1.8
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/README.en.md +1 -1
- package/README.md +1 -1
- package/dist/cli/main.js +74 -3
- package/dist/cli/main.js.map +1 -1
- package/dist/database/draft-version-errors.d.ts +6 -0
- package/dist/database/draft-version-errors.js +11 -0
- package/dist/database/draft-version-errors.js.map +1 -1
- package/dist/database/draft-version-store.js +17 -2
- package/dist/database/draft-version-store.js.map +1 -1
- package/dist/database/image-asset-repository.d.ts +5 -0
- package/dist/database/image-asset-repository.js +22 -4
- package/dist/database/image-asset-repository.js.map +1 -1
- package/dist/database/migrate.js +2 -0
- package/dist/database/migrate.js.map +1 -1
- package/dist/database/project-session-repository.d.ts +12 -1
- package/dist/database/project-session-repository.js +48 -11
- package/dist/database/project-session-repository.js.map +1 -1
- package/dist/database/session-preview-validation.js +37 -4
- package/dist/database/session-preview-validation.js.map +1 -1
- package/dist/database/session-storage-repository.d.ts +35 -0
- package/dist/database/session-storage-repository.js +281 -0
- package/dist/database/session-storage-repository.js.map +1 -0
- package/dist/database/ui-sketch-png-split-repository.d.ts +13 -0
- package/dist/database/ui-sketch-png-split-repository.js +123 -0
- package/dist/database/ui-sketch-png-split-repository.js.map +1 -0
- package/dist/database/workspace-settings-repository.d.ts +10 -0
- package/dist/database/workspace-settings-repository.js +30 -0
- package/dist/database/workspace-settings-repository.js.map +1 -0
- package/dist/domain/composition/clipboard.d.ts +3 -0
- package/dist/domain/composition/clipboard.js +30 -0
- package/dist/domain/composition/clipboard.js.map +1 -0
- package/dist/domain/composition/index.d.ts +1 -0
- package/dist/domain/composition/index.js +1 -0
- package/dist/domain/composition/index.js.map +1 -1
- package/dist/domain/session/canvas-edit-history.d.ts +2 -0
- package/dist/domain/session/canvas-edit-history.js +4 -0
- package/dist/domain/session/canvas-edit-history.js.map +1 -1
- package/dist/domain/session/capabilities.js +14 -0
- package/dist/domain/session/capabilities.js.map +1 -1
- package/dist/domain/session/storage.d.ts +22 -0
- package/dist/domain/session/storage.js +10 -0
- package/dist/domain/session/storage.js.map +1 -0
- package/dist/domain/session/types.d.ts +4 -0
- package/dist/domain/ui-sketch/clipboard.d.ts +2 -0
- package/dist/domain/ui-sketch/clipboard.js +21 -1
- package/dist/domain/ui-sketch/clipboard.js.map +1 -1
- package/dist/domain/ui-sketch/draft.js +22 -0
- package/dist/domain/ui-sketch/draft.js.map +1 -1
- package/dist/domain/ui-sketch/index.d.ts +1 -1
- package/dist/domain/ui-sketch/index.js +1 -1
- package/dist/domain/ui-sketch/index.js.map +1 -1
- package/dist/domain/ui-sketch/png-canvas.d.ts +25 -0
- package/dist/domain/ui-sketch/png-canvas.js +78 -0
- package/dist/domain/ui-sketch/png-canvas.js.map +1 -0
- package/dist/domain/ui-sketch/png-split-regions.d.ts +7 -0
- package/dist/domain/ui-sketch/png-split-regions.js +40 -0
- package/dist/domain/ui-sketch/png-split-regions.js.map +1 -0
- package/dist/domain/ui-sketch/png-split.d.ts +49 -0
- package/dist/domain/ui-sketch/png-split.js +39 -0
- package/dist/domain/ui-sketch/png-split.js.map +1 -0
- package/dist/domain/ui-sketch/transparent-png.d.ts +50 -0
- package/dist/domain/ui-sketch/transparent-png.js +178 -0
- package/dist/domain/ui-sketch/transparent-png.js.map +1 -0
- package/dist/domain/ui-sketch/types.d.ts +2 -0
- package/dist/server/app.d.ts +7 -1
- package/dist/server/app.js +21 -0
- package/dist/server/app.js.map +1 -1
- package/dist/server/routes/draft-version-routes.js +12 -3
- package/dist/server/routes/draft-version-routes.js.map +1 -1
- package/dist/server/routes/project-sessions.js +14 -0
- package/dist/server/routes/project-sessions.js.map +1 -1
- package/dist/server/routes/storage-protection.d.ts +3 -0
- package/dist/server/routes/storage-protection.js +29 -0
- package/dist/server/routes/storage-protection.js.map +1 -0
- package/dist/server/routes/ui-sketch-png-splits.d.ts +4 -0
- package/dist/server/routes/ui-sketch-png-splits.js +42 -0
- package/dist/server/routes/ui-sketch-png-splits.js.map +1 -0
- package/dist/server/routes/workspace-settings.d.ts +3 -0
- package/dist/server/routes/workspace-settings.js +25 -0
- package/dist/server/routes/workspace-settings.js.map +1 -0
- package/dist/server/runtime.js +8 -1
- package/dist/server/runtime.js.map +1 -1
- package/dist/server/session-preview-service.js +7 -4
- package/dist/server/session-preview-service.js.map +1 -1
- package/dist/server/storage-maintenance-service.d.ts +6 -0
- package/dist/server/storage-maintenance-service.js +65 -0
- package/dist/server/storage-maintenance-service.js.map +1 -0
- package/locales/en/common.json +68 -4
- package/migrations/0012_ui_sketch_png_splits.sql +6 -0
- package/migrations/0013_storage_retention.sql +43 -0
- package/migrations/0014_workspace_settings_and_trash.sql +11 -0
- package/package.json +1 -1
- package/schemas/ui-sketch-draft.schema.json +173 -0
- package/skills/human2ai/SKILL.md +8 -2
- package/skills/human2ai/references/ui-extraction-prompt.txt +41 -0
- package/skills/human2ai/references/ui-extraction.md +38 -0
- package/skills/human2ai/references/ui-layout.md +22 -0
- package/web/out/404/index.html +1 -1
- package/web/out/404.html +1 -1
- package/web/out/__next.__PAGE__.txt +8 -8
- package/web/out/__next._full.txt +8 -8
- package/web/out/__next._tree.txt +4 -4
- package/web/out/_next/static/chunks/327-3dba8bbcb4bcb1fc.js +1 -0
- package/web/out/_next/static/chunks/868-6a413fc8c52cf6df.js +1 -0
- package/web/out/_next/static/chunks/{164-d8dd2b053f27bf62.js → 989-6d7aa6a22a75f7de.js} +61 -61
- package/web/out/_next/static/chunks/app/_not-found/{page-742cf440bebb3b9b.js → page-fddf8e0980e10cc5.js} +1 -1
- package/web/out/_next/static/chunks/app/composition/page-f810843a0f114d13.js +1 -0
- package/web/out/_next/static/chunks/app/layout-9c5f0b5667b84400.js +1 -0
- package/web/out/_next/static/chunks/app/{page-9b8bd42a93c9242c.js → page-29cacabbd1c90b6f.js} +1 -1
- package/web/out/_next/static/chunks/app/spatial/page-014875456f84d8fa.js +1 -0
- package/web/out/_next/static/chunks/app/styles/page-1077a7decb9be158.js +1 -0
- package/web/out/_next/static/chunks/app/ui-sketch/page-ea382541f80cad0d.js +1 -0
- package/web/out/_next/static/chunks/{main-app-5419a575f3ff4496.js → main-app-9985b291e50ea69b.js} +1 -1
- package/web/out/_next/static/chunks/next/dist/client/components/builtin/global-error-1193cefa6c9c6179.js +1 -0
- package/web/out/_next/static/chunks/{webpack-e781b4e158568ba0.js → webpack-cfe3662bbaa8d6ce.js} +1 -1
- package/web/out/_next/static/css/04c7fcbfa9004e04.css +1 -0
- package/web/out/_next/static/css/15abfc5e59099f48.css +1 -0
- package/web/out/_next/static/css/{210db1811016f805.css → 5062b0bcc3118ed8.css} +1 -1
- package/web/out/_next/static/css/57ecc433cb654a57.css +1 -0
- package/web/out/_next/static/css/7a62016f8918890b.css +5 -0
- package/web/out/_not-found/__next._full.txt +7 -7
- package/web/out/_not-found/__next._not-found.__PAGE__.txt +7 -7
- package/web/out/_not-found/__next._tree.txt +4 -4
- package/web/out/_not-found/index.html +1 -1
- package/web/out/_not-found/index.txt +7 -7
- package/web/out/composition/__next._full.txt +9 -9
- package/web/out/composition/__next._tree.txt +5 -5
- package/web/out/composition/__next.composition.__PAGE__.txt +9 -9
- package/web/out/composition/index.html +1 -1
- package/web/out/composition/index.txt +9 -9
- package/web/out/index.html +1 -1
- package/web/out/index.txt +8 -8
- package/web/out/spatial/__next._full.txt +8 -8
- package/web/out/spatial/__next._tree.txt +4 -4
- package/web/out/spatial/__next.spatial.__PAGE__.txt +8 -8
- package/web/out/spatial/index.html +1 -1
- package/web/out/spatial/index.txt +8 -8
- package/web/out/styles/__next._full.txt +8 -8
- package/web/out/styles/__next._tree.txt +4 -4
- package/web/out/styles/__next.styles.__PAGE__.txt +8 -8
- package/web/out/styles/index.html +1 -1
- package/web/out/styles/index.txt +8 -8
- package/web/out/ui-sketch/__next._full.txt +9 -9
- package/web/out/ui-sketch/__next._tree.txt +5 -5
- package/web/out/ui-sketch/__next.ui-sketch.__PAGE__.txt +9 -9
- package/web/out/ui-sketch/index.html +1 -1
- package/web/out/ui-sketch/index.txt +9 -9
- package/web/out/_next/static/chunks/348-6baeec6b3dbf02ab.js +0 -1
- package/web/out/_next/static/chunks/app/composition/page-8d037a4b99bb5546.js +0 -1
- package/web/out/_next/static/chunks/app/layout-ca2f61a5a618caea.js +0 -1
- package/web/out/_next/static/chunks/app/spatial/page-1d16089ca24b2eb8.js +0 -1
- package/web/out/_next/static/chunks/app/styles/page-e4d3c95957349351.js +0 -1
- package/web/out/_next/static/chunks/app/ui-sketch/page-23e5c3b12d99082c.js +0 -1
- package/web/out/_next/static/chunks/next/dist/client/components/builtin/global-error-15f5118ed5e001a8.js +0 -1
- package/web/out/_next/static/css/2160a6bbf2cb551c.css +0 -1
- package/web/out/_next/static/css/28a4978acacc40b0.css +0 -1
- package/web/out/_next/static/css/2a0db06638359895.css +0 -1
- package/web/out/_next/static/css/4b1f9941c214d619.css +0 -5
- /package/web/out/_next/static/{MtSBeMOcAQHxKAV1fmedM → SiEWNIZfGL4sShRQt9h5W}/_buildManifest.js +0 -0
- /package/web/out/_next/static/{MtSBeMOcAQHxKAV1fmedM → SiEWNIZfGL4sShRQt9h5W}/_ssgManifest.js +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[1076,[],"ClientPageRoot"]
|
|
3
|
-
3:I[56845,["460","static/chunks/83607670-fd2f339702a222e4.js","746","static/chunks/c3f2cda1-ef85a0897724e46b.js","
|
|
3
|
+
3:I[56845,["460","static/chunks/83607670-fd2f339702a222e4.js","746","static/chunks/c3f2cda1-ef85a0897724e46b.js","989","static/chunks/989-6d7aa6a22a75f7de.js","653","static/chunks/653-6dfb97fec9a2d91b.js","868","static/chunks/868-6a413fc8c52cf6df.js","974","static/chunks/app/page-29cacabbd1c90b6f.js"],"default"]
|
|
4
4
|
6:I[31872,[],"OutletBoundary"]
|
|
5
5
|
7:"$Sreact.suspense"
|
|
6
6
|
b:I[31872,[],"ViewportBoundary"]
|
|
7
7
|
c:I[31872,[],"MetadataBoundary"]
|
|
8
8
|
d:I[12569,[],"IconMark"]
|
|
9
|
-
f:I[84954,["460","static/chunks/83607670-fd2f339702a222e4.js","746","static/chunks/c3f2cda1-ef85a0897724e46b.js","
|
|
10
|
-
10:I[
|
|
9
|
+
f:I[84954,["460","static/chunks/83607670-fd2f339702a222e4.js","746","static/chunks/c3f2cda1-ef85a0897724e46b.js","989","static/chunks/989-6d7aa6a22a75f7de.js","653","static/chunks/653-6dfb97fec9a2d91b.js","868","static/chunks/868-6a413fc8c52cf6df.js","177","static/chunks/app/layout-9c5f0b5667b84400.js"],"AppI18nProvider"]
|
|
10
|
+
10:I[60868,["460","static/chunks/83607670-fd2f339702a222e4.js","746","static/chunks/c3f2cda1-ef85a0897724e46b.js","989","static/chunks/989-6d7aa6a22a75f7de.js","653","static/chunks/653-6dfb97fec9a2d91b.js","868","static/chunks/868-6a413fc8c52cf6df.js","177","static/chunks/app/layout-9c5f0b5667b84400.js"],"Human2AiShellLayout"]
|
|
11
11
|
11:I[91133,[],""]
|
|
12
12
|
12:I[4297,[],""]
|
|
13
|
-
13:I[66999,["460","static/chunks/83607670-fd2f339702a222e4.js","746","static/chunks/c3f2cda1-ef85a0897724e46b.js","
|
|
13
|
+
13:I[66999,["460","static/chunks/83607670-fd2f339702a222e4.js","746","static/chunks/c3f2cda1-ef85a0897724e46b.js","989","static/chunks/989-6d7aa6a22a75f7de.js","653","static/chunks/653-6dfb97fec9a2d91b.js","868","static/chunks/868-6a413fc8c52cf6df.js","177","static/chunks/app/layout-9c5f0b5667b84400.js"],"YisiUiInspectorHost"]
|
|
14
14
|
:HL["/_next/static/css/c39f5ecbfc8cb532.css","style"]
|
|
15
|
-
:HL["/_next/static/css/
|
|
16
|
-
:HL["/_next/static/css/
|
|
15
|
+
:HL["/_next/static/css/7a62016f8918890b.css","style"]
|
|
16
|
+
:HL["/_next/static/css/5062b0bcc3118ed8.css","style"]
|
|
17
17
|
:HL["/_next/static/css/9c61ee5fe683073a.css","style"]
|
|
18
|
-
:HL["/_next/static/css/
|
|
18
|
+
:HL["/_next/static/css/57ecc433cb654a57.css","style"]
|
|
19
19
|
a:X
|
|
20
|
-
0:{"buildId":"
|
|
20
|
+
0:{"buildId":"SiEWNIZfGL4sShRQt9h5W","data":[{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/c39f5ecbfc8cb532.css","precedence":"next"}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"isPartial":"$@9","staleTime":"$a","varyParams":null},{"rsc":["$","$1","h",{"children":[null,["$","$Lb",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$Lc",null,{"children":["$","$7",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"以形塑形"}],["$","meta","1",{"name":"description","content":"使用基础图形规划画面重心、主体占比与视觉方向。"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?b6ae9b6fb57ae2e1","type":"image/x-icon","sizes":"16x16"}],["$","link","3",{"rel":"icon","href":"/icon.svg?050a111322f3f309","type":"image/svg+xml","sizes":"any"}],["$","$Ld","4",{}]]}]}]}],null]}],"isPartial":"$@e","staleTime":"$a","varyParams":null},{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a62016f8918890b.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/5062b0bcc3118ed8.css","precedence":"next"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/9c61ee5fe683073a.css","precedence":"next"}],["$","link","3",{"rel":"stylesheet","href":"/_next/static/css/57ecc433cb654a57.css","precedence":"next"}]],["$","html",null,{"lang":"zh-CN","children":["$","body",null,{"children":[["$","$Lf",null,{"children":["$","$L10",null,{"children":["$","$L11",null,{"parallelRouterKey":"children","template":["$","$L12",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}],["$","$L13",null,{}]]}]}]]}],"isPartial":"$@14","staleTime":"$a","varyParams":null}],"isUpgradeableISRFallback":false,"a":"$@15","rootVaryParams":null,"needsRuntimeRequest":"$@16"}
|
|
21
21
|
4:{}
|
|
22
22
|
5:"$0:data:0:rsc:props:children:0:props:serverProvidedParams:params"
|
|
23
23
|
8:null
|
package/web/out/__next._full.txt
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[84954,["460","static/chunks/83607670-fd2f339702a222e4.js","746","static/chunks/c3f2cda1-ef85a0897724e46b.js","
|
|
3
|
-
3:I[
|
|
2
|
+
2:I[84954,["460","static/chunks/83607670-fd2f339702a222e4.js","746","static/chunks/c3f2cda1-ef85a0897724e46b.js","989","static/chunks/989-6d7aa6a22a75f7de.js","653","static/chunks/653-6dfb97fec9a2d91b.js","868","static/chunks/868-6a413fc8c52cf6df.js","177","static/chunks/app/layout-9c5f0b5667b84400.js"],"AppI18nProvider"]
|
|
3
|
+
3:I[60868,["460","static/chunks/83607670-fd2f339702a222e4.js","746","static/chunks/c3f2cda1-ef85a0897724e46b.js","989","static/chunks/989-6d7aa6a22a75f7de.js","653","static/chunks/653-6dfb97fec9a2d91b.js","868","static/chunks/868-6a413fc8c52cf6df.js","177","static/chunks/app/layout-9c5f0b5667b84400.js"],"Human2AiShellLayout"]
|
|
4
4
|
4:I[91133,[],""]
|
|
5
5
|
5:I[4297,[],""]
|
|
6
|
-
6:I[66999,["460","static/chunks/83607670-fd2f339702a222e4.js","746","static/chunks/c3f2cda1-ef85a0897724e46b.js","
|
|
6
|
+
6:I[66999,["460","static/chunks/83607670-fd2f339702a222e4.js","746","static/chunks/c3f2cda1-ef85a0897724e46b.js","989","static/chunks/989-6d7aa6a22a75f7de.js","653","static/chunks/653-6dfb97fec9a2d91b.js","868","static/chunks/868-6a413fc8c52cf6df.js","177","static/chunks/app/layout-9c5f0b5667b84400.js"],"YisiUiInspectorHost"]
|
|
7
7
|
7:I[1076,[],"ClientPageRoot"]
|
|
8
|
-
8:I[56845,["460","static/chunks/83607670-fd2f339702a222e4.js","746","static/chunks/c3f2cda1-ef85a0897724e46b.js","
|
|
8
|
+
8:I[56845,["460","static/chunks/83607670-fd2f339702a222e4.js","746","static/chunks/c3f2cda1-ef85a0897724e46b.js","989","static/chunks/989-6d7aa6a22a75f7de.js","653","static/chunks/653-6dfb97fec9a2d91b.js","868","static/chunks/868-6a413fc8c52cf6df.js","974","static/chunks/app/page-29cacabbd1c90b6f.js"],"default"]
|
|
9
9
|
b:I[31872,[],"OutletBoundary"]
|
|
10
10
|
c:"$Sreact.suspense"
|
|
11
11
|
e:I[31872,[],"ViewportBoundary"]
|
|
12
12
|
10:I[31872,[],"MetadataBoundary"]
|
|
13
13
|
12:I[57567,[],"default",1]
|
|
14
|
-
:HL["/_next/static/css/
|
|
15
|
-
:HL["/_next/static/css/
|
|
14
|
+
:HL["/_next/static/css/7a62016f8918890b.css","style"]
|
|
15
|
+
:HL["/_next/static/css/5062b0bcc3118ed8.css","style"]
|
|
16
16
|
:HL["/_next/static/css/9c61ee5fe683073a.css","style"]
|
|
17
|
-
:HL["/_next/static/css/
|
|
17
|
+
:HL["/_next/static/css/57ecc433cb654a57.css","style"]
|
|
18
18
|
:HL["/_next/static/css/c39f5ecbfc8cb532.css","style"]
|
|
19
|
-
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/
|
|
19
|
+
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a62016f8918890b.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/5062b0bcc3118ed8.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/9c61ee5fe683073a.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","3",{"rel":"stylesheet","href":"/_next/static/css/57ecc433cb654a57.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","children":["$","body",null,{"children":[["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}],["$","$L6",null,{}]]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@9","$@a"]}}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/c39f5ecbfc8cb532.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lb",null,{"children":["$","$c",null,{"name":"Next.MetadataOutlet","children":"$@d"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$Le",null,{"children":"$Lf"}],["$","div",null,{"hidden":true,"children":["$","$L10",null,{"children":["$","$c",null,{"name":"Next.Metadata","children":"$L11"}]}]}],null]}],false]],"m":"$undefined","G":["$12",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"SiEWNIZfGL4sShRQt9h5W"}
|
|
20
20
|
9:{}
|
|
21
21
|
a:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
22
22
|
f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
package/web/out/__next._tree.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
:HL["/_next/static/css/
|
|
2
|
-
:HL["/_next/static/css/
|
|
1
|
+
:HL["/_next/static/css/7a62016f8918890b.css","style"]
|
|
2
|
+
:HL["/_next/static/css/5062b0bcc3118ed8.css","style"]
|
|
3
3
|
:HL["/_next/static/css/9c61ee5fe683073a.css","style"]
|
|
4
|
-
:HL["/_next/static/css/
|
|
4
|
+
:HL["/_next/static/css/57ecc433cb654a57.css","style"]
|
|
5
5
|
:HL["/_next/static/css/c39f5ecbfc8cb532.css","style"]
|
|
6
|
-
0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4256,"slots":null}}},"staleTime":300,"buildId":"
|
|
6
|
+
0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4256,"slots":null}}},"staleTime":300,"buildId":"SiEWNIZfGL4sShRQt9h5W"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[327],{3385:(e,t,r)=>{r.d(t,{y:()=>s});var n=r(1521),i=r(16842),o=r(86979);function s(e,t){let r=(0,n.useMemo)(()=>{if(!e)return;let r=new WeakMap;return(0,o.r)(e,()=>({revisions:[],assetIds:[...new Set(t.retainedDrafts().flatMap(e=>{let t=r.get(e);return t||(t=(0,i.jK)(e),r.set(e,t)),t}))]}))},[e,t.retainedDrafts]);return(0,n.useEffect)(()=>(r?.start(),()=>{r?.close()}),[r]),r}},31854:(e,t,r)=>{r.d(t,{t:()=>s});var n=r(1521),i=r(8020),o=r(60458);function s(e,t,r){let{t:s}=(0,i.Bd)(),[a,l]=(0,n.useState)(null),[c,d]=(0,n.useState)([]),[u,y]=(0,n.useState)(!0),[p,m]=(0,n.useState)(!1),[f,h]=(0,n.useState)(null),[g,v]=(0,n.useState)(0),w=(0,n.useRef)(e);w.current=e;let b=(0,n.useRef)(!1),L=(0,n.useRef)(0);async function S(r){if(b.current)return;b.current=!0,++L.current,m(!0),h(null);let n=e;try{if(n??=await t(),null!==w.current&&w.current!==n)return;let e=a?.session.id===n?a:await (0,o.YM)(n),i=await (0,o.T8)(n,r,e.session.revision);(w.current===n||null===w.current)&&l(i)}catch(e){throw(w.current===n||null===w.current)&&h(e instanceof o.wP&&409===e.status?s("sessionStyle.conflict"):s("errors.operationFailed")),e}finally{b.current=!1,m(!1),y(!1)}}async function E(){if(!e)return;let t=await (0,o.YM)(e);return t.style?s("sessionStyle.prompt",{summary:t.style.promptSummary}):void 0}return(0,n.useEffect)(()=>{let t=!1,r=!1;y(!0),h(null);let n=async()=>{if(r||b.current)return;r=!0;let n=++L.current;try{let[r,i]=await Promise.all([(0,o.X0)(),e?(0,o.YM)(e):Promise.resolve(null)]);if(t||n!==L.current)return;d(e=>JSON.stringify(e)===JSON.stringify(r)?e:r),l(e=>JSON.stringify(e)===JSON.stringify(i)?e:i),h(null)}catch{t||n!==L.current||h(s("styleLibrary.loadFailed"))}finally{r=!1,t||n!==L.current||y(!1)}};n();let i=window.setInterval(()=>void n(),3e3);return()=>{t=!0,window.clearInterval(i)}},[e,r,g,s]),{styles:c,currentStyle:a?.session.id===e?a.style:null,loading:u,saving:p,error:f,bind:S,readPromptLine:E,refresh:()=>v(e=>e+1)}}},42614:(e,t,r)=>{r.d(t,{B:()=>s});let n={globalNoteHeading:"notes.global.promptHeading",note:"notes.element.prompt",displayText:"textContent.prompt",visualWeight:"visualWeight.prompt",weightAuto:"visualWeight.auto",weightHigh:"visualWeight.high",weightMedium:"visualWeight.medium",weightLow:"visualWeight.low",weightDecorative:"visualWeight.decorative"},i={planningHeading:"composition.planning.title",planningGoldenSection:"composition.planning.types.golden-section",planningThirds:"composition.planning.types.thirds",planningBoth:"composition.planning.both",planningHorizontal:"composition.planning.horizontal",planningVertical:"composition.planning.vertical",shotScale:"composition.depth.prompt",foreground:"composition.depth.foreground",midground:"composition.depth.midground",background:"composition.depth.background",processingSemantic:"composition.mode.prompt",previewMode:"composition.previewMode.prompt",precisePreview:"composition.previewMode.precise",softPreview:"composition.previewMode.soft",precisePreviewGuidance:"composition.previewMode.preciseGuidance",preciseLightGuidance:"composition.previewMode.preciseLightGuidance",sceneComposition:"composition.mode.scene",editorialLayout:"composition.mode.editorial",unselected:"composition.mode.unselected",unselectedGuidance:"composition.mode.unselectedGuidance",sceneGuidance:"composition.mode.sceneGuidance",editorialGuidance:"composition.mode.editorialGuidance",imageHeading:"canvas.imageNode.promptHeading",flowHeading:"composition.flow.promptHeading",flowReference:"composition.flow.promptReference"},o={stateName:"uiSketch.states.defaultName",visible:"canvas.nodeVisibility.visible",hidden:"canvas.nodeVisibility.hidden"};function s(e,t){return n[t]??("composition"===e?i[t]:o[t])??`${e}.prompt.${t}`}},46109:(e,t,r)=>{r.d(t,{Q:()=>n});function n(e){return{model:{label:e("styleLibrary.model.label"),loading:e("styleLibrary.model.loading"),failed:e("styleLibrary.model.failed"),reset:e("styleLibrary.model.reset"),controls:e("styleLibrary.model.controls"),retry:e("actions.retry")},newStyle:e("styleLibrary.newStyle"),editStyle:e("styleLibrary.editStyle"),name:e("styleLibrary.name"),namePlaceholder:e("styleLibrary.namePlaceholder"),category:e("styleLibrary.category.label"),allCategories:e("styleLibrary.category.all"),visualCategory:e("styleLibrary.category.visual"),uiCategory:e("styleLibrary.category.ui"),spatialCategory:e("styleLibrary.category.spatial"),creator:e("styleLibrary.creator.label"),allCreators:e("styleLibrary.creator.all"),userCreator:e("styleLibrary.creator.user"),agentCreator:e("styleLibrary.creator.agent"),references:e("styleLibrary.references.heading"),noReferences:e("styleLibrary.references.empty"),addReferences:e("styleLibrary.references.add"),removeReference:e("styleLibrary.references.remove"),pasteHint:e("styleLibrary.references.pasteHint"),fileTypes:e("styleLibrary.references.fileTypes"),description:e("styleLibrary.description.heading"),promptSummary:e("styleLibrary.promptSummary.label"),promptSummaryPlaceholder:e("styleLibrary.promptSummary.placeholder"),descriptionPlaceholder:e("styleLibrary.description.placeholder"),spatialDescriptionPlaceholder:e("styleLibrary.description.spatialPlaceholder"),searchPlaceholder:e("styleLibrary.searchPlaceholder"),deleteTitle:e("styleLibrary.deleteTitle"),deleteDescription:e("styleLibrary.deleteDescription"),empty:e("styleLibrary.empty"),noMatches:e("styleLibrary.noMatches"),loading:e("styleLibrary.loading"),loadFailed:e("styleLibrary.loadFailed"),retry:e("actions.retry"),save:e("styleLibrary.save"),cancel:e("actions.cancel"),delete:e("actions.delete"),operationFailed:e("errors.operationFailed"),imageInvalid:e("styleLibrary.imageInvalid"),openStyle:t=>e("styleLibrary.openStyle",{name:t}),closePreview:e("styleLibrary.closePreview")}}},46295:(e,t,r)=>{r.d(t,{m:()=>n});function n(e,t){let r=t?new URL(t).origin:null,n=`session connect --session ${e}`;return r?`human2ai --api-url ${r} --web-url ${r} ${n}`:`human2ai ${n}`}},48197:(e,t,r)=>{r.d(t,{H:()=>l});var n=r(73365),i=r(71788),o=r(8020),s=r(60458),a=r(46109);function l({controller:e,category:t,processing:r,disabled:c,showProcessingStatus:d=!1}){let{t:u}=(0,o.Bd)(),y=e.currentStyle;return(0,n.jsx)(i.WL,{styles:e.styles,currentStyle:y,category:t,labels:{title:u("sessionStyle.label"),choose:u("sessionStyle.choose"),dialogTitle:u("sessionStyle.dialogTitle"),unbind:u("sessionStyle.unbind"),select:u("sessionStyle.select"),pending:u("sessionStyle.pending")},libraryLabels:(0,a.Q)(u),imageUrl:s.Pf,modelUrl:s.x,onBind:e.bind,onRetry:e.refresh,loading:e.loading,saving:e.saving,error:e.error,disabled:c,pending:d&&!!(y&&(r?.styleId!==y.id||r.styleRevision!==y.revision))})}},52003:(e,t,r)=>{r.d(t,{S:()=>a});var n=r(1521);class i{constructor(e){this.past=[],this.future=[],this.current=structuredClone(e)}get canUndo(){return this.past.length>0}get canRedo(){return this.future.length>0}retainedDrafts(){return[...new Set([this.current,...[...this.past,...this.future].flatMap(e=>[e.before,e.after])])]}record(e,t,r=t,n){if(JSON.stringify(this.current)===JSON.stringify(e))return!1;let i=this.past.at(-1),o=structuredClone(e);return n&&i?.group===n?(i.after=o,i.afterContext=r,JSON.stringify(i.before)===JSON.stringify(o)&&this.past.pop()):(this.past.push({before:this.current,after:o,beforeContext:t,afterContext:r,group:n}),this.past.length>100&&this.past.shift()),this.current=o,this.future=[],!0}undo(){let e=this.past.pop();return e?(this.future.push(e),this.current=e.before,{draft:structuredClone(this.current),context:e.beforeContext}):null}redo(){let e=this.future.pop();return e?(this.past.push(e),this.current=e.after,{draft:structuredClone(this.current),context:e.afterContext}):null}reset(e){this.current=structuredClone(e),this.past=[],this.future=[]}synchronize(e){this.current=e}}function o(e){return e instanceof Element&&!!e.closest('textarea, input:not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]), [contenteditable="true"], [role="textbox"]')}function s(e){return e===document.body||e instanceof Element&&!!e.closest("[data-canvas-editor], [data-human2ai-auto-save-node-editor]")}function a(e,t,r=!1){let[l]=(0,n.useState)(()=>new i(e)),[,c]=(0,n.useState)(0),[d,u]=(0,n.useState)(0),y=(0,n.useRef)({restore:t,disabled:r});y.current={restore:t,disabled:r};let p=(0,n.useRef)({}),m=(0,n.useRef)(new Map),f=(0,n.useMemo)(()=>{let e=()=>c(e=>e+1),t=()=>{for(let[e,t]of[...m.current])t.dispatchEvent(new PointerEvent("pointercancel",{pointerId:e,bubbles:!0}));m.current.clear(),p.current={}},r=r=>{if(y.current.disabled)return;t();let n=l[r]();n&&(y.current.restore(n),u(e=>e+1),e())};return{current:()=>l.current,retainedDrafts:()=>l.retainedDrafts(),synchronize(e){l.synchronize(e)},record(t,r,n=r){let i=p.current.pointer??p.current.text??p.current.key,o=l.record(t,r,n,i);return o&&e(),o},reset(r){t(),l.reset(r),u(e=>e+1),e()},undo:()=>r("undo"),redo:()=>r("redo")}},[l]);return(0,n.useEffect)(()=>{let e=e=>{s(e.target)&&e.target instanceof Element&&(m.current.set(e.pointerId,e.target),o(e.target)||(p.current.pointer=Symbol("pointer")))},t=e=>{m.current.delete(e.pointerId);let t=p.current.pointer;window.setTimeout(()=>{p.current.pointer===t&&(p.current.pointer=void 0)},0)},r=e=>{o(e.target)&&(p.current.text=Symbol("input"))},n=()=>{p.current.text=void 0},i=()=>{p.current={},m.current.clear()},a=e=>{if(e.isComposing||o(e.target)||!s(e.target))return;let t=e.key.toLowerCase();if((e.ctrlKey||e.metaKey)&&!e.altKey&&("z"===t||"y"===t)){if(y.current.disabled)return;e.preventDefault(),e.stopPropagation(),"y"===t||e.shiftKey?f.redo():f.undo()}else e.repeat||(p.current.key=Symbol("key"))},l=e=>{let t=p.current.key;o(e.target)||window.setTimeout(()=>{p.current.key===t&&(p.current.key=void 0)},0)};return window.addEventListener("pointerdown",e,!0),window.addEventListener("pointerup",t,!0),window.addEventListener("pointercancel",t,!0),window.addEventListener("focusin",r,!0),window.addEventListener("focusout",n,!0),window.addEventListener("keydown",a,!0),window.addEventListener("keyup",l,!0),window.addEventListener("blur",i),()=>{window.removeEventListener("pointerdown",e,!0),window.removeEventListener("pointerup",t,!0),window.removeEventListener("pointercancel",t,!0),window.removeEventListener("focusin",r,!0),window.removeEventListener("focusout",n,!0),window.removeEventListener("keydown",a,!0),window.removeEventListener("keyup",l,!0),window.removeEventListener("blur",i)}},[f]),{...f,restoreToken:d,canUndo:!r&&l.canUndo,canRedo:!r&&l.canRedo}}},86979:(e,t,r)=>{r.d(t,{r:()=>i});var n=r(60458);function i(e,t,r=globalThis.fetch){let o=`/api/v1/sessions/${encodeURIComponent(e)}/storage-protection/${crypto.randomUUID()}`,s=!1,a=Promise.resolve(),l,c=()=>{let e=a.catch(()=>void 0).then(async()=>{if(s)return;let e=await r(o,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(t())});if(!e.ok){let t=await e.json().catch(()=>({}));throw new n.wP(t.code??`HTTP_${e.status}`,t.message??e.statusText,e.status,t)}});return a=e,e},d=()=>{c().catch(()=>void 0)},u=()=>{document.hidden||d()};return{renew:c,start(){l||(s=!1,d(),l=setInterval(d,3e4),document.addEventListener("visibilitychange",u))},async close(){if(s)return void await a.catch(()=>void 0);s=!0,l&&clearInterval(l),l=void 0,document.removeEventListener("visibilitychange",u);let e=a.catch(()=>void 0).then(async()=>{await r(o,{method:"DELETE",keepalive:!0}).catch(()=>void 0)});a=e,await e}}}}}]);
|