@dvina/sdk 5.0.17 → 5.0.21
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/_generated_documents-NBQDENAF.js +1 -0
- package/dist/{_generated_sdk-i_1H05aI.d.ts → _generated_sdk-BkmfU2Ek.d.ts} +260 -1
- package/dist/ai/index.d.ts +13 -8
- package/dist/chunk-BL2HFAU6.js +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/_generated_documents-VJXJRMVZ.js +0 -1
- package/dist/chunk-KMJZNY45.js +0 -1
package/dist/ai/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UIMessage, DefaultChatTransport } from 'ai';
|
|
2
|
-
import { D as DvinaSdk, C as ChatMessage, a as ChatMessageConnection } from '../_generated_sdk-
|
|
2
|
+
import { D as DvinaSdk, C as ChatMessage, a as ChatMessageConnection } from '../_generated_sdk-BkmfU2Ek.js';
|
|
3
3
|
import '../types-BfiQdtra.js';
|
|
4
4
|
import 'graphql';
|
|
5
5
|
import '../connection-ClMdDUce.js';
|
|
@@ -363,7 +363,10 @@ type DvinaDataParts = {
|
|
|
363
363
|
type DvinaGoalStatus = 'proposed' | 'pursuing'
|
|
364
364
|
/** Waiting on the user's decision: accept the best version, adjust, one more round or stop. */
|
|
365
365
|
| 'checkpoint' | 'achieved'
|
|
366
|
-
/**
|
|
366
|
+
/**
|
|
367
|
+
* It ended with its best round as the result: at the Livespace admin's cap (rounds, usage) or the user's usage quota,
|
|
368
|
+
* or quietly at the system's safety ceiling.
|
|
369
|
+
*/
|
|
367
370
|
| 'limit'
|
|
368
371
|
/** The user accepted a version that did not meet it. */
|
|
369
372
|
| 'accepted' | 'stopped'
|
|
@@ -384,17 +387,18 @@ type DvinaGoalCriterion = {
|
|
|
384
387
|
min?: number;
|
|
385
388
|
};
|
|
386
389
|
};
|
|
387
|
-
/** A task's goal: what to achieve, when it is done, how that is judged (its rubric)
|
|
390
|
+
/** A task's goal: what to achieve, when it is done, and how that is judged (its rubric). It works until it is met. */
|
|
388
391
|
type DvinaGoal = {
|
|
389
392
|
objective: string;
|
|
390
393
|
doneWhen: string;
|
|
391
394
|
criteria: DvinaGoalCriterion[];
|
|
392
395
|
/** Weighted score needed, 0 to 1. */
|
|
393
396
|
threshold: number;
|
|
394
|
-
limits
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
397
|
+
/** An older goal's own limits; a goal no longer has any (only the Livespace admin's caps apply). */
|
|
398
|
+
limits?: {
|
|
399
|
+
maxRounds?: number;
|
|
400
|
+
maxMinutes?: number;
|
|
401
|
+
maxUsagePercent?: number;
|
|
398
402
|
};
|
|
399
403
|
/** The rubric template (a skill) it follows. */
|
|
400
404
|
template?: {
|
|
@@ -404,7 +408,8 @@ type DvinaGoal = {
|
|
|
404
408
|
};
|
|
405
409
|
type DvinaGoalEvaluation = {
|
|
406
410
|
round: number;
|
|
407
|
-
|
|
411
|
+
/** An older evaluation's most rounds; a goal no longer has a limit of its own. */
|
|
412
|
+
maxRounds?: number;
|
|
408
413
|
/** Weighted score, 0 to 1. */
|
|
409
414
|
score: number;
|
|
410
415
|
threshold: number;
|