@aglyn/plugins-ai 1.9.1 → 1.10.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/package.json +17 -17
- package/src/lib/components/ai-job-requests.d.ts +5 -0
- package/src/lib/components/ai-job-requests.js +4 -0
- package/src/lib/components/ai-job-requests.js.map +1 -1
- package/src/lib/components/ai-site-build-page.component.js +10 -3
- package/src/lib/components/ai-site-build-page.component.js.map +1 -1
- package/src/lib/components/ai-site-import-finish.component.d.ts +40 -0
- package/src/lib/components/ai-site-import-finish.component.js +174 -0
- package/src/lib/components/ai-site-import-finish.component.js.map +1 -0
- package/src/lib/components/ai-site-import-job.component.d.ts +11 -3
- package/src/lib/components/ai-site-import-job.component.js +220 -135
- package/src/lib/components/ai-site-import-job.component.js.map +1 -1
- package/src/lib/components/ai-site-import-start.component.d.ts +11 -2
- package/src/lib/components/ai-site-import-start.component.js +27 -5
- package/src/lib/components/ai-site-import-start.component.js.map +1 -1
- package/src/lib/components/ai-site-start-card.component.js +1 -1
- package/src/lib/components/ai-site-start-card.component.js.map +1 -1
- package/src/lib/jobs/ai-build-capabilities.js +2 -2
- package/src/lib/jobs/ai-build-capabilities.js.map +1 -1
- package/src/lib/jobs/ai-job-import-step.d.ts +2 -0
- package/src/lib/jobs/ai-job-import-step.js +31 -8
- package/src/lib/jobs/ai-job-import-step.js.map +1 -1
- package/src/lib/jobs/ai-job-page-language.d.ts +40 -2
- package/src/lib/jobs/ai-job-page-language.js +188 -9
- package/src/lib/jobs/ai-job-page-language.js.map +1 -1
- package/src/lib/jobs/ai-job-page-step.js +2 -0
- package/src/lib/jobs/ai-job-page-step.js.map +1 -1
- package/src/lib/jobs/ai-job-privacy-step.d.ts +5 -0
- package/src/lib/jobs/ai-job-privacy-step.js +9 -4
- package/src/lib/jobs/ai-job-privacy-step.js.map +1 -1
- package/src/lib/jobs/ai-job-text-step.d.ts +7 -1
- package/src/lib/jobs/ai-job-text-step.js.map +1 -1
- package/src/lib/jobs/ai-site-import-compile.d.ts +13 -2
- package/src/lib/jobs/ai-site-import-compile.js +115 -21
- package/src/lib/jobs/ai-site-import-compile.js.map +1 -1
- package/src/lib/jobs/ai-site-import-document.d.ts +5 -1
- package/src/lib/jobs/ai-site-import-document.js +5 -1
- package/src/lib/jobs/ai-site-import-document.js.map +1 -1
- package/src/lib/jobs/ai-site-import-look.d.ts +16 -4
- package/src/lib/jobs/ai-site-import-look.js +54 -13
- package/src/lib/jobs/ai-site-import-look.js.map +1 -1
- package/src/lib/jobs/ai-site-import-wording.d.ts +187 -0
- package/src/lib/jobs/ai-site-import-wording.js +747 -0
- package/src/lib/jobs/ai-site-import-wording.js.map +1 -0
- package/src/lib/layout-language/ai-layout-compiler.d.ts +12 -1
- package/src/lib/layout-language/ai-layout-compiler.js +29 -30
- package/src/lib/layout-language/ai-layout-compiler.js.map +1 -1
- package/src/lib/layout-language/ai-layout-language.d.ts +12 -0
- package/src/lib/layout-language/ai-layout-language.js.map +1 -1
- package/src/lib/model/ai-site-import-fidelity.d.ts +211 -2
- package/src/lib/model/ai-site-import-fidelity.js +1011 -14
- package/src/lib/model/ai-site-import-fidelity.js.map +1 -1
- package/src/lib/model/ai-site-import-report.d.ts +52 -1
- package/src/lib/model/ai-site-import-report.js +102 -5
- package/src/lib/model/ai-site-import-report.js.map +1 -1
- package/src/lib/model/ai-site-import-view.d.ts +62 -2
- package/src/lib/model/ai-site-import-view.js +83 -4
- package/src/lib/model/ai-site-import-view.js.map +1 -1
- package/src/lib/model/ai-site-import.d.ts +122 -6
- package/src/lib/model/ai-site-import.js +202 -9
- package/src/lib/model/ai-site-import.js.map +1 -1
- package/src/lib/model/ai-site-look.d.ts +51 -0
- package/src/lib/model/ai-site-look.js +205 -29
- package/src/lib/model/ai-site-look.js.map +1 -1
- package/src/lib/runtime/ai-doctrine-validators.d.ts +19 -0
- package/src/lib/runtime/ai-doctrine-validators.js +25 -0
- package/src/lib/runtime/ai-doctrine-validators.js.map +1 -1
- package/src/lib/runtime/ai-doctrine.js +4 -1
- package/src/lib/runtime/ai-doctrine.js.map +1 -1
- package/src/lib/server/ai-allotments.js +4 -2
- package/src/lib/server/ai-allotments.js.map +1 -1
- package/src/lib/server/ai-jobs-resume.js +32 -5
- package/src/lib/server/ai-jobs-resume.js.map +1 -1
- package/src/lib/site-import/fixtures/site-import-fidelity-replay.d.ts +36 -10
- package/src/lib/site-import/fixtures/site-import-fidelity-replay.js +48 -4
- package/src/lib/site-import/fixtures/site-import-fidelity-replay.js.map +1 -1
- package/src/lib/site-import/fixtures/site-look-slate.d.ts +27 -0
- package/src/lib/site-import/fixtures/site-look-slate.js +29 -0
- package/src/lib/site-import/fixtures/site-look-slate.js.map +1 -0
- package/src/lib/site-import/site-import-layout.d.ts +19 -5
- package/src/lib/site-import/site-import-layout.js +137 -16
- package/src/lib/site-import/site-import-layout.js.map +1 -1
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/ 'use client';
|
|
17
|
+
import { _ as _extends } from "@swc/helpers/_/_extends";
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { HelpTip } from "@aglyn/shared-ui-jsx";
|
|
20
|
+
import { Card, FormControl, FormControlLabel, FormHelperText, FormLabel, Radio, RadioGroup, Stack, Switch, Typography } from "@mui/material";
|
|
21
|
+
import { useId } from "react";
|
|
22
|
+
import { aiSiteImportFinishOf } from "../model/ai-site-import.js";
|
|
23
|
+
import { AI_SITE_IMPORT_FINISH_COPY } from "../model/ai-site-import-view.js";
|
|
24
|
+
/**
|
|
25
|
+
* "How should your new site look?" (AGL-4152): Keep my site, a light polish
|
|
26
|
+
* with every word kept, or Improve it, with its Also improve my wording
|
|
27
|
+
* switch. Bring my site asks it at the read, and an import's page asks it
|
|
28
|
+
* again before each wave; both draw this one field.
|
|
29
|
+
*
|
|
30
|
+
* The switch sits outside the radio group, so the group holds its two radios
|
|
31
|
+
* and nothing else, and it shows only under Improve it.
|
|
32
|
+
*/ export function AiSiteImportFinish({ value, onChange, wordingCredits, help, disabled }) {
|
|
33
|
+
const id = useId();
|
|
34
|
+
const labelId = `${id}-label`;
|
|
35
|
+
const wordingId = `${id}-wording`;
|
|
36
|
+
const copy = AI_SITE_IMPORT_FINISH_COPY;
|
|
37
|
+
const option = (finish)=>{
|
|
38
|
+
const text = copy[finish];
|
|
39
|
+
const chosen = value.finish === finish;
|
|
40
|
+
return /*#__PURE__*/ _jsx(Card, {
|
|
41
|
+
variant: "outlined",
|
|
42
|
+
sx: {
|
|
43
|
+
borderRadius: 2,
|
|
44
|
+
borderColor: chosen ? 'primary.main' : 'divider'
|
|
45
|
+
},
|
|
46
|
+
children: /*#__PURE__*/ _jsx(FormControlLabel, {
|
|
47
|
+
value: finish,
|
|
48
|
+
control: /*#__PURE__*/ _jsx(Radio, {}),
|
|
49
|
+
label: /*#__PURE__*/ _jsxs(Stack, {
|
|
50
|
+
spacing: 0.25,
|
|
51
|
+
component: "span",
|
|
52
|
+
sx: {
|
|
53
|
+
py: 1,
|
|
54
|
+
pr: 2
|
|
55
|
+
},
|
|
56
|
+
children: [
|
|
57
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
58
|
+
variant: "subtitle2",
|
|
59
|
+
component: "span",
|
|
60
|
+
children: text.label
|
|
61
|
+
}),
|
|
62
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
63
|
+
variant: "body2",
|
|
64
|
+
color: "text.secondary",
|
|
65
|
+
component: "span",
|
|
66
|
+
children: text.description
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
}),
|
|
70
|
+
sx: {
|
|
71
|
+
alignItems: 'flex-start',
|
|
72
|
+
m: 0,
|
|
73
|
+
width: '100%',
|
|
74
|
+
'& .MuiRadio-root': {
|
|
75
|
+
mt: 0.5
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
return /*#__PURE__*/ _jsxs(FormControl, {
|
|
82
|
+
disabled: disabled,
|
|
83
|
+
sx: {
|
|
84
|
+
m: 0
|
|
85
|
+
},
|
|
86
|
+
children: [
|
|
87
|
+
/*#__PURE__*/ _jsxs(Stack, {
|
|
88
|
+
direction: "row",
|
|
89
|
+
spacing: 0.5,
|
|
90
|
+
sx: {
|
|
91
|
+
alignItems: 'center',
|
|
92
|
+
mb: 1
|
|
93
|
+
},
|
|
94
|
+
children: [
|
|
95
|
+
/*#__PURE__*/ _jsx(FormLabel, {
|
|
96
|
+
id: labelId,
|
|
97
|
+
sx: {
|
|
98
|
+
typography: 'subtitle1',
|
|
99
|
+
color: 'text.primary',
|
|
100
|
+
'&.Mui-focused': {
|
|
101
|
+
color: 'text.primary'
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
children: copy.heading
|
|
105
|
+
}),
|
|
106
|
+
help ? /*#__PURE__*/ _jsx(HelpTip, _extends({}, help)) : null
|
|
107
|
+
]
|
|
108
|
+
}),
|
|
109
|
+
/*#__PURE__*/ _jsx(RadioGroup, {
|
|
110
|
+
"aria-labelledby": labelId,
|
|
111
|
+
value: value.finish,
|
|
112
|
+
onChange: (event)=>onChange(_extends({}, value, {
|
|
113
|
+
finish: aiSiteImportFinishOf(event.target.value)
|
|
114
|
+
})),
|
|
115
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
116
|
+
spacing: 1,
|
|
117
|
+
children: [
|
|
118
|
+
option('keep'),
|
|
119
|
+
option('improve')
|
|
120
|
+
]
|
|
121
|
+
})
|
|
122
|
+
}),
|
|
123
|
+
value.finish === 'improve' ? /*#__PURE__*/ _jsxs(Stack, {
|
|
124
|
+
spacing: 0.5,
|
|
125
|
+
sx: {
|
|
126
|
+
mt: 1.5,
|
|
127
|
+
pl: 1
|
|
128
|
+
},
|
|
129
|
+
children: [
|
|
130
|
+
/*#__PURE__*/ _jsx(FormControlLabel, {
|
|
131
|
+
control: /*#__PURE__*/ _jsx(Switch, {
|
|
132
|
+
checked: value.wording,
|
|
133
|
+
onChange: (event)=>onChange(_extends({}, value, {
|
|
134
|
+
wording: event.target.checked
|
|
135
|
+
})),
|
|
136
|
+
slotProps: {
|
|
137
|
+
input: {
|
|
138
|
+
'aria-describedby': wordingId
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}),
|
|
142
|
+
label: copy.wording.label
|
|
143
|
+
}),
|
|
144
|
+
/*#__PURE__*/ _jsxs(Stack, {
|
|
145
|
+
id: wordingId,
|
|
146
|
+
spacing: 0.5,
|
|
147
|
+
children: [
|
|
148
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
149
|
+
variant: "body2",
|
|
150
|
+
color: "text.secondary",
|
|
151
|
+
children: copy.wording.description
|
|
152
|
+
}),
|
|
153
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
154
|
+
variant: "body2",
|
|
155
|
+
color: "text.secondary",
|
|
156
|
+
children: wordingCredits
|
|
157
|
+
})
|
|
158
|
+
]
|
|
159
|
+
})
|
|
160
|
+
]
|
|
161
|
+
}) : null,
|
|
162
|
+
/*#__PURE__*/ _jsx(FormHelperText, {
|
|
163
|
+
sx: {
|
|
164
|
+
mx: 0,
|
|
165
|
+
mt: 1
|
|
166
|
+
},
|
|
167
|
+
children: copy.helper
|
|
168
|
+
})
|
|
169
|
+
]
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
export default AiSiteImportFinish;
|
|
173
|
+
|
|
174
|
+
//# sourceMappingURL=ai-site-import-finish.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../libs/plugins/ai/src/lib/components/ai-site-import-finish.component.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n'use client'\n\nimport { HelpTip } from '@aglyn/shared-ui-jsx'\nimport {\n Card,\n FormControl,\n FormControlLabel,\n FormHelperText,\n FormLabel,\n Radio,\n RadioGroup,\n Stack,\n Switch,\n Typography,\n} from '@mui/material'\nimport { useId, type ComponentProps } from 'react'\nimport { aiSiteImportFinishOf, type AiSiteImportFinish } from '../model/ai-site-import'\nimport { AI_SITE_IMPORT_FINISH_COPY, type AiSiteImportFinishField } from '../model/ai-site-import-view'\n\nexport interface AiSiteImportFinishProps {\n value: AiSiteImportFinishField\n onChange: (value: AiSiteImportFinishField) => void\n /** What Also improve my wording adds, in credits: a main page's before the site is read, the wave's after. */\n wordingCredits: string\n /** The guide's section on the choice, beside the question. */\n help?: ComponentProps<typeof HelpTip>\n disabled?: boolean\n}\n\n/**\n * \"How should your new site look?\" (AGL-4152): Keep my site, a light polish\n * with every word kept, or Improve it, with its Also improve my wording\n * switch. Bring my site asks it at the read, and an import's page asks it\n * again before each wave; both draw this one field.\n *\n * The switch sits outside the radio group, so the group holds its two radios\n * and nothing else, and it shows only under Improve it.\n */\nexport function AiSiteImportFinish({ value, onChange, wordingCredits, help, disabled }: AiSiteImportFinishProps) {\n const id = useId()\n const labelId = `${id}-label`\n const wordingId = `${id}-wording`\n const copy = AI_SITE_IMPORT_FINISH_COPY\n\n const option = (finish: AiSiteImportFinish) => {\n const text = copy[finish]\n const chosen = value.finish === finish\n return (\n <Card variant=\"outlined\" sx={{ borderRadius: 2, borderColor: chosen ? 'primary.main' : 'divider' }}>\n <FormControlLabel\n value={finish}\n control={<Radio />}\n label={\n <Stack spacing={0.25} component=\"span\" sx={{ py: 1, pr: 2 }}>\n <Typography variant=\"subtitle2\" component=\"span\">\n {text.label}\n </Typography>\n <Typography variant=\"body2\" color=\"text.secondary\" component=\"span\">\n {text.description}\n </Typography>\n </Stack>\n }\n sx={{ alignItems: 'flex-start', m: 0, width: '100%', '& .MuiRadio-root': { mt: 0.5 } }}\n />\n </Card>\n )\n }\n\n return (\n <FormControl disabled={disabled} sx={{ m: 0 }}>\n <Stack direction=\"row\" spacing={0.5} sx={{ alignItems: 'center', mb: 1 }}>\n <FormLabel\n id={labelId}\n sx={{ typography: 'subtitle1', color: 'text.primary', '&.Mui-focused': { color: 'text.primary' } }}\n >\n {copy.heading}\n </FormLabel>\n {help ? <HelpTip {...help} /> : null}\n </Stack>\n <RadioGroup\n aria-labelledby={labelId}\n value={value.finish}\n onChange={(event) => onChange({ ...value, finish: aiSiteImportFinishOf(event.target.value) })}\n >\n <Stack spacing={1}>\n {option('keep')}\n {option('improve')}\n </Stack>\n </RadioGroup>\n {value.finish === 'improve' ? (\n <Stack spacing={0.5} sx={{ mt: 1.5, pl: 1 }}>\n <FormControlLabel\n control={\n <Switch\n checked={value.wording}\n onChange={(event) => onChange({ ...value, wording: event.target.checked })}\n slotProps={{ input: { 'aria-describedby': wordingId } }}\n />\n }\n label={copy.wording.label}\n />\n <Stack id={wordingId} spacing={0.5}>\n <Typography variant=\"body2\" color=\"text.secondary\">\n {copy.wording.description}\n </Typography>\n <Typography variant=\"body2\" color=\"text.secondary\">\n {wordingCredits}\n </Typography>\n </Stack>\n </Stack>\n ) : null}\n <FormHelperText sx={{ mx: 0, mt: 1 }}>{copy.helper}</FormHelperText>\n </FormControl>\n )\n}\n\nexport default AiSiteImportFinish\n"],"names":["HelpTip","Card","FormControl","FormControlLabel","FormHelperText","FormLabel","Radio","RadioGroup","Stack","Switch","Typography","useId","aiSiteImportFinishOf","AI_SITE_IMPORT_FINISH_COPY","AiSiteImportFinish","value","onChange","wordingCredits","help","disabled","id","labelId","wordingId","copy","option","finish","text","chosen","variant","sx","borderRadius","borderColor","control","label","spacing","component","py","pr","color","description","alignItems","m","width","mt","direction","mb","typography","heading","aria-labelledby","event","target","pl","checked","wording","slotProps","input","mx","helper"],"mappings":"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"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import type { MaybeTokenSource } from '@aglyn/shared-util-http/authorized-token';
|
|
18
18
|
import type { AiJobSummary } from '../model/ai-jobs.types';
|
|
19
|
+
import { type AiSiteImportChoice } from '../model/ai-site-import';
|
|
19
20
|
export interface AiSiteImportJobProps {
|
|
20
21
|
job: AiJobSummary;
|
|
21
22
|
orgId: string | null;
|
|
@@ -26,13 +27,16 @@ export interface AiSiteImportJobProps {
|
|
|
26
27
|
user: MaybeTokenSource;
|
|
27
28
|
busy: boolean;
|
|
28
29
|
notice: string | null;
|
|
29
|
-
/**
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Starts the next wave, or reads the site again: the resume door. A wave
|
|
32
|
+
* that has not started carries how it is to be built (AGL-4152).
|
|
33
|
+
*/
|
|
34
|
+
onResume: (choice?: AiSiteImportChoice) => void;
|
|
31
35
|
/**
|
|
32
36
|
* Starts every remaining wave with no review between them (AGL-4083). The
|
|
33
37
|
* button is drawn only where the page can start them this way.
|
|
34
38
|
*/
|
|
35
|
-
onStartAll?: () => void;
|
|
39
|
+
onStartAll?: (choice?: AiSiteImportChoice) => void;
|
|
36
40
|
onJob: (job: AiJobSummary) => void;
|
|
37
41
|
}
|
|
38
42
|
/**
|
|
@@ -41,6 +45,10 @@ export interface AiSiteImportJobProps {
|
|
|
41
45
|
* a wave in for its review with its drafts to open, and the next wave's
|
|
42
46
|
* button — the only way the next one starts. A wave held for a new proof, the
|
|
43
47
|
* day's limit or a site that could not be read says so and offers the way on.
|
|
48
|
+
*
|
|
49
|
+
* Before a wave starts, the page says how it will be built, Keep my site or
|
|
50
|
+
* Improve it, and Change opens the choice (AGL-4152); the wave's button posts
|
|
51
|
+
* it. Each wave that has started says how it was built, which never changes.
|
|
44
52
|
*/
|
|
45
53
|
export declare function AiSiteImportJob({ job, orgId, orgSlug, host, siteName, user, busy, notice, onResume, onStartAll, onJob }: AiSiteImportJobProps): import("react").JSX.Element;
|
|
46
54
|
export default AiSiteImportJob;
|