@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.
- package/README.md +31 -14
- package/dist/ltv/cohort.d.ts +1 -1
- package/dist/ltv/cohort.js +2 -2
- package/dist/ltv/cohort.js.map +1 -1
- package/dist/ltv/projection.d.ts +7 -6
- package/dist/ltv/projection.js +7 -2
- package/dist/ltv/projection.js.map +1 -1
- package/dist/ltv/public.d.ts +24 -16
- package/dist/ltv/public.js +60 -20
- package/dist/ltv/public.js.map +1 -1
- package/dist/ltv/types.d.ts +17 -0
- package/dist/ltv/uncertainty.d.ts +9 -10
- package/dist/ltv/uncertainty.js +35 -5
- package/dist/ltv/uncertainty.js.map +1 -1
- package/dist/report/compare.js +7 -0
- package/dist/report/compare.js.map +1 -1
- package/dist/scenario/scenarioContract.d.ts +2 -2
- package/dist/scenario/scenarioContract.js +2 -2
- package/dist/sim/analysis/experiment.d.ts +11 -1
- package/dist/sim/analysis/experiment.js +325 -236
- package/dist/sim/analysis/experiment.js.map +1 -1
- package/dist/sim/analysis/flow.d.ts +7 -7
- package/dist/sim/analysis/flow.js +51 -11
- package/dist/sim/analysis/flow.js.map +1 -1
- package/dist/sim/analysis/judge.d.ts +12 -1
- package/dist/sim/analysis/judge.js +64 -19
- package/dist/sim/analysis/judge.js.map +1 -1
- package/dist/sim/executionBackend.d.ts +2 -2
- package/dist/sim/executionBackend.js +8 -2
- package/dist/sim/executionBackend.js.map +1 -1
- package/dist/sim/integrationMatrix.d.ts +17 -6
- package/dist/sim/integrationMatrix.js +30 -10
- package/dist/sim/integrationMatrix.js.map +1 -1
- package/dist/sim/milestoneKeys.d.ts +11 -0
- package/dist/sim/milestoneKeys.js +16 -0
- package/dist/sim/milestoneKeys.js.map +1 -0
- package/dist/sim/observation.d.ts +3 -1
- package/dist/sim/observation.js +9 -4
- package/dist/sim/observation.js.map +1 -1
- package/dist/sim/offline.d.ts +1 -1
- package/dist/sim/offline.js +1 -1
- package/dist/sim/session.d.ts +2 -2
- package/dist/sim/session.js +2 -2
- package/dist/sim/strategy/opt/finiteAmountLog10.d.ts +8 -1
- package/dist/sim/strategy/opt/finiteAmountLog10.js +10 -3
- package/dist/sim/strategy/opt/finiteAmountLog10.js.map +1 -1
- 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.
|
|
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 #
|
|
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.
|
|
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 #
|
|
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 {};
|