@continuous-labs/sdk 0.0.9 → 0.0.10

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 (70) hide show
  1. package/esm/funcs/simulators-build-simulator.d.ts +1 -1
  2. package/esm/funcs/simulators-build-simulator.js +1 -1
  3. package/esm/funcs/worlds-build-world.d.ts +1 -1
  4. package/esm/funcs/worlds-build-world.js +1 -1
  5. package/esm/lib/config.d.ts +2 -2
  6. package/esm/lib/config.js +2 -2
  7. package/esm/lib/config.js.map +1 -1
  8. package/esm/models/build-simulator-request.d.ts +9 -4
  9. package/esm/models/build-simulator-request.d.ts.map +1 -1
  10. package/esm/models/build-simulator-request.js +5 -3
  11. package/esm/models/build-simulator-request.js.map +1 -1
  12. package/esm/models/build-tool-call.d.ts +17 -0
  13. package/esm/models/build-tool-call.d.ts.map +1 -0
  14. package/esm/models/build-tool-call.js +15 -0
  15. package/esm/models/build-tool-call.js.map +1 -0
  16. package/esm/models/build-world-request.d.ts +15 -0
  17. package/esm/models/build-world-request.d.ts.map +1 -1
  18. package/esm/models/build-world-request.js +11 -2
  19. package/esm/models/build-world-request.js.map +1 -1
  20. package/esm/models/index.d.ts +2 -1
  21. package/esm/models/index.d.ts.map +1 -1
  22. package/esm/models/index.js +2 -1
  23. package/esm/models/index.js.map +1 -1
  24. package/esm/models/operations/list-simulators.d.ts +1 -0
  25. package/esm/models/operations/list-simulators.d.ts.map +1 -1
  26. package/esm/models/operations/list-simulators.js +1 -0
  27. package/esm/models/operations/list-simulators.js.map +1 -1
  28. package/esm/models/simulator-build-progress.d.ts +5 -0
  29. package/esm/models/simulator-build-progress.d.ts.map +1 -1
  30. package/esm/models/simulator-build-progress.js +3 -0
  31. package/esm/models/simulator-build-progress.js.map +1 -1
  32. package/esm/models/simulator.d.ts +25 -3
  33. package/esm/models/simulator.d.ts.map +1 -1
  34. package/esm/models/simulator.js +14 -1
  35. package/esm/models/simulator.js.map +1 -1
  36. package/esm/models/start-world-request.d.ts +1 -1
  37. package/esm/models/world-build-progress.d.ts +85 -0
  38. package/esm/models/world-build-progress.d.ts.map +1 -0
  39. package/esm/models/world-build-progress.js +61 -0
  40. package/esm/models/world-build-progress.js.map +1 -0
  41. package/esm/models/world.d.ts +15 -7
  42. package/esm/models/world.d.ts.map +1 -1
  43. package/esm/models/world.js +5 -3
  44. package/esm/models/world.js.map +1 -1
  45. package/esm/sdk/simulators.d.ts +1 -1
  46. package/esm/sdk/simulators.js +1 -1
  47. package/esm/sdk/worlds.d.ts +1 -1
  48. package/esm/sdk/worlds.js +1 -1
  49. package/jsr.json +1 -1
  50. package/package.json +1 -1
  51. package/src/funcs/simulators-build-simulator.ts +1 -1
  52. package/src/funcs/worlds-build-world.ts +1 -1
  53. package/src/lib/config.ts +2 -2
  54. package/src/models/build-simulator-request.ts +16 -7
  55. package/src/models/build-tool-call.ts +39 -0
  56. package/src/models/build-world-request.ts +32 -5
  57. package/src/models/index.ts +2 -1
  58. package/src/models/operations/list-simulators.ts +1 -0
  59. package/src/models/simulator-build-progress.ts +10 -0
  60. package/src/models/simulator.ts +33 -3
  61. package/src/models/start-world-request.ts +1 -1
  62. package/src/models/world-build-progress.ts +152 -0
  63. package/src/models/world.ts +20 -8
  64. package/src/sdk/simulators.ts +1 -1
  65. package/src/sdk/worlds.ts +1 -1
  66. package/esm/models/world-build.d.ts +0 -77
  67. package/esm/models/world-build.d.ts.map +0 -1
  68. package/esm/models/world-build.js +0 -59
  69. package/esm/models/world-build.js.map +0 -1
  70. package/src/models/world-build.ts +0 -133
