@toolproof-core/lib 1.0.46 → 1.0.48

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.
@@ -68,6 +68,11 @@ export declare const CONSTANTS: {
68
68
  readonly StepArrayArray: "StepArrayArray";
69
69
  readonly StepKind: "StepKind";
70
70
  readonly StepKindFacet: "StepKindFacet";
71
+ readonly StepPath: "StepPath";
72
+ readonly StepPathSegment: "StepPathSegment";
73
+ readonly StepPathSegmentKind: "StepPathSegmentKind";
74
+ readonly StepPathSlot: "StepPathSlot";
75
+ readonly StepPathSpec: "StepPathSpec";
71
76
  readonly StepsByThreadIndexFacet: "StepsByThreadIndexFacet";
72
77
  readonly StepsFacet: "StepsFacet";
73
78
  readonly Strategy: "Strategy";
@@ -189,6 +194,10 @@ export declare const CONSTANTS: {
189
194
  readonly while: "while";
190
195
  readonly for: "for";
191
196
  };
197
+ readonly StepPathSegmentKind: {
198
+ readonly case: "case";
199
+ readonly cases: "cases";
200
+ };
192
201
  readonly StrategyStateEntryKind: {
193
202
  readonly materializedResource: "materializedResource";
194
203
  readonly externalInputPotential: "externalInputPotential";
@@ -1,55 +1,60 @@
1
1
  import type { BranchStep, Case, ExternalInputPotential, ForStep, MaterializedResource, InternalInputPotential, Resource, RoleName, Strategy, Tool, ToolHandle, ToolStep, ToolStepRoleAddress, WhileStep } from '@toolproof-core/genesis';
2
- export type MutableToolStepKey = string;
3
- export type MutableBranchStepKey = string;
4
- export type MutableWhileStepKey = string;
5
- export type MutableForStepKey = string;
2
+ export type MutableToolStepKey = `TOOL_STEP-${string}`;
3
+ export type MutableBranchStepKey = `BRANCH_STEP-${string}`;
4
+ export type MutableWhileStepKey = `WHILE_STEP-${string}`;
5
+ export type MutableForStepKey = `FOR_STEP-${string}`;
6
6
  export type MutableLoopStepKey = MutableWhileStepKey | MutableForStepKey;
7
7
  export type MutableMacroStepKey = MutableBranchStepKey | MutableLoopStepKey;
8
+ export type MutableStepKey = MutableToolStepKey | MutableMacroStepKey;
8
9
  export type MutableMaterializedResource = MaterializedResource;
9
- export type MutableToolStepRoleAddress<TKey extends string = MutableToolStepKey> = Omit<ToolStepRoleAddress, 'toolStepPath'> & {
10
- toolStepKey: TKey;
10
+ export type MutableToolStepRoleAddress = Omit<ToolStepRoleAddress, 'toolStepPath'> & {
11
+ stepKey: MutableToolStepKey;
12
+ toolStepKey: MutableToolStepKey;
11
13
  };
12
- export type MutableInternalInputPotential<TKey extends string = MutableToolStepKey> = Omit<InternalInputPotential, 'toolStepRoleAddress'> & {
13
- toolStepRoleAddress: MutableToolStepRoleAddress<TKey>;
14
+ export type MutableInternalInputPotential = Omit<InternalInputPotential, 'toolStepRoleAddress'> & {
15
+ toolStepRoleAddress: MutableToolStepRoleAddress;
14
16
  };
15
17
  export type MutableExternalInputPotential = ExternalInputPotential;
16
- export type MutableStrategyStateEntry<TKey extends string = MutableToolStepKey> = MutableMaterializedResource | MutableInternalInputPotential<TKey> | MutableExternalInputPotential;
17
- export type MutableStrategyStateEntryByRoleName<TKey extends string = MutableToolStepKey> = Partial<Record<RoleName, MutableStrategyStateEntry<TKey>>>;
18
- export type MutableStrategyState<TKey extends string = MutableToolStepKey> = Partial<Record<TKey, MutableStrategyStateEntryByRoleName<TKey>>>;
19
- export type MutableToolStep<TKey extends string = MutableToolStepKey> = ToolStep & {
20
- toolStepKey: TKey;
21
- };
22
- export type MutableCase<TKey extends string = MutableToolStepKey> = Omit<Case, 'when' | 'what'> & {
23
- when: MutableToolStep<TKey>;
24
- what: MutableToolStep<TKey>;
25
- };
26
- export type MutableBranchStep<TKey extends string = MutableToolStepKey> = Omit<BranchStep, 'cases'> & {
18
+ export type MutableStrategyStateEntry = MutableMaterializedResource | MutableInternalInputPotential | MutableExternalInputPotential;
19
+ export type MutableStrategyStateEntryByRoleName = Partial<Record<RoleName, MutableStrategyStateEntry>>;
20
+ export type MutableStrategyState = Partial<Record<MutableToolStepKey, MutableStrategyStateEntryByRoleName>>;
21
+ export type MutableToolStep = ToolStep & {
22
+ stepKey: MutableToolStepKey;
23
+ toolStepKey: MutableToolStepKey;
24
+ };
25
+ export type MutableCase = Omit<Case, 'when' | 'what'> & {
26
+ when: MutableToolStep;
27
+ what: MutableToolStep;
28
+ };
29
+ export type MutableBranchStep = Omit<BranchStep, 'cases'> & {
30
+ stepKey: MutableBranchStepKey;
27
31
  macroStepKey: MutableBranchStepKey;
28
- cases: [MutableCase<TKey>, ...MutableCase<TKey>[]];
32
+ cases: [MutableCase, ...MutableCase[]];
29
33
  };
30
- export type MutableWhileStep<TKey extends string = MutableToolStepKey> = Omit<WhileStep, 'case'> & {
34
+ export type MutableWhileStep = Omit<WhileStep, 'case'> & {
35
+ stepKey: MutableWhileStepKey;
31
36
  macroStepKey: MutableWhileStepKey;
32
- case: MutableCase<TKey>;
37
+ case: MutableCase;
33
38
  };
34
- export type MutableForStep<TKey extends string = MutableToolStepKey> = Omit<ForStep, 'case'> & {
39
+ export type MutableForStep = Omit<ForStep, 'case'> & {
40
+ stepKey: MutableForStepKey;
35
41
  macroStepKey: MutableForStepKey;
36
- case: MutableCase<TKey>;
37
- };
38
- export type MutableStep<TKey extends string = MutableToolStepKey> = MutableToolStep<TKey> | MutableBranchStep<TKey> | MutableWhileStep<TKey> | MutableForStep<TKey>;
39
- export type MutableStrategy<TKey extends string = MutableToolStepKey, TStep extends MutableStep<TKey> = MutableStep<TKey>, TState extends MutableStrategyState<TKey> = MutableStrategyState<TKey>> = Omit<Strategy, 'stepsByThreadIndex' | 'strategyState'> & {
40
- stepsByThreadIndex: TStep[][];
41
- strategyState: TState;
42
- };
43
- export declare function getAuthoringSteps<TKey extends string = MutableToolStepKey, TStep extends MutableStep<TKey> = MutableStep<TKey>, TState extends MutableStrategyState<TKey> = MutableStrategyState<TKey>>(strategy: MutableStrategy<TKey, TStep, TState>): TStep[];
44
- export declare function setAuthoringSteps<// ATTENTION
45
- TKey extends string = MutableToolStepKey, TStep extends MutableStep<TKey> = MutableStep<TKey>, TState extends MutableStrategyState<TKey> = MutableStrategyState<TKey>>(strategy: MutableStrategy<TKey, TStep, TState>, steps: TStep[]): MutableStrategy<TKey, TStep, TState>;
46
- export declare function getStrategyStateEntryByRoleName<TKey extends string, TStrategyState extends MutableStrategyState<TKey>>(strategyState: TStrategyState, toolStepKey: TKey): MutableStrategyStateEntryByRoleName<TKey> | undefined;
47
- export declare function getStrategyStateEntry<TKey extends string, TStrategyState extends MutableStrategyState<TKey>>(strategyState: TStrategyState, toolStepRoleAddress: MutableToolStepRoleAddress<TKey>): MutableStrategyStateEntry<TKey> | undefined;
48
- export declare function setStrategyStateEntry<TKey extends string, TStrategyState extends MutableStrategyState<TKey>>(strategyState: TStrategyState, toolStepRoleAddress: MutableToolStepRoleAddress<TKey>, entry: MutableStrategyStateEntry<TKey>): TStrategyState;
49
- export declare function clearInputBinding<TKey extends string, TStrategyState extends MutableStrategyState<TKey>>(strategyState: TStrategyState, toolStepRoleAddress: MutableToolStepRoleAddress<TKey>): TStrategyState;
50
- export declare function bindMaterializedResource<TKey extends string, TStrategyState extends MutableStrategyState<TKey>>(strategyState: TStrategyState, target: MutableToolStepRoleAddress<TKey>, resource: Resource): TStrategyState;
51
- export declare function bindInternalInputPotential<TKey extends string, TStrategyState extends MutableStrategyState<TKey>>(strategyState: TStrategyState, targetAddress: MutableToolStepRoleAddress<TKey>, sourceAddress: MutableToolStepRoleAddress<TKey>, context: {
52
- toolStepByKey: ReadonlyMap<TKey, MutableToolStep<TKey>>;
42
+ case: MutableCase;
43
+ };
44
+ export type MutableStep = MutableToolStep | MutableBranchStep | MutableWhileStep | MutableForStep;
45
+ export type MutableStrategy = Omit<Strategy, 'stepsByThreadIndex' | 'strategyState'> & {
46
+ stepsByThreadIndex: MutableStep[][];
47
+ strategyState: MutableStrategyState;
48
+ };
49
+ export declare function getAuthoringSteps(strategy: MutableStrategy): MutableStep[];
50
+ export declare function setAuthoringSteps(strategy: MutableStrategy, steps: MutableStep[]): MutableStrategy;
51
+ export declare function getStrategyStateEntryByRoleName(strategyState: MutableStrategyState, toolStepKey: MutableToolStepKey): MutableStrategyStateEntryByRoleName | undefined;
52
+ export declare function getStrategyStateEntry(strategyState: MutableStrategyState, toolStepRoleAddress: MutableToolStepRoleAddress): MutableStrategyStateEntry | undefined;
53
+ export declare function setStrategyStateEntry(strategyState: MutableStrategyState, toolStepRoleAddress: MutableToolStepRoleAddress, entry: MutableStrategyStateEntry): MutableStrategyState;
54
+ export declare function clearInputBinding(strategyState: MutableStrategyState, toolStepRoleAddress: MutableToolStepRoleAddress): MutableStrategyState;
55
+ export declare function bindMaterializedResource(strategyState: MutableStrategyState, target: MutableToolStepRoleAddress, resource: Resource): MutableStrategyState;
56
+ export declare function bindInternalInputPotential(strategyState: MutableStrategyState, targetAddress: MutableToolStepRoleAddress, sourceAddress: MutableToolStepRoleAddress, context: {
57
+ toolStepByKey: ReadonlyMap<MutableToolStepKey, MutableToolStep>;
53
58
  toolMap: ReadonlyMap<ToolHandle, Tool>;
54
- }): TStrategyState;
55
- export declare function bindExternalInputPotential<TKey extends string, TStrategyState extends MutableStrategyState<TKey>>(strategyState: TStrategyState, target: MutableToolStepRoleAddress<TKey>): TStrategyState;
59
+ }): MutableStrategyState;
60
+ export declare function bindExternalInputPotential(strategyState: MutableStrategyState, target: MutableToolStepRoleAddress): MutableStrategyState;
@@ -102,6 +102,7 @@ export function bindInternalInputPotential(strategyState, targetAddress, sourceA
102
102
  return setStrategyStateEntry(strategyState, targetAddress, {
103
103
  strategyStateEntryKind: 'internalInputPotential',
104
104
  toolStepRoleAddress: {
105
+ stepKey: sourceAddress.stepKey,
105
106
  toolStepKey: sourceAddress.toolStepKey,
106
107
  roleName: sourceAddress.roleName,
107
108
  },
@@ -1,7 +1,8 @@
1
- import type { Tool } from '@toolproof-core/genesis';
1
+ import type { Tool, WhenInputRoleBindingSpec } from '@toolproof-core/genesis';
2
2
  import type { MutableToolStep, MutableCase, MutableWhileStep, MutableForStep, MutableBranchStep } from './mutableStrategyOverlay.js';
3
3
  import { CONSTANTS } from '../lookups/lookups.js';
4
4
  export declare function createToolStepFromTool(tool: Tool): MutableToolStep;
5
+ export declare function createLoopSlotWhenToolStepFromTool(tool: Tool, whenInputRoleBindingSpec: WhenInputRoleBindingSpec): MutableToolStep;
5
6
  export declare function createCaseFromToolStepPair(what: MutableToolStep, when: MutableToolStep): MutableCase;
6
7
  export declare function createLoopStepFromCase(stepCase: MutableCase, stepKind: typeof CONSTANTS.Enums.StepKind.for | typeof CONSTANTS.Enums.StepKind.while): MutableForStep | MutableWhileStep;
7
8
  export declare function createBranchStepFromCases(cases: MutableCase[]): MutableBranchStep;
@@ -14,24 +14,33 @@ function getRoleBindingSpec(tool) {
14
14
  }
15
15
  export function createToolStepFromTool(tool) {
16
16
  return {
17
+ stepKey: generateIdentifier('ToolStepKey'),
17
18
  toolStepKey: generateIdentifier('ToolStepKey'),
18
19
  stepKind: CONSTANTS.Enums.StepKind.tool,
19
20
  toolHandle: tool.handle,
20
21
  roleBindingSpec: getRoleBindingSpec(tool),
21
22
  };
22
23
  }
24
+ export function createLoopSlotWhenToolStepFromTool(tool, whenInputRoleBindingSpec) {
25
+ return {
26
+ ...createToolStepFromTool(tool),
27
+ whenInputRoleBindingSpec,
28
+ };
29
+ }
23
30
  export function createCaseFromToolStepPair(what, when) {
24
31
  return { what, when };
25
32
  }
26
33
  export function createLoopStepFromCase(stepCase, stepKind) {
27
34
  if (stepKind === CONSTANTS.Enums.StepKind.for) {
28
35
  return {
36
+ stepKey: generateIdentifier('ForStepKey'),
29
37
  macroStepKey: generateIdentifier('ForStepKey'),
30
38
  stepKind: CONSTANTS.Enums.StepKind.for,
31
39
  case: stepCase,
32
40
  };
33
41
  }
34
42
  return {
43
+ stepKey: generateIdentifier('WhileStepKey'),
35
44
  macroStepKey: generateIdentifier('WhileStepKey'),
36
45
  stepKind: CONSTANTS.Enums.StepKind.while,
37
46
  case: stepCase,
@@ -40,6 +49,7 @@ export function createLoopStepFromCase(stepCase, stepKind) {
40
49
  export function createBranchStepFromCases(cases) {
41
50
  assertNonEmpty(cases, 'createBranchStepFromCases requires at least one case');
42
51
  return {
52
+ stepKey: generateIdentifier('BranchStepKey'),
43
53
  macroStepKey: generateIdentifier('BranchStepKey'),
44
54
  stepKind: CONSTANTS.Enums.StepKind.branch,
45
55
  cases,
@@ -47,6 +57,7 @@ export function createBranchStepFromCases(cases) {
47
57
  }
48
58
  export function cloneForStep(forStep) {
49
59
  return {
60
+ stepKey: generateIdentifier('ForStepKey'),
50
61
  macroStepKey: generateIdentifier('ForStepKey'),
51
62
  stepKind: CONSTANTS.Enums.StepKind.for,
52
63
  case: {
@@ -63,6 +74,7 @@ export function cloneForStep(forStep) {
63
74
  }
64
75
  export function cloneWhileStep(whileStep) {
65
76
  return {
77
+ stepKey: generateIdentifier('WhileStepKey'),
66
78
  macroStepKey: generateIdentifier('WhileStepKey'),
67
79
  stepKind: CONSTANTS.Enums.StepKind.while,
68
80
  case: {
@@ -1,6 +1,6 @@
1
- import type { MutableStep, MutableToolStep, MutableToolStepKey } from './mutableStrategyOverlay.js';
1
+ import type { MutableStep, MutableToolStep } from './mutableStrategyOverlay.js';
2
2
  export type StepExpansionOrder = {
3
3
  branchCaseOrder?: 'when-what' | 'what-when';
4
4
  loopCaseOrder?: 'what-when' | 'when-what';
5
5
  };
6
- export declare function extractToolStepsFromStep<TKey extends string = MutableToolStepKey, TStep extends MutableStep<TKey> = MutableStep<TKey>>(step: TStep, order?: StepExpansionOrder): MutableToolStep<TKey>[];
6
+ export declare function extractToolStepsFromStep(step: MutableStep, order?: StepExpansionOrder): MutableToolStep[];
@@ -5,28 +5,28 @@ export function extractToolStepsFromStep(step, order = {}) {
5
5
  return [step];
6
6
  }
7
7
  if (step.stepKind === CONSTANTS.Enums.StepKind.branch) {
8
- const branch = step;
9
- const cases = branch.cases ?? [];
8
+ const branchStep = step;
9
+ const cases = branchStep.cases ?? [];
10
10
  return cases.flatMap((stepCase) => {
11
11
  if (branchCaseOrder === 'what-when') {
12
12
  return [stepCase.what, stepCase.when];
13
13
  }
14
14
  return [stepCase.when, stepCase.what];
15
- }).filter(Boolean);
15
+ });
16
16
  }
17
17
  if (step.stepKind === CONSTANTS.Enums.StepKind.while) {
18
- const loop = step;
18
+ const whileStep = step;
19
19
  if (loopCaseOrder === 'when-what') {
20
- return [loop.case.when, loop.case.what].filter(Boolean);
20
+ return [whileStep.case.when, whileStep.case.what];
21
21
  }
22
- return [loop.case.what, loop.case.when].filter(Boolean);
22
+ return [whileStep.case.what, whileStep.case.when];
23
23
  }
24
24
  if (step.stepKind === CONSTANTS.Enums.StepKind.for) {
25
- const loop = step;
25
+ const forStep = step;
26
26
  if (loopCaseOrder === 'when-what') {
27
- return [loop.case.when, loop.case.what].filter(Boolean);
27
+ return [forStep.case.when, forStep.case.what];
28
28
  }
29
- return [loop.case.what, loop.case.when].filter(Boolean);
29
+ return [forStep.case.what, forStep.case.when];
30
30
  }
31
31
  return [];
32
32
  }
@@ -1,2 +1,2 @@
1
- import type { MutableStep, MutableStrategyState, MutableToolStepKey } from './mutableStrategyOverlay.js';
2
- export declare function getIndependentThreads<TKey extends string = MutableToolStepKey, TStep extends MutableStep<TKey> = MutableStep<TKey>>(steps: TStep[], strategyState: MutableStrategyState<TKey>): TStep[][];
1
+ import type { MutableStep, MutableStrategyState } from './mutableStrategyOverlay.js';
2
+ export declare function getIndependentThreads(steps: MutableStep[], strategyState: MutableStrategyState): MutableStep[][];
@@ -1,3 +1,3 @@
1
1
  import type { Strategy } from '@toolproof-core/genesis';
2
2
  import type { MutableStrategy } from './mutableStrategyOverlay.js';
3
- export declare function composeStrategyForExecution<TKey extends string>(mutableStrategy: MutableStrategy<TKey>): Strategy;
3
+ export declare function composeStrategyForExecution(mutableStrategy: MutableStrategy): Strategy;
@@ -2,8 +2,8 @@ import { CONSTANTS } from '../lookups/lookups.js';
2
2
  import { generateIdentifier } from './identifierGeneration.js';
3
3
  function stripMutableCase(stepCase) {
4
4
  const { when, what, ...rest } = stepCase;
5
- const { toolStepKey: _whenToolStepKey, ...canonicalWhen } = when;
6
- const { toolStepKey: _whatToolStepKey, ...canonicalWhat } = what;
5
+ const { stepKey: _whenStepKey, toolStepKey: _whenToolStepKey, ...canonicalWhen } = when;
6
+ const { stepKey: _whatStepKey, toolStepKey: _whatToolStepKey, ...canonicalWhat } = what;
7
7
  return {
8
8
  ...rest,
9
9
  when: canonicalWhen,
@@ -58,11 +58,11 @@ function toCanonicalStrategyStateEntry(entry, executionPathByKey) {
58
58
  function toCanonicalStep(step) {
59
59
  switch (step.stepKind) {
60
60
  case CONSTANTS.Enums.StepKind.tool: {
61
- const { toolStepKey: _toolStepKey, ...canonicalToolStep } = step;
61
+ const { stepKey: _stepKey, toolStepKey: _toolStepKey, ...canonicalToolStep } = step;
62
62
  return canonicalToolStep;
63
63
  }
64
64
  case CONSTANTS.Enums.StepKind.branch: {
65
- const { macroStepKey: _macroStepKey, cases, ...rest } = step;
65
+ const { stepKey: _stepKey, macroStepKey: _macroStepKey, cases, ...rest } = step;
66
66
  return {
67
67
  ...rest,
68
68
  cases: cases.map(stripMutableCase),
@@ -70,7 +70,7 @@ function toCanonicalStep(step) {
70
70
  }
71
71
  case CONSTANTS.Enums.StepKind.while:
72
72
  case CONSTANTS.Enums.StepKind.for: {
73
- const { macroStepKey: _macroStepKey, case: stepCase, ...rest } = step;
73
+ const { stepKey: _stepKey, macroStepKey: _macroStepKey, case: stepCase, ...rest } = step;
74
74
  return {
75
75
  ...rest,
76
76
  case: stripMutableCase(stepCase),
@@ -91,15 +91,18 @@ function toMutableStrategyStateEntry(entry, executionKeyByPath) {
91
91
  return {
92
92
  strategyStateEntryKind: 'internalInputPotential',
93
93
  toolStepRoleAddress: {
94
+ stepKey: sourceToolStepKey,
94
95
  toolStepKey: sourceToolStepKey,
95
96
  roleName: entry.toolStepRoleAddress.roleName,
96
97
  },
97
98
  };
98
99
  }
99
100
  function toMutableToolStep(step) {
101
+ const key = generateIdentifier('ToolStepKey');
100
102
  return {
101
103
  ...step,
102
- toolStepKey: generateIdentifier('ToolStepKey'),
104
+ stepKey: key,
105
+ toolStepKey: key,
103
106
  };
104
107
  }
105
108
  function toMutableCase(stepCase) {
@@ -112,25 +115,31 @@ function toMutableCase(stepCase) {
112
115
  }
113
116
  function toMutableBranchStep(step) {
114
117
  const { cases, ...rest } = step;
118
+ const key = generateIdentifier('BranchStepKey');
115
119
  return {
116
120
  ...rest,
117
- macroStepKey: generateIdentifier('BranchStepKey'),
121
+ stepKey: key,
122
+ macroStepKey: key,
118
123
  cases: cases.map(toMutableCase),
119
124
  };
120
125
  }
121
126
  function toMutableWhileStep(step) {
122
127
  const { case: stepCase, ...rest } = step;
128
+ const key = generateIdentifier('WhileStepKey');
123
129
  return {
124
130
  ...rest,
125
- macroStepKey: generateIdentifier('WhileStepKey'),
131
+ stepKey: key,
132
+ macroStepKey: key,
126
133
  case: toMutableCase(stepCase),
127
134
  };
128
135
  }
129
136
  function toMutableForStep(step) {
130
137
  const { case: stepCase, ...rest } = step;
138
+ const key = generateIdentifier('ForStepKey');
131
139
  return {
132
140
  ...rest,
133
- macroStepKey: generateIdentifier('ForStepKey'),
141
+ stepKey: key,
142
+ macroStepKey: key,
134
143
  case: toMutableCase(stepCase),
135
144
  };
136
145
  }
@@ -1,17 +1,17 @@
1
- import type { MutableMaterializedResource, MutableExternalInputPotential, MutableStrategyState, MutableToolStepKey, MutableToolStepRoleAddress } from './mutableStrategyOverlay.js';
2
- export type ResolveResult<TKey extends string = MutableToolStepKey> = {
1
+ import type { MutableMaterializedResource, MutableExternalInputPotential, MutableStrategyState, MutableToolStepRoleAddress } from './mutableStrategyOverlay.js';
2
+ export type ResolveResult = {
3
3
  status: 'materializedResource';
4
4
  entry: MutableMaterializedResource;
5
- path: MutableToolStepRoleAddress<TKey>[];
5
+ path: MutableToolStepRoleAddress[];
6
6
  } | {
7
7
  status: 'externalInputPotential';
8
8
  entry: MutableExternalInputPotential;
9
- path: MutableToolStepRoleAddress<TKey>[];
9
+ path: MutableToolStepRoleAddress[];
10
10
  } | {
11
11
  status: 'unresolved';
12
12
  reason: 'not-found' | 'cycle' | 'depth-exceeded';
13
- path: MutableToolStepRoleAddress<TKey>[];
13
+ path: MutableToolStepRoleAddress[];
14
14
  };
15
- export declare function resolveStrategyStateChain<TKey extends string, TStrategyState extends MutableStrategyState<TKey>>(strategyState: TStrategyState, start: MutableToolStepRoleAddress<TKey>, opts?: {
15
+ export declare function resolveStrategyStateChain(strategyState: MutableStrategyState, start: MutableToolStepRoleAddress, opts?: {
16
16
  maxDepth?: number;
17
- }): ResolveResult<TKey>;
17
+ }): ResolveResult;
@@ -1,2 +1,2 @@
1
- import type { MutableStrategy, MutableStep, MutableStrategyState, MutableToolStepKey } from './mutableStrategyOverlay.js';
2
- export declare function toExecutionMutableStrategy<TKey extends string = MutableToolStepKey, TStep extends MutableStep<TKey> = MutableStep<TKey>, TState extends MutableStrategyState<TKey> = MutableStrategyState<TKey>>(mutableStrategy: MutableStrategy<TKey, TStep, TState>): MutableStrategy<TKey, TStep, TState>;
1
+ import type { MutableStrategy } from './mutableStrategyOverlay.js';
2
+ export declare function toExecutionMutableStrategy(mutableStrategy: MutableStrategy): MutableStrategy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolproof-core/lib",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -80,7 +80,7 @@
80
80
  "@types/node": "^22.0.0"
81
81
  },
82
82
  "dependencies": {
83
- "@toolproof-core/genesis": "^1.0.62",
83
+ "@toolproof-core/genesis": "^1.0.65",
84
84
  "firebase-admin": "^13.7.0"
85
85
  },
86
86
  "scripts": {