@aglyn/plugins-ai 1.22.0 → 1.22.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/components/ai-job-requests.d.ts +5 -1
- package/src/lib/components/ai-job-requests.js +9 -0
- package/src/lib/components/ai-job-requests.js.map +1 -1
- package/src/lib/jobs/ai-job-import-step.d.ts +8 -0
- package/src/lib/jobs/ai-job-import-step.js +19 -2
- package/src/lib/jobs/ai-job-import-step.js.map +1 -1
- package/src/lib/jobs/ai-job-page-language.d.ts +8 -0
- package/src/lib/jobs/ai-job-page-language.js +22 -1
- package/src/lib/jobs/ai-job-page-language.js.map +1 -1
- package/src/lib/jobs/ai-job-page-step.d.ts +10 -0
- package/src/lib/jobs/ai-job-page-step.js +23 -1
- package/src/lib/jobs/ai-job-page-step.js.map +1 -1
- package/src/lib/jobs/ai-site-import-actions.d.ts +12 -3
- package/src/lib/jobs/ai-site-import-actions.js +43 -18
- package/src/lib/jobs/ai-site-import-actions.js.map +1 -1
- package/src/lib/jobs/ai-site-import-improve.d.ts +44 -0
- package/src/lib/jobs/ai-site-import-improve.js +308 -21
- package/src/lib/jobs/ai-site-import-improve.js.map +1 -1
- package/src/lib/layout-language/ai-layout-compiler.d.ts +6 -0
- package/src/lib/layout-language/ai-layout-compiler.js +10 -4
- package/src/lib/layout-language/ai-layout-compiler.js.map +1 -1
- package/src/lib/layout-language/ai-layout-frame.js +11 -2
- package/src/lib/layout-language/ai-layout-frame.js.map +1 -1
- package/src/lib/layout-language/ai-layout-gaps.d.ts +27 -0
- package/src/lib/layout-language/ai-layout-gaps.js +124 -0
- package/src/lib/layout-language/ai-layout-gaps.js.map +1 -1
- package/src/lib/layout-language/ai-layout-language.d.ts +5 -0
- package/src/lib/layout-language/ai-layout-language.js +46 -1
- package/src/lib/layout-language/ai-layout-language.js.map +1 -1
- package/src/lib/site-import/fixtures/site-import-fidelity-replay.js +9 -8
- package/src/lib/site-import/fixtures/site-import-fidelity-replay.js.map +1 -1
- package/src/lib/site-import/site-import-page.d.ts +2 -2
- package/src/lib/site-import/site-import-page.js +42 -2
- package/src/lib/site-import/site-import-page.js.map +1 -1
|
@@ -30,6 +30,7 @@ import type { AiSystemBlock } from '../runtime/ai-runtime';
|
|
|
30
30
|
import { type AiSiteImportDocument } from './ai-site-import-document';
|
|
31
31
|
import { type AiSiteImportDesigned } from './ai-site-import-compile';
|
|
32
32
|
import { type AiSiteImportAddedSection, type AiSiteImportPagePictures, type AiSiteImportRedesign, type AiSiteImportWords } from '../model/ai-site-import';
|
|
33
|
+
import { type AiSiteImportImproved } from './ai-site-import-improve';
|
|
33
34
|
/**
|
|
34
35
|
* A page built in the compact layout language (AGL-3660): the page step's
|
|
35
36
|
* pass for a site's page units — a guided start's and a build's — in place of
|
|
@@ -468,6 +469,13 @@ export declare function aiSiteImportWordingMaxTokens(model: string): number;
|
|
|
468
469
|
* my wording on, and never a policy page, by its address or its title.
|
|
469
470
|
*/
|
|
470
471
|
export declare function aiImportedPageRewords(doc: Pick<AiSiteImportDocument, 'build' | 'finish' | 'wording' | 'title' | 'url'>, screen: Pick<AiBuildPlanScreen, 'slug' | 'title'>): boolean;
|
|
472
|
+
/**
|
|
473
|
+
* The one line a redesign that passed logs (AGL-4152): how many sections it
|
|
474
|
+
* drew, each block its read left out and why, what code mended (a section
|
|
475
|
+
* left a heading alone, a card row evened), and how many pictures asked for
|
|
476
|
+
* in words passed the page's cap. Never a word of the page beyond a heading.
|
|
477
|
+
*/
|
|
478
|
+
export declare function aiSiteImportRedesignPassed(value: Pick<AiSiteImportImproved<Pick<AiLayoutPageBuilt, 'settled'>>, 'built' | 'page' | 'read'>, credits?: number): Record<string, unknown>;
|
|
471
479
|
/**
|
|
472
480
|
* The ceiling a redesign is asked at on this model (AGL-4152): what the page
|
|
473
481
|
* step's time holds of a whole page's design and words, and its one re-ask.
|
|
@@ -1296,6 +1296,24 @@ const NO_USAGE = {
|
|
|
1296
1296
|
})
|
|
1297
1297
|
});
|
|
1298
1298
|
}
|
|
1299
|
+
/** What a picture asked for in words past the page's cap is settled as, by the compiler (`ai-layout-compiler.ts`). */ const PAST_THE_CAP = /^a picture past the page's \d+; left out$/;
|
|
1300
|
+
/**
|
|
1301
|
+
* The one line a redesign that passed logs (AGL-4152): how many sections it
|
|
1302
|
+
* drew, each block its read left out and why, what code mended (a section
|
|
1303
|
+
* left a heading alone, a card row evened), and how many pictures asked for
|
|
1304
|
+
* in words passed the page's cap. Never a word of the page beyond a heading.
|
|
1305
|
+
*/ export function aiSiteImportRedesignPassed(value, credits) {
|
|
1306
|
+
var _value_read;
|
|
1307
|
+
const dropped = ((_value_read = value.read) != null ? _value_read : []).map((note)=>`${note.at}: ${note.what}`);
|
|
1308
|
+
return _extends({
|
|
1309
|
+
sections: value.page.given.sections.length,
|
|
1310
|
+
readDropped: dropped,
|
|
1311
|
+
mended: value.page.mended,
|
|
1312
|
+
pastCap: value.built.settled.filter((note)=>PAST_THE_CAP.test(note.what)).length
|
|
1313
|
+
}, credits !== undefined ? {
|
|
1314
|
+
credits
|
|
1315
|
+
} : {});
|
|
1316
|
+
}
|
|
1299
1317
|
/**
|
|
1300
1318
|
* The ceiling a redesign is asked at on this model (AGL-4152): what the page
|
|
1301
1319
|
* step's time holds of a whole page's design and words, and its one re-ask.
|
|
@@ -1538,7 +1556,9 @@ const NO_USAGE = {
|
|
|
1538
1556
|
const { built, page, missed } = taken.value;
|
|
1539
1557
|
console.info('ai imported page: its redesign taken with design lines missed', _extends({
|
|
1540
1558
|
codes: missed != null ? missed : []
|
|
1541
|
-
}, sizes
|
|
1559
|
+
}, sizes, {
|
|
1560
|
+
passed: aiSiteImportRedesignPassed(taken.value)
|
|
1561
|
+
}));
|
|
1542
1562
|
return _extends({}, spent, {
|
|
1543
1563
|
status: 'ok',
|
|
1544
1564
|
value: _extends({}, built, {
|
|
@@ -1598,6 +1618,7 @@ const NO_USAGE = {
|
|
|
1598
1618
|
});
|
|
1599
1619
|
}
|
|
1600
1620
|
const { built, page } = answered.value;
|
|
1621
|
+
console.info('ai imported page: its redesign passed', aiSiteImportRedesignPassed(answered.value, sizes.credits));
|
|
1601
1622
|
return _extends({}, spent, {
|
|
1602
1623
|
status: 'ok',
|
|
1603
1624
|
value: _extends({}, built, {
|