@vectoriox/iox-ui 5.53.0 → 5.54.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.
|
@@ -3031,6 +3031,8 @@ declare function buildStepFacts(plan: SitePlan, actions?: Readonly<Record<string
|
|
|
3031
3031
|
* list with its price per token class, the one cost → credits rule (1 credit = 1 US cent of what the AI cost, D4),
|
|
3032
3032
|
* the refusals (board 11) and a generation's stages. ONE definition: iox-cms meters and refuses with it, the
|
|
3033
3033
|
* Settings ▸ AI screen and the wizard show it. Pure types, enums and helpers; no transport, no prices typed here.
|
|
3034
|
+
* The step and capability spellings are the control plane's (`GET /instances/me/entitlements`, AI plan "M0 control
|
|
3035
|
+
* plane — the instance-route contract") — the platform has ONE spelling of each.
|
|
3034
3036
|
*/
|
|
3035
3037
|
declare enum AiProviderId {
|
|
3036
3038
|
Anthropic = "anthropic",
|
|
@@ -3043,18 +3045,18 @@ declare enum AiKeyMode {
|
|
|
3043
3045
|
}
|
|
3044
3046
|
/** The steps a model works on (board 9's rows), in screen order. */
|
|
3045
3047
|
declare enum AiStep {
|
|
3046
|
-
ReadMessage = "
|
|
3048
|
+
ReadMessage = "analysis",
|
|
3047
3049
|
PlanSite = "plan",
|
|
3048
|
-
ChangePlan = "
|
|
3049
|
-
MakePictures = "
|
|
3050
|
-
NameStructures = "
|
|
3050
|
+
ChangePlan = "planEdit",
|
|
3051
|
+
MakePictures = "image",
|
|
3052
|
+
NameStructures = "scanNaming"
|
|
3051
3053
|
}
|
|
3052
3054
|
declare const AI_STEPS: ReadonlyArray<AiStep>;
|
|
3053
3055
|
/** What a model must be able to do for a step to run on it. */
|
|
3054
3056
|
declare enum AiCapability {
|
|
3055
|
-
StructuredOutput = "
|
|
3056
|
-
ImageInput = "
|
|
3057
|
-
ImageOutput = "
|
|
3057
|
+
StructuredOutput = "structuredOutputs",
|
|
3058
|
+
ImageInput = "imageInput",
|
|
3059
|
+
ImageOutput = "imageOutput"
|
|
3058
3060
|
}
|
|
3059
3061
|
declare const AI_STEP_NEEDS: Readonly<Record<AiStep, ReadonlyArray<AiCapability>>>;
|
|
3060
3062
|
/** Tokens a typical use of a step reads and writes (plan §3d "Where credits go") — what a shown estimate is made of. */
|
|
@@ -3084,6 +3086,8 @@ interface AiModelEntry {
|
|
|
3084
3086
|
steps: ReadonlyArray<`${AiStep}`>;
|
|
3085
3087
|
/** The steps it is the default for (board 9's "recommended"). */
|
|
3086
3088
|
recommendedFor?: ReadonlyArray<`${AiStep}`>;
|
|
3089
|
+
/** The steps it runs when the default is not available (the control plane's `fallbackModel`). */
|
|
3090
|
+
fallbackFor?: ReadonlyArray<`${AiStep}`>;
|
|
3087
3091
|
capabilities: ReadonlyArray<`${AiCapability}`>;
|
|
3088
3092
|
/** Null when the provider reports each call's cost itself and the list carries no price. */
|
|
3089
3093
|
price: AiTokenPrice | null;
|
package/package.json
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* list with its price per token class, the one cost → credits rule (1 credit = 1 US cent of what the AI cost, D4),
|
|
5
5
|
* the refusals (board 11) and a generation's stages. ONE definition: iox-cms meters and refuses with it, the
|
|
6
6
|
* Settings ▸ AI screen and the wizard show it. Pure types, enums and helpers; no transport, no prices typed here.
|
|
7
|
+
* The step and capability spellings are the control plane's (`GET /instances/me/entitlements`, AI plan "M0 control
|
|
8
|
+
* plane — the instance-route contract") — the platform has ONE spelling of each.
|
|
7
9
|
*/
|
|
8
10
|
|
|
9
11
|
export enum AiProviderId {
|
|
@@ -19,20 +21,20 @@ export enum AiKeyMode {
|
|
|
19
21
|
|
|
20
22
|
/** The steps a model works on (board 9's rows), in screen order. */
|
|
21
23
|
export enum AiStep {
|
|
22
|
-
ReadMessage = '
|
|
24
|
+
ReadMessage = 'analysis',
|
|
23
25
|
PlanSite = 'plan',
|
|
24
|
-
ChangePlan = '
|
|
25
|
-
MakePictures = '
|
|
26
|
-
NameStructures = '
|
|
26
|
+
ChangePlan = 'planEdit',
|
|
27
|
+
MakePictures = 'image',
|
|
28
|
+
NameStructures = 'scanNaming',
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
export const AI_STEPS: ReadonlyArray<AiStep> = Object.values(AiStep);
|
|
30
32
|
|
|
31
33
|
/** What a model must be able to do for a step to run on it. */
|
|
32
34
|
export enum AiCapability {
|
|
33
|
-
StructuredOutput = '
|
|
34
|
-
ImageInput = '
|
|
35
|
-
ImageOutput = '
|
|
35
|
+
StructuredOutput = 'structuredOutputs',
|
|
36
|
+
ImageInput = 'imageInput',
|
|
37
|
+
ImageOutput = 'imageOutput',
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
export const AI_STEP_NEEDS: Readonly<Record<AiStep, ReadonlyArray<AiCapability>>> = {
|
|
@@ -79,6 +81,8 @@ export interface AiModelEntry {
|
|
|
79
81
|
steps: ReadonlyArray<`${AiStep}`>;
|
|
80
82
|
/** The steps it is the default for (board 9's "recommended"). */
|
|
81
83
|
recommendedFor?: ReadonlyArray<`${AiStep}`>;
|
|
84
|
+
/** The steps it runs when the default is not available (the control plane's `fallbackModel`). */
|
|
85
|
+
fallbackFor?: ReadonlyArray<`${AiStep}`>;
|
|
82
86
|
capabilities: ReadonlyArray<`${AiCapability}`>;
|
|
83
87
|
/** Null when the provider reports each call's cost itself and the list carries no price. */
|
|
84
88
|
price: AiTokenPrice | null;
|