@wowok/agent-mcp 3.4.2 → 3.4.3
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/dist/.build-stamp.json +5 -0
- package/dist/chain-semantics/composition-truth.js +1 -1
- package/dist/chain-semantics/eval-order.js +1 -1
- package/dist/chain-semantics/field-capability.js +1 -1
- package/dist/chain-semantics/freeze-map.js +1 -1
- package/dist/chain-semantics/fund-flow.js +1 -1
- package/dist/chain-semantics/guard-verbs.js +1 -1
- package/dist/chain-semantics/object-graph.js +1 -1
- package/dist/composition/audit.js +1 -1
- package/dist/composition/compile.d.ts +10 -3
- package/dist/composition/compile.js +1 -1
- package/dist/composition/emit-phases.d.ts +30 -2
- package/dist/composition/emit-phases.js +1 -1
- package/dist/composition/guard-fill.d.ts +8 -0
- package/dist/composition/guard-fill.js +1 -1
- package/dist/composition/inflight.js +1 -1
- package/dist/composition/input-normalize.js +1 -1
- package/dist/composition/materialize.d.ts +2 -0
- package/dist/composition/materialize.js +1 -1
- package/dist/composition/mode-gates.js +1 -1
- package/dist/composition/param-disclosure.js +1 -1
- package/dist/composition/plan-retry-ledger.d.ts +16 -0
- package/dist/composition/plan-retry-ledger.js +1 -1
- package/dist/composition/plan.d.ts +15 -1
- package/dist/composition/plan.js +1 -1
- package/dist/config/config-audit.spec.js +1 -1
- package/dist/config/judgment.d.ts +5 -0
- package/dist/config/judgment.js +1 -1
- package/dist/evaluation/builtins/arbitration-score.d.ts +1 -0
- package/dist/evaluation/builtins/arbitration-score.js +1 -1
- package/dist/evaluation/builtins/demand-match.js +1 -1
- package/dist/evaluation/builtins/graph-service.d.ts +8 -0
- package/dist/evaluation/builtins/graph-service.js +1 -1
- package/dist/evaluation/capability.d.ts +9 -0
- package/dist/evaluation/engine.js +1 -1
- package/dist/evaluation/extract.d.ts +9 -1
- package/dist/evaluation/extract.js +1 -1
- package/dist/evaluation/match-operation.js +1 -1
- package/dist/evaluation/match-policy.d.ts +5 -3
- package/dist/evaluation/match-policy.js +1 -1
- package/dist/evaluation/standards.d.ts +1 -0
- package/dist/evaluation/standards.js +1 -1
- package/dist/evaluation/structured-lines.js +1 -1
- package/dist/evaluation/types.d.ts +1 -0
- package/dist/extensions/capability.js +1 -1
- package/dist/harness/recover.js +1 -1
- package/dist/index.js +1 -1
- package/dist/intent/types.d.ts +1 -1
- package/dist/intent/types.js +1 -1
- package/dist/knowledge/allocation-ledger.js +1 -1
- package/dist/knowledge/allocator-rail-verifier.d.ts +17 -1
- package/dist/knowledge/allocator-rail-verifier.js +1 -1
- package/dist/knowledge/arb-fund-facts.d.ts +7 -0
- package/dist/knowledge/arb-fund-facts.js +1 -1
- package/dist/knowledge/arbitration-rail-verifier.d.ts +35 -0
- package/dist/knowledge/arbitration-rail-verifier.js +1 -0
- package/dist/knowledge/audit-rules.d.ts +11 -0
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/baselines/judgment-baselines.json +1 -0
- package/dist/knowledge/baselines/rules/guard.json +7 -6
- package/dist/knowledge/baselines/rules/progress.json +4 -4
- package/dist/knowledge/baselines/rules/reward.json +118 -3
- package/dist/knowledge/builtin-templates.d.ts +3 -2
- package/dist/knowledge/builtin-templates.js +1 -1
- package/dist/knowledge/chain-query-registry.d.ts +14 -0
- package/dist/knowledge/chain-query-registry.js +1 -0
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/fee-param-bindings.d.ts +2 -0
- package/dist/knowledge/fee-param-bindings.js +1 -1
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-binding-table.js +1 -1
- package/dist/knowledge/guard-binding-verifier.d.ts +7 -0
- package/dist/knowledge/guard-binding-verifier.js +1 -1
- package/dist/knowledge/guard-design-patterns.d.ts +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-host-context.js +1 -1
- package/dist/knowledge/guard-lint.js +1 -1
- package/dist/knowledge/guard-node-gates.d.ts +3 -1
- package/dist/knowledge/guard-node-gates.js +1 -1
- package/dist/knowledge/guard-puzzle.js +1 -1
- package/dist/knowledge/guard-render.js +1 -1
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/guard-templates.d.ts +2 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/guard-translation.js +1 -1
- package/dist/knowledge/index.d.ts +2 -0
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/jsonrpc-enum.js +1 -1
- package/dist/knowledge/knob-docs.js +1 -1
- package/dist/knowledge/param-schema.d.ts +1 -1
- package/dist/knowledge/param-schema.js +1 -1
- package/dist/knowledge/param-tiers.d.ts +2 -0
- package/dist/knowledge/param-tiers.js +1 -1
- package/dist/knowledge/path-oracle/products/food-delivery.js +1 -1
- package/dist/knowledge/pattern-resolutions.d.ts +2 -0
- package/dist/knowledge/pattern-resolutions.js +1 -1
- package/dist/knowledge/product-detail-source.d.ts +37 -0
- package/dist/knowledge/product-detail-source.js +1 -0
- package/dist/knowledge/product-doc-b5.d.ts +16 -0
- package/dist/knowledge/product-doc-b5.js +1 -0
- package/dist/knowledge/progress-ledger.js +1 -1
- package/dist/knowledge/projection.spec.js +1 -1
- package/dist/knowledge/publish-gate.d.ts +20 -0
- package/dist/knowledge/publish-gate.js +1 -0
- package/dist/knowledge/publish-readiness.d.ts +25 -0
- package/dist/knowledge/publish-readiness.js +1 -0
- package/dist/knowledge/publish-surface-contract.d.ts +16 -0
- package/dist/knowledge/publish-surface-contract.js +1 -0
- package/dist/knowledge/rail-exit-satisfiability.d.ts +25 -0
- package/dist/knowledge/rail-exit-satisfiability.js +1 -0
- package/dist/knowledge/reward-ledger.d.ts +1 -1
- package/dist/knowledge/reward-ledger.js +1 -1
- package/dist/knowledge/reward-risk.d.ts +1 -1
- package/dist/knowledge/reward-risk.js +1 -1
- package/dist/knowledge/service-ledger.d.ts +3 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/template-loader.d.ts +41 -2
- package/dist/knowledge/template-loader.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.d.ts +17 -0
- package/dist/knowledge/template-scanner.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +4 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/monitor/normalize.d.ts +1 -1
- package/dist/monitor/normalize.js +1 -1
- package/dist/monitor/types.js +1 -1
- package/dist/participation/game-context.js +1 -1
- package/dist/participation/radar-core.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +28 -3
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/object-panorama.d.ts +4 -0
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/relationship-profile.js +1 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/playbooks/service-build/service-quote.js +1 -1
- package/dist/review/index.js +1 -1
- package/dist/review/order.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +24 -0
- package/dist/schema/benchmark-migration/index.js +1 -1
- package/dist/schema/call/allocation.d.ts +11 -7
- package/dist/schema/call/allocation.js +1 -1
- package/dist/schema/call/arbitration.d.ts +4 -0
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +28 -0
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +21 -0
- package/dist/schema/call/contact.d.ts +4 -0
- package/dist/schema/call/demand.d.ts +4 -0
- package/dist/schema/call/guard.d.ts +12 -0
- package/dist/schema/call/handler.d.ts +1 -0
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/machine.d.ts +16 -8
- package/dist/schema/call/normalize-error.d.ts +1 -0
- package/dist/schema/call/normalize-error.js +1 -0
- package/dist/schema/call/order.d.ts +7 -3
- package/dist/schema/call/order.js +1 -1
- package/dist/schema/call/payment.d.ts +7 -3
- package/dist/schema/call/permission.d.ts +4 -0
- package/dist/schema/call/personal.d.ts +4 -0
- package/dist/schema/call/progress.d.ts +4 -0
- package/dist/schema/call/progress.js +1 -1
- package/dist/schema/call/proof.d.ts +8 -0
- package/dist/schema/call/receipt.js +1 -1
- package/dist/schema/call/repository.d.ts +4 -0
- package/dist/schema/call/reward.d.ts +6 -2
- package/dist/schema/call/reward.js +1 -1
- package/dist/schema/call/semantic.d.ts +2 -2
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +6 -2
- package/dist/schema/call/treasury.d.ts +10 -6
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/envelope-unify.d.ts +1 -0
- package/dist/schema/envelope-unify.js +1 -1
- package/dist/schema/evaluation/index.d.ts +43 -0
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +14 -2
- package/dist/schema/goal/planning.d.ts +18 -0
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/intent-radar/index.d.ts +12 -0
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/keeper/index.d.ts +1 -0
- package/dist/schema/local/index.d.ts +10 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/local/wip.js +1 -1
- package/dist/schema/messenger/index.d.ts +1 -0
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +95 -12
- package/dist/schema/operations.js +1 -1
- package/dist/schema/persona/index.d.ts +22 -0
- package/dist/schema/query/bi.d.ts +28 -2
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +67 -61
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/workflow/index.js +1 -1
- package/dist/schema-query-impl/index.d.ts +1 -0
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +2 -1
- package/dist/schemas/benchmark_migration_operation.output.json +74 -0
- package/dist/schemas/benchmark_migration_operation.schema.json +32 -0
- package/dist/schemas/bridge_operation.output.json +2 -1
- package/dist/schemas/bridge_operation.schema.json +40 -0
- package/dist/schemas/evaluation_operation.output.json +96 -0
- package/dist/schemas/evaluation_operation.schema.json +39 -0
- package/dist/schemas/goal_operation.schema.json +32 -0
- package/dist/schemas/guard2file.schema.json +8 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/intent_radar.output.json +10 -2
- package/dist/schemas/intent_radar.schema.json +5 -1
- package/dist/schemas/keeper_operation.output.json +2 -1
- package/dist/schemas/local_cache_operation.output.json +2 -1
- package/dist/schemas/local_history_operation.output.json +2 -1
- package/dist/schemas/local_info_operation.output.json +2 -1
- package/dist/schemas/local_mark_operation.output.json +2 -1
- package/dist/schemas/local_mark_operation.schema.json +10 -1
- package/dist/schemas/machineNode2file.schema.json +8 -0
- package/dist/schemas/messenger_operation.output.json +2 -1
- package/dist/schemas/messenger_operation.schema.json +2 -1
- package/dist/schemas/monitor_events.output.json +2 -1
- package/dist/schemas/monitor_subscription.output.json +2 -1
- package/dist/schemas/onchain_events.output.json +206 -13
- package/dist/schemas/onchain_events.schema.json +16 -0
- package/dist/schemas/onchain_operations.output.json +22 -3
- package/dist/schemas/onchain_operations.schema.json +971 -326
- package/dist/schemas/onchain_operations_allocation.schema.json +19 -12
- package/dist/schemas/onchain_operations_arbitration.schema.json +9 -1
- package/dist/schemas/onchain_operations_contact.schema.json +8 -0
- package/dist/schemas/onchain_operations_demand.schema.json +8 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +8 -0
- package/dist/schemas/onchain_operations_gen_proof.schema.json +8 -0
- package/dist/schemas/onchain_operations_guard.schema.json +654 -114
- package/dist/schemas/onchain_operations_machine.schema.json +11 -3
- package/dist/schemas/onchain_operations_order.schema.json +14 -11
- package/dist/schemas/onchain_operations_payment.schema.json +12 -9
- package/dist/schemas/onchain_operations_permission.schema.json +8 -0
- package/dist/schemas/onchain_operations_personal.schema.json +8 -0
- package/dist/schemas/onchain_operations_progress.schema.json +9 -1
- package/dist/schemas/onchain_operations_proof.schema.json +8 -0
- package/dist/schemas/onchain_operations_repository.schema.json +8 -0
- package/dist/schemas/onchain_operations_reward.schema.json +14 -11
- package/dist/schemas/onchain_operations_service.schema.json +13 -10
- package/dist/schemas/onchain_operations_treasury.schema.json +17 -19
- package/dist/schemas/onchain_table_data.output.json +52 -10
- package/dist/schemas/persona_operation.output.json +57 -0
- package/dist/schemas/persona_operation.schema.json +9 -0
- package/dist/schemas/query_toolkit.output.json +325 -22
- package/dist/schemas/query_toolkit.schema.json +18 -5
- package/dist/schemas/wip_file.output.json +2 -2
- package/dist/schemas/wip_file.schema.json +2 -2
- package/dist/schemas/workflow_operation.schema.json +1 -1
- package/dist/tools/error-catalog.d.ts +17 -0
- package/dist/tools/error-catalog.js +1 -0
- package/dist/tools/handlers/benchmark-migration.d.ts +20 -8
- package/dist/tools/handlers/benchmark-migration.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/entry-edge-recipe.d.ts +101 -0
- package/dist/tools/handlers/entry-edge-recipe.js +1 -0
- package/dist/tools/handlers/escrow-deficit.d.ts +10 -0
- package/dist/tools/handlers/escrow-deficit.js +1 -0
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/fund-rail-recipe.d.ts +10 -0
- package/dist/tools/handlers/fund-rail-recipe.js +1 -0
- package/dist/tools/handlers/intent-radar.js +1 -1
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/mark-namespace.d.ts +30 -0
- package/dist/tools/handlers/mark-namespace.js +1 -0
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/onchain-name-registration.d.ts +1 -0
- package/dist/tools/handlers/onchain-name-registration.js +1 -1
- package/dist/tools/handlers/onchain-name-registration.spec.js +1 -1
- package/dist/tools/handlers/onchain.d.ts +30 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/publish-binding-echo.d.ts +22 -0
- package/dist/tools/handlers/publish-binding-echo.js +1 -0
- package/dist/tools/handlers/query.d.ts +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/review-chain.d.ts +1 -0
- package/dist/tools/handlers/review-chain.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/handlers/stale-build-check.d.ts +9 -0
- package/dist/tools/handlers/stale-build-check.js +1 -0
- package/dist/tools/handlers/submission-assembly.d.ts +55 -0
- package/dist/tools/handlers/submission-assembly.js +1 -0
- package/dist/tools/handlers/wip.js +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.js +1 -1
- package/dist/tools/move-fn-index.gen.js +1 -1
- package/dist/tools/publish-gate-state.d.ts +5 -0
- package/dist/tools/publish-gate-state.js +1 -0
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/registry/onchain.js +1 -1
- package/dist/tools/registry/query.js +1 -1
- package/dist/tools/retry.js +1 -1
- package/dist/tools/runtime-health.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/dist/tools/upgrade-check.d.ts +1 -0
- package/dist/tools/upgrade-check.js +1 -1
- package/dist/tools/wip-verify-ledger.d.ts +2 -0
- package/dist/tools/wip-verify-ledger.js +1 -1
- package/dist/tools/wrap.d.ts +15 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CANONICAL_COMPILE_ORDER,compilePhaseRank}from'../knowledge/object-dependency.js';import{deriveCapabilityModes,emitModeGates}from'./mode-gates.js';import{normalizeCompileInputs,applyConditionalSelectors}from'./input-normalize.js';import{fillGuards}from'./guard-fill.js';import{auditRepoIntegrityAndCallerLegs,checkAllocatorRails,checkDaysUnitSlots,checkForeignServicePins,checkWindowTruncation,computeMoneyRailKeys,dropEmptyVecGuards,emitAllocators,emitArbitrationBindings,emitArbitrationHoist,emitEvidenceRepository,emitGuardWave,emitIdentityPhase,emitMachine,emitRewardClaimEarly,emitReviewComponent,emitReviewRepositoryEarly,emitSales,emitServiceAllocators,emitServiceConfigure,emitServiceDraft,emitServicePublish,emitSupplyChain,rewritePlanRefs}from'./emit-phases.js';export{normalizeInlineGuardTable}from'./guard-fill.js';export{normalizeCurrency}from'./emit-phases.js';export function compileTemplate(a,b,c={}){const d=c['nameBase']??a['id']['replace'](/\//g,'_'),e=c['merchantPermissionIndex']??0x3e8,f=[],g=[],{inputs:h,derivedParams:i,blockers:j}=normalizeCompileInputs(a,b,c['buildTimeMs']);f['push'](...j);const {dropKeys:k,selectorDroppedKeys:l,shape:m,rows:n,blockers:o}=applyConditionalSelectors(a,h);f['push'](...o);const {guardSpecs:p,resolvedGuards:q,unresolved:r,omitKeys:s,recoverTwinRails:t,declareReasons:u,specByKey:v,slot254Injected:w,injectedOrderHolderKeys:x,edgeBoundKeys:y,derived:{reviewMode:z,rewardMark:A,needsRepository:B},blockers:
|
|
1
|
+
import{CANONICAL_COMPILE_ORDER,compilePhaseRank}from'../knowledge/object-dependency.js';import{deriveCapabilityModes,emitModeGates}from'./mode-gates.js';import{normalizeCompileInputs,applyConditionalSelectors}from'./input-normalize.js';import{fillGuards}from'./guard-fill.js';import{auditRepoIntegrityAndCallerLegs,checkAllocatorRails,checkDaysUnitSlots,checkEmittedStepShapes,checkForeignServicePins,checkFundRailReachability,checkWindowTopology,checkWindowTruncation,computeMoneyRailKeys,dropEmptyVecGuards,emitAllocators,emitArbitrationBindings,emitArbitrationHoist,emitEvidenceRepository,emitGuardWave,emitIdentityPhase,emitMachine,emitRewardClaimEarly,emitExperiencePoolEarly,emitReviewComponent,emitReviewRepositoryEarly,emitSales,emitServiceAllocators,emitServiceConfigure,emitServiceDraft,emitServicePublish,emitSupplyChain,rewritePlanRefs}from'./emit-phases.js';export{normalizeInlineGuardTable}from'./guard-fill.js';export{normalizeCurrency}from'./emit-phases.js';export function compileTemplate(a,b,c={}){const d=(c['nameBase']??a['id'])['replace'](/\//g,'_'),e=c['merchantPermissionIndex']??0x3e8,f=[],g=[],{inputs:h,derivedParams:i,blockers:j}=normalizeCompileInputs(a,b,c['buildTimeMs']);f['push'](...j);const {dropKeys:k,selectorDroppedKeys:l,shape:m,rows:n,blockers:o}=applyConditionalSelectors(a,h);f['push'](...o);const {guardSpecs:p,resolvedGuards:q,unresolved:r,omitKeys:s,recoverTwinRails:t,declareReasons:u,specByKey:v,slot254Injected:w,injectedOrderHolderKeys:x,edgeBoundKeys:y,derived:{reviewMode:z,rewardMark:A,needsRepository:B,experienceClaimKey:C},blockers:D}=fillGuards({'template':a,'base':d,'inputs':h,'guardResolutions':c['guardResolutions']??{},'selector':{'dropKeys':k,'selectorDroppedKeys':l,'shape':m,'rows':n}});f['push'](...D);const E=emitIdentityPhase({'template':a,'base':d});g['push'](...E['steps']);const F=E['needsArbitration'],{afterSalesMode:G,acceptanceMode:H,installmentMode:I,affiliateMode:J,crowdfundingMode:K,logisticsMode:L}=deriveCapabilityModes({'template':a,'inputs':h});g['push'](...emitRewardClaimEarly({'reviewMode':z,'guardSpecs':p,'resolvedGuards':q,'rewardMark':A})['steps']),g['push'](...emitExperiencePoolEarly({'experienceClaimKey':C,'guardSpecs':p,'resolvedGuards':q,'poolMark':d+'_experience_comp'})['steps']),f['push'](...checkDaysUnitSlots({'resolvedGuards':q})['blockers']),f['push'](...checkWindowTruncation({'resolvedGuards':q})['blockers']);const M=emitServiceDraft({'template':a,'base':d,'inputs':h});g['push'](...M['steps']),f['push'](...M['blockers']);const N=emitEvidenceRepository({'needsRepository':B,'base':d,'inputs':h,'guardSpecs':p,'resolvedGuards':q});g['push'](...N['steps']),f['push'](...N['blockers']);const O=emitReviewRepositoryEarly({'reviewMode':z,'base':d,'inputs':h});g['push'](...O['steps']);const P=[...N['runtimeWrites'],...O['runtimeWrites']];rewritePlanRefs({'base':d,'resolvedGuards':q}),f['push'](...dropEmptyVecGuards({'resolvedGuards':q,'guardSpecs':p,'steps':g})['blockers']),g['push'](...emitArbitrationHoist({'needsArbitration':F,'template':a,'base':d,'currency':M['currency']})['steps']),g['push'](...emitGuardWave({'resolvedGuards':q,'specByKey':v,'slot254Injected':w,'repoBoundPolicies':N['repoBoundPolicies'],'repoBoundStepIds':N['repoBoundStepIds']})['steps']);const Q=emitMachine({'template':a,'base':d,'shape':m,'resolvedGuards':q,'specByKey':v,'injectedOrderHolderKeys':x,'merchantIndex':e});g['push'](...Q['steps']),f['push'](...Q['blockers']),g['push'](...emitServiceConfigure({'guardSpecs':p,'needsRepository':B})['steps']);const R=emitAllocators({'template':a,'base':d,'inputs':h,'rowsWithAttachments':n,'resolvedGuards':q,'specByKey':v}),{rows:S,rowGroups:T,allocatorRows:U,externalMarks:V}=R;f['push'](...R['blockers']);const W=checkAllocatorRails({'rowGroups':T,'resolvedGuards':q,'shape':m,'recoverTwinRails':t,'declares':u});f['push'](...W['blockers']);if(W['disclosures']['length']>0x0){const a7=g['find'](a8=>a8['id']==='machine');if(a7){const a8=W['disclosures']['join']('\x20');a7['notes']=a7['notes']!==undefined?a7['notes']+'\x20'+a8:a8;}}g['push'](...emitServiceAllocators({'template':a,'inputs':h,'allocatorRows':U})['steps']);const X=emitSales({'inputs':h});g['push'](...X['steps']),f['push'](...X['blockers']);const Y=emitModeGates({'afterSalesMode':G,'acceptanceMode':H,'installmentMode':I,'affiliateMode':J,'crowdfundingMode':K,'logisticsMode':L},{'shape':m,'rows':S,'guardSpecs':p,'buildNotes':a['build_notes']??[],'feeParams':a['fee_params'],'arbitrationMode':a['arbitration_mode'],'inputs':h,'buildTimeMs':c['buildTimeMs']});f['push'](...Y['blockers']);if(Y['disclosures']['length']>0x0){const a9=g['find'](aa=>aa['id']==='machine');if(a9){const aa=Y['disclosures']['join']('\x20');a9['notes']=a9['notes']!==undefined?a9['notes']+'\x20'+aa:aa;}}const Z=emitReviewComponent({'template':a,'inputs':h,'reviewMode':z,'experienceClaimKey':C,'shape':m,'guardSpecs':p,'resolvedGuards':q,'specByKey':v});g['push'](...Z['steps']),f['push'](...Z['blockers']);const a0=emitArbitrationBindings({'template':a,'inputs':h,'needsArbitration':F,'shape':m,'guardSpecs':p,'specByKey':v});g['push'](...a0['steps']),f['push'](...a0['blockers']);if(a0['disclosures']['length']>0x0){const ab=g['find'](ac=>ac['id']==='machine');if(ab){const ac=a0['disclosures']['join']('\x20');ab['notes']=ab['notes']!==undefined?ab['notes']+'\x20'+ac:ac;}}g['push'](...emitServicePublish()['steps']),g['push'](...Z['fundingSteps'],...a0['fundingSteps']);const {allocatorBoundKeys:a1,moneyRailKeys:a2}=computeMoneyRailKeys({'rowsWithAttachments':n,'guardSpecs':p});f['push'](...checkForeignServicePins({'resolvedGuards':q,'edgeBoundKeys':y,'moneyRailKeys':a2})['blockers']),f['push'](...auditRepoIntegrityAndCallerLegs({'steps':g,'resolvedGuards':q,'moneyRailKeys':a2,'recoverTwinRails':t})['blockers']);const a3=emitSupplyChain({'supplyChain':c['supplyChain'],'steps':g,'derivedParams':i});f['push'](...a3['blockers']);const {supplyChainEmissions:a4,fulfillmentAxis:a5}=a3;{const ad=new Map();g['forEach']((ag,ah)=>{const ai=compilePhaseRank(ag['id']);if(ai>=0x0&&!ad['has'](ai))ad['set'](ai,ah);});let ae=-0x1,af='';for(let ag=0x0;ag<CANONICAL_COMPILE_ORDER['length'];ag++){const ah=ad['get'](ag);if(ah===undefined)continue;if(ah<ae){f['push']({'code':'COMPILE_ORDER_DRIFT','detail':'Plan\x20emission\x20drifted\x20from\x20the\x20F-05\x20canonical\x20order\x20(object-dependency.ts\x20'+('CANONICAL_COMPILE_ORDER):\x20phase\x20\x27'+CANONICAL_COMPILE_ORDER[ag]['phase']+'\x27\x20first\x20appears\x20at\x20')+('position\x20'+(ah+0x1)+',\x20but\x20phase\x20\x27'+af+'\x27\x20already\x20appeared\x20at\x20position\x20'+(ae+0x1)+'.\x20')+'Restore\x20the\x20canonical\x20emission\x20order\x20in\x20the\x20kernel\x20—\x20the\x20plan\x20must\x20not\x20ship\x20reordered.'});break;}ae=ah,af=CANONICAL_COMPILE_ORDER[ag]['phase'];}}f['push'](...checkEmittedStepShapes({'steps':g})['blockers']),f['push'](...checkFundRailReachability({'steps':g,'resolvedGuards':q})['blockers']);{const ai=checkWindowTopology({'template':a});if(ai['warnings']['length']>0x0){const aj=g['find'](ak=>ak['id']==='machine');if(aj){const ak=ai['warnings']['join']('\x20');aj['notes']=aj['notes']!==undefined?aj['notes']+'\x20'+ak:ak;}}}const a6=r['flatMap'](al=>{const am=a1['has'](al['key'])?'allocator':y['has'](al['key'])?'machine_edge':al['host']==='service'&&al['key']==='buy'?'service_buy':undefined;return am?[{'key':al['key'],'template_id':al['template_id'],'host':al['host'],'site':am,'purpose':al['purpose']}]:[];});return{'plan':{'version':0x1,'intent':c['intent']??'compile\x20'+a['id'],'templateId':a['id'],'inputs':a5!==undefined?{...h,'fulfillment_axis':a5}:h,'steps':g,...V['size']>0x0?{'external_refs':[...V]['sort']()}:{},...a6['length']>0x0?{'pending_guards':a6}:{},...i['length']>0x0?{'derived_params':i}:{},...P['length']>0x0?{'runtime_writes':P}:{}},'guardSpecs':p,'unresolved':r,'blockers':f,'omitted':[...s],...a4['length']>0x0?{'supplyChain':a4}:{}};}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SupplyChainEmission, SupplyChainPromise } from "./supply-chain-emit.js";
|
|
2
|
-
import type { DerivedParam, JsonValue, PlanStep } from "./plan.js";
|
|
2
|
+
import type { DerivedParam, JsonValue, PlanStep, RuntimeWriteStep } from "./plan.js";
|
|
3
3
|
import type { GuardFillReviewMode, ResolvedGuard } from "./guard-fill.js";
|
|
4
4
|
import type { AllocatorRowData, CompilableTemplate, CompileBlocker, GuardSpec } from "./compile.js";
|
|
5
5
|
export declare function normalizeCurrency(raw: string): string | undefined;
|
|
@@ -18,6 +18,14 @@ export declare function emitRewardClaimEarly({ reviewMode, guardSpecs, resolvedG
|
|
|
18
18
|
}): {
|
|
19
19
|
steps: PlanStep[];
|
|
20
20
|
};
|
|
21
|
+
export declare function emitExperiencePoolEarly({ experienceClaimKey, guardSpecs, resolvedGuards, poolMark, }: {
|
|
22
|
+
experienceClaimKey?: string;
|
|
23
|
+
guardSpecs: GuardSpec[];
|
|
24
|
+
resolvedGuards: Map<string, ResolvedGuard>;
|
|
25
|
+
poolMark: string;
|
|
26
|
+
}): {
|
|
27
|
+
steps: PlanStep[];
|
|
28
|
+
};
|
|
21
29
|
export declare function checkDaysUnitSlots({ resolvedGuards, }: {
|
|
22
30
|
resolvedGuards: Map<string, ResolvedGuard>;
|
|
23
31
|
}): {
|
|
@@ -47,6 +55,7 @@ export declare function emitEvidenceRepository({ needsRepository, base, inputs,
|
|
|
47
55
|
steps: PlanStep[];
|
|
48
56
|
repoBoundPolicies: Record<string, unknown>[];
|
|
49
57
|
repoBoundStepIds: string[];
|
|
58
|
+
runtimeWrites: RuntimeWriteStep[];
|
|
50
59
|
blockers: CompileBlocker[];
|
|
51
60
|
};
|
|
52
61
|
export declare function emitReviewRepositoryEarly({ reviewMode, base, inputs, }: {
|
|
@@ -55,6 +64,7 @@ export declare function emitReviewRepositoryEarly({ reviewMode, base, inputs, }:
|
|
|
55
64
|
inputs: Record<string, JsonValue>;
|
|
56
65
|
}): {
|
|
57
66
|
steps: PlanStep[];
|
|
67
|
+
runtimeWrites: RuntimeWriteStep[];
|
|
58
68
|
};
|
|
59
69
|
export declare function rewritePlanRefs({ base, resolvedGuards, }: {
|
|
60
70
|
base: string;
|
|
@@ -139,16 +149,33 @@ export declare function emitServiceAllocators({ template, inputs, allocatorRows,
|
|
|
139
149
|
}): {
|
|
140
150
|
steps: PlanStep[];
|
|
141
151
|
};
|
|
152
|
+
export declare function checkEmittedStepShapes({ steps }: {
|
|
153
|
+
steps: PlanStep[];
|
|
154
|
+
}): {
|
|
155
|
+
blockers: CompileBlocker[];
|
|
156
|
+
};
|
|
157
|
+
export declare function checkFundRailReachability({ steps, resolvedGuards, }: {
|
|
158
|
+
steps: PlanStep[];
|
|
159
|
+
resolvedGuards: Map<string, ResolvedGuard>;
|
|
160
|
+
}): {
|
|
161
|
+
blockers: CompileBlocker[];
|
|
162
|
+
};
|
|
163
|
+
export declare function checkWindowTopology({ template }: {
|
|
164
|
+
template: CompilableTemplate;
|
|
165
|
+
}): {
|
|
166
|
+
warnings: string[];
|
|
167
|
+
};
|
|
142
168
|
export declare function emitSales({ inputs }: {
|
|
143
169
|
inputs: Record<string, JsonValue>;
|
|
144
170
|
}): {
|
|
145
171
|
steps: PlanStep[];
|
|
146
172
|
blockers: CompileBlocker[];
|
|
147
173
|
};
|
|
148
|
-
export declare function emitReviewComponent({ template, inputs, reviewMode, shape, guardSpecs, resolvedGuards, specByKey, }: {
|
|
174
|
+
export declare function emitReviewComponent({ template, inputs, reviewMode, experienceClaimKey, shape, guardSpecs, resolvedGuards, specByKey, }: {
|
|
149
175
|
template: CompilableTemplate;
|
|
150
176
|
inputs: Record<string, JsonValue>;
|
|
151
177
|
reviewMode: GuardFillReviewMode;
|
|
178
|
+
experienceClaimKey?: string;
|
|
152
179
|
shape: CompilableTemplate["machine_shape"];
|
|
153
180
|
guardSpecs: GuardSpec[];
|
|
154
181
|
resolvedGuards: Map<string, ResolvedGuard>;
|
|
@@ -169,6 +196,7 @@ export declare function emitArbitrationBindings({ template, inputs, needsArbitra
|
|
|
169
196
|
steps: PlanStep[];
|
|
170
197
|
fundingSteps: PlanStep[];
|
|
171
198
|
blockers: CompileBlocker[];
|
|
199
|
+
disclosures: string[];
|
|
172
200
|
};
|
|
173
201
|
export declare function emitServicePublish(): {
|
|
174
202
|
steps: PlanStep[];
|