gate-evm-tools 1.0.27 → 1.0.31
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 +16 -1
- package/bin/cli.js +3 -0
- package/bin/delivery.cjs +51 -0
- package/bin/manifest-bootstrap.js +4 -15
- package/bin/workflow.cjs +1 -1
- package/dist/commands/plan/file-store.d.ts.map +1 -0
- package/dist/commands/plan/generate-deployment.d.ts +48 -0
- package/dist/commands/plan/generate-deployment.d.ts.map +1 -0
- package/dist/commands/plan/generate-deployment.js +211 -0
- package/dist/commands/plan/generate-deployment.js.map +1 -0
- package/dist/commands/plan/helpers.d.ts.map +1 -0
- package/dist/commands/plan/index.d.ts +3 -0
- package/dist/commands/plan/index.d.ts.map +1 -0
- package/dist/commands/plan/index.js +88 -0
- package/dist/commands/plan/index.js.map +1 -0
- package/dist/commands/sync.js +1 -1
- package/dist/commands/sync.js.map +1 -1
- package/dist/core/BytecodeChecker.d.ts.map +1 -1
- package/dist/core/BytecodeChecker.js +27 -8
- package/dist/core/BytecodeChecker.js.map +1 -1
- package/dist/core/preparation/artifacts.d.ts +2 -0
- package/dist/core/preparation/artifacts.d.ts.map +1 -1
- package/dist/core/preparation/artifacts.js +9 -3
- package/dist/core/preparation/artifacts.js.map +1 -1
- package/dist/core/preparation/evm.d.ts +38 -2
- package/dist/core/preparation/evm.d.ts.map +1 -1
- package/dist/core/preparation/evm.js +104 -32
- package/dist/core/preparation/evm.js.map +1 -1
- package/dist/core/preparation/evmManifestSync.d.ts +63 -0
- package/dist/core/preparation/evmManifestSync.d.ts.map +1 -0
- package/dist/core/preparation/evmManifestSync.js +146 -0
- package/dist/core/preparation/evmManifestSync.js.map +1 -0
- package/dist/core/preparation/index.d.ts +40 -2
- package/dist/core/preparation/index.d.ts.map +1 -1
- package/dist/core/preparation/index.js +3 -3
- package/dist/core/preparation/index.js.map +1 -1
- package/dist/core/preparation/manifest.d.ts +15 -3
- package/dist/core/preparation/manifest.d.ts.map +1 -1
- package/dist/core/preparation/manifest.js +21 -26
- package/dist/core/preparation/manifest.js.map +1 -1
- package/dist/core/preparation/normalize.d.ts.map +1 -1
- package/dist/core/preparation/normalize.js +14 -9
- package/dist/core/preparation/normalize.js.map +1 -1
- package/dist/core/preparation/types.d.ts +7 -2
- package/dist/core/preparation/types.d.ts.map +1 -1
- package/dist/custody/hardhat-runtime.d.ts.map +1 -1
- package/dist/custody/hardhat-runtime.js +2 -0
- package/dist/custody/hardhat-runtime.js.map +1 -1
- package/dist/custody/hardhat.d.ts +1 -0
- package/dist/custody/hardhat.d.ts.map +1 -1
- package/dist/custody/hardhat.js +1 -0
- package/dist/custody/hardhat.js.map +1 -1
- package/dist/custody/index.d.ts +1 -0
- package/dist/custody/index.d.ts.map +1 -1
- package/dist/custody/index.js +1 -0
- package/dist/custody/index.js.map +1 -1
- package/dist/custody/provider-wait.d.ts +13 -0
- package/dist/custody/provider-wait.d.ts.map +1 -0
- package/dist/custody/provider-wait.js +78 -0
- package/dist/custody/provider-wait.js.map +1 -0
- package/dist/delivery/policy.d.ts +6 -0
- package/dist/delivery/policy.d.ts.map +1 -0
- package/dist/delivery/policy.js +24 -0
- package/dist/delivery/policy.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/sync/index.d.ts +15 -0
- package/dist/sync/index.d.ts.map +1 -1
- package/dist/sync/index.js +8 -0
- package/dist/sync/index.js.map +1 -1
- package/dist/workflow/index.d.ts +6 -1
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js +4 -0
- package/dist/workflow/index.js.map +1 -1
- package/dist-cjs/core/BytecodeChecker.js +526 -0
- package/dist-cjs/core/BytecodeChecker.js.map +1 -0
- package/dist-cjs/core/legacyProxyArtifact.js +42 -0
- package/dist-cjs/core/legacyProxyArtifact.js.map +1 -0
- package/dist-cjs/core/preparation/artifacts.js +11 -4
- package/dist-cjs/core/preparation/artifacts.js.map +1 -1
- package/dist-cjs/core/preparation/evm.js +105 -32
- package/dist-cjs/core/preparation/evm.js.map +1 -1
- package/dist-cjs/core/preparation/evmManifestSync.js +155 -0
- package/dist-cjs/core/preparation/evmManifestSync.js.map +1 -0
- package/dist-cjs/core/preparation/index.js +3 -3
- package/dist-cjs/core/preparation/index.js.map +1 -1
- package/dist-cjs/core/preparation/manifest.js +23 -28
- package/dist-cjs/core/preparation/manifest.js.map +1 -1
- package/dist-cjs/core/preparation/normalize.js +14 -9
- package/dist-cjs/core/preparation/normalize.js.map +1 -1
- package/dist-cjs/custody/hardhat-runtime.js +2 -0
- package/dist-cjs/custody/hardhat-runtime.js.map +1 -1
- package/dist-cjs/custody/hardhat.js +3 -1
- package/dist-cjs/custody/hardhat.js.map +1 -1
- package/dist-cjs/custody/index.js +3 -1
- package/dist-cjs/custody/index.js.map +1 -1
- package/dist-cjs/custody/provider-wait.js +81 -0
- package/dist-cjs/custody/provider-wait.js.map +1 -0
- package/dist-cjs/delivery/policy.js +29 -0
- package/dist-cjs/delivery/policy.js.map +1 -0
- package/dist-cjs/sync/index.js +8 -0
- package/dist-cjs/sync/index.js.map +1 -1
- package/dist-cjs/workflow/index.js +12 -1
- package/dist-cjs/workflow/index.js.map +1 -1
- package/dist-runtime/config/hardhatAdapters.d.ts +2 -0
- package/dist-runtime/config/hardhatAdapters.js +8 -0
- package/dist-runtime/config/hardhatAdapters.js.map +1 -1
- package/dist-runtime/config/networks.d.ts +25 -1
- package/dist-runtime/config/networks.js +8 -2
- package/dist-runtime/config/networks.js.map +1 -1
- package/dist-runtime/config/openzeppelin.d.ts +2 -1
- package/dist-runtime/config/openzeppelin.js +2 -19
- package/dist-runtime/config/openzeppelin.js.map +1 -1
- package/dist-runtime/delivery/abi.d.ts +14 -0
- package/dist-runtime/delivery/abi.js +161 -0
- package/dist-runtime/delivery/abi.js.map +1 -0
- package/dist-runtime/delivery/aggregate-bootstrap.d.ts +12 -0
- package/dist-runtime/delivery/aggregate-bootstrap.js +40 -0
- package/dist-runtime/delivery/aggregate-bootstrap.js.map +1 -0
- package/dist-runtime/delivery/aggregate-channel.d.ts +28 -0
- package/dist-runtime/delivery/aggregate-channel.js +155 -0
- package/dist-runtime/delivery/aggregate-channel.js.map +1 -0
- package/dist-runtime/delivery/aggregate-inputs.d.ts +168 -0
- package/dist-runtime/delivery/aggregate-inputs.js +57 -0
- package/dist-runtime/delivery/aggregate-inputs.js.map +1 -0
- package/dist-runtime/delivery/aggregate-source.d.ts +25 -0
- package/dist-runtime/delivery/aggregate-source.js +79 -0
- package/dist-runtime/delivery/aggregate-source.js.map +1 -0
- package/dist-runtime/delivery/aggregate-worker.d.ts +1 -0
- package/dist-runtime/delivery/aggregate-worker.js +191 -0
- package/dist-runtime/delivery/aggregate-worker.js.map +1 -0
- package/dist-runtime/delivery/aggregate.d.ts +51 -0
- package/dist-runtime/delivery/aggregate.js +190 -0
- package/dist-runtime/delivery/aggregate.js.map +1 -0
- package/dist-runtime/delivery/bindings.d.ts +21 -0
- package/dist-runtime/delivery/bindings.js +53 -0
- package/dist-runtime/delivery/bindings.js.map +1 -0
- package/dist-runtime/delivery/check-code.d.ts +19 -0
- package/dist-runtime/delivery/check-code.js +63 -0
- package/dist-runtime/delivery/check-code.js.map +1 -0
- package/dist-runtime/delivery/closure-format.d.ts +77 -0
- package/dist-runtime/delivery/closure-format.js +225 -0
- package/dist-runtime/delivery/closure-format.js.map +1 -0
- package/dist-runtime/delivery/codec-pin.d.ts +2 -0
- package/dist-runtime/delivery/codec-pin.js +7 -0
- package/dist-runtime/delivery/codec-pin.js.map +1 -0
- package/dist-runtime/delivery/codec.d.ts +19 -0
- package/dist-runtime/delivery/codec.js +73 -0
- package/dist-runtime/delivery/codec.js.map +1 -0
- package/dist-runtime/delivery/compiler-dependency-pins.d.ts +7 -0
- package/dist-runtime/delivery/compiler-dependency-pins.js +1689 -0
- package/dist-runtime/delivery/compiler-dependency-pins.js.map +1 -0
- package/dist-runtime/delivery/compiler-files.d.ts +40 -0
- package/dist-runtime/delivery/compiler-files.js +220 -0
- package/dist-runtime/delivery/compiler-files.js.map +1 -0
- package/dist-runtime/delivery/compiler-io.d.ts +2 -0
- package/dist-runtime/delivery/compiler-io.js +13 -0
- package/dist-runtime/delivery/compiler-io.js.map +1 -0
- package/dist-runtime/delivery/compiler-pins.d.ts +10 -0
- package/dist-runtime/delivery/compiler-pins.js +147 -0
- package/dist-runtime/delivery/compiler-pins.js.map +1 -0
- package/dist-runtime/delivery/compiler.d.ts +188 -0
- package/dist-runtime/delivery/compiler.js +850 -0
- package/dist-runtime/delivery/compiler.js.map +1 -0
- package/dist-runtime/delivery/config.d.ts +48 -0
- package/dist-runtime/delivery/config.js +99 -0
- package/dist-runtime/delivery/config.js.map +1 -0
- package/dist-runtime/delivery/configuration-definition.d.ts +22 -0
- package/dist-runtime/delivery/configuration-definition.js +316 -0
- package/dist-runtime/delivery/configuration-definition.js.map +1 -0
- package/dist-runtime/delivery/configuration-hre.d.ts +17 -0
- package/dist-runtime/delivery/configuration-hre.js +198 -0
- package/dist-runtime/delivery/configuration-hre.js.map +1 -0
- package/dist-runtime/delivery/configuration-runtime.d.ts +36 -0
- package/dist-runtime/delivery/configuration-runtime.js +248 -0
- package/dist-runtime/delivery/configuration-runtime.js.map +1 -0
- package/dist-runtime/delivery/configuration.d.ts +35 -0
- package/dist-runtime/delivery/configuration.js +83 -0
- package/dist-runtime/delivery/configuration.js.map +1 -0
- package/dist-runtime/delivery/create2.d.ts +3 -0
- package/dist-runtime/delivery/create2.js +48 -0
- package/dist-runtime/delivery/create2.js.map +1 -0
- package/dist-runtime/delivery/custom-closure.d.ts +27 -0
- package/dist-runtime/delivery/custom-closure.js +818 -0
- package/dist-runtime/delivery/custom-closure.js.map +1 -0
- package/dist-runtime/delivery/custom-format.d.ts +35 -0
- package/dist-runtime/delivery/custom-format.js +383 -0
- package/dist-runtime/delivery/custom-format.js.map +1 -0
- package/dist-runtime/delivery/custom.d.ts +32 -0
- package/dist-runtime/delivery/custom.js +158 -0
- package/dist-runtime/delivery/custom.js.map +1 -0
- package/dist-runtime/delivery/data.d.ts +7 -0
- package/dist-runtime/delivery/data.js +86 -0
- package/dist-runtime/delivery/data.js.map +1 -0
- package/dist-runtime/delivery/development.d.ts +91 -0
- package/dist-runtime/delivery/development.js +395 -0
- package/dist-runtime/delivery/development.js.map +1 -0
- package/dist-runtime/delivery/engine.d.ts +9 -0
- package/dist-runtime/delivery/engine.js +23 -0
- package/dist-runtime/delivery/engine.js.map +1 -0
- package/dist-runtime/delivery/eoa-observation.d.ts +43 -0
- package/dist-runtime/delivery/eoa-observation.js +145 -0
- package/dist-runtime/delivery/eoa-observation.js.map +1 -0
- package/dist-runtime/delivery/eoa-signed.d.ts +2 -0
- package/dist-runtime/delivery/eoa-signed.js +74 -0
- package/dist-runtime/delivery/eoa-signed.js.map +1 -0
- package/dist-runtime/delivery/eoa.d.ts +81 -0
- package/dist-runtime/delivery/eoa.js +274 -0
- package/dist-runtime/delivery/eoa.js.map +1 -0
- package/dist-runtime/delivery/execution-db.d.ts +20 -0
- package/dist-runtime/delivery/execution-db.js +153 -0
- package/dist-runtime/delivery/execution-db.js.map +1 -0
- package/dist-runtime/delivery/execution-files.d.ts +9 -0
- package/dist-runtime/delivery/execution-files.js +138 -0
- package/dist-runtime/delivery/execution-files.js.map +1 -0
- package/dist-runtime/delivery/execution-model.d.ts +56 -0
- package/dist-runtime/delivery/execution-model.js +66 -0
- package/dist-runtime/delivery/execution-model.js.map +1 -0
- package/dist-runtime/delivery/execution-store.d.ts +48 -0
- package/dist-runtime/delivery/execution-store.js +361 -0
- package/dist-runtime/delivery/execution-store.js.map +1 -0
- package/dist-runtime/delivery/existing-code.d.ts +37 -0
- package/dist-runtime/delivery/existing-code.js +75 -0
- package/dist-runtime/delivery/existing-code.js.map +1 -0
- package/dist-runtime/delivery/export.d.ts +51 -0
- package/dist-runtime/delivery/export.js +69 -0
- package/dist-runtime/delivery/export.js.map +1 -0
- package/dist-runtime/delivery/forkAudit.d.ts +119 -0
- package/dist-runtime/delivery/forkAudit.js +473 -0
- package/dist-runtime/delivery/forkAudit.js.map +1 -0
- package/dist-runtime/delivery/hardhat.d.ts +3 -0
- package/dist-runtime/delivery/hardhat.js +45 -0
- package/dist-runtime/delivery/hardhat.js.map +1 -0
- package/dist-runtime/delivery/history-registration.d.ts +2 -0
- package/dist-runtime/delivery/history-registration.js +17 -0
- package/dist-runtime/delivery/history-registration.js.map +1 -0
- package/dist-runtime/delivery/identities.d.ts +22 -0
- package/dist-runtime/delivery/identities.js +97 -0
- package/dist-runtime/delivery/identities.js.map +1 -0
- package/dist-runtime/delivery/input-files.d.ts +5 -0
- package/dist-runtime/delivery/input-files.js +70 -0
- package/dist-runtime/delivery/input-files.js.map +1 -0
- package/dist-runtime/delivery/inputs.d.ts +62 -0
- package/dist-runtime/delivery/inputs.js +187 -0
- package/dist-runtime/delivery/inputs.js.map +1 -0
- package/dist-runtime/delivery/journal.d.ts +35 -0
- package/dist-runtime/delivery/journal.js +270 -0
- package/dist-runtime/delivery/journal.js.map +1 -0
- package/dist-runtime/delivery/manifest.d.ts +14 -0
- package/dist-runtime/delivery/manifest.js +68 -0
- package/dist-runtime/delivery/manifest.js.map +1 -0
- package/dist-runtime/delivery/materialization.d.ts +20 -0
- package/dist-runtime/delivery/materialization.js +138 -0
- package/dist-runtime/delivery/materialization.js.map +1 -0
- package/dist-runtime/delivery/observations.d.ts +31 -0
- package/dist-runtime/delivery/observations.js +38 -0
- package/dist-runtime/delivery/observations.js.map +1 -0
- package/dist-runtime/delivery/parameters.d.ts +53 -0
- package/dist-runtime/delivery/parameters.js +257 -0
- package/dist-runtime/delivery/parameters.js.map +1 -0
- package/dist-runtime/delivery/pending.d.ts +70 -0
- package/dist-runtime/delivery/pending.js +99 -0
- package/dist-runtime/delivery/pending.js.map +1 -0
- package/dist-runtime/delivery/plan.d.ts +50 -0
- package/dist-runtime/delivery/plan.js +209 -0
- package/dist-runtime/delivery/plan.js.map +1 -0
- package/dist-runtime/delivery/planning.d.ts +81 -0
- package/dist-runtime/delivery/planning.js +302 -0
- package/dist-runtime/delivery/planning.js.map +1 -0
- package/dist-runtime/delivery/policy.d.ts +4 -0
- package/dist-runtime/delivery/policy.js +9 -0
- package/dist-runtime/delivery/policy.js.map +1 -0
- package/dist-runtime/delivery/preparation.d.ts +6 -0
- package/dist-runtime/delivery/preparation.js +158 -0
- package/dist-runtime/delivery/preparation.js.map +1 -0
- package/dist-runtime/delivery/production-environment.d.ts +2 -0
- package/dist-runtime/delivery/production-environment.js +12 -0
- package/dist-runtime/delivery/production-environment.js.map +1 -0
- package/dist-runtime/delivery/production-finalization.d.ts +86 -0
- package/dist-runtime/delivery/production-finalization.js +278 -0
- package/dist-runtime/delivery/production-finalization.js.map +1 -0
- package/dist-runtime/delivery/production.d.ts +461 -0
- package/dist-runtime/delivery/production.js +396 -0
- package/dist-runtime/delivery/production.js.map +1 -0
- package/dist-runtime/delivery/project-files.d.ts +8 -0
- package/dist-runtime/delivery/project-files.js +82 -0
- package/dist-runtime/delivery/project-files.js.map +1 -0
- package/dist-runtime/delivery/project.d.ts +15 -0
- package/dist-runtime/delivery/project.js +157 -0
- package/dist-runtime/delivery/project.js.map +1 -0
- package/dist-runtime/delivery/protocol.d.ts +49 -0
- package/dist-runtime/delivery/protocol.js +112 -0
- package/dist-runtime/delivery/protocol.js.map +1 -0
- package/dist-runtime/delivery/references.d.ts +19 -0
- package/dist-runtime/delivery/references.js +84 -0
- package/dist-runtime/delivery/references.js.map +1 -0
- package/dist-runtime/delivery/release-graph.d.ts +93 -0
- package/dist-runtime/delivery/release-graph.js +106 -0
- package/dist-runtime/delivery/release-graph.js.map +1 -0
- package/dist-runtime/delivery/release-history-capture.d.ts +7 -0
- package/dist-runtime/delivery/release-history-capture.js +76 -0
- package/dist-runtime/delivery/release-history-capture.js.map +1 -0
- package/dist-runtime/delivery/release-history.d.ts +43 -0
- package/dist-runtime/delivery/release-history.js +246 -0
- package/dist-runtime/delivery/release-history.js.map +1 -0
- package/dist-runtime/delivery/release.d.ts +172 -0
- package/dist-runtime/delivery/release.js +209 -0
- package/dist-runtime/delivery/release.js.map +1 -0
- package/dist-runtime/delivery/safe-manifest.d.ts +9 -0
- package/dist-runtime/delivery/safe-manifest.js +13 -0
- package/dist-runtime/delivery/safe-manifest.js.map +1 -0
- package/dist-runtime/delivery/safe-observation.d.ts +30 -0
- package/dist-runtime/delivery/safe-observation.js +487 -0
- package/dist-runtime/delivery/safe-observation.js.map +1 -0
- package/dist-runtime/delivery/safe-prepare.d.ts +13 -0
- package/dist-runtime/delivery/safe-prepare.js +81 -0
- package/dist-runtime/delivery/safe-prepare.js.map +1 -0
- package/dist-runtime/delivery/safe.d.ts +91 -0
- package/dist-runtime/delivery/safe.js +243 -0
- package/dist-runtime/delivery/safe.js.map +1 -0
- package/dist-runtime/delivery/same-fork-baseline.d.ts +8 -0
- package/dist-runtime/delivery/same-fork-baseline.js +20 -0
- package/dist-runtime/delivery/same-fork-baseline.js.map +1 -0
- package/dist-runtime/delivery/setup.d.ts +31 -0
- package/dist-runtime/delivery/setup.js +215 -0
- package/dist-runtime/delivery/setup.js.map +1 -0
- package/dist-runtime/delivery/source.d.ts +41 -0
- package/dist-runtime/delivery/source.js +137 -0
- package/dist-runtime/delivery/source.js.map +1 -0
- package/dist-runtime/delivery/target-fields.d.ts +2 -0
- package/dist-runtime/delivery/target-fields.js +11 -0
- package/dist-runtime/delivery/target-fields.js.map +1 -0
- package/dist-runtime/delivery/validation.d.ts +9 -0
- package/dist-runtime/delivery/validation.js +150 -0
- package/dist-runtime/delivery/validation.js.map +1 -0
- package/dist-runtime/delivery/verification.d.ts +16 -0
- package/dist-runtime/delivery/verification.js +65 -0
- package/dist-runtime/delivery/verification.js.map +1 -0
- package/dist-runtime/migrate.js +1 -0
- package/dist-runtime/migrate.js.map +1 -1
- package/dist-runtime/miner/binary.d.ts +2 -0
- package/dist-runtime/miner/binary.js +54 -0
- package/dist-runtime/miner/binary.js.map +1 -0
- package/dist-runtime/miner/cli.d.ts +1 -0
- package/dist-runtime/miner/cli.js +131 -0
- package/dist-runtime/miner/cli.js.map +1 -0
- package/dist-runtime/miner/index.d.ts +5 -0
- package/dist-runtime/miner/index.js +13 -0
- package/dist-runtime/miner/index.js.map +1 -0
- package/dist-runtime/miner/request.d.ts +7 -0
- package/dist-runtime/miner/request.js +73 -0
- package/dist-runtime/miner/request.js.map +1 -0
- package/dist-runtime/miner/runner.d.ts +2 -0
- package/dist-runtime/miner/runner.js +131 -0
- package/dist-runtime/miner/runner.js.map +1 -0
- package/dist-runtime/miner/types.d.ts +89 -0
- package/dist-runtime/miner/types.js +3 -0
- package/dist-runtime/miner/types.js.map +1 -0
- package/dist-runtime/miner/verify.d.ts +2 -0
- package/dist-runtime/miner/verify.js +75 -0
- package/dist-runtime/miner/verify.js.map +1 -0
- package/dist-runtime/runtime-identity.json +2 -2
- package/dist-runtime/vendor/plan-codec/index.cjs +820 -0
- package/dist-runtime/vendor/plan-codec/index.d.cts +32 -0
- package/dist-runtime/vendor/plan-codec/provenance.json +24 -0
- package/dist-runtime/workflow/engine.d.ts +14 -0
- package/dist-runtime/workflow/engine.js +160 -0
- package/dist-runtime/workflow/engine.js.map +1 -0
- package/dist-runtime/workflow/lib/authority.d.ts +6 -3
- package/dist-runtime/workflow/lib/authority.js.map +1 -1
- package/dist-runtime/workflow/lib/calls.d.ts +1 -1
- package/dist-runtime/workflow/lib/calls.js +43 -34
- package/dist-runtime/workflow/lib/calls.js.map +1 -1
- package/dist-runtime/workflow/lib/canonicalData.d.ts +8 -0
- package/dist-runtime/workflow/lib/canonicalData.js +68 -0
- package/dist-runtime/workflow/lib/canonicalData.js.map +1 -0
- package/dist-runtime/workflow/lib/config.d.ts +3 -1
- package/dist-runtime/workflow/lib/config.js.map +1 -1
- package/dist-runtime/workflow/lib/context.d.ts +76 -0
- package/dist-runtime/workflow/lib/context.js +3 -0
- package/dist-runtime/workflow/lib/context.js.map +1 -0
- package/dist-runtime/workflow/lib/controlledMulticallAbi.d.ts +2 -0
- package/dist-runtime/workflow/lib/controlledMulticallAbi.js +10 -0
- package/dist-runtime/workflow/lib/controlledMulticallAbi.js.map +1 -0
- package/dist-runtime/workflow/lib/create2.d.ts +1 -1
- package/dist-runtime/workflow/lib/create2.js +9 -12
- package/dist-runtime/workflow/lib/create2.js.map +1 -1
- package/dist-runtime/workflow/lib/deployments.d.ts +5 -5
- package/dist-runtime/workflow/lib/deployments.js +5 -13
- package/dist-runtime/workflow/lib/deployments.js.map +1 -1
- package/dist-runtime/workflow/lib/evidencePorts.d.ts +55 -0
- package/dist-runtime/workflow/lib/evidencePorts.js +3 -0
- package/dist-runtime/workflow/lib/evidencePorts.js.map +1 -0
- package/dist-runtime/workflow/lib/executionPlan.d.ts +4 -42
- package/dist-runtime/workflow/lib/executionPlan.js +15 -210
- package/dist-runtime/workflow/lib/executionPlan.js.map +1 -1
- package/dist-runtime/workflow/lib/gateTool.d.ts +6 -2
- package/dist-runtime/workflow/lib/gateTool.js +20 -10
- package/dist-runtime/workflow/lib/gateTool.js.map +1 -1
- package/dist-runtime/workflow/lib/gateToolSync.d.ts +1 -1
- package/dist-runtime/workflow/lib/gateToolSync.js +3 -2
- package/dist-runtime/workflow/lib/gateToolSync.js.map +1 -1
- package/dist-runtime/workflow/lib/operationNames.d.ts +3 -0
- package/dist-runtime/workflow/lib/operationNames.js +34 -0
- package/dist-runtime/workflow/lib/operationNames.js.map +1 -0
- package/dist-runtime/workflow/lib/parameters.d.ts +1 -1
- package/dist-runtime/workflow/lib/parameters.js +9 -24
- package/dist-runtime/workflow/lib/parameters.js.map +1 -1
- package/dist-runtime/workflow/lib/pendingDeploymentReuse.js +18 -52
- package/dist-runtime/workflow/lib/pendingDeploymentReuse.js.map +1 -1
- package/dist-runtime/workflow/lib/pendingUupsBinding.d.ts +42 -0
- package/dist-runtime/workflow/lib/pendingUupsBinding.js +39 -0
- package/dist-runtime/workflow/lib/pendingUupsBinding.js.map +1 -0
- package/dist-runtime/workflow/lib/plan.d.ts +55 -0
- package/dist-runtime/workflow/lib/plan.js +324 -0
- package/dist-runtime/workflow/lib/plan.js.map +1 -0
- package/dist-runtime/workflow/lib/planCli.d.ts +14 -0
- package/dist-runtime/workflow/lib/planCli.js +279 -0
- package/dist-runtime/workflow/lib/planCli.js.map +1 -0
- package/dist-runtime/workflow/lib/preparationEvidence.d.ts +4 -0
- package/dist-runtime/workflow/lib/preparationEvidence.js +19 -0
- package/dist-runtime/workflow/lib/preparationEvidence.js.map +1 -0
- package/dist-runtime/workflow/lib/proxy.d.ts +3 -2
- package/dist-runtime/workflow/lib/proxy.js +3 -4
- package/dist-runtime/workflow/lib/proxy.js.map +1 -1
- package/dist-runtime/workflow/lib/runtime.d.ts +6 -0
- package/dist-runtime/workflow/lib/runtime.js +48 -0
- package/dist-runtime/workflow/lib/runtime.js.map +1 -0
- package/dist-runtime/workflow/lib/signer.d.ts +3 -2
- package/dist-runtime/workflow/lib/signer.js +18 -18
- package/dist-runtime/workflow/lib/signer.js.map +1 -1
- package/dist-runtime/workflow/lib/simulation.d.ts +13 -6
- package/dist-runtime/workflow/lib/simulation.js +39 -31
- package/dist-runtime/workflow/lib/simulation.js.map +1 -1
- package/dist-runtime/workflow/lib/state.js +3 -3
- package/dist-runtime/workflow/lib/state.js.map +1 -1
- package/dist-runtime/workflow/lib/staticValidation.d.ts +28 -0
- package/dist-runtime/workflow/lib/staticValidation.js +54 -10
- package/dist-runtime/workflow/lib/staticValidation.js.map +1 -1
- package/dist-runtime/workflow/lib/transactionPlanner.d.ts +62 -0
- package/dist-runtime/workflow/lib/transactionPlanner.js +258 -0
- package/dist-runtime/workflow/lib/transactionPlanner.js.map +1 -0
- package/dist-runtime/workflow/lib/typedValue.d.ts +3 -0
- package/dist-runtime/workflow/lib/typedValue.js +76 -0
- package/dist-runtime/workflow/lib/typedValue.js.map +1 -0
- package/dist-runtime/workflow/lib/validation.d.ts +23 -0
- package/dist-runtime/workflow/lib/validation.js +15 -0
- package/dist-runtime/workflow/lib/validation.js.map +1 -0
- package/dist-runtime/workflow/planAdd.d.ts +1 -0
- package/dist-runtime/workflow/planAdd.js +11 -0
- package/dist-runtime/workflow/planAdd.js.map +1 -0
- package/dist-runtime/workflow/planRead.d.ts +1 -0
- package/dist-runtime/workflow/planRead.js +11 -0
- package/dist-runtime/workflow/planRead.js.map +1 -0
- package/dist-runtime/workflow/planStatus.d.ts +1 -0
- package/dist-runtime/workflow/planStatus.js +11 -0
- package/dist-runtime/workflow/planStatus.js.map +1 -0
- package/dist-runtime/workflow/planWrite.d.ts +1 -0
- package/dist-runtime/workflow/planWrite.js +11 -0
- package/dist-runtime/workflow/planWrite.js.map +1 -0
- package/dist-runtime/workflow/run.d.ts +1 -40
- package/dist-runtime/workflow/run.js +68 -136
- package/dist-runtime/workflow/run.js.map +1 -1
- package/dist-runtime/workflow/staticValidate.js +8 -3
- package/dist-runtime/workflow/staticValidate.js.map +1 -1
- package/dist-runtime/workflow/steps/call.d.ts +1 -1
- package/dist-runtime/workflow/steps/check.d.ts +1 -1
- package/dist-runtime/workflow/steps/custom.d.ts +1 -1
- package/dist-runtime/workflow/steps/deploy.d.ts +1 -1
- package/dist-runtime/workflow/steps/deploy.js +58 -55
- package/dist-runtime/workflow/steps/deploy.js.map +1 -1
- package/dist-runtime/workflow/steps/upgrade.d.ts +1 -1
- package/dist-runtime/workflow/steps/upgrade.js +63 -41
- package/dist-runtime/workflow/steps/upgrade.js.map +1 -1
- package/dist-runtime/workflow/steps/view.d.ts +1 -1
- package/docs/compiler-qualification.md +32 -0
- package/docs/configuration-runtime-observation.md +29 -0
- package/docs/create2-miner.md +100 -0
- package/docs/delivery-aggregate.md +27 -0
- package/docs/delivery-custom-input-closure.md +51 -0
- package/docs/delivery-development.md +32 -0
- package/docs/delivery-eoa.md +46 -0
- package/docs/delivery-evm-manifest.md +20 -0
- package/docs/delivery-execution-store.md +33 -0
- package/docs/delivery-inputs.md +46 -0
- package/docs/delivery-parameters.md +65 -0
- package/docs/delivery-planning.md +140 -0
- package/docs/delivery-release.md +65 -0
- package/docs/delivery-safe.md +72 -0
- package/docs/delivery-setup.md +146 -0
- package/docs/delivery-source.md +67 -0
- package/docs/direct-package-acceptance.md +20 -0
- package/docs/external-infrastructure-acceptance.md +33 -0
- package/docs/network-runtime-acceptance.md +18 -0
- package/docs/plans/2026-09-09-workflow-extraction.md +16 -0
- package/docs/superpowers/plans/2026-07-22-manifest-bootstrap-transaction.md +50 -0
- package/docs/superpowers/plans/2026-07-22-manifest-review-remediation.md +49 -0
- package/docs/superpowers/plans/2026-08-17-custody-hardhat-signers.md +227 -0
- package/docs/superpowers/plans/2026-09-09-remove-template-infrastructure-contracts.md +11 -0
- package/docs/superpowers/plans/2026-09-24-scheme-aware-static-validation.md +193 -0
- package/docs/superpowers/plans/2026-10-28-create2-miner.md +82 -0
- package/docs/workflow-reference.md +1181 -0
- package/docs/workflow-runtime-acceptance.md +17 -0
- package/docs/workflow-runtime.md +56 -0
- package/package.json +134 -9
- package/resources/create2/LICENSE +21 -0
- package/resources/create2/README.md +9 -0
- package/resources/create2/darwin-arm64/smartflow_miner +0 -0
- package/resources/create2/darwin-x64/smartflow_miner +0 -0
- package/resources/create2/manifest.json +27 -0
- package/runtime/config/hardhatAdapters.ts +8 -0
- package/runtime/config/networks.ts +20 -11
- package/runtime/config/openzeppelin.ts +3 -21
- package/runtime/delivery/abi.ts +225 -0
- package/runtime/delivery/aggregate-bootstrap.ts +29 -0
- package/runtime/delivery/aggregate-channel.ts +85 -0
- package/runtime/delivery/aggregate-inputs.ts +39 -0
- package/runtime/delivery/aggregate-source.ts +53 -0
- package/runtime/delivery/aggregate-worker.ts +133 -0
- package/runtime/delivery/aggregate.ts +139 -0
- package/runtime/delivery/bindings.ts +37 -0
- package/runtime/delivery/check-code.ts +38 -0
- package/runtime/delivery/closure-format.ts +350 -0
- package/runtime/delivery/codec-pin.ts +3 -0
- package/runtime/delivery/codec.ts +50 -0
- package/runtime/delivery/compiler-dependency-pins.ts +1685 -0
- package/runtime/delivery/compiler-files.ts +179 -0
- package/runtime/delivery/compiler-io.ts +10 -0
- package/runtime/delivery/compiler-pins.ts +143 -0
- package/runtime/delivery/compiler.ts +700 -0
- package/runtime/delivery/config.ts +93 -0
- package/runtime/delivery/configuration-definition.ts +133 -0
- package/runtime/delivery/configuration-hre.ts +130 -0
- package/runtime/delivery/configuration-runtime.ts +163 -0
- package/runtime/delivery/configuration.ts +64 -0
- package/runtime/delivery/create2.ts +57 -0
- package/runtime/delivery/custom-closure.ts +993 -0
- package/runtime/delivery/custom-format.ts +464 -0
- package/runtime/delivery/custom.ts +219 -0
- package/runtime/delivery/data.ts +94 -0
- package/runtime/delivery/development.ts +262 -0
- package/runtime/delivery/engine.ts +29 -0
- package/runtime/delivery/eoa-observation.ts +106 -0
- package/runtime/delivery/eoa-signed.ts +55 -0
- package/runtime/delivery/eoa.ts +288 -0
- package/runtime/delivery/execution-db.ts +131 -0
- package/runtime/delivery/execution-files.ts +135 -0
- package/runtime/delivery/execution-model.ts +102 -0
- package/runtime/delivery/execution-store.ts +411 -0
- package/runtime/delivery/existing-code.ts +44 -0
- package/runtime/delivery/export.ts +99 -0
- package/runtime/delivery/forkAudit.ts +620 -0
- package/runtime/delivery/hardhat.ts +38 -0
- package/runtime/delivery/history-registration.ts +10 -0
- package/runtime/delivery/identities.ts +132 -0
- package/runtime/delivery/input-files.ts +46 -0
- package/runtime/delivery/inputs.ts +197 -0
- package/runtime/delivery/journal.ts +201 -0
- package/runtime/delivery/manifest.ts +54 -0
- package/runtime/delivery/materialization.ts +53 -0
- package/runtime/delivery/observations.ts +60 -0
- package/runtime/delivery/parameters.ts +349 -0
- package/runtime/delivery/pending.ts +98 -0
- package/runtime/delivery/plan.ts +337 -0
- package/runtime/delivery/planning.ts +397 -0
- package/runtime/delivery/policy.ts +9 -0
- package/runtime/delivery/preparation.ts +224 -0
- package/runtime/delivery/production-environment.ts +6 -0
- package/runtime/delivery/production-finalization.ts +172 -0
- package/runtime/delivery/production.ts +375 -0
- package/runtime/delivery/project-files.ts +58 -0
- package/runtime/delivery/project.ts +117 -0
- package/runtime/delivery/protocol.ts +94 -0
- package/runtime/delivery/references.ts +106 -0
- package/runtime/delivery/release-graph.ts +49 -0
- package/runtime/delivery/release-history-capture.ts +32 -0
- package/runtime/delivery/release-history.ts +120 -0
- package/runtime/delivery/release.ts +128 -0
- package/runtime/delivery/safe-manifest.ts +11 -0
- package/runtime/delivery/safe-observation.ts +626 -0
- package/runtime/delivery/safe-prepare.ts +101 -0
- package/runtime/delivery/safe.ts +344 -0
- package/runtime/delivery/same-fork-baseline.ts +16 -0
- package/runtime/delivery/setup.ts +172 -0
- package/runtime/delivery/source.ts +130 -0
- package/runtime/delivery/target-fields.ts +7 -0
- package/runtime/delivery/validation.ts +247 -0
- package/runtime/delivery/verification.ts +47 -0
- package/runtime/migrate.ts +1 -0
- package/runtime/miner/binary.ts +41 -0
- package/runtime/miner/cli.ts +87 -0
- package/runtime/miner/index.ts +5 -0
- package/runtime/miner/request.ts +54 -0
- package/runtime/miner/runner.ts +90 -0
- package/runtime/miner/types.ts +71 -0
- package/runtime/miner/verify.ts +61 -0
- package/runtime/vendor/plan-codec/index.cjs +820 -0
- package/runtime/vendor/plan-codec/index.d.cts +32 -0
- package/runtime/vendor/plan-codec/provenance.json +24 -0
- package/runtime/workflow/engine.ts +174 -0
- package/runtime/workflow/lib/authority.ts +3 -3
- package/runtime/workflow/lib/calls.ts +46 -37
- package/runtime/workflow/lib/canonicalData.ts +45 -0
- package/runtime/workflow/lib/config.ts +1 -1
- package/runtime/workflow/lib/context.ts +76 -0
- package/runtime/workflow/lib/controlledMulticallAbi.ts +6 -0
- package/runtime/workflow/lib/create2.ts +10 -12
- package/runtime/workflow/lib/deployments.ts +6 -14
- package/runtime/workflow/lib/evidencePorts.ts +20 -0
- package/runtime/workflow/lib/executionPlan.ts +17 -268
- package/runtime/workflow/lib/gateTool.ts +20 -8
- package/runtime/workflow/lib/gateToolSync.ts +3 -3
- package/runtime/workflow/lib/operationNames.ts +32 -0
- package/runtime/workflow/lib/parameters.ts +7 -23
- package/runtime/workflow/lib/pendingDeploymentReuse.ts +4 -56
- package/runtime/workflow/lib/pendingUupsBinding.ts +43 -0
- package/runtime/workflow/lib/plan.ts +334 -0
- package/runtime/workflow/lib/planCli.ts +279 -0
- package/runtime/workflow/lib/preparationEvidence.ts +14 -0
- package/runtime/workflow/lib/proxy.ts +5 -3
- package/runtime/workflow/lib/runtime.ts +46 -0
- package/runtime/workflow/lib/signer.ts +8 -5
- package/runtime/workflow/lib/simulation.ts +41 -17
- package/runtime/workflow/lib/state.ts +3 -3
- package/runtime/workflow/lib/staticValidation.ts +92 -11
- package/runtime/workflow/lib/transactionPlanner.ts +314 -0
- package/runtime/workflow/lib/typedValue.ts +46 -0
- package/runtime/workflow/lib/validation.ts +50 -0
- package/runtime/workflow/planAdd.ts +8 -0
- package/runtime/workflow/planRead.ts +8 -0
- package/runtime/workflow/planStatus.ts +8 -0
- package/runtime/workflow/planWrite.ts +8 -0
- package/runtime/workflow/run.ts +41 -174
- package/runtime/workflow/staticValidate.ts +8 -3
- package/runtime/workflow/steps/call.ts +1 -1
- package/runtime/workflow/steps/check.ts +1 -1
- package/runtime/workflow/steps/custom.ts +1 -1
- package/runtime/workflow/steps/deploy.ts +59 -59
- package/runtime/workflow/steps/upgrade.ts +71 -47
- package/runtime/workflow/steps/view.ts +1 -1
package/README.md
CHANGED
|
@@ -331,7 +331,7 @@ MANIFEST_DEFAULT_DIR=.openzeppelin.sepolia \
|
|
|
331
331
|
npx gate-tool sync --proxy 0x1234... --contract CounterUUPS --network sepolia
|
|
332
332
|
```
|
|
333
333
|
|
|
334
|
-
`--network` 和 `-n` 都会在加载 command tree 前参与路由;自动化和迁移脚本建议始终使用完整的 `--network
|
|
334
|
+
`--network` 和 `-n` 都会在加载 command tree 前参与路由;自动化和迁移脚本建议始终使用完整的 `--network`。显式 `sync --target` 使用项目配置的 manifest,支持普通 Hardhat/Anvil HTTP 节点的原始 metadata;不依赖 OpenZeppelin 的系统临时 manifest。本地网络的无 target legacy `sync` 和 legacy `validate` 仍拒绝写 manifest,因为它们沿用 OpenZeppelin 的临时目录选择。
|
|
335
335
|
|
|
336
336
|
如果约定目录与 `MANIFEST_DEFAULT_DIR` 冲突、目录不明确、路径越界或经过符号链接,写 manifest 的命令会 fail closed,不会继续执行。
|
|
337
337
|
|
|
@@ -362,6 +362,10 @@ npx gate-tool sync \
|
|
|
362
362
|
|
|
363
363
|
`sync` 会验证 runtime code、ERC-1967 implementation slot、chain ID、UUPS kind 与当前 artifact/layout。只有 `status=committed` 的 manifest transaction 才能作为 finalized UUPS 证据;失败会恢复原文件名和原始字节。
|
|
364
364
|
|
|
365
|
+
显式 EVM sync 使用官方 `getDeployData` 的完整 storage layout(含 namespaces)与 `version.linkedWithoutMetadata`(含构造参数)登记实现。重复同步保留原 `address`、部署 `txHash` 与无关条目,新地址加入 `allAddresses`。升级交易不是实现部署交易;`--skip-tx-hash` 禁止补充查询,未确认的部署 hash 留空。
|
|
366
|
+
|
|
367
|
+
后续 `prepareWorkflow` 的 EVM UUPS upgrade 从相同 target manifest 读取已登记的 UUPS proxy 与当前实现布局,再执行官方 implementation/storage 校验;缺少旧布局会明确拒绝。准备阶段不签名、不广播、不写 manifest 或 candidate/promotion。这里仅覆盖 manifest seam;完整执行引擎、journal baseline 与 CREATE2/multicall 生命周期另行交付。见 [EVM target manifest 验收](docs/delivery-evm-manifest.md)。
|
|
368
|
+
|
|
365
369
|
#### ✅ 验证升级安全性并生成 calldata
|
|
366
370
|
|
|
367
371
|
验证合约升级的安全性,并生成 `upgradeToAndCall` 的 calldata。
|
|
@@ -814,3 +818,14 @@ in the deployment workflow. Unknown historical proxy builds still fail closed.
|
|
|
814
818
|
### Full-template workflow runtime (local preview)
|
|
815
819
|
|
|
816
820
|
The full workflow is now packaged with GateTool. New templates call the package directly without project workflow/config forwarding directories; invocation uses `npx --no-install gate-workflow`. See [runtime installation, migration and rollback](docs/workflow-runtime.md). Version `1.0.27` is prepared for release; local tarball validation does not imply npm publication.
|
|
821
|
+
|
|
822
|
+
### Core 项目按需部署接入
|
|
823
|
+
|
|
824
|
+
新 core 项目可使用 `gate-delivery setup/inspect` 接入部署设施与策略,普通开发无需部署配置。
|
|
825
|
+
具体状态、依赖安装步骤、公共 API 和显式 dev/prod 请求协议见 [delivery setup 文档](docs/delivery-setup.md)。
|
|
826
|
+
|
|
827
|
+
## CREATE2 盐挖掘(独立 API / CLI)
|
|
828
|
+
|
|
829
|
+
`gate-tool miner --request request.json [--output result.json]` 在本地搜索并独立验证 EVM / zkSync EraVM CREATE2 salt。也可通过 `gate-evm-tools/create2-miner` 的 `mineCreate2`、`create2MinerRequestFromArtifact` 等 API 使用,支持 CommonJS、ESM 和 TypeScript。
|
|
830
|
+
|
|
831
|
+
此入口需要 ethers v6,无需 Hardhat runtime、RPC 或私钥。macOS arm64/x64 原生程序随包提供;其他平台可用 `GATE_TOOL_CREATE2_MINER_BIN` 指定兼容构建。默认超时 5 分钟,可调整。该能力仅准备候选参数,不执行部署,也不改动 GateFlow 现有 miner。详见 [CREATE2 miner 文档](docs/create2-miner.md) 和 `gate-tool miner --help`。
|
package/bin/cli.js
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
import { prepareManifestEnvironment } from './manifest-bootstrap.js';
|
|
4
4
|
|
|
5
5
|
Promise.resolve().then(() => {
|
|
6
|
+
if (process.argv[2] === 'miner') {
|
|
7
|
+
return import('../dist-runtime/miner/cli.js').then(module => ({ run: module.runCreate2MinerCli }));
|
|
8
|
+
}
|
|
6
9
|
prepareManifestEnvironment();
|
|
7
10
|
return import('../dist/index.js');
|
|
8
11
|
}).then(module => {
|
package/bin/delivery.cjs
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
// Keep this entry independent of old workflow/run and projectHardhat's eager HRE.
|
|
5
|
+
(async () => {
|
|
6
|
+
try {
|
|
7
|
+
const args = process.argv.slice(2);
|
|
8
|
+
if (args.length === 1 && ['--help', '-h'].includes(args[0])) {
|
|
9
|
+
console.log('gate-delivery <setup|inspect|prepare|execute|export-calldata|reconcile|verify> --options <local-options.json> [--hashes <explicit-hashes.json>]\nProduction consumes an existing release. execute requires the trusted application host. reconcile/verify observe an existing GateFlow desktop execution and never sign; missing store/execution is pending. --hashes is only for reconcile/verify.');
|
|
10
|
+
} else {
|
|
11
|
+
const command = args[0];
|
|
12
|
+
if (!['setup', 'inspect', 'prepare', 'execute', 'export-calldata', 'reconcile', 'verify'].includes(command)) throw new Error('Explicit supported command required; see --help');
|
|
13
|
+
if (![3,5].includes(args.length) || args[1] !== '--options' || !args[2] || (args.length === 5 && (!['reconcile','verify'].includes(command) || args[3] !== '--hashes' || !args[4]))) throw new Error('Expected --options <local-options.json> [--hashes <explicit-hashes.json>]');
|
|
14
|
+
const fs = require('node:fs');
|
|
15
|
+
const path = require('node:path');
|
|
16
|
+
const read = name => { const file=path.resolve(process.cwd(),name); if(!fs.lstatSync(file).isFile() || fs.lstatSync(file).isSymbolicLink())throw new Error('Input must be a regular file');return JSON.parse(fs.readFileSync(file,'utf8')); };
|
|
17
|
+
const options = read(args[2]);
|
|
18
|
+
const setup = ['setup','inspect'].includes(command);
|
|
19
|
+
const api = require(setup ? '../dist-runtime/delivery/setup.js' : '../dist-runtime/delivery/production.js');
|
|
20
|
+
let result;
|
|
21
|
+
if(command==='setup')result=api.setupDeliveryProject(options);
|
|
22
|
+
else if(command==='inspect')result=api.inspectDeliveryProject(options);
|
|
23
|
+
else if(command==='prepare')result=await api.prepareDeliveryProduction(options);
|
|
24
|
+
else if(command==='execute')result=await api.runDeliveryProduction(command,options);
|
|
25
|
+
else if(command==='export-calldata')result=await api.runDeliveryProduction(command,options);
|
|
26
|
+
else if(api.inspectDeliveryProduction(options,command).status==='pending')result={status:'pending'};
|
|
27
|
+
else {
|
|
28
|
+
// Observe the standard desktop store only; never discover a project/env-provided store
|
|
29
|
+
// or create a parallel execution. Custom embedded hosts use the in-process observer API.
|
|
30
|
+
const home=require('node:os').homedir(),appRoot=process.platform==='darwin'?path.join(home,'Library','Application Support','GateFlow'):process.platform==='win32'?path.join(home,'AppData','Roaming','GateFlow'):path.join(home,'.config','GateFlow');
|
|
31
|
+
const root=path.join(appRoot,'.gateflow','production-executions');
|
|
32
|
+
if(!fs.existsSync(path.join(root,'execution.sqlite')))result={status:'pending',reason:'Original GateFlow desktop execution store missing'};
|
|
33
|
+
else {
|
|
34
|
+
const store=await require('../dist-runtime/delivery/execution-store.js').openExecutionStore({trustedRoot:root}),existing=await store.readExecution(options.executionId);
|
|
35
|
+
if(!existing)result={status:'pending',reason:'Original GateFlow execution missing'};
|
|
36
|
+
else {
|
|
37
|
+
const ready=api.inspectDeliveryProduction(options,command);if(ready.status!=='ready'||existing.planHash!==ready.plan.planHash)throw new Error('Original production plan mismatch');
|
|
38
|
+
const provider=api.productionRpc(options,command);
|
|
39
|
+
result=await api.runDeliveryProduction(command,options,{store,provider,finality:{kind:'rpc_finalized'},assertCurrent(){}},{hashes:args.length===5?read(args[4]):{}});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
console.log(JSON.stringify(result, null, 2));
|
|
44
|
+
if (result.status === 'pending') process.exitCode = 2;
|
|
45
|
+
}
|
|
46
|
+
} catch (error) {
|
|
47
|
+
console.error(error instanceof Error ? error.message : String(error));
|
|
48
|
+
process.exitCode = 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
})();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
|
+
import { validateManifestPolicy } from '../dist/delivery/policy.js';
|
|
2
3
|
import path from 'node:path';
|
|
3
4
|
import { createRequire } from 'node:module';
|
|
4
5
|
|
|
@@ -95,20 +96,7 @@ const loadTargetManifestDirectory = (cwd, target) => {
|
|
|
95
96
|
if (!selected || typeof selected !== 'object' || Array.isArray(selected) || target.startsWith('_')) {
|
|
96
97
|
throw new Error(`config.yaml has no target ${target}`);
|
|
97
98
|
}
|
|
98
|
-
const
|
|
99
|
-
if (!new Set(['local', 'development', 'production']).has(environment)) {
|
|
100
|
-
throw new Error(`config.yaml target ${target} has an invalid environment`);
|
|
101
|
-
}
|
|
102
|
-
const manifestDir = selected.openzeppelin?.manifestDir;
|
|
103
|
-
if (typeof manifestDir !== 'string' || !SAFE_MANIFEST_DIR.test(manifestDir)) {
|
|
104
|
-
throw new Error(`config.yaml target ${target} has an unsafe OpenZeppelin manifest directory`);
|
|
105
|
-
}
|
|
106
|
-
if (environment === 'production' && manifestDir !== '.openzeppelin') {
|
|
107
|
-
throw new Error(`production target ${target} must use .openzeppelin`);
|
|
108
|
-
}
|
|
109
|
-
if (environment !== 'production' && manifestDir === '.openzeppelin') {
|
|
110
|
-
throw new Error(`non-production target ${target} must not use .openzeppelin`);
|
|
111
|
-
}
|
|
99
|
+
const manifestDir = validateManifestPolicy(selected.environment, selected.openzeppelin?.manifestDir);
|
|
112
100
|
return manifestDir;
|
|
113
101
|
};
|
|
114
102
|
|
|
@@ -152,7 +140,8 @@ export const resolveManifestBootstrap = ({
|
|
|
152
140
|
}
|
|
153
141
|
const target = prepareRoute?.target ?? explicitTarget;
|
|
154
142
|
const mutatesManifest = MANIFEST_MUTATING_COMMANDS.has(command);
|
|
155
|
-
|
|
143
|
+
const explicitTargetSync = command === 'sync' && Boolean(target);
|
|
144
|
+
if (mutatesManifest && !explicitTargetSync && isLocalDevelopmentNetwork(network)) {
|
|
156
145
|
throw new Error(
|
|
157
146
|
`Local development manifest mutation is unsupported for ${network}: `
|
|
158
147
|
+ 'OpenZeppelin stores ephemeral development manifests outside the project',
|
package/bin/workflow.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const path = require('node:path');
|
|
3
3
|
const fs = require('node:fs');
|
|
4
|
-
const commands = {run:'cli', checkcode:'checkCode', 'checkcode-plan':'checkCodePlan', 'checkcode-finalize':'checkCodeFinalize', 'static-validate':'staticValidate', 'create2-hashes':'create2Hashes', 'release-finalize':'releaseFinalize', 'import-state':'importState', 'reconcile-external':'reconcileExternal', 'commit-contract-info':'commitContractInfo'};
|
|
4
|
+
const commands = {run:'cli', checkcode:'checkCode', 'checkcode-plan':'checkCodePlan', 'checkcode-finalize':'checkCodeFinalize', 'static-validate':'staticValidate', 'create2-hashes':'create2Hashes', 'release-finalize':'releaseFinalize', 'import-state':'importState', 'reconcile-external':'reconcileExternal', 'commit-contract-info':'commitContractInfo', 'plan-read':'planRead', 'plan-write':'planWrite', 'plan-add':'planAdd', 'plan-status':'planStatus'};
|
|
5
5
|
const args = process.argv.slice(2);
|
|
6
6
|
if (!args.length || args[0] === '--help') {
|
|
7
7
|
console.log('gate-workflow <'+[...Object.keys(commands),'migrate'].join('|')+'> [--project-root <path>] [existing workflow arguments]');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-store.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/file-store.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,SAAS,EACT,OAAO,EACP,OAAO,EACP,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EAEZ,MAAM,0BAA0B,CAAA;AA0BjC,qBAAa,gBAAiB,YAAW,SAAS;IAChD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;IACjC,OAAO,CAAC,KAAK,CAAc;gBAEf,QAAQ,EAAE,MAAM;IAK5B,OAAO,CAAC,IAAI;IA0BZ,OAAO,CAAC,IAAI;IASZ,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;IAIzC,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAwBhC,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,GAAG,IAAI;IAYnF,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,UAAO,GAAG,IAAI,EAAE;IAKpD,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;IAM1D,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IA6BhC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAwCvF,gBAAgB,CACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,UAAU,EAClB,MAAM,CAAC,EAAE,UAAU,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,IAAI;IAsBP,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS;CAgBxC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export interface DeploymentContract {
|
|
2
|
+
id: string;
|
|
3
|
+
contract: string;
|
|
4
|
+
strategy: 'create2' | 'direct';
|
|
5
|
+
networks: Record<string, DeploymentContractNetwork>;
|
|
6
|
+
}
|
|
7
|
+
export interface DeploymentContractNetwork {
|
|
8
|
+
expectedAddress: string;
|
|
9
|
+
initCodeHash?: string;
|
|
10
|
+
bytecodeHash?: string;
|
|
11
|
+
constructorInputHash?: string;
|
|
12
|
+
salt?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface DeploymentOperation {
|
|
15
|
+
id: string;
|
|
16
|
+
kind: 'deploy' | 'call' | 'verify' | 'upgrade';
|
|
17
|
+
contract: string;
|
|
18
|
+
method?: string;
|
|
19
|
+
note?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface DeploymentPlan {
|
|
22
|
+
version: 1;
|
|
23
|
+
taskId?: string;
|
|
24
|
+
sourceSuperTaskId?: string;
|
|
25
|
+
deploymentId: string;
|
|
26
|
+
title: string;
|
|
27
|
+
developmentNetwork: string;
|
|
28
|
+
releaseTargetNetworks: string[];
|
|
29
|
+
status: 'ready';
|
|
30
|
+
generatedAt: string;
|
|
31
|
+
generatedBy: 'codex' | 'supertask';
|
|
32
|
+
contracts: DeploymentContract[];
|
|
33
|
+
operations: DeploymentOperation[];
|
|
34
|
+
scripts: Record<string, string>;
|
|
35
|
+
}
|
|
36
|
+
export interface GenerateDeploymentInput {
|
|
37
|
+
workspace: string;
|
|
38
|
+
deploymentId: string;
|
|
39
|
+
taskId?: string;
|
|
40
|
+
generatedBy?: 'codex' | 'supertask';
|
|
41
|
+
}
|
|
42
|
+
export interface GenerateDeploymentError {
|
|
43
|
+
error: string;
|
|
44
|
+
field?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare function generateDeploymentPlan(input: GenerateDeploymentInput): DeploymentPlan | GenerateDeploymentError;
|
|
47
|
+
export declare function generateAndWriteDeploymentPlan(input: GenerateDeploymentInput): string | GenerateDeploymentError;
|
|
48
|
+
//# sourceMappingURL=generate-deployment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-deployment.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/generate-deployment.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC9B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAA;CACpD;AAED,MAAM,WAAW,yBAAyB;IACxC,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,IAA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 'yaml';
|
|
4
|
+
// ── Main entry point ───────────────────────────────────────────────────────
|
|
5
|
+
export function generateDeploymentPlan(input) {
|
|
6
|
+
const { workspace, deploymentId } = input;
|
|
7
|
+
const taskDir = join(workspace, 'scripts', 'tasks', deploymentId);
|
|
8
|
+
// 1. Validate prerequisites
|
|
9
|
+
const prereq = checkPrerequisites(workspace, taskDir, deploymentId);
|
|
10
|
+
if ('error' in prereq)
|
|
11
|
+
return prereq;
|
|
12
|
+
const { taskYaml, manifestYaml, create2Results } = prereq;
|
|
13
|
+
// 2. Extract network lists
|
|
14
|
+
const developmentNetwork = taskYaml['developmentNetwork'];
|
|
15
|
+
const releaseTargetNetworks = taskYaml['releaseTargetNetworks'] ?? [];
|
|
16
|
+
const sourceSuperTaskId = taskYaml['sourceSuperTaskId'];
|
|
17
|
+
const title = taskYaml['title'] ?? deploymentId;
|
|
18
|
+
// 3. Build contracts from create2 results
|
|
19
|
+
const contracts = buildContracts(create2Results, releaseTargetNetworks);
|
|
20
|
+
if ('error' in contracts)
|
|
21
|
+
return contracts;
|
|
22
|
+
// 4. Build operations from manifest
|
|
23
|
+
const operations = buildOperations(manifestYaml);
|
|
24
|
+
// 5. Find scripts
|
|
25
|
+
const scripts = findScripts(taskDir, releaseTargetNetworks);
|
|
26
|
+
const plan = {
|
|
27
|
+
version: 1,
|
|
28
|
+
taskId: input.taskId,
|
|
29
|
+
sourceSuperTaskId,
|
|
30
|
+
deploymentId,
|
|
31
|
+
title,
|
|
32
|
+
developmentNetwork,
|
|
33
|
+
releaseTargetNetworks,
|
|
34
|
+
status: 'ready',
|
|
35
|
+
generatedAt: new Date().toISOString(),
|
|
36
|
+
generatedBy: input.generatedBy ?? 'codex',
|
|
37
|
+
contracts,
|
|
38
|
+
operations,
|
|
39
|
+
scripts,
|
|
40
|
+
};
|
|
41
|
+
// Remove undefined fields
|
|
42
|
+
if (!plan.taskId)
|
|
43
|
+
delete plan.taskId;
|
|
44
|
+
if (!plan.sourceSuperTaskId)
|
|
45
|
+
delete plan.sourceSuperTaskId;
|
|
46
|
+
return plan;
|
|
47
|
+
}
|
|
48
|
+
function checkPrerequisites(workspace, taskDir, deploymentId) {
|
|
49
|
+
// config.yaml
|
|
50
|
+
const configPath = join(workspace, 'config.yaml');
|
|
51
|
+
if (!existsSync(configPath)) {
|
|
52
|
+
return { error: `config.yaml not found at ${configPath}`, field: 'config.yaml' };
|
|
53
|
+
}
|
|
54
|
+
// Validate config.yaml is parseable YAML (content consumed by callers via task.yaml refs)
|
|
55
|
+
YAML.parse(readFileSync(configPath, 'utf8'));
|
|
56
|
+
// task.yaml
|
|
57
|
+
const taskYamlPath = join(taskDir, 'task.yaml');
|
|
58
|
+
if (!existsSync(taskYamlPath)) {
|
|
59
|
+
return { error: `task.yaml not found: ${taskYamlPath}`, field: 'task.yaml' };
|
|
60
|
+
}
|
|
61
|
+
const taskYaml = YAML.parse(readFileSync(taskYamlPath, 'utf8'));
|
|
62
|
+
// manifest.yaml
|
|
63
|
+
const manifestPath = join(taskDir, 'manifest.yaml');
|
|
64
|
+
if (!existsSync(manifestPath)) {
|
|
65
|
+
return { error: `manifest.yaml not found: ${manifestPath}`, field: 'manifest.yaml' };
|
|
66
|
+
}
|
|
67
|
+
const manifestYaml = YAML.parse(readFileSync(manifestPath, 'utf8'));
|
|
68
|
+
// create2-results.json (required for CREATE2 address data)
|
|
69
|
+
const resultsPath = join(taskDir, 'create2-results.json');
|
|
70
|
+
if (!existsSync(resultsPath)) {
|
|
71
|
+
return {
|
|
72
|
+
error: `create2-results.json not found: ${resultsPath}. Run mine_pending_create2_requests first.`,
|
|
73
|
+
field: 'create2-results.json',
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
const create2Results = JSON.parse(readFileSync(resultsPath, 'utf8'));
|
|
77
|
+
// Validate deploymentId matches
|
|
78
|
+
if (create2Results.deploymentId !== deploymentId) {
|
|
79
|
+
return {
|
|
80
|
+
error: `create2-results.json deploymentId "${create2Results.deploymentId}" does not match "${deploymentId}"`,
|
|
81
|
+
field: 'create2-results.json.deploymentId',
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
// Check all results are "found" (i.e. mining is complete)
|
|
85
|
+
const pending = create2Results.results.filter((r) => r.status !== 'found');
|
|
86
|
+
if (pending.length > 0) {
|
|
87
|
+
return {
|
|
88
|
+
error: `${pending.length} CREATE2 request(s) not yet mined: ${pending.map((r) => r.requestId).join(', ')}`,
|
|
89
|
+
field: 'create2-results.json.results',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
return { taskYaml, manifestYaml, create2Results };
|
|
93
|
+
}
|
|
94
|
+
function buildContracts(create2Results, releaseTargetNetworks) {
|
|
95
|
+
// Group results by saveAs (contract name)
|
|
96
|
+
const byContract = new Map();
|
|
97
|
+
for (const r of create2Results.results) {
|
|
98
|
+
const existing = byContract.get(r.saveAs) ?? [];
|
|
99
|
+
existing.push(r);
|
|
100
|
+
byContract.set(r.saveAs, existing);
|
|
101
|
+
}
|
|
102
|
+
const contracts = [];
|
|
103
|
+
for (const [saveAs, results] of byContract) {
|
|
104
|
+
const networks = {};
|
|
105
|
+
// Each result covers specific targetNetworks
|
|
106
|
+
for (const r of results) {
|
|
107
|
+
const networksForResult = r.targetNetworks.length > 0
|
|
108
|
+
? r.targetNetworks
|
|
109
|
+
: releaseTargetNetworks;
|
|
110
|
+
for (const network of networksForResult) {
|
|
111
|
+
const netData = {
|
|
112
|
+
expectedAddress: r.address,
|
|
113
|
+
salt: r.salt,
|
|
114
|
+
};
|
|
115
|
+
if (r.scheme === 'evm' && r.initCodeHash) {
|
|
116
|
+
netData.initCodeHash = r.initCodeHash;
|
|
117
|
+
}
|
|
118
|
+
else if (r.scheme === 'zksync-eravm') {
|
|
119
|
+
if (r.bytecodeHash)
|
|
120
|
+
netData.bytecodeHash = r.bytecodeHash;
|
|
121
|
+
if (r.constructorInputHash)
|
|
122
|
+
netData.constructorInputHash = r.constructorInputHash;
|
|
123
|
+
}
|
|
124
|
+
networks[network] = netData;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
// Use the first result's requestId as the canonical id
|
|
128
|
+
contracts.push({
|
|
129
|
+
id: results[0].requestId,
|
|
130
|
+
contract: saveAs,
|
|
131
|
+
strategy: 'create2',
|
|
132
|
+
networks,
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
return contracts;
|
|
136
|
+
}
|
|
137
|
+
// ── Operations building ────────────────────────────────────────────────────
|
|
138
|
+
function buildOperations(manifest) {
|
|
139
|
+
const steps = manifest['steps'] ?? [];
|
|
140
|
+
const ops = [];
|
|
141
|
+
for (const step of steps) {
|
|
142
|
+
const id = step['id'];
|
|
143
|
+
const kind = step['kind'];
|
|
144
|
+
const contract = (step['saveAs'] ?? step['contract']);
|
|
145
|
+
switch (kind) {
|
|
146
|
+
case 'deploy':
|
|
147
|
+
ops.push({ id, kind: 'deploy', contract });
|
|
148
|
+
break;
|
|
149
|
+
case 'call': {
|
|
150
|
+
const calls = step['calls'] ?? [];
|
|
151
|
+
const method = calls[0]?.['method'];
|
|
152
|
+
ops.push({ id, kind: 'call', contract, method });
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
case 'check': {
|
|
156
|
+
const calls = step['calls'] ?? [];
|
|
157
|
+
const method = calls[0]?.['method'];
|
|
158
|
+
ops.push({
|
|
159
|
+
id,
|
|
160
|
+
kind: 'verify',
|
|
161
|
+
contract,
|
|
162
|
+
method,
|
|
163
|
+
note: 'acceptance condition — see plan content_json.acceptance',
|
|
164
|
+
});
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
case 'upgrade':
|
|
168
|
+
ops.push({ id, kind: 'upgrade', contract });
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return ops;
|
|
173
|
+
}
|
|
174
|
+
// ── Script discovery ───────────────────────────────────────────────────────
|
|
175
|
+
function findScripts(taskDir, releaseTargetNetworks) {
|
|
176
|
+
const scripts = {};
|
|
177
|
+
const scriptsDir = join(taskDir, 'scripts');
|
|
178
|
+
if (!existsSync(scriptsDir))
|
|
179
|
+
return scripts;
|
|
180
|
+
for (const network of releaseTargetNetworks) {
|
|
181
|
+
// Look for files matching deploy-<network>.ts / deploy-<network>.mjs / <network>.ts
|
|
182
|
+
const candidates = [
|
|
183
|
+
`deploy-${network}.ts`,
|
|
184
|
+
`deploy-${network}.mjs`,
|
|
185
|
+
`deploy-${network}.js`,
|
|
186
|
+
`${network}.ts`,
|
|
187
|
+
`${network}.mjs`,
|
|
188
|
+
`${network}.js`,
|
|
189
|
+
];
|
|
190
|
+
for (const candidate of candidates) {
|
|
191
|
+
const full = join(scriptsDir, candidate);
|
|
192
|
+
if (existsSync(full)) {
|
|
193
|
+
// Return relative path from taskDir parent (workspace)
|
|
194
|
+
scripts[network] = full;
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return scripts;
|
|
200
|
+
}
|
|
201
|
+
// ── CLI entry: write the file ──────────────────────────────────────────────
|
|
202
|
+
export function generateAndWriteDeploymentPlan(input) {
|
|
203
|
+
const result = generateDeploymentPlan(input);
|
|
204
|
+
if ('error' in result)
|
|
205
|
+
return result;
|
|
206
|
+
const taskDir = join(input.workspace, 'scripts', 'tasks', input.deploymentId);
|
|
207
|
+
const outPath = join(taskDir, 'deployment-plan.json');
|
|
208
|
+
writeFileSync(outPath, JSON.stringify(result, null, 2), 'utf8');
|
|
209
|
+
return outPath;
|
|
210
|
+
}
|
|
211
|
+
//# sourceMappingURL=generate-deployment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-deployment.js","sourceRoot":"","sources":["../../../src/commands/plan/generate-deployment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,IAAI,MAAM,MAAM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H,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,8EAA8E;AAE9E,MAAM,UAAU,8BAA8B,CAC5C,KAA8B;IAE9B,MAAM,MAAM,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAA;IAC5C,IAAI,OAAO,IAAI,MAAM;QAAE,OAAO,MAAM,CAAA;IAEpC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,CAAA;IAC7E,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAA;IACrD,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,CAAA;IAC/D,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAElD,eAAO,MAAM,gBAAgB,eAAe,CAAA;AAE5C,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAGvD;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,OAAO,UAAQ,GAAG,IAAI,CAoBpE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAW1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAwCxC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAsE3D"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
import { generateAndWriteDeploymentPlan } from './generate-deployment.js';
|
|
4
|
+
// dist/commands/plan/index.js -> dist-runtime/workflow/lib/planCli.js
|
|
5
|
+
const loadRuntime = () => createRequire(import.meta.url)('../../../dist-runtime/workflow/lib/planCli.js');
|
|
6
|
+
const run = (call) => {
|
|
7
|
+
try {
|
|
8
|
+
console.log(JSON.stringify(call(loadRuntime()), null, 2));
|
|
9
|
+
}
|
|
10
|
+
catch (error) {
|
|
11
|
+
console.error(chalk.red('❌'), error instanceof Error ? error.message : String(error));
|
|
12
|
+
process.exitCode = 1;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const common = (args, opts) => (opts.path ? [...args, '--path', opts.path] : args);
|
|
16
|
+
const input = (opts) => {
|
|
17
|
+
if (opts.input)
|
|
18
|
+
return ['--input', opts.input];
|
|
19
|
+
if (opts.inputFile)
|
|
20
|
+
return ['--inputFile', opts.inputFile];
|
|
21
|
+
throw new Error('--input or --input-file is required');
|
|
22
|
+
};
|
|
23
|
+
export function registerPlanCommands(program) {
|
|
24
|
+
const plan = program
|
|
25
|
+
.command('plan')
|
|
26
|
+
.description('计划管理:读写 handoff.md(gateflow-plan/v1),与 gate-workflow plan-* 同一实现');
|
|
27
|
+
plan
|
|
28
|
+
.command('read')
|
|
29
|
+
.alias('status')
|
|
30
|
+
.description('输出当前计划摘要')
|
|
31
|
+
.option('--full', '附上完整 handoff.md')
|
|
32
|
+
.option('--path <path>', 'handoff.md 相对路径', 'handoff.md')
|
|
33
|
+
.action((opts) => run((rt) => rt.runPlanReadCli(common(opts.full ? ['--full'] : [], opts))));
|
|
34
|
+
plan
|
|
35
|
+
.command('write')
|
|
36
|
+
.description('由 JSON 写入整份计划(revision 由命令推导)')
|
|
37
|
+
.option('--input <json>', '计划 JSON')
|
|
38
|
+
.option('--input-file <file>', '计划 JSON 文件')
|
|
39
|
+
.option('--path <path>', 'handoff.md 相对路径', 'handoff.md')
|
|
40
|
+
.action((opts) => run((rt) => rt.runPlanWriteCli(common(input(opts), opts))));
|
|
41
|
+
plan
|
|
42
|
+
.command('add')
|
|
43
|
+
.description('追加一个任务(推进 revision)')
|
|
44
|
+
.option('--input <json>', '任务 JSON(可含 section)')
|
|
45
|
+
.option('--input-file <file>', '任务 JSON 文件')
|
|
46
|
+
.option('--path <path>', 'handoff.md 相对路径', 'handoff.md')
|
|
47
|
+
.action((opts) => run((rt) => rt.runPlanAddCli(common(input(opts), opts))));
|
|
48
|
+
plan
|
|
49
|
+
.command('set-status')
|
|
50
|
+
.description('推进任务状态(不改 revision)')
|
|
51
|
+
.requiredOption('--task <planKey>', '任务 planKey')
|
|
52
|
+
.requiredOption('--to <status>', 'pending | ready | running | completed | failed | cancelled')
|
|
53
|
+
.option('--path <path>', 'handoff.md 相对路径', 'handoff.md')
|
|
54
|
+
.action((opts) => run((rt) => rt.runPlanStatusCli(common(['--task', opts.task, '--to', opts.to], opts))));
|
|
55
|
+
for (const [name, to, description] of [
|
|
56
|
+
['start', 'running', '开始执行任务(依赖须已完成)'],
|
|
57
|
+
['complete', 'completed', '标记任务完成'],
|
|
58
|
+
['fail', 'failed', '标记任务失败'],
|
|
59
|
+
['cancel', 'cancelled', '取消任务(计划里不删任务,只取消)'],
|
|
60
|
+
]) {
|
|
61
|
+
plan
|
|
62
|
+
.command(name)
|
|
63
|
+
.description(description)
|
|
64
|
+
.requiredOption('--task <planKey>', '任务 planKey')
|
|
65
|
+
.option('--path <path>', 'handoff.md 相对路径', 'handoff.md')
|
|
66
|
+
.action((opts) => run((rt) => rt.runPlanStatusCli(common(['--task', opts.task, '--to', to], opts))));
|
|
67
|
+
}
|
|
68
|
+
plan
|
|
69
|
+
.command('generate-deployment')
|
|
70
|
+
.description('生成 deployment-plan.json(部署准备就绪后调用)')
|
|
71
|
+
.option('--task-id <id>', '任务 ID')
|
|
72
|
+
.requiredOption('--deployment-id <id>', '部署 ID(对应 scripts/tasks/<id>/)')
|
|
73
|
+
.action((opts) => {
|
|
74
|
+
const outPath = generateAndWriteDeploymentPlan({
|
|
75
|
+
workspace: process.cwd(),
|
|
76
|
+
deploymentId: opts.deploymentId,
|
|
77
|
+
taskId: opts.taskId,
|
|
78
|
+
generatedBy: 'codex',
|
|
79
|
+
});
|
|
80
|
+
if (typeof outPath !== 'string') {
|
|
81
|
+
console.error(chalk.red('❌ 生成失败:'), outPath.error);
|
|
82
|
+
process.exitCode = 1;
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
console.log(chalk.green('✅ 已生成'), outPath);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/plan/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAA;AAgBzE,sEAAsE;AACtE,MAAM,WAAW,GAAG,GAAgB,EAAE,CACpC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,+CAA+C,CAAgB,CAAA;AAEhG,MAAM,GAAG,GAAG,CAAC,IAAuD,EAAQ,EAAE;IAC5E,IAAI,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAA;IAC3D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,KAAK,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W,EAAE,OAAO;SACrB,CAAC,CAAA;QACF,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YAChC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAA;YAClD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;YACpB,OAAM;QACR,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;AACN,CAAC"}
|
package/dist/commands/sync.js
CHANGED
|
@@ -46,7 +46,7 @@ export async function syncUpgrade(options) {
|
|
|
46
46
|
spinner.start('正在加载 Hardhat 环境...');
|
|
47
47
|
const hre = await loadHardhat(cwd);
|
|
48
48
|
spinner.succeed(`Hardhat 环境已加载 (网络: ${chalk.cyan(hre.network.name)})`);
|
|
49
|
-
// 5.
|
|
49
|
+
// 5. 显式 target 使用原子 manifest writer;无 target 的 EVM 保留 legacy sync
|
|
50
50
|
console.log('');
|
|
51
51
|
const result = await syncWithHre(options, hre, cwd);
|
|
52
52
|
// 7. 显示成功信息
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.js","sourceRoot":"","sources":["../../src/commands/sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAG/F;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,OAAoB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CAAC,YAAY,CAAC,CAAC,CAAC;YACxC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC,CAAC;QAC5D,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YACjD,IAAI,KAAK,CAAC,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;gBACrC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;YACzC,CAAC;QACH,CAAC;QAED,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BytecodeChecker.d.ts","sourceRoot":"","sources":["../../src/core/BytecodeChecker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BytecodeChecker.d.ts","sourceRoot":"","sources":["../../src/core/BytecodeChecker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE5E,KAAK,yBAAyB,GAAG,GAAG,CAAC;AAErC,UAAU,iBAAiB;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,GAAG,EAAE,CAAC;IACX,mBAAmB,EAAE,mBAAmB,CAAC;CAC1C;AAED,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,KAAK,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAAC;AAEhE,UAAU,eAAe;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB;A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