Skip to content

Commit 1c77db9

Browse files
committed
refactor(w3rt-core): route compatibility and policy imports through unified core index
1 parent 2da5509 commit 1c77db9

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

scripts/w3rt-core-extraction.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import {
99
EVM_TRANSFER_POLICY_SCHEMA,
1010
type EvmTransferPolicy,
1111
} from "../src/w3rt-core/index.js";
12-
import { defineTool as defineToolW3rt } from "../src/w3rt-core/tool-types.js";
1312
import {
13+
defineTool as defineToolW3rt,
1414
parseRunMode as parseRunModeW3rt,
1515
resolveWorkflowRunMode as resolveWorkflowRunModeW3rt,
16-
} from "../src/w3rt-core/workflow-run-mode.js";
16+
} from "../src/w3rt-core/index.js";
1717

1818
describe("w3rt-core phase-1 extraction", () => {
1919
it("keeps core/types and shared/workflow-runtime compatibility exports", () => {

src/chains/evm/policy.ts

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@ import path from "node:path";
55
import {
66
EVM_TRANSFER_POLICY_SCHEMA,
77
EVM_TRANSFER_POLICY_STORE_SCHEMA,
8-
} from "../../w3rt-core/evm-transfer-policy-types.js";
9-
import type {
10-
EvmTransferPolicy,
11-
EvmTransferPolicyAuditAction,
12-
EvmTransferPolicyAuditRecord,
13-
EvmTransferPolicyCheck,
14-
EvmTransferPolicyCheckInput,
15-
EvmTransferPolicyEnforceOn,
16-
EvmTransferPolicyMode,
17-
EvmTransferPolicyTemplate,
18-
EvmTransferPolicyUpdate,
19-
} from "../../w3rt-core/evm-transfer-policy-types.js";
8+
type EvmTransferPolicy,
9+
type EvmTransferPolicyAuditAction,
10+
type EvmTransferPolicyAuditRecord,
11+
type EvmTransferPolicyCheck,
12+
type EvmTransferPolicyCheckInput,
13+
type EvmTransferPolicyEnforceOn,
14+
type EvmTransferPolicyMode,
15+
type EvmTransferPolicyTemplate,
16+
type EvmTransferPolicyUpdate,
17+
} from "../../w3rt-core/index.js";
2018
import type { EvmNetwork } from "./runtime.js";
2119

2220
const EVM_TRANSFER_POLICY_SYMBOL = Symbol.for(
@@ -39,7 +37,7 @@ export type {
3937
EvmTransferPolicyMode,
4038
EvmTransferPolicyTemplate,
4139
EvmTransferPolicyUpdate,
42-
} from "../../w3rt-core/evm-transfer-policy-types.js";
40+
} from "../../w3rt-core/index.js";
4341

4442
type StoredPolicyState = {
4543
schema: "evm.transfer.policy.store.v1";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "../../w3rt-core/workflow-run-mode.js";
1+
export * from "../../w3rt-core/index.js";

src/core/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "../w3rt-core/tool-types.js";
1+
export * from "../w3rt-core/index.js";

0 commit comments

Comments
 (0)