@idlekit/core 0.6.0 → 0.7.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.
Files changed (47) hide show
  1. package/README.md +31 -14
  2. package/dist/ltv/cohort.d.ts +1 -1
  3. package/dist/ltv/cohort.js +2 -2
  4. package/dist/ltv/cohort.js.map +1 -1
  5. package/dist/ltv/projection.d.ts +7 -6
  6. package/dist/ltv/projection.js +7 -2
  7. package/dist/ltv/projection.js.map +1 -1
  8. package/dist/ltv/public.d.ts +24 -16
  9. package/dist/ltv/public.js +60 -20
  10. package/dist/ltv/public.js.map +1 -1
  11. package/dist/ltv/types.d.ts +17 -0
  12. package/dist/ltv/uncertainty.d.ts +9 -10
  13. package/dist/ltv/uncertainty.js +35 -5
  14. package/dist/ltv/uncertainty.js.map +1 -1
  15. package/dist/report/compare.js +7 -0
  16. package/dist/report/compare.js.map +1 -1
  17. package/dist/scenario/scenarioContract.d.ts +2 -2
  18. package/dist/scenario/scenarioContract.js +2 -2
  19. package/dist/sim/analysis/experiment.d.ts +11 -1
  20. package/dist/sim/analysis/experiment.js +325 -236
  21. package/dist/sim/analysis/experiment.js.map +1 -1
  22. package/dist/sim/analysis/flow.d.ts +7 -7
  23. package/dist/sim/analysis/flow.js +51 -11
  24. package/dist/sim/analysis/flow.js.map +1 -1
  25. package/dist/sim/analysis/judge.d.ts +12 -1
  26. package/dist/sim/analysis/judge.js +64 -19
  27. package/dist/sim/analysis/judge.js.map +1 -1
  28. package/dist/sim/executionBackend.d.ts +2 -2
  29. package/dist/sim/executionBackend.js +8 -2
  30. package/dist/sim/executionBackend.js.map +1 -1
  31. package/dist/sim/integrationMatrix.d.ts +17 -6
  32. package/dist/sim/integrationMatrix.js +30 -10
  33. package/dist/sim/integrationMatrix.js.map +1 -1
  34. package/dist/sim/milestoneKeys.d.ts +11 -0
  35. package/dist/sim/milestoneKeys.js +16 -0
  36. package/dist/sim/milestoneKeys.js.map +1 -0
  37. package/dist/sim/observation.d.ts +3 -1
  38. package/dist/sim/observation.js +9 -4
  39. package/dist/sim/observation.js.map +1 -1
  40. package/dist/sim/offline.d.ts +1 -1
  41. package/dist/sim/offline.js +1 -1
  42. package/dist/sim/session.d.ts +2 -2
  43. package/dist/sim/session.js +2 -2
  44. package/dist/sim/strategy/opt/finiteAmountLog10.d.ts +8 -1
  45. package/dist/sim/strategy/opt/finiteAmountLog10.js +10 -3
  46. package/dist/sim/strategy/opt/finiteAmountLog10.js.map +1 -1
  47. package/package.json +2 -2
@@ -19,11 +19,11 @@ declare const CONTRACT_GENERATOR: "idlekit.contract-generator";
19
19
  declare const CONTRACT_GENERATOR_VERSION: 1;
20
20
  declare const JSON_SCHEMA_EXPORT: "typia.json.schema";
21
21
  declare const JSON_SCHEMA_DIALECT: "openapi-3.1";
22
- declare const TYPIA_VERSION: "15.1.0";
22
+ declare const TYPIA_VERSION: "15.2.2";
23
23
  declare const SCENARIO_SCHEMA_ID: "https://idlekit.dev/schemas/scenario.v1.schema.json";
24
24
  /**
25
25
  * @evidence docs/requirements/active/typed-contract-generation.md#req-tc05-typed-contract-single-source ScenarioV1 is the generated structural contract. The registry starts with that id.
26
- * @evidenceReview docs/requirements/active/typed-contract-generation.md#req-tc05-typed-contract-single-source #041479e Re-read the section against typia 15.1.0: the id is idlekit.scenario.v1 and the export is typia.json.schema 3.1. Regenerated contracts preserve their structural schemas.
26
+ * @evidenceReview docs/requirements/active/typed-contract-generation.md#req-tc05-typed-contract-single-source #86c707c Re-read the section against typia 15.2.2: the id is idlekit.scenario.v1 and the export is typia.json.schema 3.1. Regenerated contracts change only the typia version and source hashes; the schema bodies are unchanged.
27
27
  */
28
28
  export declare const typedContractSingleSource: "idlekit.scenario.v1";
