openpond-sdk 0.12.10 → 0.12.11
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/README.md +2 -0
- package/dist/advanced-refiner-evaluations.js +8 -8
- package/dist/candidate-evaluations.js +7 -7
- package/dist/{chunk-QQ444G6A.js → chunk-2LVR24GU.js} +2 -2
- package/dist/{chunk-5QMREXMU.js → chunk-7BYLH47N.js} +3 -3
- package/dist/{chunk-RYDUAY52.js → chunk-C3TS766N.js} +21 -74
- package/dist/chunk-C3TS766N.js.map +1 -0
- package/dist/{chunk-HDKP6KE2.js → chunk-C4W2MEFP.js} +2 -2
- package/dist/{chunk-XJKGCU2K.js → chunk-CNREFTAV.js} +2 -2
- package/dist/{chunk-UAYXORU5.js → chunk-GHPCQXG5.js} +2 -2
- package/dist/{chunk-WOD72SFI.js → chunk-GJRXJL6G.js} +3 -3
- package/dist/{chunk-GRQWKATA.js → chunk-HAQPGTQ4.js} +2 -2
- package/dist/{chunk-7WKCQ4V5.js → chunk-IFBCLRBM.js} +2 -2
- package/dist/chunk-IZ26ZCGU.js +65 -0
- package/dist/chunk-IZ26ZCGU.js.map +1 -0
- package/dist/{chunk-ICFFZ4WC.js → chunk-JBYFD3QS.js} +3 -3
- package/dist/{chunk-4L556MYM.js → chunk-JDQVAG3R.js} +3 -3
- package/dist/{chunk-7FYPFHCQ.js → chunk-K54BDIKL.js} +3 -3
- package/dist/{chunk-ESW25WSD.js → chunk-KOJC3TH4.js} +6 -6
- package/dist/{chunk-GIEST52U.js → chunk-LHHHJIDR.js} +2 -2
- package/dist/{chunk-FC56EMHT.js → chunk-NKF5NIML.js} +6 -6
- package/dist/{chunk-LKKKTBLL.js → chunk-O3NOGKMT.js} +2 -2
- package/dist/{chunk-XNRM3QGR.js → chunk-ORYA2G7S.js} +3 -3
- package/dist/{chunk-PT72OARU.js → chunk-RIN6Z56W.js} +5 -5
- package/dist/{chunk-LT2YQCZI.js → chunk-RLW4Y5ZV.js} +2 -2
- package/dist/{chunk-PKW3II5M.js → chunk-TLSP5JKG.js} +2 -2
- package/dist/{chunk-BQ2C2Y54.js → chunk-UOV2LEXS.js} +4 -4
- package/dist/{chunk-ZZZU6XER.js → chunk-UWY5PUHR.js} +2 -2
- package/dist/{chunk-DMN6EF3R.js → chunk-XMVSQIK4.js} +2 -2
- package/dist/{chunk-WEL535AI.js → chunk-XRBM6PBD.js} +4 -4
- package/dist/{chunk-2DK7UBAG.js → chunk-YIGFQWZV.js} +3 -3
- package/dist/{chunk-IIQENUOK.js → chunk-ZYDDHHZZ.js} +3 -3
- package/dist/connected-evidence.js +14 -14
- package/dist/dataset-workspaces.js +14 -14
- package/dist/experiment-evaluation-schedules.js +18 -18
- package/dist/experiment-improvements.js +8 -8
- package/dist/experiments.js +17 -17
- package/dist/index.js +26 -25
- package/dist/index.js.map +1 -1
- package/dist/learning.js +9 -7
- package/dist/learning.js.map +1 -1
- package/dist/model-projects.js +4 -4
- package/dist/model-starter-attempts.js +3 -3
- package/dist/model-starter-catalog.js +10 -10
- package/dist/model-starters.js +10 -10
- package/dist/model-taskset-runs.js +4 -4
- package/dist/post-training.js +7 -7
- package/dist/taskset-drafts.js +13 -13
- package/dist/taskset-packages.js +15 -15
- package/dist/tool-learning-local-store.js +160 -7
- package/dist/tool-learning-local-store.js.map +1 -1
- package/dist/tool-learning.js +411 -0
- package/dist/tool-learning.js.map +1 -1
- package/dist/training-bundle.js +11 -11
- package/dist/training.js +8 -8
- package/dist/types/packages/sdk/src/tool-learning-client.d.ts +1217 -0
- package/dist/types/packages/sdk/src/tool-learning-client.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/tool-learning-local-store.d.ts +70 -2
- package/dist/types/packages/sdk/src/tool-learning-local-store.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/tool-learning.d.ts +1 -0
- package/dist/types/packages/sdk/src/tool-learning.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/training-learning-batch.d.ts +40 -40
- package/package.json +1 -1
- package/dist/chunk-RYDUAY52.js.map +0 -1
- /package/dist/{chunk-QQ444G6A.js.map → chunk-2LVR24GU.js.map} +0 -0
- /package/dist/{chunk-5QMREXMU.js.map → chunk-7BYLH47N.js.map} +0 -0
- /package/dist/{chunk-HDKP6KE2.js.map → chunk-C4W2MEFP.js.map} +0 -0
- /package/dist/{chunk-XJKGCU2K.js.map → chunk-CNREFTAV.js.map} +0 -0
- /package/dist/{chunk-UAYXORU5.js.map → chunk-GHPCQXG5.js.map} +0 -0
- /package/dist/{chunk-WOD72SFI.js.map → chunk-GJRXJL6G.js.map} +0 -0
- /package/dist/{chunk-GRQWKATA.js.map → chunk-HAQPGTQ4.js.map} +0 -0
- /package/dist/{chunk-7WKCQ4V5.js.map → chunk-IFBCLRBM.js.map} +0 -0
- /package/dist/{chunk-ICFFZ4WC.js.map → chunk-JBYFD3QS.js.map} +0 -0
- /package/dist/{chunk-4L556MYM.js.map → chunk-JDQVAG3R.js.map} +0 -0
- /package/dist/{chunk-7FYPFHCQ.js.map → chunk-K54BDIKL.js.map} +0 -0
- /package/dist/{chunk-ESW25WSD.js.map → chunk-KOJC3TH4.js.map} +0 -0
- /package/dist/{chunk-GIEST52U.js.map → chunk-LHHHJIDR.js.map} +0 -0
- /package/dist/{chunk-FC56EMHT.js.map → chunk-NKF5NIML.js.map} +0 -0
- /package/dist/{chunk-LKKKTBLL.js.map → chunk-O3NOGKMT.js.map} +0 -0
- /package/dist/{chunk-XNRM3QGR.js.map → chunk-ORYA2G7S.js.map} +0 -0
- /package/dist/{chunk-PT72OARU.js.map → chunk-RIN6Z56W.js.map} +0 -0
- /package/dist/{chunk-LT2YQCZI.js.map → chunk-RLW4Y5ZV.js.map} +0 -0
- /package/dist/{chunk-PKW3II5M.js.map → chunk-TLSP5JKG.js.map} +0 -0
- /package/dist/{chunk-BQ2C2Y54.js.map → chunk-UOV2LEXS.js.map} +0 -0
- /package/dist/{chunk-ZZZU6XER.js.map → chunk-UWY5PUHR.js.map} +0 -0
- /package/dist/{chunk-DMN6EF3R.js.map → chunk-XMVSQIK4.js.map} +0 -0
- /package/dist/{chunk-WEL535AI.js.map → chunk-XRBM6PBD.js.map} +0 -0
- /package/dist/{chunk-2DK7UBAG.js.map → chunk-YIGFQWZV.js.map} +0 -0
- /package/dist/{chunk-IIQENUOK.js.map → chunk-ZYDDHHZZ.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-learning-client.d.ts","sourceRoot":"","sources":["../../../../../src/tool-learning-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EASL,oCAAoC,EAOpC,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,+BAA+B,EACrC,MAAM,+BAA+B,CAAC;AAQvC;yEACyE;AACzE,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAUjD,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAiB/C,CAAC;AACF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;mBAgB/C,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAoC5C,CAAC;AACF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAgBrC,CAAC;AAEF,wBAAgB,+BAA+B,CAC7C,YAAY,EAAE,wBAAwB,EACtC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWlB;AAED,qBAAa,yBAA0B,SAAQ,KAAK;IAEhD,QAAQ,CAAC,MAAM,EAAE,MAAM;IACvB,QAAQ,CAAC,IA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,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqB1D;IAEK,OAAO,CAAC,KAAK,EAAE,+BAA+B,EAAE,MAAM,CAAC,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAWzE;IAEK,YAAY,CAAC,KAAK,EAAE,+BAA+B,EAAE,MAAM,CAAC,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgB9E;CA4DF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ToolEpisodeEvent } from "@openpond/evals/tool-learning";
|
|
1
|
+
import { type ToolEpisodeEvent, type ToolLearningConsultationRequest } from "@openpond/evals/tool-learning";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export declare const LocalToolLearningInstallationSchema: z.ZodObject<{
|
|
4
4
|
schemaVersion: z.ZodLiteral<"openpond.localToolLearningInstallation.v1">;
|
|
@@ -50,14 +50,82 @@ export declare class ToolLearningLocalStore {
|
|
|
50
50
|
private readonly db;
|
|
51
51
|
constructor(home: string);
|
|
52
52
|
close(): void;
|
|
53
|
+
/** Short-lived sanitized correlation, not a conversation archive. Stable
|
|
54
|
+
* boundaries survive separate hook processes and lost acknowledgements. */
|
|
55
|
+
captureBoundary(installationId: string, sessionId: string, callId: string, phase: "attempt" | "observation"): ToolEpisodeEvent | null;
|
|
56
|
+
retainCaptureBoundary(value: unknown, now?: number): ToolEpisodeEvent | null;
|
|
57
|
+
recordDropped(installationId: string): void;
|
|
58
|
+
recordClientObservation(installationId: string, name: string): void;
|
|
59
|
+
/** Keep bounded follow-up evidence after a failure so success sampling does
|
|
60
|
+
* not discard a possible recovery. This is not a verified recovery link. */
|
|
61
|
+
hasRecoveryCandidateContext(installationId: string, sessionId: string, now?: number): boolean;
|
|
62
|
+
clientObservations(installationId: string): Record<string, import("node:sqlite").SQLOutputValue>[];
|
|
63
|
+
consultationRequest(installationId: string, operationId: string): ToolLearningConsultationRequest | null;
|
|
64
|
+
consultationForCall(installationId: string, sessionId: string, callId: string): {
|
|
65
|
+
schemaVersion: "openpond.toolLearningConsultation.v1";
|
|
66
|
+
operationId: string;
|
|
67
|
+
installationId: string;
|
|
68
|
+
scope: {
|
|
69
|
+
teamId: string;
|
|
70
|
+
projectId: string;
|
|
71
|
+
};
|
|
72
|
+
sessionId: string;
|
|
73
|
+
callId: string;
|
|
74
|
+
capabilityId: string;
|
|
75
|
+
manifestHash: string;
|
|
76
|
+
modelRelease: {
|
|
77
|
+
id: string;
|
|
78
|
+
contentHash: string;
|
|
79
|
+
};
|
|
80
|
+
mode: "recovery";
|
|
81
|
+
intent: string;
|
|
82
|
+
action: {
|
|
83
|
+
kind: "python";
|
|
84
|
+
code: string;
|
|
85
|
+
} | {
|
|
86
|
+
kind: "shell";
|
|
87
|
+
command: string;
|
|
88
|
+
shell: string;
|
|
89
|
+
} | {
|
|
90
|
+
kind: "tool_arguments";
|
|
91
|
+
arguments: Record<string, z.JSONType>;
|
|
92
|
+
} | {
|
|
93
|
+
kind: "edit";
|
|
94
|
+
patch: string;
|
|
95
|
+
baseFiles: {
|
|
96
|
+
path: string;
|
|
97
|
+
contentHash: string | null;
|
|
98
|
+
}[];
|
|
99
|
+
};
|
|
100
|
+
actionHash: string;
|
|
101
|
+
environment: {
|
|
102
|
+
application: string;
|
|
103
|
+
version: string;
|
|
104
|
+
state: Record<string, string | number | boolean | null>;
|
|
105
|
+
fingerprint: string;
|
|
106
|
+
};
|
|
107
|
+
contextHash: string;
|
|
108
|
+
failure: {
|
|
109
|
+
message: string;
|
|
110
|
+
observation: {
|
|
111
|
+
id: string;
|
|
112
|
+
contentHash: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
round: number;
|
|
116
|
+
} | null;
|
|
117
|
+
retainConsultationRequest(value: unknown): ToolLearningConsultationRequest;
|
|
118
|
+
private retainedUsage;
|
|
119
|
+
private expireCaptureBoundaries;
|
|
53
120
|
installation(id: string): LocalToolLearningInstallation | null;
|
|
54
121
|
installations(): LocalToolLearningInstallation[];
|
|
55
122
|
configure(value: unknown): LocalToolLearningInstallation;
|
|
56
123
|
append(value: unknown, now?: number): "retained" | "already_retained" | "disabled" | "expired" | "queue_full";
|
|
57
|
-
pending(installationId: string, limit?:
|
|
124
|
+
pending(installationId: string, limit?: number): ToolEpisodeEvent[];
|
|
58
125
|
acknowledge(installationId: string, accepted: Array<{
|
|
59
126
|
eventId: string;
|
|
60
127
|
contentHash: string;
|
|
128
|
+
state?: "retained" | "already_retained" | "privacy_rejected";
|
|
61
129
|
}>): void;
|
|
62
130
|
status(installationId: string): {
|
|
63
131
|
pendingEvents: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-learning-local-store.d.ts","sourceRoot":"","sources":["../../../../../src/tool-learning-local-store.ts"],"names":[],"mappings":"AAGA,OAAO,EAOL,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"tool-learning-local-store.d.ts","sourceRoot":"","sources":["../../../../../src/tool-learning-local-store.ts"],"names":[],"mappings":"AAGA,OAAO,EAOL,KAAK,gBAAgB,EAErB,KAAK,+BAA+B,EACrC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAYrC,CAAC;AACZ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG;;GAEG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAe;IAElC,YAAY,IAAI,EAAE,MAAM,EAoDvB;IAED,KAAK,IAAI,IAAI,CAEZ;IAED;+EAC2E;IAC3E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gBAAgB,EAAE,CAYpB;IAED,WAAW,CACT,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,KAAK,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,UAAU,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;KAC9D,CAAC,GACD,IAAI,CAgBN;IAED,MAAM,CAAC,cAAc,EAAE,MAAM;QAsBzB,aAAa;QACb,YAAY;QACZ,aAAa;QACb,aAAa;QACb,qBAAqB;MAExB;IAED,OAAO,CAAC,WAAW;IAYnB,OAAO,CAAC,MAAM;CAiBf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-learning.d.ts","sourceRoot":"","sources":["../../../../../src/tool-learning.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,cAAc,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"tool-learning.d.ts","sourceRoot":"","sources":["../../../../../src/tool-learning.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC"}
|
|
@@ -50,6 +50,26 @@ export declare function materializeLearningBatchTaskset(input: {
|
|
|
50
50
|
} | null;
|
|
51
51
|
status: "archived" | "awaiting_disclosure_approval" | "awaiting_materialization_approval" | "baselining" | "blocked" | "draft" | "failed" | "materializing" | "needs_review" | "ready" | "validating";
|
|
52
52
|
sourceRefs: ({
|
|
53
|
+
schemaVersion: "openpond.connectedDatasetSource.v1";
|
|
54
|
+
kind: "connected_activity";
|
|
55
|
+
id: string;
|
|
56
|
+
profileId: string;
|
|
57
|
+
title: string;
|
|
58
|
+
sourceHash: string;
|
|
59
|
+
occurredAt: string;
|
|
60
|
+
licensingStatus: "approved" | "blocked" | "pending" | "review";
|
|
61
|
+
secretScanStatus: "blocked" | "passed" | "pending";
|
|
62
|
+
piiScanStatus: "blocked" | "passed" | "pending" | "review";
|
|
63
|
+
origin: "claude_code" | "codex" | "grok_build" | "hermes" | "native_chat" | "native_work" | "oh_my_pi" | "openclaw" | "opencode" | "pi";
|
|
64
|
+
sourceId: string;
|
|
65
|
+
sessionId: string;
|
|
66
|
+
normalizerVersion: string;
|
|
67
|
+
projection: "conversation" | "turn";
|
|
68
|
+
ownerUserId: string;
|
|
69
|
+
purpose: "recorded_evaluation";
|
|
70
|
+
sourceFileHashes?: string[] | undefined;
|
|
71
|
+
metadata: Record<string, unknown>;
|
|
72
|
+
} | {
|
|
53
73
|
id: string;
|
|
54
74
|
profileId: string;
|
|
55
75
|
title: string;
|
|
@@ -149,26 +169,6 @@ export declare function materializeLearningBatchTaskset(input: {
|
|
|
149
169
|
piiScanStatus: "blocked" | "passed" | "pending" | "review";
|
|
150
170
|
licensingStatus: "approved" | "blocked" | "pending" | "review";
|
|
151
171
|
metadata: Record<string, unknown>;
|
|
152
|
-
} | {
|
|
153
|
-
schemaVersion: "openpond.connectedDatasetSource.v1";
|
|
154
|
-
kind: "connected_activity";
|
|
155
|
-
id: string;
|
|
156
|
-
profileId: string;
|
|
157
|
-
title: string;
|
|
158
|
-
sourceHash: string;
|
|
159
|
-
occurredAt: string;
|
|
160
|
-
licensingStatus: "approved" | "blocked" | "pending" | "review";
|
|
161
|
-
secretScanStatus: "blocked" | "passed" | "pending";
|
|
162
|
-
piiScanStatus: "blocked" | "passed" | "pending" | "review";
|
|
163
|
-
origin: "claude_code" | "codex" | "grok_build" | "hermes" | "native_chat" | "native_work" | "oh_my_pi" | "openclaw" | "opencode" | "pi";
|
|
164
|
-
sourceId: string;
|
|
165
|
-
sessionId: string;
|
|
166
|
-
normalizerVersion: string;
|
|
167
|
-
projection: "conversation" | "turn";
|
|
168
|
-
ownerUserId: string;
|
|
169
|
-
purpose: "recorded_evaluation";
|
|
170
|
-
sourceFileHashes?: string[] | undefined;
|
|
171
|
-
metadata: Record<string, unknown>;
|
|
172
172
|
})[];
|
|
173
173
|
datasetArtifact?: {
|
|
174
174
|
schemaVersion: "openpond.datasetArtifact.v1";
|
|
@@ -941,6 +941,26 @@ export declare function prepareReviewedLearningBatch(input: Omit<Parameters<type
|
|
|
941
941
|
} | null;
|
|
942
942
|
status: "archived" | "awaiting_disclosure_approval" | "awaiting_materialization_approval" | "baselining" | "blocked" | "draft" | "failed" | "materializing" | "needs_review" | "ready" | "validating";
|
|
943
943
|
sourceRefs: ({
|
|
944
|
+
schemaVersion: "openpond.connectedDatasetSource.v1";
|
|
945
|
+
kind: "connected_activity";
|
|
946
|
+
id: string;
|
|
947
|
+
profileId: string;
|
|
948
|
+
title: string;
|
|
949
|
+
sourceHash: string;
|
|
950
|
+
occurredAt: string;
|
|
951
|
+
licensingStatus: "approved" | "blocked" | "pending" | "review";
|
|
952
|
+
secretScanStatus: "blocked" | "passed" | "pending";
|
|
953
|
+
piiScanStatus: "blocked" | "passed" | "pending" | "review";
|
|
954
|
+
origin: "claude_code" | "codex" | "grok_build" | "hermes" | "native_chat" | "native_work" | "oh_my_pi" | "openclaw" | "opencode" | "pi";
|
|
955
|
+
sourceId: string;
|
|
956
|
+
sessionId: string;
|
|
957
|
+
normalizerVersion: string;
|
|
958
|
+
projection: "conversation" | "turn";
|
|
959
|
+
ownerUserId: string;
|
|
960
|
+
purpose: "recorded_evaluation";
|
|
961
|
+
sourceFileHashes?: string[] | undefined;
|
|
962
|
+
metadata: Record<string, unknown>;
|
|
963
|
+
} | {
|
|
944
964
|
id: string;
|
|
945
965
|
profileId: string;
|
|
946
966
|
title: string;
|
|
@@ -1040,26 +1060,6 @@ export declare function prepareReviewedLearningBatch(input: Omit<Parameters<type
|
|
|
1040
1060
|
piiScanStatus: "blocked" | "passed" | "pending" | "review";
|
|
1041
1061
|
licensingStatus: "approved" | "blocked" | "pending" | "review";
|
|
1042
1062
|
metadata: Record<string, unknown>;
|
|
1043
|
-
} | {
|
|
1044
|
-
schemaVersion: "openpond.connectedDatasetSource.v1";
|
|
1045
|
-
kind: "connected_activity";
|
|
1046
|
-
id: string;
|
|
1047
|
-
profileId: string;
|
|
1048
|
-
title: string;
|
|
1049
|
-
sourceHash: string;
|
|
1050
|
-
occurredAt: string;
|
|
1051
|
-
licensingStatus: "approved" | "blocked" | "pending" | "review";
|
|
1052
|
-
secretScanStatus: "blocked" | "passed" | "pending";
|
|
1053
|
-
piiScanStatus: "blocked" | "passed" | "pending" | "review";
|
|
1054
|
-
origin: "claude_code" | "codex" | "grok_build" | "hermes" | "native_chat" | "native_work" | "oh_my_pi" | "openclaw" | "opencode" | "pi";
|
|
1055
|
-
sourceId: string;
|
|
1056
|
-
sessionId: string;
|
|
1057
|
-
normalizerVersion: string;
|
|
1058
|
-
projection: "conversation" | "turn";
|
|
1059
|
-
ownerUserId: string;
|
|
1060
|
-
purpose: "recorded_evaluation";
|
|
1061
|
-
sourceFileHashes?: string[] | undefined;
|
|
1062
|
-
metadata: Record<string, unknown>;
|
|
1063
1063
|
})[];
|
|
1064
1064
|
datasetArtifact?: {
|
|
1065
1065
|
schemaVersion: "openpond.datasetArtifact.v1";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/learning-credentials.ts","../src/learning-client.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { ReleaseIdSchema } from \"@openpond/harness\";\nimport { LearningRevisionRefSchema } from \"@openpond/evals/learning\";\nimport { TaskSplitSchema } from \"@openpond/evals/tasksets\";\n\n/** Source credentials can submit evidence and feedback for one source only. */\nexport const LearningSourceCredentialSchema = z.object({\n id: ReleaseIdSchema,\n scope: ReleaseIdSchema,\n sourceId: ReleaseIdSchema,\n name: z.string().trim().min(1).max(100),\n keyPrefix: z.string().min(1).max(100),\n createdAt: z.iso.datetime(),\n expiresAt: z.iso.datetime(),\n revokedAt: z.iso.datetime().nullable(),\n}).strict();\nexport type LearningSourceCredential = z.infer<typeof LearningSourceCredentialSchema>;\nexport const LearningSourceCredentialSecretSchema = z.string().regex(/^opk_key_[A-Za-z0-9]{16}_[A-Za-z0-9]{48}$/);\n\nexport const LearningSourceCredentialRequestSchema = z.discriminatedUnion(\"action\", [\n z.object({ action: z.literal(\"create\"), scope: ReleaseIdSchema, sourceId: ReleaseIdSchema, name: z.string().trim().min(1).max(100), expiresAt: z.iso.datetime(), operationId: ReleaseIdSchema, apiKey: LearningSourceCredentialSecretSchema }).strict(),\n z.object({ action: z.literal(\"list\"), scope: ReleaseIdSchema, sourceId: ReleaseIdSchema, afterId: ReleaseIdSchema.optional(), limit: z.number().int().min(1).max(100).default(30) }).strict(),\n z.object({ action: z.literal(\"revoke\"), scope: ReleaseIdSchema, sourceId: ReleaseIdSchema, id: ReleaseIdSchema }).strict(),\n]);\nexport type LearningSourceCredentialRequest = z.infer<typeof LearningSourceCredentialRequestSchema>;\nexport const LearningSourceCredentialCreatedSchema = z.object({ credential: LearningSourceCredentialSchema, apiKey: LearningSourceCredentialSecretSchema }).strict();\nexport const LearningSourceCredentialPageSchema = z.object({ items: z.array(LearningSourceCredentialSchema).max(100), nextCursor: ReleaseIdSchema.nullable() }).strict();\nexport const LearningSourceConfigurationRequestSchema = z.object({ scope: ReleaseIdSchema, sourceId: ReleaseIdSchema }).strict();\nexport const LearningSourceConfigurationSchema = z.object({\n scope: ReleaseIdSchema, source: LearningRevisionRefSchema, taskDefinition: LearningRevisionRefSchema,\n enabled: z.boolean(), allowedSplits: z.array(TaskSplitSchema).min(1).max(4),\n}).strict();\n\n/** Keep this request in memory for retries. Hosts persist hashes, never its secret. */\nexport function createSourceCredentialRequest(input: { sourceId: string; name: string; expiresAt: string }) {\n return { ...input, operationId: crypto.randomUUID(), apiKey: `opk_key_${randomToken(16)}_${randomToken(48)}` };\n}\n\nfunction randomToken(length: number): string {\n const alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n let value = \"\";\n while (value.length < length) {\n for (const byte of crypto.getRandomValues(new Uint8Array(64))) {\n // Rejection sampling avoids modulo bias in the 62-character alphabet.\n if (byte < 248) value += alphabet[byte % 62];\n if (value.length === length) return value;\n }\n }\n return value;\n}\n\n/** Hosts enforce expiry when issuing and authenticating; tokens are never permanent. */\nexport function assertLearningCredentialExpiry(expiresAt: string, now: Date): void {\n const expires = Date.parse(z.iso.datetime().parse(expiresAt));\n if (expires <= now.getTime() || expires > now.getTime() + 90 * 24 * 60 * 60 * 1_000) throw new Error(\"Source credentials must expire within 90 days.\");\n}\n","import { OpenPondLearningError } from \"./learning-error.js\";\nexport { OpenPondLearningError } from \"./learning-error.js\";\nimport { z } from \"zod\";\nimport {\n LearningCommandRequestSchema, LearningOperationResultSchema, LearningReadRequestSchema,\n TaskEvidenceInspectionResultSchema, sameLearningRef, type LearningRevisionRef,\n LearningPolicyInspectionResultSchema,\n LearningTaskQueueInspectionSchema,\n assertLearningRequestJson,\n learningResourceSchemas, type LearningCommand, type LearningOperationResult,\n type LearningResourceFor, type LearningResourceKind, type LearningResourcePage,\n type LearningResourceQuery, type TaskExampleSubmission, type TaskFeedbackSubmission,\n} from \"@openpond/evals/learning\";\nimport { assertBoundedTaskJson } from \"@openpond/evals/task-schema\";\nimport { LearningSourceCredentialSchema, LearningSourceCredentialRequestSchema, LearningSourceCredentialCreatedSchema, LearningSourceCredentialPageSchema, LearningSourceConfigurationRequestSchema, LearningSourceConfigurationSchema, type LearningSourceCredentialRequest } from \"./learning-credentials.js\";\n\nexport interface OpenPondLearningClientOptions {\n apiKey: string;\n baseUrl: string;\n /** Local profile or hosted team scope. The server checks the credential's ownership. */\n scope: string;\n fetch?: typeof globalThis.fetch;\n}\nexport interface LearningRequestOptions { signal?: AbortSignal }\nexport const LearningBatchPublicationSchema = z.object({\n batchId: z.string().trim().min(1).max(500), modelProjectId: z.string().trim().min(1).max(500),\n}).strict();\nexport const LearningBatchPublicationResultSchema = z.object({\n batchId: z.string().min(1), projectId: z.string().min(1), tasksetId: z.string().min(1),\n releaseId: z.string().min(1), revision: z.number().int().positive(), contentHash: z.string().regex(/^[a-f0-9]{64}$/),\n}).strict();\n/** The same portable commands are sent to the local and hosted execution owner. */\nexport class OpenPondLearningClient {\n readonly #options: OpenPondLearningClientOptions;\n constructor(options: OpenPondLearningClientOptions) {\n if (!options.apiKey.trim() || !options.scope.trim()) throw new Error(\"Learning API key and scope are required.\");\n const url = new URL(options.baseUrl);\n if (![\"http:\", \"https:\"].includes(url.protocol) || url.username || url.password || url.search || url.hash) throw new Error(\"Learning base URL must be an HTTP(S) endpoint without credentials, query, or fragment.\");\n this.#options = { ...options, baseUrl: url.toString().replace(/\\/+$/, \"\") };\n }\n\n async command(command: LearningCommand, options: LearningRequestOptions = {}): Promise<LearningOperationResult> {\n assertLearningRequestJson(command);\n const request = LearningCommandRequestSchema.parse({ scope: this.#options.scope, command });\n const result = LearningOperationResultSchema.parse(await this.#request(\"commands\", request, options));\n if (result.operationId !== command.operationId) throw new OpenPondLearningError(502, \"operation_identity_mismatch\", \"Learning response did not match the submitted operation.\", null);\n return result;\n }\n\n submitExample(example: TaskExampleSubmission, options: LearningRequestOptions = {}) {\n return this.command({ action: \"submit_example\", operationId: example.idempotencyKey, example }, options);\n }\n\n submitFeedback(feedback: TaskFeedbackSubmission, options: LearningRequestOptions = {}) {\n return this.command({ action: \"submit_feedback\", operationId: feedback.idempotencyKey, feedback }, options);\n }\n\n async get<K extends LearningResourceKind>(kind: K, id: string, revision?: number, options: LearningRequestOptions = {}): Promise<LearningResourceFor<K>> {\n const request = LearningReadRequestSchema.parse({ action: \"get\", scope: this.#options.scope, kind, id, ...(revision === undefined ? {} : { revision }) });\n return learningResourceSchemas[kind].parse(await this.#request(\"read\", request, options)) as LearningResourceFor<K>;\n }\n\n async inspectEvidence(evidence: LearningRevisionRef, options: LearningRequestOptions = {}) {\n const request = LearningReadRequestSchema.parse({ action: \"inspect_evidence\", scope: this.#options.scope, evidence });\n const result = TaskEvidenceInspectionResultSchema.parse(await this.#request(\"read\", request, options));\n if (!sameLearningRef(result.evidence, evidence)) throw new OpenPondLearningError(502, \"evidence_identity_mismatch\", \"Inspection did not match the requested evidence release.\", null);\n return result;\n }\n\n /** Read current shared eligibility and budget without reserving or launching work. */\n async inspectTaskQueue(modelProjectId: string | null = null, options: LearningRequestOptions = {}) {\n const request = LearningReadRequestSchema.parse({ action: \"inspect_task_queue\", scope: this.#options.scope, modelProjectId });\n const result = LearningTaskQueueInspectionSchema.parse(await this.#request(\"read\", request, options));\n if (result.modelProjectId !== modelProjectId) throw new OpenPondLearningError(502, \"model_identity_mismatch\", \"Task queue did not match the requested Model.\", null);\n return result;\n }\n\n /** Read current shared eligibility and budget without reserving or launching work. */\n async inspectPolicy(policy: LearningRevisionRef, options: LearningRequestOptions = {}) {\n const request = LearningReadRequestSchema.parse({ action: \"inspect_policy\", scope: this.#options.scope, policy });\n const result = LearningPolicyInspectionResultSchema.parse(await this.#request(\"read\", request, options));\n if (!sameLearningRef(result.policy, policy)) throw new OpenPondLearningError(502, \"policy_identity_mismatch\", \"Inspection did not match the requested policy release.\", null);\n return result;\n }\n\n /** Prepare once with createSourceCredentialRequest and reuse it for retries. */\n async createSourceCredential(input: Omit<Extract<LearningSourceCredentialRequest, { action: \"create\" }>, \"action\" | \"scope\">, options: LearningRequestOptions = {}) {\n const request = LearningSourceCredentialRequestSchema.parse({ ...input, action: \"create\", scope: this.#options.scope });\n const result = LearningSourceCredentialCreatedSchema.parse(await this.#request(\"credentials\", request, options));\n this.#assertCredentialScope(result.credential, input.sourceId);\n if (result.apiKey !== input.apiKey || !input.apiKey.startsWith(`${result.credential.keyPrefix}_`)) throw new OpenPondLearningError(502, \"credential_identity_mismatch\", \"Credential response did not match the prepared credential.\", null);\n return result;\n }\n\n async listSourceCredentials(sourceId: string, query: { afterId?: string; limit?: number } = {}, options: LearningRequestOptions = {}) {\n const request = LearningSourceCredentialRequestSchema.parse({ ...query, action: \"list\", scope: this.#options.scope, sourceId });\n const result = LearningSourceCredentialPageSchema.parse(await this.#request(\"credentials\", request, options));\n if (result.items.length > (query.limit ?? 30)) throw new OpenPondLearningError(502, \"credential_page_invalid\", \"Credential response exceeded the requested page size.\", null);\n for (const item of result.items) this.#assertCredentialScope(item, sourceId);\n return result;\n }\n\n async revokeSourceCredential(sourceId: string, id: string, options: LearningRequestOptions = {}) {\n const request = LearningSourceCredentialRequestSchema.parse({ action: \"revoke\", scope: this.#options.scope, sourceId, id });\n const result = LearningSourceCredentialSchema.parse(await this.#request(\"credentials\", request, options));\n this.#assertCredentialScope(result, sourceId);\n if (result.id !== id || result.revokedAt === null) throw new OpenPondLearningError(502, \"credential_revocation_mismatch\", \"Credential revocation did not match the requested credential.\", null);\n return result;\n }\n\n async sourceConfiguration(sourceId: string, options: LearningRequestOptions = {}) {\n const request = LearningSourceConfigurationRequestSchema.parse({ scope: this.#options.scope, sourceId });\n const result = LearningSourceConfigurationSchema.parse(await this.#request(\"source-config\", request, options));\n if (result.scope !== this.#options.scope || result.source.id !== sourceId) throw new OpenPondLearningError(502, \"source_identity_mismatch\", \"Source configuration did not match the requested source.\", null);\n return result;\n }\n\n #assertCredentialScope(value: { scope: string; sourceId: string }, sourceId: string) {\n if (value.scope !== this.#options.scope || value.sourceId !== sourceId) throw new OpenPondLearningError(502, \"credential_scope_mismatch\", \"Credential response did not match the requested source.\", null);\n }\n\n async list<K extends LearningResourceKind>(kind: K, query: Partial<LearningResourceQuery> = {}, options: LearningRequestOptions = {}): Promise<LearningResourcePage<K>> {\n const request = LearningReadRequestSchema.parse({ action: \"list\", scope: this.#options.scope, kind, ...query });\n return z.object({ items: z.array(learningResourceSchemas[kind]).max(100), nextCursor: z.string().nullable() }).strict().parse(await this.#request(\"read\", request, options)) as LearningResourcePage<K>;\n }\n\n /** Hosted publication only: stores an immutable package and attaches it, without starting training. */\n async publishBatch(input: z.infer<typeof LearningBatchPublicationSchema>, options: LearningRequestOptions = {}) {\n const request = LearningBatchPublicationSchema.parse(input);\n const result = LearningBatchPublicationResultSchema.parse(await this.#request(\"publish-batch\", { ...request, scope: this.#options.scope }, options));\n if (result.batchId !== request.batchId) throw new OpenPondLearningError(502, \"batch_identity_mismatch\", \"Published batch response did not match the requested batch.\", null);\n return result;\n }\n\n async #request(endpoint: \"commands\" | \"read\" | \"publish-batch\" | \"credentials\" | \"source-config\", body: unknown, options: LearningRequestOptions): Promise<unknown> {\n assertBoundedTaskJson(body, 16_777_216);\n const response = await (this.#options.fetch ?? globalThis.fetch)(`${this.#options.baseUrl}/v1/learning/${endpoint}`, {\n method: \"POST\", headers: { Authorization: `Bearer ${this.#options.apiKey}`, \"Content-Type\": \"application/json\", Accept: \"application/json\", \"X-OpenPond-Team-Id\": this.#options.scope }, body: JSON.stringify(body), signal: options.signal,\n redirect: \"error\",\n });\n const payload = await readBoundedLearningResponse(response);\n if (!response.ok) {\n const error = z.object({ code: z.string().optional(), error: z.string().optional() }).passthrough().safeParse(payload);\n throw new OpenPondLearningError(response.status, error.success ? error.data.code ?? \"learning_request_failed\" : \"learning_request_failed\", error.success ? error.data.error ?? `Learning request failed (${response.status}).` : `Learning request failed (${response.status}).`, payload);\n }\n return payload;\n }\n}\n\nexport async function readBoundedLearningResponse(response: Response): Promise<unknown> {\n const maximumBytes = 16_777_216;\n const reader = response.body?.getReader();\n if (!reader) throw new OpenPondLearningError(response.status, \"empty_response\", \"Learning response was empty.\", null);\n const decoder = new TextDecoder();\n let bytes = 0;\n let text = \"\";\n try {\n while (true) {\n const next = await reader.read();\n if (next.done) break;\n bytes += next.value.byteLength;\n if (bytes > maximumBytes) throw new OpenPondLearningError(response.status, \"response_too_large\", \"Learning response exceeded 16 MiB; request a smaller page.\", null);\n text += decoder.decode(next.value, { stream: true });\n }\n text += decoder.decode();\n const value: unknown = JSON.parse(text);\n assertBoundedTaskJson(value, maximumBytes);\n return value;\n } finally {\n await reader.cancel();\n reader.releaseLock();\n }\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,SAAS;AAElB,SAAS,iCAAiC;AAC1C,SAAS,uBAAuB;AAGzB,IAAM,iCAAiC,EAAE,OAAO;AAAA,EACrD,IAAI;AAAA,EACJ,OAA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SAAS,MAAM,OAAO,4BAA4B,SAAS,MAAM,MAAM,OAAO;AAAA,IAC3R;AACA,WAAO;AAAA,EACT;AACF;AAEA,eAAsB,4BAA4B,UAAsC;AACtF,QAAM,eAAe;AACrB,QAAM,SAAS,SAAS,MAAM,UAAU;AACxC,MAAI,CAAC,OAAQ,OAAM,IAAI,sBAAsB,SAAS,QAAQ,kBAAkB,gCAAgC,IAAI;AACpH,QAAM,UAAU,IAAI,YAAY;AAChC,MAAI,QAAQ;AACZ,MAAI,OAAO;AACX,MAAI;AACF,WAAO,MAAM;AACX,YAAM,OAAO,MAAM,OAAO,KAAK;AAC/B,UAAI,KAAK,KAAM;AACf,eAAS,KAAK,MAAM;AACpB,UAAI,QAAQ,aAAc,OAAM,IAAI,sBAAsB,SAAS,QAAQ,sBAAsB,8DAA8D,IAAI;AACnK,cAAQ,QAAQ,OAAO,KAAK,OAAO,EAAE,QAAQ,KAAK,CAAC;AAAA,IACrD;AACA,YAAQ,QAAQ,OAAO;AACvB,UAAM,QAAiB,KAAK,MAAM,IAAI;AACtC,0BAAsB,OAAO,YAAY;AACzC,WAAO;AAAA,EACT,UAAE;AACA,UAAM,OAAO,OAAO;AACpB,WAAO,YAAY;AAAA,EACrB;AACF;","names":["z","z"]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|