@@ -0,0 +1,85 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { BuildToolCall } from "./build-tool-call.js";
5
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
6
+ import { WorldDataSummary } from "./world-data-summary.js";
7
+ /**
8
+ * Selected model provider, or null for a build created before provider selection.
9
+ */
10
+ export declare const WorldBuildProgressBuilder: {
11
+ readonly Openai: "openai";
12
+ readonly Claude: "claude";
13
+ };
14
+ /**
15
+ * Selected model provider, or null for a build created before provider selection.
16
+ */
17
+ export type WorldBuildProgressBuilder = OpenEnum<typeof WorldBuildProgressBuilder>;
18
+ /**
19
+ * Outcome of the most recent plan submission, or null.
20
+ */
21
+ export declare const WorldBuildProgressLastSubmission: {
22
+ readonly Accepted: "accepted";
23
+ readonly Rejected: "rejected";
24
+ };
25
+ /**
26
+ * Outcome of the most recent plan submission, or null.
27
+ */
28
+ export type WorldBuildProgressLastSubmission = OpenEnum<typeof WorldBuildProgressLastSubmission>;
29
+ /**
30
+ * Current phase of starting-data preparation.
31
+ */
32
+ export declare const WorldBuildProgressStage: {
33
+ readonly Planning: "planning";
34
+ readonly Generating: "generating";
35
+ readonly Validating: "validating";
36
+ readonly Complete: "complete";
37
+ };
38
+ /**
39
+ * Current phase of starting-data preparation.
40
+ */
41
+ export type WorldBuildProgressStage = OpenEnum<typeof WorldBuildProgressStage>;
42
+ export type WorldBuildProgress = {
43
+ /**
44
+ * Selected model provider, or null for a build created before provider selection.
45
+ */
46
+ builder: WorldBuildProgressBuilder | null;
47
+ /**
48
+ * Outcome of the most recent plan submission, or null.
49
+ */
50
+ lastSubmission: WorldBuildProgressLastSubmission | null;
51
+ /**
52
+ * Name of the most recent tool, or null. Tool arguments and output are private.
53
+ */
54
+ lastTool: string | null;
55
+ /**
56
+ * The most recent tool calls, oldest first, at most 20.
57
+ */
58
+ recentTools: Array<BuildToolCall>;
59
+ /**
60
+ * Current phase of starting-data preparation.
61
+ */
62
+ stage: WorldBuildProgressStage;
63
+ /**
64
+ * Number of submitted starting-data plans.
65
+ */
66
+ submissions: number;
67
+ /**
68
+ * Verified starting data, or null before a completed build.
69
+ */
70
+ summary: WorldDataSummary | null;
71
+ /**
72
+ * Number of agent tool calls.
73
+ */
74
+ toolCalls: number;
75
+ };
76
+ /** @internal */
77
+ export declare const WorldBuildProgressBuilder$inboundSchema: z.ZodMiniType<WorldBuildProgressBuilder, unknown>;
78
+ /** @internal */
79
+ export declare const WorldBuildProgressLastSubmission$inboundSchema: z.ZodMiniType<WorldBuildProgressLastSubmission, unknown>;
80
+ /** @internal */
81
+ export declare const WorldBuildProgressStage$inboundSchema: z.ZodMiniType<WorldBuildProgressStage, unknown>;
82
+ /** @internal */
83
+ export declare const WorldBuildProgress$inboundSchema: z.ZodMiniType<WorldBuildProgress, unknown>;
84
+ export declare function worldBuildProgressFromJSON(jsonString: string): SafeParseResult<WorldBuildProgress, SDKValidationError>;
85
+ //# sourceMappingURL=world-build-progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"world-build-progress.d.ts","sourceRoot":"","sources":["../../src/models/world-build-progress.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAIjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EACL,aAAa,EAEd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAC9C,OAAO,yBAAyB,CACjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;CAGnC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,QAAQ,CACrD,OAAO,gCAAgC,CACxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;CAK1B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE/E,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,OAAO,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAC1C;;OAEG;IACH,cAAc,EAAE,gCAAgC,GAAG,IAAI,CAAC;IACxD;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAClC;;OAEG;IACH,KAAK,EAAE,uBAAuB,CAAC;IAC/B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,WAAW,CACjE,yBAAyB,EACzB,OAAO,CAC6C,CAAC;AAEvD,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,WAAW,CACxE,gCAAgC,EAChC,OAAO,CACoD,CAAC;AAE9D,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,uBAAuB,EACvB,OAAO,CAC2C,CAAC;AAErD,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,kBAAkB,EAClB,OAAO,CAsBR,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
@@ -0,0 +1,61 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { remap as remap$ } from "../lib/primitives.js";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import * as openEnums from "../types/enums.js";
8
+ import * as types from "../types/primitives.js";
9
+ import { BuildToolCall$inboundSchema, } from "./build-tool-call.js";
10
+ import { WorldDataSummary$inboundSchema, } from "./world-data-summary.js";
11
+ /**
12
+ * Selected model provider, or null for a build created before provider selection.
13
+ */
14
+ export const WorldBuildProgressBuilder = {
15
+ Openai: "openai",
16
+ Claude: "claude",
17
+ };
18
+ /**
19
+ * Outcome of the most recent plan submission, or null.
20
+ */
21
+ export const WorldBuildProgressLastSubmission = {
22
+ Accepted: "accepted",
23
+ Rejected: "rejected",
24
+ };
25
+ /**
26
+ * Current phase of starting-data preparation.
27
+ */
28
+ export const WorldBuildProgressStage = {
29
+ Planning: "planning",
30
+ Generating: "generating",
31
+ Validating: "validating",
32
+ Complete: "complete",
33
+ };
34
+ /** @internal */
35
+ export const WorldBuildProgressBuilder$inboundSchema = openEnums.inboundSchema(WorldBuildProgressBuilder);
36
+ /** @internal */
37
+ export const WorldBuildProgressLastSubmission$inboundSchema = openEnums.inboundSchema(WorldBuildProgressLastSubmission);
38
+ /** @internal */
39
+ export const WorldBuildProgressStage$inboundSchema = openEnums.inboundSchema(WorldBuildProgressStage);
40
+ /** @internal */
41
+ export const WorldBuildProgress$inboundSchema = z.pipe(z.object({
42
+ builder: types.nullable(WorldBuildProgressBuilder$inboundSchema),
43
+ last_submission: types.nullable(WorldBuildProgressLastSubmission$inboundSchema),
44
+ last_tool: types.nullable(types.string()),
45
+ recent_tools: z.array(BuildToolCall$inboundSchema),
46
+ stage: WorldBuildProgressStage$inboundSchema,
47
+ submissions: types.number(),
48
+ summary: types.nullable(WorldDataSummary$inboundSchema),
49
+ tool_calls: types.number(),
50
+ }), z.transform((v) => {
51
+ return remap$(v, {
52
+ "last_submission": "lastSubmission",
53
+ "last_tool": "lastTool",
54
+ "recent_tools": "recentTools",
55
+ "tool_calls": "toolCalls",
56
+ });
57
+ }));
58
+ export function worldBuildProgressFromJSON(jsonString) {
59
+ return safeParse(jsonString, (x) => WorldBuildProgress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorldBuildProgress' from JSON`);
60
+ }
61
+ //# sourceMappingURL=world-build-progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"world-build-progress.js","sourceRoot":"","sources":["../../src/models/world-build-progress.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAEL,2BAA2B,GAC5B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAEL,8BAA8B,GAC/B,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC;AAQX;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAQX;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAyCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAGhD,SAAS,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAEvD,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAGvD,SAAS,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAAC;AAE9D,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,SAAS,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;AAErD,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAGzC,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IAChE,eAAe,EAAE,KAAK,CAAC,QAAQ,CAC7B,8CAA8C,CAC/C;IACD,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACzC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC;IAClD,KAAK,EAAE,qCAAqC;IAC5C,WAAW,EAAE,KAAK,CAAC,MAAM,EAAE;IAC3B,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACvD,UAAU,EAAE,KAAK,CAAC,MAAM,EAAE;CAC3B,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,gBAAgB;QACnC,WAAW,EAAE,UAAU;QACvB,cAAc,EAAE,aAAa;QAC7B,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,0BAA0B,CACxC,UAAkB,EACuC;IACzD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AAAA,CACH"}
@@ -2,13 +2,14 @@ import * as z from "zod/v4-mini";
2
2
  import { OpenEnum } from "../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../types/fp.js";
4
4
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
- import { WorldBuild } from "./world-build.js";
5
+ import { WorldBuildProgress } from "./world-build-progress.js";
6
6
  import { WorldError } from "./world-error.js";
7
7
  import { WorldSimulation } from "./world-simulation.js";
8
8
  /**
9
- * building while the build runs; ready when it can be started; running or stopped once its Simulations exist; failed when building or first start fails; canceled when the build was canceled.
9
+ * pending while waiting for capacity; building while the build runs; ready when it can be started; running or stopped once its Simulations exist; failed when building or first start fails; canceled when the build was canceled.
10
10
  */
11
11
  export declare const WorldStatus: {
12
+ readonly Pending: "pending";
12
13
  readonly Building: "building";
13
14
  readonly Ready: "ready";
14
15
  readonly Running: "running";
@@ -17,7 +18,7 @@ export declare const WorldStatus: {
17
18
  readonly Canceled: "canceled";
18
19
  };
19
20
  /**
20
- * building while the build runs; ready when it can be started; running or stopped once its Simulations exist; failed when building or first start fails; canceled when the build was canceled.
21
+ * pending while waiting for capacity; building while the build runs; ready when it can be started; running or stopped once its Simulations exist; failed when building or first start fails; canceled when the build was canceled.
21
22
  */
22
23
  export type WorldStatus = OpenEnum<typeof WorldStatus>;
23
24
  export type World = {
@@ -25,9 +26,12 @@ export type World = {
25
26
  * Current clock advance operation ID, or null.
26
27
  */
27
28
  activeAdvanceId: string | null;
28
- build?: WorldBuild | undefined;
29
29
  /**
30
- * Time when the World build started.
30
+ * The build's latest progress report and verified starting data, or null before the first report.
31
+ */
32
+ build: WorldBuildProgress | null;
33
+ /**
34
+ * Time when the World was created.
31
35
  */
32
36
  createdAt: Date;
33
37
  /**
@@ -43,6 +47,10 @@ export type World = {
43
47
  * Instructions for the initial synthetic data and relationships.
44
48
  */
45
49
  instructions: string;
50
+ /**
51
+ * Name for the World.
52
+ */
53
+ name: string;
46
54
  /**
47
55
  * Created member Simulations. This list is empty before first start.
48
56
  */
@@ -52,11 +60,11 @@ export type World = {
52
60
  */
53
61
  simulators: Array<string>;
54
62
  /**
55
- * Initial simulated time. Before first Start this is the default time.
63
+ * Simulated time the World starts at: chosen at build, and changeable on the first Start.
56
64
  */
57
65
  startTime: Date;
58
66
  /**
59
- * building while the build runs; ready when it can be started; running or stopped once its Simulations exist; failed when building or first start fails; canceled when the build was canceled.
67
+ * pending while waiting for capacity; building while the build runs; ready when it can be started; running or stopped once its Simulations exist; failed when building or first start fails; canceled when the build was canceled.
60
68
  */
61
69
  status: WorldStatus;
62
70
  };
@@ -1 +1 @@
1
- {"version":3,"file":"world.d.ts","sourceRoot":"","sources":["../../src/models/world.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAIjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,UAAU,EAA4B,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,UAAU,EAA4B,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;CAOd,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAEvD,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,WAAW,EAAE,IAAI,CAAC;IAClB,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IACpC;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE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;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IACpC;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,WAAW,CAAC,WAAW,EAAE,OAAO,CACpC,CAAC;AAEvC,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAuB7D,CAAC;AAEF,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAM5C"}
@@ -6,13 +6,14 @@ import { remap as remap$ } from "../lib/primitives.js";
6
6
  import { safeParse } from "../lib/schemas.js";
7
7
  import * as openEnums from "../types/enums.js";
8
8
  import * as types from "../types/primitives.js";
9
- import { WorldBuild$inboundSchema } from "./world-build.js";
9
+ import { WorldBuildProgress$inboundSchema, } from "./world-build-progress.js";
10
10
  import { WorldError$inboundSchema } from "./world-error.js";
11
11
  import { WorldSimulation$inboundSchema, } from "./world-simulation.js";
12
12
  /**
13
- * building while the build runs; ready when it can be started; running or stopped once its Simulations exist; failed when building or first start fails; canceled when the build was canceled.
13
+ * pending while waiting for capacity; building while the build runs; ready when it can be started; running or stopped once its Simulations exist; failed when building or first start fails; canceled when the build was canceled.
14
14
  */
15
15
  export const WorldStatus = {
16
+ Pending: "pending",
16
17
  Building: "building",
17
18
  Ready: "ready",
18
19
  Running: "running",
@@ -25,12 +26,13 @@ export const WorldStatus$inboundSchema = openEnums.inboundSchema(WorldStatus);
25
26
  /** @internal */
26
27
  export const World$inboundSchema = z.pipe(z.object({
27
28
  active_advance_id: types.nullable(types.string()),
28
- build: types.optional(WorldBuild$inboundSchema),
29
+ build: types.nullable(WorldBuildProgress$inboundSchema),
29
30
  created_at: types.date(),
30
31
  current_time: types.date(),
31
32
  error: types.nullable(WorldError$inboundSchema),
32
33
  id: types.string(),
33
34
  instructions: types.string(),
35
+ name: types.string(),
34
36
  simulations: z.array(WorldSimulation$inboundSchema),
35
37
  simulators: z.array(types.string()),
36
38
  start_time: types.date(),
@@ -1 +1 @@
1
- {"version":3,"file":"world.js","sourceRoot":"","sources":["../../src/models/world.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAc,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAc,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAEL,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AA+CX,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GACpC,SAAS,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;AAEvC,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAAkC,CAAC,CAAC,IAAI,CACtE,CAAC,CAAC,MAAM,CAAC;IACP,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACjD,KAAK,EAAE,KAAK,CAAC,QAAQ,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AC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,mBAAmB,EAAE,iBAAiB;QACtC,YAAY,EAAE,WAAW;QACzB,cAAc,EAAE,aAAa;QAC7B,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,aAAa,CAC3B,UAAkB,EAC0B;IAC5C,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/C,mCAAmC,CACpC,CAAC;AAAA,CACH"}
@@ -13,7 +13,7 @@ export declare class Simulators extends ClientSDK {
13
13
  * Build Simulator
14
14
  *
15
15
  * @remarks
16
- * Starts an asynchronous Simulator build and returns the Simulator with status building. Send multipart/form-data with a JSON part named request. To build from a document, add a file part named spec with the OpenAPI or WSDL document. For an incremental build, omit spec and set parent_id and instructions.
16
+ * Starts an asynchronous Simulator build and returns the Simulator with status pending. Builds start in queue order when workspace capacity is available. Send multipart/form-data with a JSON part named request. To build from a document, add a file part named spec with the OpenAPI or WSDL document. For an incremental build, omit spec and set parent_id and instructions.
17
17
  */
18
18
  buildSimulator(request: operations.BuildSimulatorRequest, options?: RequestOptions): Promise<operations.BuildSimulatorResponse>;
19
19
  /**
@@ -22,7 +22,7 @@ export class Simulators extends ClientSDK {
22
22
  * Build Simulator
23
23
  *
24
24
  * @remarks
25
- * Starts an asynchronous Simulator build and returns the Simulator with status building. Send multipart/form-data with a JSON part named request. To build from a document, add a file part named spec with the OpenAPI or WSDL document. For an incremental build, omit spec and set parent_id and instructions.
25
+ * Starts an asynchronous Simulator build and returns the Simulator with status pending. Builds start in queue order when workspace capacity is available. Send multipart/form-data with a JSON part named request. To build from a document, add a file part named spec with the OpenAPI or WSDL document. For an incremental build, omit spec and set parent_id and instructions.
26
26
  */
27
27
  async buildSimulator(request, options) {
28
28
  return unwrapAsync(simulatorsBuildSimulator(this, request, options));
@@ -13,7 +13,7 @@ export declare class Worlds extends ClientSDK {
13
13
  * Build World
14
14
  *
15
15
  * @remarks
16
- * Starts an asynchronous World build from ready Simulators and returns it in the building state. Instructions generate and validate initial synthetic data. Start the World once it is ready to create its Simulations.
16
+ * Starts an asynchronous World build from ready Simulators and returns it in the pending state. Builds start in queue order when workspace capacity is available. Instructions generate and validate initial synthetic data. Start the World once it is ready to create its Simulations.
17
17
  */
18
18
  buildWorld(request: models.BuildWorldRequest, options?: RequestOptions): Promise<models.World>;
19
19
  /**
package/esm/sdk/worlds.js CHANGED
@@ -26,7 +26,7 @@ export class Worlds extends ClientSDK {
26
26
  * Build World
27
27
  *
28
28
  * @remarks
29
- * Starts an asynchronous World build from ready Simulators and returns it in the building state. Instructions generate and validate initial synthetic data. Start the World once it is ready to create its Simulations.
29
+ * Starts an asynchronous World build from ready Simulators and returns it in the pending state. Builds start in queue order when workspace capacity is available. Instructions generate and validate initial synthetic data. Start the World once it is ready to create its Simulations.
30
30
  */
31
31
  async buildWorld(request, options) {
32
32
  return unwrapAsync(worldsBuildWorld(this, request, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@continuous-labs/sdk",
5
- "version": "0.0.9",
5
+ "version": "0.0.10",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@continuous-labs/sdk",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "author": "Continuous Labs",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -38,7 +38,7 @@ import { isReadableStream } from "../types/streams.js";
38
38
  * Build Simulator
39
39
  *
40
40
  * @remarks
41
- * Starts an asynchronous Simulator build and returns the Simulator with status building. Send multipart/form-data with a JSON part named request. To build from a document, add a file part named spec with the OpenAPI or WSDL document. For an incremental build, omit spec and set parent_id and instructions.
41
+ * Starts an asynchronous Simulator build and returns the Simulator with status pending. Builds start in queue order when workspace capacity is available. Send multipart/form-data with a JSON part named request. To build from a document, add a file part named spec with the OpenAPI or WSDL document. For an incremental build, omit spec and set parent_id and instructions.
42
42
  */
43
43
  export function simulatorsBuildSimulator(
44
44
  client: ContinuousCore,
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Build World
32
32
  *
33
33
  * @remarks
34
- * Starts an asynchronous World build from ready Simulators and returns it in the building state. Instructions generate and validate initial synthetic data. Start the World once it is ready to create its Simulations.
34
+ * Starts an asynchronous World build from ready Simulators and returns it in the pending state. Builds start in queue order when workspace capacity is available. Instructions generate and validate initial synthetic data. Start the World once it is ready to create its Simulations.
35
35
  */
36
36
  export function worldsBuildWorld(
37
37
  client: ContinuousCore,
package/src/lib/config.ts CHANGED
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
61
61
  export const SDK_METADATA = {
62
62
  language: "typescript",
63
63
  openapiDocVersion: "v1",
64
- sdkVersion: "0.0.9",
64
+ sdkVersion: "0.0.10",
65
65
  genVersion: "2.935.1",
66
- userAgent: "speakeasy-sdk/typescript 0.0.9 2.935.1 v1 @continuous-labs/sdk",
66
+ userAgent: "speakeasy-sdk/typescript 0.0.10 2.935.1 v1 @continuous-labs/sdk",
67
67
  } as const;
@@ -23,14 +23,16 @@ export type BuildSimulatorRequestBuilder = ClosedEnum<
23
23
  /**
24
24
  * Source specification format. Omission detects the format.
25
25
  */
26
- export const SpecKind = {
26
+ export const BuildSimulatorRequestSpecKind = {
27
27
  Openapi: "openapi",
28
28
  Wsdl: "wsdl",
29
29
  } as const;
30
30
  /**
31
31
  * Source specification format. Omission detects the format.
32
32
  */
33
- export type SpecKind = ClosedEnum<typeof SpecKind>;
33
+ export type BuildSimulatorRequestSpecKind = ClosedEnum<
34
+ typeof BuildSimulatorRequestSpecKind
35
+ >;
34
36
 
35
37
  export type BuildSimulatorRequest = {
36
38
  /**
@@ -56,7 +58,11 @@ export type BuildSimulatorRequest = {
56
58
  /**
57
59
  * Source specification format. Omission detects the format.
58
60
  */
59
- specKind?: SpecKind | undefined;
61
+ specKind?: BuildSimulatorRequestSpecKind | undefined;
62
+ /**
63
+ * Time limit for generation and validation in seconds, from 1 to 43200. Defaults to 3600 (one hour). Excludes queue wait and finalization. Retries share the same deadline.
64
+ */
65
+ timeoutSeconds?: number | undefined;
60
66
  };
61
67
 
62
68
  /** @internal */
@@ -65,9 +71,9 @@ export const BuildSimulatorRequestBuilder$outboundSchema: z.ZodMiniEnum<
65
71
  > = z.enum(BuildSimulatorRequestBuilder);
66
72
 
67
73
  /** @internal */
68
- export const SpecKind$outboundSchema: z.ZodMiniEnum<typeof SpecKind> = z.enum(
69
- SpecKind,
70
- );
74
+ export const BuildSimulatorRequestSpecKind$outboundSchema: z.ZodMiniEnum<
75
+ typeof BuildSimulatorRequestSpecKind
76
+ > = z.enum(BuildSimulatorRequestSpecKind);
71
77
 
72
78
  /** @internal */
73
79
  export type BuildSimulatorRequest$Outbound = {
@@ -77,6 +83,7 @@ export type BuildSimulatorRequest$Outbound = {
77
83
  name?: string | undefined;
78
84
  parent_id?: string | undefined;
79
85
  spec_kind?: string | undefined;
86
+ timeout_seconds: number;
80
87
  };
81
88
 
82
89
  /** @internal */
@@ -90,12 +97,14 @@ export const BuildSimulatorRequest$outboundSchema: z.ZodMiniType<
90
97
  instructions: z.optional(z.string()),
91
98
  name: z.optional(z.string()),
92
99
  parentId: z.optional(z.string()),
93
- specKind: z.optional(SpecKind$outboundSchema),
100
+ specKind: z.optional(BuildSimulatorRequestSpecKind$outboundSchema),
101
+ timeoutSeconds: z._default(z.int(), 3600),
94
102
  }),
95
103
  z.transform((v) => {
96
104
  return remap$(v, {
97
105
  parentId: "parent_id",
98
106
  specKind: "spec_kind",
107
+ timeoutSeconds: "timeout_seconds",
99
108
  });
100
109
  }),
101
110
  );
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import * as types from "../types/primitives.js";
9
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
10
+
11
+ export type BuildToolCall = {
12
+ /**
13
+ * Time the call ran.
14
+ */
15
+ at: Date;
16
+ /**
17
+ * Name of the tool. Arguments and output are private.
18
+ */
19
+ tool: string;
20
+ };
21
+
22
+ /** @internal */
23
+ export const BuildToolCall$inboundSchema: z.ZodMiniType<
24
+ BuildToolCall,
25
+ unknown
26
+ > = z.object({
27
+ at: types.date(),
28
+ tool: types.string(),
29
+ });
30
+
31
+ export function buildToolCallFromJSON(
32
+ jsonString: string,
33
+ ): SafeParseResult<BuildToolCall, SDKValidationError> {
34
+ return safeParse(
35
+ jsonString,
36
+ (x) => BuildToolCall$inboundSchema.parse(JSON.parse(x)),
37
+ `Failed to parse 'BuildToolCall' from JSON`,
38
+ );
39
+ }
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../lib/primitives.js";
6
7
  import { ClosedEnum } from "../types/enums.js";
7
8
 
8
9
  /**
@@ -28,10 +29,22 @@ export type BuildWorldRequest = {
28
29
  * Describe the initial data, scenario, and relationships. Populated Worlds support up to 8 selected Simulators and 1,000 starting records in total. Named record types replace their default data. At most 16,384 characters and 65,536 UTF-8 bytes. U+0000 is not permitted.
29
30
  */
30
31
  instructions?: string | undefined;
32
+ /**
33
+ * Name for the World. Omission generates a name. The ID stays its identity, and names need not be unique.
34
+ */
35
+ name?: string | undefined;
31
36
  /**
32
37
  * Simulator IDs for the World.
33
38
  */
34
39
  simulators: Array<string>;
40
+ /**
41
+ * Simulated time the World starts at, in RFC 3339 format. Omission uses 2024-01-01T00:00:00Z. Saved starting data keeps its build dates.
42
+ */
43
+ startTime?: Date | undefined;
44
+ /**
45
+ * Time limit for generation and validation in seconds, from 1 to 43200. Defaults to 3600 (one hour). Excludes queue wait and finalization. Retries share the same deadline.
46
+ */
47
+ timeoutSeconds?: number | undefined;
35
48
  };
36
49
 
37
50
  /** @internal */
@@ -43,18 +56,32 @@ export const BuildWorldRequestBuilder$outboundSchema: z.ZodMiniEnum<
43
56
  export type BuildWorldRequest$Outbound = {
44
57
  builder: string;
45
58
  instructions?: string | undefined;
59
+ name?: string | undefined;
46
60
  simulators: Array<string>;
61
+ start_time?: string | undefined;
62
+ timeout_seconds: number;
47
63
  };
48
64
 
49
65
  /** @internal */
50
66
  export const BuildWorldRequest$outboundSchema: z.ZodMiniType<
51
67
  BuildWorldRequest$Outbound,
52
68
  BuildWorldRequest
53
- > = z.object({
54
- builder: z._default(BuildWorldRequestBuilder$outboundSchema, "claude"),
55
- instructions: z.optional(z.string()),
56
- simulators: z.array(z.string()),
57
- });
69
+ > = z.pipe(
70
+ z.object({
71
+ builder: z._default(BuildWorldRequestBuilder$outboundSchema, "claude"),
72
+ instructions: z.optional(z.string()),
73
+ name: z.optional(z.string()),
74
+ simulators: z.array(z.string()),
75
+ startTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
76
+ timeoutSeconds: z._default(z.int(), 3600),
77
+ }),
78
+ z.transform((v) => {
79
+ return remap$(v, {
80
+ startTime: "start_time",
81
+ timeoutSeconds: "timeout_seconds",
82
+ });
83
+ }),
84
+ );
58
85
 
59
86
  export function buildWorldRequestToJSON(
60
87
  buildWorldRequest: BuildWorldRequest,
@@ -4,6 +4,7 @@
4
4
 
5
5
  export * from "./advance-time-input-body.js";
6
6
  export * from "./build-simulator-request.js";
7
+ export * from "./build-tool-call.js";
7
8
  export * from "./build-world-request.js";
8
9
  export * from "./clock-advance-member.js";
9
10
  export * from "./clock-advance.js";
@@ -26,7 +27,7 @@ export * from "./simulator-error.js";
26
27
  export * from "./simulator.js";
27
28
  export * from "./start-world-request.js";
28
29
  export * from "./step.js";
29
- export * from "./world-build.js";
30
+ export * from "./world-build-progress.js";
30
31
  export * from "./world-data-summary.js";
31
32
  export * from "./world-error.js";
32
33
  export * from "./world-record-count.js";
@@ -9,6 +9,7 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  * Optional build status filter.
10
10
  */
11
11
  export const ListSimulatorsStatus = {
12
+ Pending: "pending",
12
13
  Building: "building",
13
14
  Ready: "ready",
14
15
  Failed: "failed",
@@ -9,6 +9,10 @@ import * as openEnums from "../types/enums.js";
9
9
  import { OpenEnum } from "../types/enums.js";
10
10
  import { Result as SafeParseResult } from "../types/fp.js";
11
11
  import * as types from "../types/primitives.js";
12
+ import {
13
+ BuildToolCall,
14
+ BuildToolCall$inboundSchema,
15
+ } from "./build-tool-call.js";
12
16
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
13
17
 
14
18
  /**
@@ -67,6 +71,10 @@ export type SimulatorBuildProgress = {
67
71
  * Name of the most recent tool call, or null.
68
72
  */
69
73
  lastTool: string | null;
74
+ /**
75
+ * The most recent tool calls, oldest first, at most 20.
76
+ */
77
+ recentTools: Array<BuildToolCall>;
70
78
  /**
71
79
  * derive while the effective spec, build skeleton, and sandbox are prepared; build while the coding loop runs; assemble while an accepted artifact publishes.
72
80
  */
@@ -114,6 +122,7 @@ export const SimulatorBuildProgress$inboundSchema: z.ZodMiniType<
114
122
  SimulatorBuildProgressLastSubmission$inboundSchema,
115
123
  ),
116
124
  last_tool: types.nullable(types.string()),
125
+ recent_tools: z.array(BuildToolCall$inboundSchema),
117
126
  stage: SimulatorBuildProgressStage$inboundSchema,
118
127
  submissions: types.number(),
119
128
  tool_calls: types.number(),
@@ -123,6 +132,7 @@ export const SimulatorBuildProgress$inboundSchema: z.ZodMiniType<
123
132
  return remap$(v, {
124
133
  "last_submission": "lastSubmission",
125
134
  "last_tool": "lastTool",
135
+ "recent_tools": "recentTools",
126
136
  "tool_calls": "toolCalls",
127
137
  "updated_at": "updatedAt",
128
138
  });