openpond-sdk 0.6.2 → 0.6.4

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.
Files changed (39) hide show
  1. package/dist/{chunk-6T23L3LH.js → chunk-2DMYAJLS.js} +2 -2
  2. package/dist/{chunk-355XXLO3.js → chunk-2EDLQPGZ.js} +2 -2
  3. package/dist/{chunk-IHBZQQMS.js → chunk-4AMFFI3A.js} +2 -2
  4. package/dist/{chunk-22RMONJA.js → chunk-CEZEVILU.js} +4 -4
  5. package/dist/chunk-CEZEVILU.js.map +7 -0
  6. package/dist/{chunk-E5IFONUB.js → chunk-CV67IFPB.js} +2 -2
  7. package/dist/{chunk-W2FCKYHV.js → chunk-F4O2EPY4.js} +3 -3
  8. package/dist/{chunk-FJ7IMEG5.js → chunk-IWT6JUZD.js} +2 -2
  9. package/dist/{chunk-5FBPNWT4.js → chunk-KWWOJY3T.js} +39 -1
  10. package/dist/{chunk-5FBPNWT4.js.map → chunk-KWWOJY3T.js.map} +4 -4
  11. package/dist/{chunk-JHKNPQD5.js → chunk-MEKWESBF.js} +2 -2
  12. package/dist/index.js +10 -8
  13. package/dist/index.js.map +2 -2
  14. package/dist/learning.js +1 -1
  15. package/dist/model-starter-catalog.js +2 -2
  16. package/dist/model-starters.js +2 -2
  17. package/dist/model-taskset-runs.js +1 -1
  18. package/dist/profile-actions.js +2 -2
  19. package/dist/project-actions.js +2 -2
  20. package/dist/taskset-drafts.js +4 -4
  21. package/dist/taskset-packages.js +5 -5
  22. package/dist/training-bundle.js +4 -4
  23. package/dist/training.js +2 -2
  24. package/dist/types/packages/cloud/src/api/core.d.ts +2 -1
  25. package/dist/types/packages/cloud/src/api/core.d.ts.map +1 -1
  26. package/dist/types/packages/sdk/src/model-taskset-runs-contracts.d.ts +48 -0
  27. package/dist/types/packages/sdk/src/model-taskset-runs-contracts.d.ts.map +1 -1
  28. package/dist/types/packages/sdk/src/model-taskset-runs.d.ts +96 -0
  29. package/dist/types/packages/sdk/src/model-taskset-runs.d.ts.map +1 -1
  30. package/dist/workflows.js +2 -2
  31. package/package.json +3 -3
  32. package/dist/chunk-22RMONJA.js.map +0 -7
  33. /package/dist/{chunk-6T23L3LH.js.map → chunk-2DMYAJLS.js.map} +0 -0
  34. /package/dist/{chunk-355XXLO3.js.map → chunk-2EDLQPGZ.js.map} +0 -0
  35. /package/dist/{chunk-IHBZQQMS.js.map → chunk-4AMFFI3A.js.map} +0 -0
  36. /package/dist/{chunk-E5IFONUB.js.map → chunk-CV67IFPB.js.map} +0 -0
  37. /package/dist/{chunk-W2FCKYHV.js.map → chunk-F4O2EPY4.js.map} +0 -0
  38. /package/dist/{chunk-FJ7IMEG5.js.map → chunk-IWT6JUZD.js.map} +0 -0
  39. /package/dist/{chunk-JHKNPQD5.js.map → chunk-MEKWESBF.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  apiFetch,
3
3
  readApiJson
4
- } from "./chunk-22RMONJA.js";
4
+ } from "./chunk-CEZEVILU.js";
5
5
 
6
6
  // src/workflows.ts
7
7
  import { randomUUID } from "node:crypto";
@@ -77,4 +77,4 @@ function requiredId(value, label) {
77
77
  export {
78
78
  OpenPondWorkflowsClient
79
79
  };
80
- //# sourceMappingURL=chunk-JHKNPQD5.js.map
80
+ //# sourceMappingURL=chunk-MEKWESBF.js.map
package/dist/index.js CHANGED
@@ -2,21 +2,21 @@ import {
2
2
  OpenPondLearningClient,
3
3
  OpenPondLearningError
4
4
  } from "./chunk-K4C5QOSV.js";
5
- import "./chunk-5FBPNWT4.js";
5
+ import "./chunk-KWWOJY3T.js";
6
6
  import {
7
7
  OpenPondProjectActionsClient
8
- } from "./chunk-FJ7IMEG5.js";
8
+ } from "./chunk-IWT6JUZD.js";
9
9
  import {
10
10
  OpenPondProfileActionsClient
11
- } from "./chunk-6T23L3LH.js";
11
+ } from "./chunk-2DMYAJLS.js";
12
12
  import {
13
13
  OpenPondWorkflowsClient
14
- } from "./chunk-JHKNPQD5.js";
14
+ } from "./chunk-MEKWESBF.js";
15
15
  import {
16
16
  OpenPondApiError,
17
17
  apiFetch,
18
18
  readApiJson
19
- } from "./chunk-22RMONJA.js";
19
+ } from "./chunk-CEZEVILU.js";
20
20
  import "./chunk-LXXQVGQY.js";
21
21
  import {
22
22
  DEFAULT_REFINER_REVIEW_PROFILE,
@@ -943,11 +943,11 @@ var OpenPondSandboxInstanceClient = class {
943
943
  });
944
944
  }
945
945
  async request(path, init = {}) {
946
- const response = await apiFetch(this.sandboxApiUrl, this.apiKey, path, this.customEndpoint ? { ...init, useEnvironmentApiKey: false, redirect: "error" } : init);
946
+ const response = await apiFetch(this.sandboxApiUrl, this.apiKey, path, this.customEndpoint ? { ...init, explicitBearerAuth: true, redirect: "error" } : init);
947
947
  return readApiJson(response, "Sandbox request");
948
948
  }
949
949
  async requestApiRoot(path, init = {}) {
950
- const response = await apiFetch(this.apiRootUrl, this.apiKey, path, this.customEndpoint ? { ...init, useEnvironmentApiKey: false, redirect: "error" } : init);
950
+ const response = await apiFetch(this.apiRootUrl, this.apiKey, path, this.customEndpoint ? { ...init, explicitBearerAuth: true, redirect: "error" } : init);
951
951
  return readApiJson(response, "OpenPond API request");
952
952
  }
953
953
  };
@@ -2297,7 +2297,9 @@ function systemPrompt(sandboxId, hasInputs) {
2297
2297
  "You are OpenPond Work, a careful coding agent operating in an isolated Linux sandbox.",
2298
2298
  `The active sandbox is ${sandboxId}.`,
2299
2299
  ...hasInputs ? [
2300
- `Caller-provided durable files are staged under ${WORK_INPUT_DIRECTORY}; structured metadata is in ${WORK_INPUT_MANIFEST}.`
2300
+ `The authoritative saved files for this turn are staged under /workspace/${WORK_INPUT_DIRECTORY}; their manifest is /workspace/${WORK_INPUT_MANIFEST}.`,
2301
+ "Before revising a previous output, read its staged file and manifest. Copy the staged input into the output directory before editing it; previous output paths may not exist in this sandbox.",
2302
+ "Preserve the actual file bytes. Never reconstruct a saved file from the conversation or claim to have preserved it without reading the staged input."
2301
2303
  ] : [],
2302
2304
  "Use run_command to inspect the workspace, edit files, and validate your work.",
2303
2305
  `Place completed user-facing files in ${WORK_OUTPUT_DIRECTORY}. The runtime collects new and revised files there automatically when the turn completes.`,