@ggui-ai/ui-gen 0.5.0-rc.2 → 0.6.1
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/dist/adapters/base.js +1 -0
- package/dist/adapters/base.js.map +1 -1
- package/dist/adapters/generation-dispatch.d.ts +1 -1
- package/dist/adapters/generation-dispatch.js +286 -168
- package/dist/adapters/generation-dispatch.js.map +1 -1
- package/dist/adapters/index.js +13 -2
- package/dist/adapters/index.js.map +1 -1
- package/dist/advanced/index.d.ts +2 -2
- package/dist/advanced/index.js +287 -168
- package/dist/advanced/index.js.map +1 -1
- package/dist/blueprint-validator.js +1 -1
- package/dist/blueprint-validator.js.map +1 -1
- package/dist/boilerplate.js +13 -24
- package/dist/boilerplate.js.map +1 -1
- package/dist/check/index.d.ts +3 -3
- package/dist/check/index.js.map +1 -1
- package/dist/classifier/index.d.ts +14 -17
- package/dist/classifier/index.js +3 -7
- package/dist/classifier/index.js.map +1 -1
- package/dist/{create-ui-generator-CQiyjb5D.d.ts → create-ui-generator-GX7tvbyH.d.ts} +1 -1
- package/dist/{dispatch-CzRfy1J7.d.ts → dispatch-Deo9qzrG.d.ts} +1 -1
- package/dist/evaluation/axis-checks/index.d.ts +3 -3
- package/dist/evaluation/axis-checks/registry.d.ts +1 -1
- package/dist/evaluation/index.d.ts +2 -2
- package/dist/evaluation/index.js +12 -4
- package/dist/evaluation/index.js.map +1 -1
- package/dist/harness/check/runtime-render/index.d.ts +1 -1
- package/dist/harness/check/runtime-render/index.js.map +1 -1
- package/dist/harness/index.d.ts +1 -1
- package/dist/harness/index.js +25 -28
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/result-types.d.ts +1 -1
- package/dist/harness/runtime.d.ts +1 -1
- package/dist/harness/runtime.js +14 -25
- package/dist/harness/runtime.js.map +1 -1
- package/dist/harness/types-public.d.ts +1 -1
- package/dist/harness/types-public.js +13 -24
- package/dist/harness/types-public.js.map +1 -1
- package/dist/harness/validator-trace-sink.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +288 -168
- package/dist/index.js.map +1 -1
- package/dist/patch.d.ts +1 -1
- package/dist/provider-adapter-contract.js +61 -44
- package/dist/provider-adapter-contract.js.map +1 -1
- package/dist/providers/index.d.ts +2 -2
- package/dist/providers/index.js.map +1 -1
- package/dist/{types-public-D9swfbNi.d.ts → types-public-C36k1q6s.d.ts} +1 -1
- package/dist/validation/index.d.ts +1 -1
- package/dist/validation/index.js +5 -0
- package/dist/validation/index.js.map +1 -1
- package/dist/workflows.d.ts +1 -1
- package/package.json +12 -12
- package/src/blueprint-validator.ts +1 -1
- package/src/boilerplate/generate.ts +20 -31
- package/src/boilerplate/system-prompt.ts +2 -2
- package/src/check/extract-wire-calls.ts +2 -2
- package/src/classifier/axes.ts +2 -2
- package/src/classifier/classifier.ts +2 -2
- package/src/classifier/infer-layout.ts +1 -1
- package/src/classifier/infer-render.ts +1 -1
- package/src/classifier/infer-tooling.ts +1 -1
- package/src/classifier/infer-trigger.ts +3 -12
- package/src/classifier/inspect.ts +7 -7
- package/src/coding-agent/self-check.ts +1 -1
- package/src/evaluation/cost-tracker.ts +39 -11
- package/src/harness/check/runtime-render/render-check.ts +4 -4
- package/src/harness/llm-router.ts +2 -2
- package/src/providers/bedrock.ts +2 -2
- package/src/tools/get-wire.ts +1 -1
- package/src/validation/primitives.ts +2 -0
package/dist/patch.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PatchFn } from './harness/types-public.js';
|
|
2
2
|
import '@ggui-ai/protocol';
|
|
3
3
|
import './axes-CzLEMDeB.js';
|
|
4
|
-
import './types-public-
|
|
4
|
+
import './types-public-C36k1q6s.js';
|
|
5
5
|
import './types-BOvHNG7K.js';
|
|
6
6
|
import './llm.js';
|
|
7
7
|
import './policy.js';
|
|
@@ -6,11 +6,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __esm = (fn2, res) => function __init() {
|
|
10
|
-
|
|
9
|
+
var __esm = (fn2, res, err) => function __init() {
|
|
10
|
+
if (err) throw err[0];
|
|
11
|
+
try {
|
|
12
|
+
return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
|
|
13
|
+
} catch (e) {
|
|
14
|
+
throw err = [e], e;
|
|
15
|
+
}
|
|
11
16
|
};
|
|
12
17
|
var __commonJS = (cb, mod) => function __require() {
|
|
13
|
-
|
|
18
|
+
try {
|
|
19
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
20
|
+
} catch (e) {
|
|
21
|
+
throw mod = 0, e;
|
|
22
|
+
}
|
|
14
23
|
};
|
|
15
24
|
var __export = (target, all) => {
|
|
16
25
|
for (var name in all)
|
|
@@ -35,7 +44,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
35
44
|
|
|
36
45
|
// ../../node_modules/strip-literal/node_modules/js-tokens/index.js
|
|
37
46
|
var require_js_tokens = __commonJS({
|
|
38
|
-
"../../node_modules/strip-literal/node_modules/js-tokens/index.js"(exports
|
|
47
|
+
"../../node_modules/strip-literal/node_modules/js-tokens/index.js"(exports, module) {
|
|
39
48
|
var HashbangComment;
|
|
40
49
|
var Identifier;
|
|
41
50
|
var JSXIdentifier;
|
|
@@ -1773,36 +1782,36 @@ var init_magic_string_es = __esm({
|
|
|
1773
1782
|
|
|
1774
1783
|
// ../../node_modules/expect-type/dist/branding.js
|
|
1775
1784
|
var require_branding = __commonJS({
|
|
1776
|
-
"../../node_modules/expect-type/dist/branding.js"(exports
|
|
1777
|
-
Object.defineProperty(exports
|
|
1785
|
+
"../../node_modules/expect-type/dist/branding.js"(exports) {
|
|
1786
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1778
1787
|
}
|
|
1779
1788
|
});
|
|
1780
1789
|
|
|
1781
1790
|
// ../../node_modules/expect-type/dist/messages.js
|
|
1782
1791
|
var require_messages = __commonJS({
|
|
1783
|
-
"../../node_modules/expect-type/dist/messages.js"(exports
|
|
1784
|
-
Object.defineProperty(exports
|
|
1792
|
+
"../../node_modules/expect-type/dist/messages.js"(exports) {
|
|
1793
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1785
1794
|
}
|
|
1786
1795
|
});
|
|
1787
1796
|
|
|
1788
1797
|
// ../../node_modules/expect-type/dist/overloads.js
|
|
1789
1798
|
var require_overloads = __commonJS({
|
|
1790
|
-
"../../node_modules/expect-type/dist/overloads.js"(exports
|
|
1791
|
-
Object.defineProperty(exports
|
|
1799
|
+
"../../node_modules/expect-type/dist/overloads.js"(exports) {
|
|
1800
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1792
1801
|
}
|
|
1793
1802
|
});
|
|
1794
1803
|
|
|
1795
1804
|
// ../../node_modules/expect-type/dist/utils.js
|
|
1796
1805
|
var require_utils = __commonJS({
|
|
1797
|
-
"../../node_modules/expect-type/dist/utils.js"(exports
|
|
1798
|
-
Object.defineProperty(exports
|
|
1806
|
+
"../../node_modules/expect-type/dist/utils.js"(exports) {
|
|
1807
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1799
1808
|
}
|
|
1800
1809
|
});
|
|
1801
1810
|
|
|
1802
1811
|
// ../../node_modules/expect-type/dist/index.js
|
|
1803
1812
|
var require_dist = __commonJS({
|
|
1804
|
-
"../../node_modules/expect-type/dist/index.js"(exports
|
|
1805
|
-
var __createBinding = exports
|
|
1813
|
+
"../../node_modules/expect-type/dist/index.js"(exports) {
|
|
1814
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m4, k2, k22) {
|
|
1806
1815
|
if (k22 === void 0) k22 = k2;
|
|
1807
1816
|
var desc = Object.getOwnPropertyDescriptor(m4, k2);
|
|
1808
1817
|
if (!desc || ("get" in desc ? !m4.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -1815,15 +1824,15 @@ var require_dist = __commonJS({
|
|
|
1815
1824
|
if (k22 === void 0) k22 = k2;
|
|
1816
1825
|
o[k22] = m4[k2];
|
|
1817
1826
|
}));
|
|
1818
|
-
var __exportStar = exports
|
|
1827
|
+
var __exportStar = exports && exports.__exportStar || function(m4, exports2) {
|
|
1819
1828
|
for (var p5 in m4) if (p5 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p5)) __createBinding(exports2, m4, p5);
|
|
1820
1829
|
};
|
|
1821
|
-
Object.defineProperty(exports
|
|
1822
|
-
exports
|
|
1823
|
-
__exportStar(require_branding(), exports
|
|
1824
|
-
__exportStar(require_messages(), exports
|
|
1825
|
-
__exportStar(require_overloads(), exports
|
|
1826
|
-
__exportStar(require_utils(), exports
|
|
1830
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1831
|
+
exports.expectTypeOf = void 0;
|
|
1832
|
+
__exportStar(require_branding(), exports);
|
|
1833
|
+
__exportStar(require_messages(), exports);
|
|
1834
|
+
__exportStar(require_overloads(), exports);
|
|
1835
|
+
__exportStar(require_utils(), exports);
|
|
1827
1836
|
var fn2 = () => true;
|
|
1828
1837
|
var expectTypeOf2 = (_actual) => {
|
|
1829
1838
|
const nonFunctionProperties = [
|
|
@@ -1836,11 +1845,16 @@ var require_dist = __commonJS({
|
|
|
1836
1845
|
"thisParameter",
|
|
1837
1846
|
"instance",
|
|
1838
1847
|
"guards",
|
|
1839
|
-
"asserts"
|
|
1840
|
-
"branded"
|
|
1848
|
+
"asserts"
|
|
1841
1849
|
];
|
|
1850
|
+
function createBranded() {
|
|
1851
|
+
return {
|
|
1852
|
+
inspect: () => true,
|
|
1853
|
+
configure: () => createBranded(),
|
|
1854
|
+
toEqualTypeOf: fn2
|
|
1855
|
+
};
|
|
1856
|
+
}
|
|
1842
1857
|
const obj = {
|
|
1843
|
-
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
1844
1858
|
toBeAny: fn2,
|
|
1845
1859
|
toBeUnknown: fn2,
|
|
1846
1860
|
toBeNever: fn2,
|
|
@@ -1861,20 +1875,23 @@ var require_dist = __commonJS({
|
|
|
1861
1875
|
toBeConstructibleWith: fn2,
|
|
1862
1876
|
toMatchObjectType: fn2,
|
|
1863
1877
|
toExtend: fn2,
|
|
1864
|
-
map: exports
|
|
1865
|
-
toBeCallableWith: exports
|
|
1866
|
-
extract: exports
|
|
1867
|
-
exclude: exports
|
|
1868
|
-
pick: exports
|
|
1869
|
-
omit: exports
|
|
1870
|
-
toHaveProperty: exports
|
|
1871
|
-
parameter: exports
|
|
1878
|
+
map: exports.expectTypeOf,
|
|
1879
|
+
toBeCallableWith: exports.expectTypeOf,
|
|
1880
|
+
extract: exports.expectTypeOf,
|
|
1881
|
+
exclude: exports.expectTypeOf,
|
|
1882
|
+
pick: exports.expectTypeOf,
|
|
1883
|
+
omit: exports.expectTypeOf,
|
|
1884
|
+
toHaveProperty: exports.expectTypeOf,
|
|
1885
|
+
parameter: exports.expectTypeOf,
|
|
1886
|
+
get branded() {
|
|
1887
|
+
return createBranded();
|
|
1888
|
+
}
|
|
1872
1889
|
};
|
|
1873
1890
|
const getterProperties = nonFunctionProperties;
|
|
1874
|
-
getterProperties.forEach((prop) => Object.defineProperty(obj, prop, { get: () => (0, exports
|
|
1891
|
+
getterProperties.forEach((prop) => Object.defineProperty(obj, prop, { get: () => (0, exports.expectTypeOf)({}) }));
|
|
1875
1892
|
return obj;
|
|
1876
1893
|
};
|
|
1877
|
-
exports
|
|
1894
|
+
exports.expectTypeOf = expectTypeOf2;
|
|
1878
1895
|
}
|
|
1879
1896
|
});
|
|
1880
1897
|
|
|
@@ -10763,7 +10780,7 @@ for (const [name, as] of aliases) {
|
|
|
10763
10780
|
}
|
|
10764
10781
|
var used = [];
|
|
10765
10782
|
function use(fn2) {
|
|
10766
|
-
const exports
|
|
10783
|
+
const exports = {
|
|
10767
10784
|
use,
|
|
10768
10785
|
AssertionError,
|
|
10769
10786
|
util: utils_exports,
|
|
@@ -10774,10 +10791,10 @@ function use(fn2) {
|
|
|
10774
10791
|
...should_exports
|
|
10775
10792
|
};
|
|
10776
10793
|
if (!~used.indexOf(fn2)) {
|
|
10777
|
-
fn2(exports
|
|
10794
|
+
fn2(exports, utils_exports);
|
|
10778
10795
|
used.push(fn2);
|
|
10779
10796
|
}
|
|
10780
|
-
return exports
|
|
10797
|
+
return exports;
|
|
10781
10798
|
}
|
|
10782
10799
|
__name(use, "use");
|
|
10783
10800
|
|
|
@@ -16076,7 +16093,7 @@ var hasRequiredChaiSubset;
|
|
|
16076
16093
|
function requireChaiSubset() {
|
|
16077
16094
|
if (hasRequiredChaiSubset) return chaiSubset$1.exports;
|
|
16078
16095
|
hasRequiredChaiSubset = 1;
|
|
16079
|
-
(function(module, exports
|
|
16096
|
+
(function(module, exports) {
|
|
16080
16097
|
(function() {
|
|
16081
16098
|
(function(chaiSubset2) {
|
|
16082
16099
|
if (typeof commonjsRequire === "function" && true && true) {
|
|
@@ -16525,10 +16542,10 @@ var hasRequiredDeprecated;
|
|
|
16525
16542
|
function requireDeprecated() {
|
|
16526
16543
|
if (hasRequiredDeprecated) return deprecated;
|
|
16527
16544
|
hasRequiredDeprecated = 1;
|
|
16528
|
-
(function(exports
|
|
16529
|
-
exports
|
|
16545
|
+
(function(exports) {
|
|
16546
|
+
exports.wrap = function(func, msg) {
|
|
16530
16547
|
var wrapped = function() {
|
|
16531
|
-
exports
|
|
16548
|
+
exports.printWarning(msg);
|
|
16532
16549
|
return func.apply(this, arguments);
|
|
16533
16550
|
};
|
|
16534
16551
|
if (func.prototype) {
|
|
@@ -16536,10 +16553,10 @@ function requireDeprecated() {
|
|
|
16536
16553
|
}
|
|
16537
16554
|
return wrapped;
|
|
16538
16555
|
};
|
|
16539
|
-
exports
|
|
16556
|
+
exports.defaultMsg = function(packageName, funcName) {
|
|
16540
16557
|
return `${packageName}.${funcName} is deprecated and will be removed from the public API in a future version of ${packageName}.`;
|
|
16541
16558
|
};
|
|
16542
|
-
exports
|
|
16559
|
+
exports.printWarning = function(msg) {
|
|
16543
16560
|
if (typeof process === "object" && process.emitWarning) {
|
|
16544
16561
|
process.emitWarning(msg);
|
|
16545
16562
|
} else if (console.info) {
|
|
@@ -16678,7 +16695,7 @@ var hasRequiredTypeDetect;
|
|
|
16678
16695
|
function requireTypeDetect() {
|
|
16679
16696
|
if (hasRequiredTypeDetect) return typeDetect$1.exports;
|
|
16680
16697
|
hasRequiredTypeDetect = 1;
|
|
16681
|
-
(function(module, exports
|
|
16698
|
+
(function(module, exports) {
|
|
16682
16699
|
(function(global3, factory) {
|
|
16683
16700
|
module.exports = factory();
|
|
16684
16701
|
})(typeDetect, (function() {
|