File tree Expand file tree Collapse file tree 4 files changed +31
-2
lines changed
Expand file tree Collapse file tree 4 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ This repo is entering a transition from single-repo accumulation to a federated
2727 - ` tool-types.ts `
2828 - ` workflow-run-mode.ts `
2929 - ` evm-transfer-policy-types.ts `
30+ - ` index.ts ` (single import surface)
30312 . ** Chain split**
3132 - one repo per chain family (` chain-*-tools ` )
32333 . ** Strategy split**
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export type {
1818 ChainToolGroupName ,
1919 ChainToolset ,
2020 RegisteredTool ,
21- } from "./core/types .js" ;
21+ } from "./w3rt- core/index .js" ;
2222export type {
2323 PiMcpAdapter ,
2424 PiMcpRoute ,
@@ -47,6 +47,13 @@ export type {
4747 PiMcpSolanaApi ,
4848} from "./core/pi-mcp-solana.js" ;
4949
50+ export {
51+ parseRunMode ,
52+ parseRunModeHint ,
53+ parseRunModeWithCompose ,
54+ resolveWorkflowRunMode ,
55+ } from "./w3rt-core/index.js" ;
56+
5057export {
5158 DANGEROUS_RPC_METHODS ,
5259 TOOL_PREFIX ,
@@ -189,7 +196,7 @@ export type {
189196 EvmTransferPolicyEnforceOn ,
190197 EvmTransferPolicyMode ,
191198 EvmTransferPolicyUpdate ,
192- } from "./chains/evm/policy .js" ;
199+ } from "./w3rt-core/index .js" ;
193200export {
194201 getPolymarketBtc5mAdvice ,
195202 getPolymarketBtc5mMarkets ,
Original file line number Diff line number Diff line change 1+ import { describe , expect , it } from "vitest" ;
2+
3+ import {
4+ EVM_TRANSFER_POLICY_SCHEMA ,
5+ parseRunMode ,
6+ resolveWorkflowRunMode ,
7+ } from "./index.js" ;
8+
9+ describe ( "w3rt-core index" , ( ) => {
10+ it ( "re-exports workflow helpers" , ( ) => {
11+ expect ( parseRunMode ( "simulate" ) ) . toBe ( "simulate" ) ;
12+ expect ( resolveWorkflowRunMode ( undefined , "现在执行" ) ) . toBe ( "execute" ) ;
13+ } ) ;
14+
15+ it ( "re-exports policy schema constants" , ( ) => {
16+ expect ( EVM_TRANSFER_POLICY_SCHEMA ) . toBe ( "evm.transfer.policy.v1" ) ;
17+ } ) ;
18+ } ) ;
Original file line number Diff line number Diff line change 1+ export * from "./tool-types.js" ;
2+ export * from "./workflow-run-mode.js" ;
3+ export * from "./evm-transfer-policy-types.js" ;
You can’t perform that action at this time.
0 commit comments