openpond-sdk 0.0.11 → 0.0.13
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 +47 -0
- package/dist/actions-local.js +34 -14551
- package/dist/actions-local.js.map +4 -4
- package/dist/actions.js +12 -14530
- package/dist/actions.js.map +4 -4
- package/dist/index.js +582 -29
- package/dist/index.js.map +4 -4
- package/dist/model-projects.js +215 -0
- package/dist/model-projects.js.map +7 -0
- package/dist/profile-actions.js +1 -20
- package/dist/profile-actions.js.map +3 -3
- package/dist/project-actions.js +1 -20
- package/dist/project-actions.js.map +3 -3
- package/dist/refiner.js +568 -0
- package/dist/refiner.js.map +7 -0
- package/dist/training.js +470 -0
- package/dist/training.js.map +7 -0
- package/dist/types/packages/cloud/src/api/core.d.ts.map +1 -1
- package/dist/types/packages/cloud/src/hosted-chat.d.ts +20 -0
- package/dist/types/packages/cloud/src/hosted-chat.d.ts.map +1 -1
- package/dist/types/packages/cloud/src/sandbox/client-handles.d.ts +2 -1
- package/dist/types/packages/cloud/src/sandbox/client-handles.d.ts.map +1 -1
- package/dist/types/packages/cloud/src/sandbox/client.d.ts +3 -1
- package/dist/types/packages/cloud/src/sandbox/client.d.ts.map +1 -1
- package/dist/types/packages/cloud/src/sandbox/types/org-project-agent.d.ts +13 -0
- package/dist/types/packages/cloud/src/sandbox/types/org-project-agent.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/index.d.ts +1 -0
- package/dist/types/packages/sdk/src/index.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/model-projects.d.ts +804 -0
- package/dist/types/packages/sdk/src/model-projects.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/refiner.d.ts +6 -0
- package/dist/types/packages/sdk/src/refiner.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/training.d.ts +682 -0
- package/dist/types/packages/sdk/src/training.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/types.d.ts +1 -1
- package/dist/types/packages/sdk/src/types.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/workflows.d.ts +8 -0
- package/dist/types/packages/sdk/src/workflows.d.ts.map +1 -1
- package/dist/workflows.js +1 -20
- package/dist/workflows.js.map +3 -3
- package/package.json +17 -3
- package/dist/types/packages/cloud/src/api/vercel-protection.d.ts +0 -2
- package/dist/types/packages/cloud/src/api/vercel-protection.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -119,6 +119,25 @@ await openpond.workflows.runNow(workflow.scheduleId);
|
|
|
119
119
|
await openpond.workflows.update(workflow.scheduleId, { enabled: false });
|
|
120
120
|
```
|
|
121
121
|
|
|
122
|
+
An external product can also let OpenPond own recurrence while keeping the
|
|
123
|
+
work itself inside that product. External callbacks are created disabled by
|
|
124
|
+
default by the caller, carry only an opaque external reference, and receive a
|
|
125
|
+
verifiable Saved Work run identity when OpenPond fires them:
|
|
126
|
+
|
|
127
|
+
```ts
|
|
128
|
+
await openpond.workflows.create({
|
|
129
|
+
name: "Daily account review",
|
|
130
|
+
prompt: "Run the account-owned daily review.",
|
|
131
|
+
recurrence,
|
|
132
|
+
enabled: false,
|
|
133
|
+
target: {
|
|
134
|
+
kind: "external_callback",
|
|
135
|
+
callbackUrl: "https://app.example.com/api/workflows/openpond-callback",
|
|
136
|
+
externalReference: "opaque_binding_id",
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
```
|
|
140
|
+
|
|
122
141
|
`openpond.workflows` is distinct from `openpond.sandboxes.createSchedule()`. Workflows schedule model-driven Work and create normal Work conversations and run history. Raw sandbox schedules execute a declared sandbox command or action.
|
|
123
142
|
|
|
124
143
|
## Project Actions
|
|
@@ -213,6 +232,34 @@ await openpond.work.deleteSandbox(sandboxId);
|
|
|
213
232
|
|
|
214
233
|
The sandbox's 15-minute idle timeout is crash protection, not the normal successful-turn cleanup path. Use conservative budgets and application-level retention. API keys, provider credentials, and bypass secrets must remain in server-side configuration.
|
|
215
234
|
|
|
235
|
+
## Model Projects and training
|
|
236
|
+
|
|
237
|
+
The SDK exposes dependency-light contracts and API clients without importing
|
|
238
|
+
the OpenPond application server:
|
|
239
|
+
|
|
240
|
+
```ts
|
|
241
|
+
import {
|
|
242
|
+
ModelProjectSchema,
|
|
243
|
+
createModelProjectsClient,
|
|
244
|
+
} from "openpond-sdk/model-projects";
|
|
245
|
+
import {
|
|
246
|
+
TrainingJobSubmissionSchema,
|
|
247
|
+
createTrainingClient,
|
|
248
|
+
} from "openpond-sdk/training";
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
A Model Project is the mutable authoring object and owns one current training
|
|
252
|
+
setup. Tasksets, Harnesses, evidence, Jobs, and Model Versions remain separate
|
|
253
|
+
resources connected by immutable references. Submitting training snapshots the
|
|
254
|
+
exact Project revision into an immutable Job; the Job is the durable Run
|
|
255
|
+
identity and explicit approval is captured for that submission only.
|
|
256
|
+
|
|
257
|
+
`createModelProjectsClient` synchronizes and reads hosted Project projections.
|
|
258
|
+
`createTrainingClient` reads capabilities and creates or observes immutable
|
|
259
|
+
Jobs, including Project-filtered Run history. These clients require an
|
|
260
|
+
authenticated server-side API context; the schemas themselves contain no
|
|
261
|
+
database, provider, credential, Electron, or UI dependencies.
|
|
262
|
+
|
|
216
263
|
## Development
|
|
217
264
|
|
|
218
265
|
From the OpenPond monorepo:
|