@pushwoosh/rpc-gateway-ai-assistant 0.1.225 → 0.1.227
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/data.js +61 -0
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +16 -1
- package/pushwoosh_llm_v1.d.ts +68 -0
- package/pushwoosh_llm_v1.js +3 -0
- package/pushwoosh_vibeml_v1.d.ts +2 -2
package/data.js
CHANGED
|
@@ -271,6 +271,10 @@ export const data = {
|
|
|
271
271
|
"backgroundGradient": {
|
|
272
272
|
"type": "pushwoosh.aibuilder.v1.BackgroundGradient",
|
|
273
273
|
"optional": true
|
|
274
|
+
},
|
|
275
|
+
"showShadow": {
|
|
276
|
+
"type": "boolean",
|
|
277
|
+
"optional": true
|
|
274
278
|
}
|
|
275
279
|
}
|
|
276
280
|
},
|
|
@@ -2406,6 +2410,63 @@ export const data = {
|
|
|
2406
2410
|
}
|
|
2407
2411
|
}
|
|
2408
2412
|
},
|
|
2413
|
+
"pushwoosh.llm.v1.LlmPolicy": {
|
|
2414
|
+
"type": "E",
|
|
2415
|
+
"values": [
|
|
2416
|
+
"LLM_POLICY_UNSPECIFIED",
|
|
2417
|
+
"LLM_POLICY_MODEL",
|
|
2418
|
+
"LLM_POLICY_CONTEXT",
|
|
2419
|
+
"LLM_POLICY_CLIENT"
|
|
2420
|
+
]
|
|
2421
|
+
},
|
|
2422
|
+
"pushwoosh.llm.v1.LlmField": {
|
|
2423
|
+
"type": "I",
|
|
2424
|
+
"fields": {
|
|
2425
|
+
"policy": {
|
|
2426
|
+
"type": "pushwoosh.llm.v1.LlmPolicy"
|
|
2427
|
+
},
|
|
2428
|
+
"pattern": {
|
|
2429
|
+
"type": "string",
|
|
2430
|
+
"optional": true
|
|
2431
|
+
},
|
|
2432
|
+
"minLength": {
|
|
2433
|
+
"type": "number",
|
|
2434
|
+
"optional": true
|
|
2435
|
+
},
|
|
2436
|
+
"minItems": {
|
|
2437
|
+
"type": "number",
|
|
2438
|
+
"optional": true
|
|
2439
|
+
},
|
|
2440
|
+
"maxItems": {
|
|
2441
|
+
"type": "number",
|
|
2442
|
+
"optional": true
|
|
2443
|
+
},
|
|
2444
|
+
"minimum": {
|
|
2445
|
+
"type": "number",
|
|
2446
|
+
"optional": true
|
|
2447
|
+
},
|
|
2448
|
+
"maximum": {
|
|
2449
|
+
"type": "number",
|
|
2450
|
+
"optional": true
|
|
2451
|
+
},
|
|
2452
|
+
"allowUnspecified": {
|
|
2453
|
+
"type": "boolean",
|
|
2454
|
+
"optional": true
|
|
2455
|
+
},
|
|
2456
|
+
"excludeValues": {
|
|
2457
|
+
"type": "string",
|
|
2458
|
+
"array": true
|
|
2459
|
+
},
|
|
2460
|
+
"variantEnum": {
|
|
2461
|
+
"type": "boolean",
|
|
2462
|
+
"optional": true
|
|
2463
|
+
},
|
|
2464
|
+
"noNull": {
|
|
2465
|
+
"type": "boolean",
|
|
2466
|
+
"optional": true
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
},
|
|
2409
2470
|
"pushwoosh.templates.v1.TemplatesService": {
|
|
2410
2471
|
"type": "S",
|
|
2411
2472
|
"key": "templates",
|
package/package.json
CHANGED
|
@@ -303,6 +303,15 @@ export type DocumentSettings = {
|
|
|
303
303
|
*/
|
|
304
304
|
backgroundImage?: string;
|
|
305
305
|
backgroundGradient?: BackgroundGradient;
|
|
306
|
+
/**
|
|
307
|
+
* Soft drop shadow around the content column, rendered only when a painted
|
|
308
|
+
* backdrop (background_color / gradient / image) is present.
|
|
309
|
+
*
|
|
310
|
+
* Wire contract:
|
|
311
|
+
* - Unset = shown (the default look); false is the explicit opt-out.
|
|
312
|
+
* - Client-managed: render-only chrome, the LLM never sees this field.
|
|
313
|
+
*/
|
|
314
|
+
showShadow?: boolean;
|
|
306
315
|
};
|
|
307
316
|
export type TextBlock = {
|
|
308
317
|
variant: string;
|
|
@@ -433,7 +442,12 @@ export type ListItem = {
|
|
|
433
442
|
*/
|
|
434
443
|
export type List = {
|
|
435
444
|
items: ListItem[];
|
|
436
|
-
/**
|
|
445
|
+
/**
|
|
446
|
+
* true = numbered (<ol>), false/unset = bulleted (<ul>).
|
|
447
|
+
* CONTEXT for now to keep the generated schema byte-compatible with the
|
|
448
|
+
* legacy hand-written one; candidate for MODEL (the block-gen prompt
|
|
449
|
+
* already promises numbered lists).
|
|
450
|
+
*/
|
|
437
451
|
ordered: boolean;
|
|
438
452
|
/**
|
|
439
453
|
* Text variant of the entries (same registry as TextBlock.variant);
|
|
@@ -690,6 +704,7 @@ export type AiBuilderColumns = {
|
|
|
690
704
|
export type AiBuilderColumn = {
|
|
691
705
|
image?: Image;
|
|
692
706
|
content: Content;
|
|
707
|
+
/** no_null: empty string (not JSON null) is this field's "unset" idiom. */
|
|
693
708
|
width?: string;
|
|
694
709
|
/**
|
|
695
710
|
* Container padding of this column, wrapping BOTH the image slot and the
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LlmPolicy is the LLM write-access class of a document field. The JSON
|
|
3
|
+
* Schema for strict structured output is generated from these annotations
|
|
4
|
+
* (internal/aibuilder/llmschema); a reachable field without one fails the
|
|
5
|
+
* build-time exhaustiveness check, so every new proto field forces an
|
|
6
|
+
* explicit decision.
|
|
7
|
+
*/
|
|
8
|
+
export type LlmPolicy =
|
|
9
|
+
/**
|
|
10
|
+
* Not classified. The schema generator refuses to build — this is the
|
|
11
|
+
* fail-loud state, never a valid annotation.
|
|
12
|
+
*/
|
|
13
|
+
'LLM_POLICY_UNSPECIFIED'
|
|
14
|
+
/**
|
|
15
|
+
* In the LLM output schema: the model sees the field and re-emits it on
|
|
16
|
+
* every (re)generation.
|
|
17
|
+
*/
|
|
18
|
+
| 'LLM_POLICY_MODEL'
|
|
19
|
+
/**
|
|
20
|
+
* Read-only context: shown to the model in <current_block> / planner
|
|
21
|
+
* summaries but absent from the output schema. Preserved in code across
|
|
22
|
+
* regeneration (preserveClientManagedFields).
|
|
23
|
+
*/
|
|
24
|
+
| 'LLM_POLICY_CONTEXT'
|
|
25
|
+
/**
|
|
26
|
+
* Invisible to the model entirely (pure client round-trip data:
|
|
27
|
+
* translations maps, media ids, user-authored code). Preserved in code.
|
|
28
|
+
*/
|
|
29
|
+
| 'LLM_POLICY_CLIENT';
|
|
30
|
+
/**
|
|
31
|
+
* LlmField carries the policy plus the JSON-Schema constraints applied when
|
|
32
|
+
* the field is rendered into the strict-output schema. Constraint fields are
|
|
33
|
+
* honoured only for policy = LLM_POLICY_MODEL.
|
|
34
|
+
*/
|
|
35
|
+
export type LlmField = {
|
|
36
|
+
policy: LlmPolicy;
|
|
37
|
+
/** String fields: regex the decoder must match (e.g. hex colours). */
|
|
38
|
+
pattern?: string;
|
|
39
|
+
/** String fields: JSON-Schema minLength. */
|
|
40
|
+
minLength?: number;
|
|
41
|
+
/** Repeated fields: JSON-Schema minItems / maxItems. */
|
|
42
|
+
minItems?: number;
|
|
43
|
+
maxItems?: number;
|
|
44
|
+
/** Numeric fields: JSON-Schema minimum / maximum. */
|
|
45
|
+
minimum?: number;
|
|
46
|
+
maximum?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Enum fields: include the *_UNSPECIFIED value in the schema enum (used
|
|
49
|
+
* where UNSPECIFIED means "inherit" and is a valid model choice).
|
|
50
|
+
*/
|
|
51
|
+
allowUnspecified?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Enum fields: value names dropped from the schema enum (deprecated
|
|
54
|
+
* values kept only for wire compatibility, e.g. CARD_IMAGE_FIT_FILL).
|
|
55
|
+
*/
|
|
56
|
+
excludeValues: string[];
|
|
57
|
+
/**
|
|
58
|
+
* String fields whose enum is the document's text-variant keys, resolved
|
|
59
|
+
* per request (TextBlock.variant).
|
|
60
|
+
*/
|
|
61
|
+
variantEnum?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Proto-optional string fields that must NOT become nullable in the
|
|
64
|
+
* schema — empty string is the field's own "unset" idiom
|
|
65
|
+
* (AiBuilderColumn.width).
|
|
66
|
+
*/
|
|
67
|
+
noNull?: boolean;
|
|
68
|
+
};
|
package/pushwoosh_vibeml_v1.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ export type VibeMeta = {
|
|
|
166
166
|
export type VibeTheme = {
|
|
167
167
|
/**
|
|
168
168
|
* Design-token palette keyed by semantic role (background, surface, text,
|
|
169
|
-
* text-secondary, accent, text-on-accent, border, link). Free-form
|
|
169
|
+
* heading, text-secondary, accent, text-on-accent, border, link). Free-form
|
|
170
170
|
* string keys — no key is guaranteed present. Any color-typed prop value
|
|
171
171
|
* (block props, attributes, block_variants, settings.background) may
|
|
172
172
|
* reference an entry by token: "$accent" means colors["accent"], resolved
|
|
@@ -420,7 +420,7 @@ export interface VibeMlService {
|
|
|
420
420
|
* Generate request. Pure extractor — materials in, theme out, no document.
|
|
421
421
|
*
|
|
422
422
|
* The model MUST return every palette role (background, surface, text,
|
|
423
|
-
* text-secondary, accent, text-on-accent, border, link) and both font
|
|
423
|
+
* heading, text-secondary, accent, text-on-accent, border, link) and both font
|
|
424
424
|
* families — even when the materials give no clear typographic signal it
|
|
425
425
|
* picks reasonable stacks rather than leaving them empty.
|
|
426
426
|
*
|