@deliverd/sdk 0.18.0 → 0.20.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/dist/released.d.ts +1 -1
- package/dist/released.d.ts.map +1 -1
- package/dist/released.js +1818 -0
- package/dist/tasks.d.ts.map +1 -1
- package/dist/tasks.js +2 -1
- package/dist/types.d.ts +22 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/released.ts +1818 -0
- package/src/tasks.ts +2 -1
- package/src/types.ts +23 -0
package/src/tasks.ts
CHANGED
|
@@ -42,7 +42,8 @@ import type {
|
|
|
42
42
|
*
|
|
43
43
|
* A governed task (Compliance Mode, Business and Enterprise) also has
|
|
44
44
|
* controls, evidence and a gate: `submitEvidence()` records what a run
|
|
45
|
-
* measured,
|
|
45
|
+
* measured, a tool's own report, or an experiment pulled from the
|
|
46
|
+
* organisation's Langfuse, and `checkGovernanceGate()` says whether
|
|
46
47
|
* the work may proceed. Thresholds are a person's to set; an agent's key is
|
|
47
48
|
* refused, so whatever submits the results does not decide what passes.
|
|
48
49
|
*/
|
package/src/types.ts
CHANGED
|
@@ -1508,6 +1508,12 @@ export interface GovernanceProfileInput {
|
|
|
1508
1508
|
sensitiveData?: boolean;
|
|
1509
1509
|
customerFacing?: boolean;
|
|
1510
1510
|
productionUse?: boolean;
|
|
1511
|
+
/**
|
|
1512
|
+
* Supports a critical or important function (DORA Art. 3(22)). `null` until
|
|
1513
|
+
* classified, when production use stands in. An agent may raise it to
|
|
1514
|
+
* `true`; only a person lowers or clears it.
|
|
1515
|
+
*/
|
|
1516
|
+
criticalFunction?: boolean | null;
|
|
1511
1517
|
autonomy?: "assist" | "recommend" | "act_with_approval" | "act_autonomously" | null;
|
|
1512
1518
|
decisionImpact?: "none" | "informs" | "supports_decision" | "automated_decision" | null;
|
|
1513
1519
|
oversight?:
|
|
@@ -1594,6 +1600,12 @@ export interface SubmitEvidenceInput {
|
|
|
1594
1600
|
run?: EvidenceRun;
|
|
1595
1601
|
/** A tool's own report, as it wrote it, read by the server into results. Instead of `results`. Up to 4 MB. */
|
|
1596
1602
|
report?: EvidenceReport;
|
|
1603
|
+
/**
|
|
1604
|
+
* Read the results from the organisation's connected Langfuse, with its keys,
|
|
1605
|
+
* which you never hold. Instead of `results` or `report`. Connected by an
|
|
1606
|
+
* owner or an administrator in Admin → Integrations.
|
|
1607
|
+
*/
|
|
1608
|
+
pull?: EvidencePull;
|
|
1597
1609
|
}
|
|
1598
1610
|
|
|
1599
1611
|
export interface EvidenceReport {
|
|
@@ -1601,6 +1613,17 @@ export interface EvidenceReport {
|
|
|
1601
1613
|
content: string;
|
|
1602
1614
|
}
|
|
1603
1615
|
|
|
1616
|
+
/** Which experiment to read, from which connected tool. */
|
|
1617
|
+
export interface EvidencePull {
|
|
1618
|
+
source: "langfuse";
|
|
1619
|
+
/** The experiment's name: the newest with it is read. */
|
|
1620
|
+
experiment?: string;
|
|
1621
|
+
/** Or its id, exactly. */
|
|
1622
|
+
experimentId?: string;
|
|
1623
|
+
/** An ISO time to look from; 90 days back when absent. */
|
|
1624
|
+
since?: string;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1604
1627
|
export interface ThresholdRule {
|
|
1605
1628
|
metric: string;
|
|
1606
1629
|
comparator: ">=" | ">" | "<=" | "<" | "==";
|