@vectoriox/iox-ui 5.79.0 → 5.80.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/fesm2022/vectoriox-iox-ui-generation-core.mjs +7 -0
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +3 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/generation-core/index.d.ts +8 -1
- package/harness-core/index.d.ts +6 -2
- package/package.json +1 -1
- package/src/generation-core/ai-run.ts +9 -0
- package/src/harness-core/generation-view.ts +6 -2
|
@@ -15128,7 +15128,10 @@ var AiRefusalCode;
|
|
|
15128
15128
|
(function (AiRefusalCode) {
|
|
15129
15129
|
AiRefusalCode["NotInPlan"] = "ai.notInPlan";
|
|
15130
15130
|
AiRefusalCode["OutOfCredits"] = "ai.outOfCredits";
|
|
15131
|
+
/** A step used more than twice its estimate (a loop), or the build its plan's `aiCreditsPerGeneration`. */
|
|
15131
15132
|
AiRefusalCode["CapReached"] = "ai.capReached";
|
|
15133
|
+
/** The build asked for `GENERATION_LIMITS.plans` plans already — build one, change it with a sentence, or start over. */
|
|
15134
|
+
AiRefusalCode["PlansUsed"] = "ai.plansUsed";
|
|
15132
15135
|
AiRefusalCode["NotConnected"] = "ai.notConnected";
|
|
15133
15136
|
AiRefusalCode["KeyInvalid"] = "ai.keyInvalid";
|
|
15134
15137
|
AiRefusalCode["PlanUnknown"] = "ai.planUnknown";
|
|
@@ -15138,6 +15141,7 @@ const AI_REFUSAL_STATUS = {
|
|
|
15138
15141
|
[AiRefusalCode.NotInPlan]: 403,
|
|
15139
15142
|
[AiRefusalCode.OutOfCredits]: 402,
|
|
15140
15143
|
[AiRefusalCode.CapReached]: 402,
|
|
15144
|
+
[AiRefusalCode.PlansUsed]: 409,
|
|
15141
15145
|
[AiRefusalCode.NotConnected]: 409,
|
|
15142
15146
|
[AiRefusalCode.KeyInvalid]: 409,
|
|
15143
15147
|
[AiRefusalCode.PlanUnknown]: 503,
|
|
@@ -15151,11 +15155,14 @@ var AiNextKind;
|
|
|
15151
15155
|
AiNextKind["Settings"] = "settings";
|
|
15152
15156
|
/** Try again later, or with less. */
|
|
15153
15157
|
AiNextKind["Retry"] = "retry";
|
|
15158
|
+
/** Keep the plan there is: build it, or change it with a sentence. */
|
|
15159
|
+
AiNextKind["KeepPlan"] = "keepPlan";
|
|
15154
15160
|
})(AiNextKind || (AiNextKind = {}));
|
|
15155
15161
|
const AI_REFUSAL_NEXT = {
|
|
15156
15162
|
[AiRefusalCode.NotInPlan]: AiNextKind.Contact,
|
|
15157
15163
|
[AiRefusalCode.OutOfCredits]: AiNextKind.Contact,
|
|
15158
15164
|
[AiRefusalCode.CapReached]: AiNextKind.Retry,
|
|
15165
|
+
[AiRefusalCode.PlansUsed]: AiNextKind.KeepPlan,
|
|
15159
15166
|
[AiRefusalCode.NotConnected]: AiNextKind.Settings,
|
|
15160
15167
|
[AiRefusalCode.KeyInvalid]: AiNextKind.Settings,
|
|
15161
15168
|
[AiRefusalCode.PlanUnknown]: AiNextKind.Retry,
|