@aglyn/plugins-ai 1.17.0 → 1.18.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/jobs/ai-job-import-step.js +7 -4
- package/src/lib/jobs/ai-job-import-step.js.map +1 -1
- package/src/lib/jobs/ai-job-page-step.js +7 -4
- package/src/lib/jobs/ai-job-page-step.js.map +1 -1
- package/src/lib/jobs/ai-layout-stock-photos.d.ts +9 -0
- package/src/lib/jobs/ai-layout-stock-photos.js +4 -0
- package/src/lib/jobs/ai-layout-stock-photos.js.map +1 -1
- package/src/lib/jobs/ai-site-import-actions.d.ts +35 -0
- package/src/lib/jobs/ai-site-import-actions.js +215 -0
- package/src/lib/jobs/ai-site-import-actions.js.map +1 -0
- package/src/lib/jobs/ai-site-import-compile.d.ts +7 -0
- package/src/lib/jobs/ai-site-import-compile.js +34 -4
- package/src/lib/jobs/ai-site-import-compile.js.map +1 -1
- package/src/lib/jobs/ai-site-import-improve.d.ts +1 -19
- package/src/lib/jobs/ai-site-import-improve.js +61 -196
- package/src/lib/jobs/ai-site-import-improve.js.map +1 -1
- package/src/lib/jobs/ai-site-import-plan.d.ts +52 -0
- package/src/lib/jobs/ai-site-import-plan.js +146 -3
- package/src/lib/jobs/ai-site-import-plan.js.map +1 -1
- package/src/lib/model/ai-site-import-fidelity.d.ts +6 -0
- package/src/lib/model/ai-site-import-fidelity.js +88 -10
- package/src/lib/model/ai-site-import-fidelity.js.map +1 -1
- package/src/lib/model/ai-site-import-marks.d.ts +7 -0
- package/src/lib/model/ai-site-import-marks.js +14 -0
- package/src/lib/model/ai-site-import-marks.js.map +1 -1
- package/src/lib/model/ai-site-import.d.ts +11 -1
- package/src/lib/model/ai-site-import.js +14 -2
- package/src/lib/model/ai-site-import.js.map +1 -1
- package/src/lib/site-import/site-import-images.js +9 -6
- package/src/lib/site-import/site-import-images.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aglyn/plugins-ai",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
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.
|
|
29
|
-
"@aglyn/shared-data-enums": "1.
|
|
30
|
-
"@aglyn/shared-data-mdi": "1.
|
|
31
|
-
"@aglyn/shared-data-types": "1.
|
|
32
|
-
"@aglyn/shared-ui-email-campaigns": "1.
|
|
33
|
-
"@aglyn/shared-ui-jsx": "1.
|
|
34
|
-
"@aglyn/shared-ui-snackstack": "1.
|
|
35
|
-
"@aglyn/shared-ui-theme": "1.
|
|
36
|
-
"@aglyn/shared-util-email": "1.
|
|
37
|
-
"@aglyn/shared-util-errors": "1.
|
|
38
|
-
"@aglyn/shared-util-http": "1.
|
|
39
|
-
"@aglyn/shared-util-timestamp": "1.
|
|
40
|
-
"@aglyn/shared-util-tools": "1.
|
|
41
|
-
"@aglyn/tenant-data-admin": "1.
|
|
42
|
-
"@aglyn/tenant-feature-instance": "1.
|
|
43
|
-
"@aglyn/tenant-runtime": "1.
|
|
28
|
+
"@aglyn/aglyn": "1.18.0",
|
|
29
|
+
"@aglyn/shared-data-enums": "1.18.0",
|
|
30
|
+
"@aglyn/shared-data-mdi": "1.18.0",
|
|
31
|
+
"@aglyn/shared-data-types": "1.18.0",
|
|
32
|
+
"@aglyn/shared-ui-email-campaigns": "1.18.0",
|
|
33
|
+
"@aglyn/shared-ui-jsx": "1.18.0",
|
|
34
|
+
"@aglyn/shared-ui-snackstack": "1.18.0",
|
|
35
|
+
"@aglyn/shared-ui-theme": "1.18.0",
|
|
36
|
+
"@aglyn/shared-util-email": "1.18.0",
|
|
37
|
+
"@aglyn/shared-util-errors": "1.18.0",
|
|
38
|
+
"@aglyn/shared-util-http": "1.18.0",
|
|
39
|
+
"@aglyn/shared-util-timestamp": "1.18.0",
|
|
40
|
+
"@aglyn/shared-util-tools": "1.18.0",
|
|
41
|
+
"@aglyn/tenant-data-admin": "1.18.0",
|
|
42
|
+
"@aglyn/tenant-feature-instance": "1.18.0",
|
|
43
|
+
"@aglyn/tenant-runtime": "1.18.0",
|
|
44
44
|
"@swc/helpers": "0.5.23"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -76,7 +76,7 @@ import { AI_LAYOUT_IMPORTED_SECTIONS_INPUT } from "./ai-site-import-document.js"
|
|
|
76
76
|
import { aiImportedPageListingOwed, aiSiteImportSectionNames } from "./ai-site-import-compile.js";
|
|
77
77
|
import { aiRebuildImportedForms } from "./ai-site-import-forms.js";
|
|
78
78
|
import { aiRunSiteImportLook } from "./ai-site-import-look.js";
|
|
79
|
-
import { AI_SITE_IMPORT_PLAN_BUDGET, aiRunSiteImportPlan, aiSiteImportPlanScopeLines } from "./ai-site-import-plan.js";
|
|
79
|
+
import { AI_SITE_IMPORT_PLAN_BUDGET, AI_SITE_IMPORT_PLAN_REFUSED_WHY, aiRunSiteImportPlan, aiSiteImportPlanScopeLines, aiSiteImportPlanWhy } from "./ai-site-import-plan.js";
|
|
80
80
|
import { aiPublishImportedWave } from "./ai-site-import-publish.js";
|
|
81
81
|
import { aiUnitErrorRetryable, aiUnitFailure, aiUnitSpend } from "./ai-build-unit-outcome.js";
|
|
82
82
|
import { registerAiJobAdmission } from "./ai-job-admission.js";
|
|
@@ -1478,8 +1478,8 @@ export function createAiJobImportStep(deps = {}) {
|
|
|
1478
1478
|
// A new page is words the owner asked to have written, and takes the plan's room.
|
|
1479
1479
|
const roomForPage = aiSiteImportChoiceOf(state).wording && aiSiteImportHasRoomForPage(state, room);
|
|
1480
1480
|
const scope = aiSiteImportPlanScopeLines(state, aiSiteImportSiteLines(state));
|
|
1481
|
-
const fellBack = (rest = {})=>unspent(_extends({
|
|
1482
|
-
siteImport: aiSiteImportPlanIn(state, wave, null, nowIso, ''),
|
|
1481
|
+
const fellBack = (rest = {}, why = [])=>unspent(_extends({
|
|
1482
|
+
siteImport: aiSiteImportPlanIn(state, wave, null, nowIso, '', why),
|
|
1483
1483
|
continue: true
|
|
1484
1484
|
}, rest));
|
|
1485
1485
|
let answered;
|
|
@@ -1512,7 +1512,10 @@ export function createAiJobImportStep(deps = {}) {
|
|
|
1512
1512
|
...new Set(answered.violations.map((violation)=>violation.code))
|
|
1513
1513
|
] : []
|
|
1514
1514
|
});
|
|
1515
|
-
|
|
1515
|
+
// The lines themselves go on the job's own record, in the owner's workspace, never the log (AGL-4152).
|
|
1516
|
+
return fellBack(spent, answered.status === 'needs_input' ? aiSiteImportPlanWhy(answered.violations) : [
|
|
1517
|
+
AI_SITE_IMPORT_PLAN_REFUSED_WHY
|
|
1518
|
+
]);
|
|
1516
1519
|
}
|
|
1517
1520
|
const next = aiSiteImportPlanIn(state, wave, answered.value, nowIso, mintId());
|
|
1518
1521
|
// Shown before anything is built: the job waits here for the owner to start the build.
|