29
29
  /**
@@ -21,11 +21,11 @@ const CONTRACT_GENERATOR = "idlekit.contract-generator";
21
21
  const CONTRACT_GENERATOR_VERSION = 1;
22
22
  const JSON_SCHEMA_EXPORT = "typia.json.schema";
23
23
  const JSON_SCHEMA_DIALECT = "openapi-3.1";
24
- const TYPIA_VERSION = "15.1.0";
24
+ const TYPIA_VERSION = "15.2.2";
25
25
  const SCENARIO_SCHEMA_ID = "https://idlekit.dev/schemas/scenario.v1.schema.json";
26
26
  /**
27
27
  * @evidence docs/requirements/active/typed-contract-generation.md#req-tc05-typed-contract-single-source ScenarioV1 is the generated structural contract. The registry starts with that id.
28
- * @evidenceReview docs/requirements/active/typed-contract-generation.md#req-tc05-typed-contract-single-source #041479e Re-read the section against typia 15.1.0: the id is idlekit.scenario.v1 and the export is typia.json.schema 3.1. Regenerated contracts preserve their structural schemas.
28
+ * @evidenceReview docs/requirements/active/typed-contract-generation.md#req-tc05-typed-contract-single-source #86c707c Re-read the section against typia 15.2.2: the id is idlekit.scenario.v1 and the export is typia.json.schema 3.1. Regenerated contracts change only the typia version and source hashes; the schema bodies are unchanged.
29
29
  */
30
30
  export const typedContractSingleSource = "idlekit.scenario.v1";
31
31
  /**
@@ -86,7 +86,7 @@ export type ExperimentCandidateV1 = Readonly<{
86
86
  id: string;
87
87
  assignments: readonly ExperimentAssignmentV1[];
88
88
  }>;
89
- export type ExperimentMetricId = "timeToMoney" | "endMoney" | "varBenefit";
89
+ export type ExperimentMetricId = "timeToMoney" | "timeToMilestone" | "endMoney" | "varBenefit";
90
90
  export type ExperimentObjectiveV1 = Readonly<{
91
91
  id: string;
92
92
  metricId: ExperimentMetricId;
@@ -115,6 +115,8 @@ export type ExperimentSpecV1 = Readonly<{
115
115
  goal?: Readonly<{
116
116
  target: number;
117
117
  }>;
118
+ /** Exact committed milestone key whose first occurrence is measured. */
119
+ milestoneKey?: string;
118
120
  objectives?: readonly ExperimentObjectiveV1[];
119
121
  constraints?: readonly ExperimentConstraintV1[];
120
122
  dimensions: readonly ExperimentDimensionV1[];
@@ -166,6 +168,8 @@ export type ExperimentArtifactV1 = Readonly<{
166
168
  originalSpecHash: string;
167
169
  effectiveSpecHash: string;
168
170
  effectiveRunHash: string;
171
+ /** The exact key used by timeToMilestone, when requested by any metric. */
172
+ milestoneKey?: string;
169
173
  budget: Readonly<{
170
174
  candidates: number;
171
175
  seeds: number;
@@ -222,6 +226,8 @@ declare function buildExperimentJsonSchema(): typia.IJsonSchemaUnit.IV3_1<Readon
222
226
  originalSpecHash: string;
223
227
  effectiveSpecHash: string;
224
228
  effectiveRunHash: string;
229
+ /** The exact key used by timeToMilestone, when requested by any metric. */
230
+ milestoneKey?: string;
225
231
  budget: Readonly<{
226
232
  candidates: number;
227
233
  seeds: number;
@@ -296,5 +302,9 @@ type ExperimentCheckRequest = Pick<ExperimentRunRequest, "spec" | "scenario" | "
296
302
  * @evidenceReview docs/requirements/active/parameter-experiments.md#req-pr14-registered-setter #847f7d0 Re-read the section: the hash, spec, path, and schema checks run and no factory create is called.
297
303
  */
298
304
  export declare function checkExperimentSpec(request: ExperimentCheckRequest): void;
305
+ /**
306
+ * @evidence docs/requirements/active/parameter-experiments.md#req-pr14-milestone-reach Reads the first matching committed milestone through the observer, independent of retained samples and wallet resets.
307
+ * @evidenceReview docs/requirements/active/parameter-experiments.md#req-pr14-milestone-reach #4bb99f4 Re-read the milestone contract and ran the experiment tests: reset timing is 10 and 5, money timing is 4, horizon money is 2, missing milestones stay censored, mixed-seed bounds prove only known deadline violations, a censored action key keeps a non-strict horizon bound so a purchase due exactly at the horizon does not prove an lte deadline equal to it while a model key does, and a 0.2-second tick at absolute time 2 ** 50 is measured as 0.2 for both reach metrics. Milestone phases preserve tick-start actions and tick-end model/prestige facts even when a final partial tick has identical absolute timestamps.
308
+ */
299
309
  export declare function runExperiment<N>(request: ExperimentRunRequest<N>): ExperimentArtifactV1;
300
310
  export {};