@aglyn/plugins-ai 1.20.1 → 1.20.2
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/jobs/ai-job-import-step.d.ts +5 -0
- package/src/lib/jobs/ai-job-import-step.js +15 -0
- package/src/lib/jobs/ai-job-import-step.js.map +1 -1
- package/src/lib/jobs/ai-site-import-document.d.ts +2 -0
- package/src/lib/jobs/ai-site-import-document.js +2 -0
- package/src/lib/jobs/ai-site-import-document.js.map +1 -1
- package/src/lib/jobs/ai-site-import-honesty.d.ts +5 -0
- package/src/lib/jobs/ai-site-import-honesty.js +32 -1
- package/src/lib/jobs/ai-site-import-honesty.js.map +1 -1
- package/src/lib/jobs/ai-site-import-improve.d.ts +7 -0
- package/src/lib/jobs/ai-site-import-improve.js +19 -0
- package/src/lib/jobs/ai-site-import-improve.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aglyn/plugins-ai",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://aglyn.com",
|
|
6
6
|
"repository": {
|
|
@@ -25,22 +25,22 @@
|
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aglyn/aglyn": "1.20.
|
|
29
|
-
"@aglyn/shared-data-enums": "1.20.
|
|
30
|
-
"@aglyn/shared-data-mdi": "1.20.
|
|
31
|
-
"@aglyn/shared-data-types": "1.20.
|
|
32
|
-
"@aglyn/shared-ui-email-campaigns": "1.20.
|
|
33
|
-
"@aglyn/shared-ui-jsx": "1.20.
|
|
34
|
-
"@aglyn/shared-ui-snackstack": "1.20.
|
|
35
|
-
"@aglyn/shared-ui-theme": "1.20.
|
|
36
|
-
"@aglyn/shared-util-email": "1.20.
|
|
37
|
-
"@aglyn/shared-util-errors": "1.20.
|
|
38
|
-
"@aglyn/shared-util-http": "1.20.
|
|
39
|
-
"@aglyn/shared-util-timestamp": "1.20.
|
|
40
|
-
"@aglyn/shared-util-tools": "1.20.
|
|
41
|
-
"@aglyn/tenant-data-admin": "1.20.
|
|
42
|
-
"@aglyn/tenant-feature-instance": "1.20.
|
|
43
|
-
"@aglyn/tenant-runtime": "1.20.
|
|
28
|
+
"@aglyn/aglyn": "1.20.2",
|
|
29
|
+
"@aglyn/shared-data-enums": "1.20.2",
|
|
30
|
+
"@aglyn/shared-data-mdi": "1.20.2",
|
|
31
|
+
"@aglyn/shared-data-types": "1.20.2",
|
|
32
|
+
"@aglyn/shared-ui-email-campaigns": "1.20.2",
|
|
33
|
+
"@aglyn/shared-ui-jsx": "1.20.2",
|
|
34
|
+
"@aglyn/shared-ui-snackstack": "1.20.2",
|
|
35
|
+
"@aglyn/shared-ui-theme": "1.20.2",
|
|
36
|
+
"@aglyn/shared-util-email": "1.20.2",
|
|
37
|
+
"@aglyn/shared-util-errors": "1.20.2",
|
|
38
|
+
"@aglyn/shared-util-http": "1.20.2",
|
|
39
|
+
"@aglyn/shared-util-timestamp": "1.20.2",
|
|
40
|
+
"@aglyn/shared-util-tools": "1.20.2",
|
|
41
|
+
"@aglyn/tenant-data-admin": "1.20.2",
|
|
42
|
+
"@aglyn/tenant-feature-instance": "1.20.2",
|
|
43
|
+
"@aglyn/tenant-runtime": "1.20.2",
|
|
44
44
|
"@swc/helpers": "0.5.23"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -234,6 +234,11 @@ export declare function aiSiteImportSiteLines(state: AiSiteImportState): string[
|
|
|
234
234
|
* so an earlier page's lines would otherwise be gone by the next page.
|
|
235
235
|
*/
|
|
236
236
|
export declare function aiSiteImportWaveLines(state: AiSiteImportState, page: AiSiteImportPage): string[];
|
|
237
|
+
/**
|
|
238
|
+
* The draft id of the site's page that holds a form (AGL-4152): one whose read
|
|
239
|
+
* has a form with fields, or, its read emptied once it is in, a form it saved.
|
|
240
|
+
*/
|
|
241
|
+
export declare function aiSiteImportFormPageId(state: Pick<AiSiteImportState, 'pages'>): string | null;
|
|
237
242
|
/** The page brought in, as its page job carries it: its lines, its photos, and the pages its links may go to (AGL-4084). */
|
|
238
243
|
export declare function aiSiteImportDocumentFor(state: AiSiteImportState, page: AiSiteImportPage): AiSiteImportDocument | null;
|
|
239
244
|
/** One page's job: a page job's plan of one screen, its sections the old page's own, its words carried as they are. */
|
|
@@ -769,6 +769,18 @@ const delivered = (items, slot)=>items.some((row)=>row.slot === slot && (row.sta
|
|
|
769
769
|
}
|
|
770
770
|
return out;
|
|
771
771
|
}
|
|
772
|
+
/**
|
|
773
|
+
* The draft id of the site's page that holds a form (AGL-4152): one whose read
|
|
774
|
+
* has a form with fields, or, its read emptied once it is in, a form it saved.
|
|
775
|
+
*/ export function aiSiteImportFormPageId(state) {
|
|
776
|
+
var _ref;
|
|
777
|
+
var _state_pages_find;
|
|
778
|
+
const holds = (page)=>{
|
|
779
|
+
var _page_read_forms, _page_read, _page_forms;
|
|
780
|
+
return !!((_page_read = page.read) == null ? void 0 : (_page_read_forms = _page_read.forms) == null ? void 0 : _page_read_forms.some((form)=>form.fields.length)) || !!((_page_forms = page.forms) == null ? void 0 : _page_forms.some((form)=>form.formId));
|
|
781
|
+
};
|
|
782
|
+
return (_ref = (_state_pages_find = state.pages.find((page)=>!page.refused && holds(page))) == null ? void 0 : _state_pages_find.draftId) != null ? _ref : null;
|
|
783
|
+
}
|
|
772
784
|
/** The page brought in, as its page job carries it: its lines, its photos, and the pages its links may go to (AGL-4084). */ export function aiSiteImportDocumentFor(state, page) {
|
|
773
785
|
var _page_build, _ref;
|
|
774
786
|
var _page_read, _state_look, _state_plan_roles, _state_plan, _state_sitePhotos, _page_photos, _page_read1, _page_read_videos, _page_read2;
|
|
@@ -776,6 +788,7 @@ const delivered = (items, slot)=>items.some((row)=>row.slot === slot && (row.sta
|
|
|
776
788
|
if (!(blocks == null ? void 0 : blocks.length)) return null;
|
|
777
789
|
// How the page's wave finishes it, as stamped when the wave started (AGL-4152).
|
|
778
790
|
const wave = state.waves.find((entry)=>entry.index === page.wave);
|
|
791
|
+
const formPage = aiSiteImportFormPageId(state);
|
|
779
792
|
return _extends({
|
|
780
793
|
build: (_page_build = page.build) != null ? _page_build : aiSiteImportBuildOf(page),
|
|
781
794
|
finish: wave ? aiSiteImportWaveChoice(state, wave).finish : 'keep',
|
|
@@ -788,6 +801,8 @@ const delivered = (items, slot)=>items.some((row)=>row.slot === slot && (row.sta
|
|
|
788
801
|
scope: aiSiteImportWaveLines(state, page)
|
|
789
802
|
}, state.plan ? {
|
|
790
803
|
plan: state.plan
|
|
804
|
+
} : {}, formPage ? {
|
|
805
|
+
formPage
|
|
791
806
|
} : {}, ((_state_look = state.look) == null ? void 0 : _state_look.drawn) ? {
|
|
792
807
|
theme: state.look.drawn
|
|
793
808
|
} : {}, page.origin === 'proposed' ? {
|