@vibeiao/sdk 0.1.47 → 0.1.49

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 CHANGED
@@ -691,6 +691,13 @@ Adaptive reflection policy is available for cadence-based adaptation (not per-re
691
691
  - output `hold|observe|adapt` decision and optional bounded adaptation plan
692
692
  - enforce `verify -> execute` sequencing in apply mode (no verify pass => no execution)
693
693
 
694
+ Adapter packs + migration helpers:
695
+ - use `createWebStaticAdapter`, `createWebBundledAdapter`, `createServiceApiAdapter`, `createWorkflowAgentAdapter`
696
+ - use `runAdapterBestShotChecklist` for profile-level launch checks
697
+ - use `runAgentLaunchRuntimeCycle` (alias of launch runtime) to enforce launch gate before publish execution
698
+ - use `buildRuntimeMigrationPlan` to migrate legacy runtime scripts to adapter-based review runtime
699
+ - use `shouldAnnounceStateChange` to suppress repetitive green cron/runtime notifications and only emit meaningful changes
700
+
694
701
  You can also enforce dual-mode work arbitration:
695
702
  - `owner_bound` agents: human-first (owner work preempts autonomous work)
696
703
  - `unbound` agents: autonomous-first (run autonomous work by default)
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export { SurvivalMode, SurvivalRecommendation, classifySurvivalMode, formatSurvi
6
6
  export { SurvivalIntegrationDecision, getSurvivalPlaybookDecision, getSurvivalPlaybookDecisionFromSelfReliance } from './survivalIntegration.js';
7
7
  export { EscapeHatchDecision, EscapeHatchPolicy, EscapeHatchSnapshot, evaluateEscapeHatch, formatEscapeHatchDecision } from './survivalEscapeHatch.js';
8
8
  export { MarketDiscoveryClient, MarketNeed, MarketSignal, deriveMarketNeeds, discoverMarketNeeds, extractMarketSignals, runMarketDiscovery } from './marketDiscovery.js';
9
- export { A as AdaptiveAdaptationPlan, a as AdaptiveExecution, b as AdaptiveFeedbackAggregate, c as AdaptivePolicyConfig, d as AdaptivePolicyDecision, e as AdaptivePolicyState, f as AdaptiveReflectionStore, g as AdaptiveTheme, h as AdaptiveVerification, i as AgentResourceProvidersManifest, j as AgentReviewRuntimeOptions, k as AnalyticsPoint, l as ApiCreditProvider, m as ApiCreditProviderFactoryOptions, n as ApiCreditProviderPreset, o as ApiCreditProviderPresetInput, p as ApiResponse, B as BuybackEvent, C as CONTEXT_PACK_SECTION_ORDER, q as ContextPack, r as ContextPackBudget, s as ContextPackInput, t as ContextPackOptions, u as ContextPackSectionKey, v as ContextPackSections, D as DurabilityCheckpointWriteOptions, w as DurabilityProxyClientOptions, x as DurabilityRestoreDrillWriteOptions, E as ExecutionAdapter, y as ExecutionApplyResult, z as ExecutionDecisionRecord, F as ExecutionDryRunResult, G as ExecutionRollbackResult, H as ExecutionRolloutMode, I as ExecutionRunResult, J as ExecutionValidateResult, L as LISTING_NAME_MAX_LENGTH, K as LISTING_NAME_RECOMMENDED_MAX, M as LISTING_TAGLINE_MAX_LENGTH, N as LISTING_TAGLINE_RECOMMENDED_MAX, O as LeaderboardEntry, P as LeaderboardQuery, Q as ListingNamingValidationOptions, R as ListingNamingValidationResult, S as ListingQuery, T as ListingReviewCreatePayload, U as ListingReviewResponsePayload, V as ListingVersionPayload, W as MarketingCampaign, X as MarketingLinkOptions, Y as MemoryPingChallengeResponse, Z as MemoryPingPayload, _ as OpenRouterCredits, $ as ProcurementCandidate, a0 as ProcurementDecision, a1 as ProcurementTaskProfile, a2 as ProcurementWeights, a3 as ResourceProviderManifestEntry, a4 as ResourceSnapshot, a5 as ReviewGate, a6 as ReviewGateRecord, a7 as ReviewRequiredPayload, a8 as RunAdaptiveReflectionOptions, a9 as SdkAutoUpdatedRestartRequiredError, aa as SdkUpdateCheckOptions, ab as SdkUpdatePolicyCheckOptions, ac as SdkUpdateRequiredError, ad as SdkUpdateStatus, TopupDecision, TopupRequest, TreasuryLedgerEvent, TreasuryPolicy, TreasuryPolicyV1, TreasuryState, ae as VIBEIAO_IDL, af as VibeClient, ag as VibeClientOptions, ah as VibeRegistry, ai as aggregateFeedbackSignals, aj as assertSurvivalProvidersConfigured, ak as buildAdaptivePlan, al as buildBadgeMarkdown, am as buildClaimMessage, an as buildDecisionRecord, ao as buildJupiterSwapUrl, ap as buildListingVersionMessage, aq as buildMemoryPingMessage, ar as buildOwnerTransferMessage, as as buildProcurementPrompt, at as buildRaydiumSwapUrl, au as buildReviewPrompt, av as buildReviewRequired, aw as buildReviewResponseMessage, ax as buildSdkUpdateCommand, ay as buildShareCopy, az as buildShareLink, aA as buildTradeLinks, buildTreasuryLedgerEvent, aB as checkForSdkUpdate, aC as checkForSdkUpdatePolicy, aD as compareVersions, aE as createApiCreditProvider, aF as createApiCreditProviders, aG as createApiCreditProvidersFromManifest, aH as createCampaign, aI as createContextPack, aJ as createDurabilityProxyClient, createTreasuryPolicy, aK as decideProcurementForTask, aL as estimateContextPackTokens, aM as evaluateAdaptiveReflectionPolicy, evaluateTopupRequest, aN as getResourceSnapshot, aO as normalizeListingText, aP as rankListingsForTask, aQ as runAdaptiveReflectionCycle, aR as runAgentReviewRuntimeCycle, aS as runExecutionAdapter, aT as sanitizeListingNaming, aU as scoreListingForTask, treasuryStateFromSnapshot, aV as validateContextPack, aW as validateListingNaming, validateTreasuryPolicy, aX as verifyAdaptiveExecutionReadiness } from './treasuryGuardian.js';
9
+ export { A as AdapterBestShotChecklistResult, a as AdapterPackKind, b as AdapterPackOptions, c as AdaptiveAdaptationPlan, d as AdaptiveExecution, e as AdaptiveFeedbackAggregate, f as AdaptivePolicyConfig, g as AdaptivePolicyDecision, h as AdaptivePolicyState, i as AdaptiveReflectionStore, j as AdaptiveTheme, k as AdaptiveVerification, l as AgentLaunchRuntimeOptions, m as AgentLaunchRuntimeResult, n as AgentResourceProvidersManifest, o as AgentReviewRuntimeOptions, p as AnalyticsPoint, q as ApiCreditProvider, r as ApiCreditProviderFactoryOptions, s as ApiCreditProviderPreset, t as ApiCreditProviderPresetInput, u as ApiResponse, B as BuybackEvent, C as CONTEXT_PACK_SECTION_ORDER, v as ContextPack, w as ContextPackBudget, x as ContextPackGateOptions, y as ContextPackGateResult, z as ContextPackInput, D as ContextPackOptions, E as ContextPackSectionKey, F as ContextPackSections, G as ContextPackState, H as DurabilityCheckpointWriteOptions, I as DurabilityProxyClientOptions, J as DurabilityRestoreDrillWriteOptions, K as ExecutionAdapter, L as ExecutionApplyResult, M as ExecutionDecisionRecord, N as ExecutionDryRunResult, O as ExecutionRollbackResult, P as ExecutionRolloutMode, Q as ExecutionRunResult, R as ExecutionValidateResult, S as LISTING_NAME_MAX_LENGTH, T as LISTING_NAME_RECOMMENDED_MAX, U as LISTING_TAGLINE_MAX_LENGTH, V as LISTING_TAGLINE_RECOMMENDED_MAX, W as LaunchProfile, X as LaunchReadinessInput, Y as LaunchReadinessResult, Z as LeaderboardEntry, _ as LeaderboardQuery, $ as ListingNamingValidationOptions, a0 as ListingNamingValidationResult, a1 as ListingQuery, a2 as ListingReviewCreatePayload, a3 as ListingReviewResponsePayload, a4 as ListingVersionPayload, a5 as MarketingCampaign, a6 as MarketingLinkOptions, a7 as MemoryPingChallengeResponse, a8 as MemoryPingPayload, a9 as OpenRouterCredits, aa as ProcurementCandidate, ab as ProcurementDecision, ac as ProcurementTaskProfile, ad as ProcurementWeights, ae as ResourceProviderManifestEntry, af as ResourceSnapshot, ag as ReviewGate, ah as ReviewGateRecord, ai as ReviewRequiredPayload, aj as RunAdaptiveReflectionOptions, ak as RuntimeMigrationInput, al as RuntimeMigrationPlan, am as RuntimeStateSnapshot, an as SdkAutoUpdatedRestartRequiredError, ao as SdkUpdateCheckOptions, ap as SdkUpdatePolicyCheckOptions, aq as SdkUpdateRequiredError, ar as SdkUpdateStatus, TopupDecision, TopupRequest, TreasuryLedgerEvent, TreasuryPolicy, TreasuryPolicyV1, TreasuryState, as as VIBEIAO_IDL, at as VibeClient, au as VibeClientOptions, av as VibeRegistry, aw as aggregateFeedbackSignals, ax as assertLaunchReady, ay as assertSurvivalProvidersConfigured, az as buildAdaptivePlan, aA as buildBadgeMarkdown, aB as buildClaimMessage, aC as buildDecisionRecord, aD as buildJupiterSwapUrl, aE as buildListingVersionMessage, aF as buildMemoryPingMessage, aG as buildOwnerTransferMessage, aH as buildProcurementPrompt, aI as buildRaydiumSwapUrl, aJ as buildReviewPrompt, aK as buildReviewRequired, aL as buildReviewResponseMessage, aM as buildRuntimeMigrationPlan, aN as buildSdkUpdateCommand, aO as buildShareCopy, aP as buildShareLink, aQ as buildTradeLinks, buildTreasuryLedgerEvent, aR as checkForSdkUpdate, aS as checkForSdkUpdatePolicy, aT as compareVersions, aU as createApiCreditProvider, aV as createApiCreditProviders, aW as createApiCreditProvidersFromManifest, aX as createCampaign, aY as createContextPack, aZ as createCustomAdapter, a_ as createDurabilityProxyClient, a$ as createServiceApiAdapter, createTreasuryPolicy, b0 as createWebBundledAdapter, b1 as createWebStaticAdapter, b2 as createWorkflowAgentAdapter, b3 as decideProcurementForTask, b4 as estimateContextPackTokens, b5 as evaluateAdaptiveReflectionPolicy, b6 as evaluateContextPackGate, b7 as evaluateLaunchReadiness, evaluateTopupRequest, b8 as getResourceSnapshot, b9 as normalizeListingText, ba as rankListingsForTask, bb as runAdapterBestShotChecklist, bc as runAdaptiveReflectionCycle, bd as runAgentLaunchRuntime, be as runAgentLaunchRuntimeCycle, bf as runAgentReviewRuntimeCycle, bg as runExecutionAdapter, bh as sanitizeListingNaming, bi as scoreListingForTask, bj as shouldAnnounceStateChange, treasuryStateFromSnapshot, bk as validateContextPack, bl as validateListingNaming, validateTreasuryPolicy, bm as verifyAdaptiveExecutionReadiness } from './treasuryGuardian.js';
10
10
  export { OUTCOME_BOUND_FLOW_SCHEMA, OUTCOME_BOUND_REQUIRED_GATES, OutcomeBoundRequiredGate, OutcomeBoundRunInput, OutcomeBoundRunStatus, assertOutcomeBoundCompleted, evaluateOutcomeBoundRun } from './outcomeBoundFlow.js';
11
11
  export { STRICT_MEMORY_RUNTIME_SCHEMA, StrictMemoryEvaluation, StrictMemoryEvaluationInput, StrictMemoryRuntimePreset, StrictMemoryTriggerSet, StrictMemoryUpgradeInput, StrictMemoryUpgradePolicy, StrictMemoryUpgradeResult, createStrictMemoryRuntimePreset, evaluateStrictMemoryExecution, isComplexTask, upgradeToStrictMemoryRuntimePreset } from './strictMemoryRuntime.js';
12
12
  export { d as ObjectiveChangeProposal, e as ObjectiveChangeSourceTrust, O as ObjectiveGuardDecision, c as ObjectiveGuardPolicy, P as PromptShieldDecision, f as PromptShieldFlag, b as PromptShieldInput, a as PromptShieldPolicy, g as PromptShieldRisk, h as PromptShieldTrustLevel, i as evaluateObjectiveChange, j as evaluatePromptShield } from './objectiveGuard-d1x0xgAD.js';
package/dist/index.js CHANGED
@@ -545,16 +545,16 @@ var runAdaptiveReflectionCycle = async (opts) => {
545
545
  objective: plan.objectiveDelta,
546
546
  nowMs
547
547
  });
548
- const run = await runExecutionAdapter({
548
+ const run2 = await runExecutionAdapter({
549
549
  mode: rolloutMode,
550
550
  record,
551
551
  adapter: opts.execution.adapter
552
552
  });
553
553
  execution = {
554
- attempted: run.attempted,
555
- applied: run.applied,
554
+ attempted: run2.attempted,
555
+ applied: run2.applied,
556
556
  mode,
557
- reason: run.reason
557
+ reason: run2.reason
558
558
  };
559
559
  } else {
560
560
  execution = {
@@ -589,12 +589,40 @@ var runAdaptiveReflectionCycle = async (opts) => {
589
589
  };
590
590
  };
591
591
 
592
+ // src/contextPackGate.ts
593
+ var evaluateContextPackGate = (options = {}) => {
594
+ const mode = options.mode || "observe";
595
+ const complexMutation = options.complexMutation ?? true;
596
+ const minFacts = options.minFacts ?? 1;
597
+ if (!complexMutation || mode === "observe" || mode === "shadow") {
598
+ return { passed: true, reasons: ["context_gate_not_required"] };
599
+ }
600
+ const pack = options.contextPack;
601
+ const reasons = [];
602
+ if (!pack) reasons.push("missing_context_pack");
603
+ if (pack && !pack.prepared) reasons.push("context_pack_not_prepared");
604
+ if (pack && !pack.semanticRecallConfirmed) reasons.push("semantic_recall_not_confirmed");
605
+ if (pack && (pack.factsCount ?? 0) < minFacts) reasons.push("insufficient_context_pack_facts");
606
+ return {
607
+ passed: reasons.length === 0,
608
+ reasons: reasons.length ? reasons : ["context_pack_gate_passed"]
609
+ };
610
+ };
611
+
592
612
  // src/agentReviewRuntime.ts
593
613
  var runAgentReviewRuntimeCycle = async (opts) => {
594
614
  if (!opts.adapter) {
595
615
  throw new Error("agent_review_runtime_requires_execution_adapter");
596
616
  }
597
- return runAdaptiveReflectionCycle({
617
+ const requestedRolloutMode = opts.rolloutMode || "apply_full";
618
+ const contextGate = evaluateContextPackGate({
619
+ mode: requestedRolloutMode,
620
+ complexMutation: opts.complexMutation ?? true,
621
+ contextPack: opts.contextPack,
622
+ minFacts: 1
623
+ });
624
+ const effectiveRolloutMode = contextGate.passed ? requestedRolloutMode : "observe";
625
+ const out = await runAdaptiveReflectionCycle({
598
626
  client: opts.client,
599
627
  listingId: opts.listingId,
600
628
  wallet: opts.wallet,
@@ -604,12 +632,341 @@ var runAgentReviewRuntimeCycle = async (opts) => {
604
632
  reflectionOptions: opts.reflectionOptions,
605
633
  execution: {
606
634
  mode: "apply",
607
- rolloutMode: opts.rolloutMode || "apply_full",
635
+ rolloutMode: effectiveRolloutMode,
608
636
  allowImmediateOnly: opts.allowImmediateOnly ?? false,
609
637
  adapter: opts.adapter
610
638
  },
611
639
  now: opts.now
612
640
  });
641
+ return {
642
+ ...out,
643
+ contextGate,
644
+ requestedRolloutMode,
645
+ effectiveRolloutMode
646
+ };
647
+ };
648
+
649
+ // src/launchReadiness.ts
650
+ var evaluateLaunchReadiness = (input) => {
651
+ const blockers = [];
652
+ const notes = [];
653
+ if (!String(input.targetUser || "").trim()) blockers.push("missing_target_user");
654
+ if (!String(input.problemStatement || "").trim()) blockers.push("missing_problem_statement");
655
+ if (!Array.isArray(input.researchEvidence) || input.researchEvidence.length < 2) blockers.push("insufficient_research_evidence");
656
+ if (!String(input.designRationale || "").trim()) blockers.push("missing_design_rationale");
657
+ const qualityChecks = Array.isArray(input.qualityChecks) ? input.qualityChecks : [];
658
+ if (!qualityChecks.length) blockers.push("missing_quality_checks");
659
+ if (qualityChecks.some((q) => !q.passed)) blockers.push("quality_checks_failed");
660
+ if (!String(input.rollbackPlan || "").trim()) blockers.push("missing_rollback_plan");
661
+ const deployUrl = String(input.deploy?.url || "").trim();
662
+ const smokePassed = Boolean(input.deploy?.smokePassed);
663
+ const listingUpdated = Boolean(input.listing?.updated);
664
+ if (!deployUrl) blockers.push("missing_deploy_url");
665
+ if (!smokePassed) blockers.push("smoke_check_failed");
666
+ if (!listingUpdated) blockers.push("listing_not_updated");
667
+ const score = Math.max(0, 1 - blockers.length / 10);
668
+ if (!blockers.length) notes.push("launch_readiness_passed");
669
+ return {
670
+ ready: blockers.length === 0,
671
+ score,
672
+ blockers,
673
+ notes
674
+ };
675
+ };
676
+ var assertLaunchReady = (input) => {
677
+ const result = evaluateLaunchReadiness(input);
678
+ if (!result.ready) {
679
+ throw new Error(`launch_readiness_failed:${result.blockers.join(",")}`);
680
+ }
681
+ return result;
682
+ };
683
+
684
+ // src/adapterPacks.ts
685
+ import { execSync } from "child_process";
686
+ import path from "path";
687
+ import fs from "fs";
688
+ var run = (command, cwd) => {
689
+ execSync(command, { cwd, stdio: "pipe" });
690
+ };
691
+ var checkPaths = (cwd, required) => required.map((p) => ({
692
+ name: `path:${p}`,
693
+ passed: fs.existsSync(path.join(cwd, p)),
694
+ detail: path.join(cwd, p)
695
+ }));
696
+ var readPackageJson = (cwd) => {
697
+ const p = path.join(cwd, "package.json");
698
+ if (!fs.existsSync(p)) return null;
699
+ try {
700
+ return JSON.parse(fs.readFileSync(p, "utf8"));
701
+ } catch {
702
+ return null;
703
+ }
704
+ };
705
+ var checkWebStaticLinks = (cwd) => {
706
+ const indexPath = path.join(cwd, "index.html");
707
+ if (!fs.existsSync(indexPath)) {
708
+ return [
709
+ { name: "index_has_css_link", passed: false, detail: "index.html missing" },
710
+ { name: "index_has_script_ref", passed: false, detail: "index.html missing" }
711
+ ];
712
+ }
713
+ const html = fs.readFileSync(indexPath, "utf8");
714
+ return [
715
+ {
716
+ name: "index_has_css_link",
717
+ passed: /<link[^>]+href=["'][^"']+\.css["']/i.test(html),
718
+ detail: "index.html should include a CSS asset link"
719
+ },
720
+ {
721
+ name: "index_has_script_ref",
722
+ passed: /<script[^>]+src=["'][^"']+\.js["']/i.test(html),
723
+ detail: "index.html should include a JS asset script tag"
724
+ }
725
+ ];
726
+ };
727
+ var runAdapterBestShotChecklist = (profile, options) => {
728
+ const checks = [];
729
+ const pkg = readPackageJson(options.cwd);
730
+ const scripts = pkg?.scripts || {};
731
+ if (profile === "web_static") {
732
+ checks.push(...checkPaths(options.cwd, options.requiredPaths || ["index.html", "style.css"]));
733
+ checks.push(...checkWebStaticLinks(options.cwd));
734
+ } else if (profile === "web_bundled") {
735
+ checks.push(...checkPaths(options.cwd, options.requiredPaths || ["package.json"]));
736
+ checks.push({ name: "package_has_build_script", passed: Boolean(scripts.build), detail: scripts.build });
737
+ checks.push({
738
+ name: "package_has_test_or_validate_script",
739
+ passed: Boolean(scripts.test || scripts.validate || options.validateCommand),
740
+ detail: String(scripts.test || scripts.validate || options.validateCommand || "")
741
+ });
742
+ checks.push({
743
+ name: "has_build_or_smoke_command",
744
+ passed: Boolean(options.buildCommand || options.smokeCommand),
745
+ detail: String(options.buildCommand || options.smokeCommand || "")
746
+ });
747
+ } else if (profile === "service_api") {
748
+ checks.push(...checkPaths(options.cwd, options.requiredPaths || ["package.json"]));
749
+ checks.push({ name: "has_deploy_command", passed: Boolean(options.deployCommand), detail: options.deployCommand });
750
+ checks.push({
751
+ name: "has_validate_or_smoke_command",
752
+ passed: Boolean(options.validateCommand || options.smokeCommand || scripts.test),
753
+ detail: String(options.validateCommand || options.smokeCommand || scripts.test || "")
754
+ });
755
+ checks.push({
756
+ name: "package_has_start_or_serve_script",
757
+ passed: Boolean(scripts.start || scripts.serve),
758
+ detail: String(scripts.start || scripts.serve || "")
759
+ });
760
+ } else if (profile === "workflow_agent") {
761
+ checks.push(...checkPaths(options.cwd, options.requiredPaths || ["package.json"]));
762
+ checks.push({
763
+ name: "has_validate_or_test_command",
764
+ passed: Boolean(options.validateCommand || scripts.test),
765
+ detail: String(options.validateCommand || scripts.test || "")
766
+ });
767
+ checks.push({
768
+ name: "has_apply_or_deploy_command",
769
+ passed: Boolean(options.deployCommand || scripts.start),
770
+ detail: String(options.deployCommand || scripts.start || "")
771
+ });
772
+ }
773
+ return {
774
+ profile,
775
+ passed: checks.every((c) => c.passed),
776
+ checks
777
+ };
778
+ };
779
+ var createWebStaticAdapter = (opts) => ({
780
+ dryRun: async () => {
781
+ const required = ["index.html", "style.css"];
782
+ const missing = required.filter((f) => !fs.existsSync(path.join(opts.cwd, f)));
783
+ return { feasible: missing.length === 0, reasons: missing.map((m) => `missing:${m}`) };
784
+ },
785
+ apply: async () => {
786
+ try {
787
+ if (opts.buildCommand) run(opts.buildCommand, opts.cwd);
788
+ if (opts.deployCommand) run(opts.deployCommand, opts.cwd);
789
+ return { applied: true, evidence: "web_static_deploy_applied" };
790
+ } catch (err) {
791
+ return { applied: false, reason: `web_static_apply_failed:${String(err)}` };
792
+ }
793
+ },
794
+ validate: async () => {
795
+ try {
796
+ if (opts.validateCommand) run(opts.validateCommand, opts.cwd);
797
+ if (opts.smokeCommand) run(opts.smokeCommand, opts.cwd);
798
+ return { passed: true, metrics: { profile: "web_static" } };
799
+ } catch (err) {
800
+ return { passed: false, reason: `web_static_validate_failed:${String(err)}` };
801
+ }
802
+ }
803
+ });
804
+ var createWebBundledAdapter = (opts) => ({
805
+ dryRun: async () => ({ feasible: true, reasons: [] }),
806
+ apply: async () => {
807
+ try {
808
+ run(opts.buildCommand || "npm run build", opts.cwd);
809
+ if (opts.deployCommand) run(opts.deployCommand, opts.cwd);
810
+ return { applied: true, evidence: "web_bundled_deploy_applied" };
811
+ } catch (err) {
812
+ return { applied: false, reason: `web_bundled_apply_failed:${String(err)}` };
813
+ }
814
+ },
815
+ validate: async () => {
816
+ try {
817
+ if (opts.validateCommand) run(opts.validateCommand, opts.cwd);
818
+ if (opts.smokeCommand) run(opts.smokeCommand, opts.cwd);
819
+ return { passed: true, metrics: { profile: "web_bundled" } };
820
+ } catch (err) {
821
+ return { passed: false, reason: `web_bundled_validate_failed:${String(err)}` };
822
+ }
823
+ }
824
+ });
825
+ var createWorkflowAgentAdapter = (opts) => ({
826
+ dryRun: async () => ({ feasible: true, reasons: [] }),
827
+ apply: async () => {
828
+ try {
829
+ if (opts.deployCommand) run(opts.deployCommand, opts.cwd);
830
+ return { applied: true, evidence: "workflow_agent_apply" };
831
+ } catch (err) {
832
+ return { applied: false, reason: `workflow_agent_apply_failed:${String(err)}` };
833
+ }
834
+ },
835
+ validate: async () => {
836
+ try {
837
+ if (opts.validateCommand) run(opts.validateCommand, opts.cwd);
838
+ return { passed: true, metrics: { profile: "workflow_agent" } };
839
+ } catch (err) {
840
+ return { passed: false, reason: `workflow_agent_validate_failed:${String(err)}` };
841
+ }
842
+ }
843
+ });
844
+ var createServiceApiAdapter = (opts) => ({
845
+ dryRun: async () => ({ feasible: true, reasons: [] }),
846
+ apply: async () => {
847
+ try {
848
+ if (opts.deployCommand) run(opts.deployCommand, opts.cwd);
849
+ return { applied: true, evidence: "service_api_apply" };
850
+ } catch (err) {
851
+ return { applied: false, reason: `service_api_apply_failed:${String(err)}` };
852
+ }
853
+ },
854
+ validate: async () => {
855
+ try {
856
+ if (opts.validateCommand) run(opts.validateCommand, opts.cwd);
857
+ if (opts.smokeCommand) run(opts.smokeCommand, opts.cwd);
858
+ return { passed: true, metrics: { profile: "service_api" } };
859
+ } catch (err) {
860
+ return { passed: false, reason: `service_api_validate_failed:${String(err)}` };
861
+ }
862
+ }
863
+ });
864
+ var createCustomAdapter = (adapter) => adapter;
865
+
866
+ // src/agentLaunchRuntime.ts
867
+ var runAgentLaunchRuntime = async (options) => {
868
+ if (!options.adapter) {
869
+ throw new Error("agent_launch_runtime_requires_execution_adapter");
870
+ }
871
+ const auditTrail = ["launch_runtime_start"];
872
+ let checklist;
873
+ let readinessInput = { ...options.readiness };
874
+ if (options.bestShot) {
875
+ checklist = runAdapterBestShotChecklist(options.bestShot.profile, options.bestShot.options);
876
+ auditTrail.push(`best_shot_checklist:${options.bestShot.profile}:${checklist.passed ? "pass" : "fail"}`);
877
+ readinessInput = {
878
+ ...readinessInput,
879
+ qualityChecks: [
880
+ ...readinessInput.qualityChecks || [],
881
+ ...checklist.checks.map((c) => ({ name: `bestshot:${c.name}`, passed: c.passed, detail: c.detail }))
882
+ ]
883
+ };
884
+ }
885
+ const readiness = evaluateLaunchReadiness(readinessInput);
886
+ const minScore = options.minScore ?? 0.8;
887
+ const requestedMode = options.rolloutMode || "shadow";
888
+ const contextGate = evaluateContextPackGate({
889
+ mode: requestedMode,
890
+ complexMutation: true,
891
+ contextPack: options.contextPack,
892
+ minFacts: 1
893
+ });
894
+ auditTrail.push(`context_pack_gate:${contextGate.passed ? "pass" : contextGate.reasons.join("|")}`);
895
+ let verified = readiness.ready && readiness.score >= minScore && contextGate.passed;
896
+ let overrideApplied = false;
897
+ if (!verified && options.trustedOverride?.actor && options.trustedOverride?.reason) {
898
+ verified = true;
899
+ overrideApplied = true;
900
+ auditTrail.push(`trusted_override:${options.trustedOverride.actor}:${options.trustedOverride.reason}`);
901
+ }
902
+ const reasons = [
903
+ ...readiness.blockers.length ? readiness.blockers : ["launch_readiness_passed"],
904
+ ...checklist && !checklist.passed ? ["best_shot_checklist_failed"] : [],
905
+ ...!contextGate.passed ? contextGate.reasons : []
906
+ ];
907
+ const record = buildDecisionRecord({
908
+ decision: verified ? "adapt" : "hold",
909
+ confidence: readiness.score,
910
+ verified,
911
+ reasons,
912
+ objective: options.objective || "best_shot_launch",
913
+ nowMs: options.nowMs
914
+ });
915
+ const mode = verified ? requestedMode : "observe";
916
+ const execution = await runExecutionAdapter({
917
+ mode,
918
+ record,
919
+ adapter: options.adapter
920
+ });
921
+ auditTrail.push(`execution:${execution.reason}`);
922
+ return { readiness, execution, checklist, contextGate, overrideApplied, auditTrail };
923
+ };
924
+ var runAgentLaunchRuntimeCycle = runAgentLaunchRuntime;
925
+
926
+ // src/runtimeMigration.ts
927
+ var buildRuntimeMigrationPlan = (input) => {
928
+ const blockers = [];
929
+ const actions = [];
930
+ if (!input.listingId) blockers.push("missing_listing_id");
931
+ if (!input.cwd) blockers.push("missing_project_root");
932
+ if (input.hasLegacyExecutePlan) {
933
+ actions.push("replace_legacy_executePlan_with_execution_adapter");
934
+ }
935
+ if (!input.hasAdapter) {
936
+ blockers.push("missing_execution_adapter");
937
+ actions.push("implement_profile_adapter");
938
+ }
939
+ actions.push("wire_runAgentReviewRuntimeCycle_as_default");
940
+ actions.push("enable_verify_before_execute_apply_mode");
941
+ let rolloutMode = "shadow";
942
+ if (!blockers.length && input.hasAdapter) rolloutMode = "apply_limited";
943
+ return {
944
+ profile: input.profile,
945
+ ready: blockers.length === 0,
946
+ blockers,
947
+ actions,
948
+ suggestedConfig: {
949
+ executionMode: "apply",
950
+ rolloutMode,
951
+ allowImmediateOnly: true
952
+ }
953
+ };
954
+ };
955
+
956
+ // src/stateChangeNotifier.ts
957
+ var shouldAnnounceStateChange = (input) => {
958
+ const prev = input.previous;
959
+ const cur = input.current;
960
+ if (!prev) return { announce: true, reason: "initial_state" };
961
+ if (prev.status !== cur.status) return { announce: true, reason: "status_changed" };
962
+ if (Boolean(prev.ready) !== Boolean(cur.ready)) return { announce: true, reason: "readiness_changed" };
963
+ if ((prev.decision || "") !== (cur.decision || "") && cur.status !== "green") {
964
+ return { announce: true, reason: "decision_changed_non_green" };
965
+ }
966
+ if ((prev.reason || "") !== (cur.reason || "") && cur.status !== "green") {
967
+ return { announce: true, reason: "reason_changed_non_green" };
968
+ }
969
+ return { announce: false, reason: "no_meaningful_change" };
613
970
  };
614
971
 
615
972
  // src/index.ts
@@ -728,7 +1085,7 @@ var ReviewGate = class {
728
1085
  var DEFAULT_API_BASE = "https://api.vibeiao.com";
729
1086
  var DEFAULT_WEB_BASE = "https://vibeiao.com";
730
1087
  var DEFAULT_SDK_PACKAGE = "@vibeiao/sdk";
731
- var DEFAULT_SDK_VERSION = "0.1.46" ? "0.1.46" : "0.1.4";
1088
+ var DEFAULT_SDK_VERSION = "0.1.48" ? "0.1.48" : "0.1.4";
732
1089
  var DEFAULT_SDK_REGISTRY = "https://registry.npmjs.org";
733
1090
  var DEFAULT_SDK_POLICY_PATH = "/v1/sdk/policy";
734
1091
  var DEFAULT_SDK_CHECK_INTERVAL_MS = 1e3 * 60 * 30;
@@ -920,9 +1277,9 @@ var unwrap = (response) => {
920
1277
  return response.data;
921
1278
  };
922
1279
  var normalizeProviderName = (value) => value.trim().toLowerCase().replace(/[^a-z0-9_-]/g, "");
923
- var getByPath = (payload, path) => {
924
- if (!path) return void 0;
925
- const segments = path.split(".").map((part) => part.trim()).filter(Boolean);
1280
+ var getByPath = (payload, path2) => {
1281
+ if (!path2) return void 0;
1282
+ const segments = path2.split(".").map((part) => part.trim()).filter(Boolean);
926
1283
  let current = payload;
927
1284
  for (const segment of segments) {
928
1285
  if (!current || typeof current !== "object" || !(segment in current)) {
@@ -1223,9 +1580,9 @@ var VibeClient = class {
1223
1580
  };
1224
1581
  }
1225
1582
  }
1226
- async get(path) {
1583
+ async get(path2) {
1227
1584
  await this.ensureLatestVersion();
1228
- const response = await this.fetcher(`${this.baseUrl}${path}`);
1585
+ const response = await this.fetcher(`${this.baseUrl}${path2}`);
1229
1586
  let payload = null;
1230
1587
  try {
1231
1588
  payload = await readJson(response);
@@ -1241,9 +1598,9 @@ var VibeClient = class {
1241
1598
  }
1242
1599
  return payload;
1243
1600
  }
1244
- async post(path, body) {
1601
+ async post(path2, body) {
1245
1602
  await this.ensureLatestVersion();
1246
- const response = await this.fetcher(`${this.baseUrl}${path}`, {
1603
+ const response = await this.fetcher(`${this.baseUrl}${path2}`, {
1247
1604
  method: "POST",
1248
1605
  headers: { "Content-Type": "application/json" },
1249
1606
  body: JSON.stringify(body)
@@ -1263,9 +1620,9 @@ var VibeClient = class {
1263
1620
  }
1264
1621
  return payload;
1265
1622
  }
1266
- async del(path, body) {
1623
+ async del(path2, body) {
1267
1624
  await this.ensureLatestVersion();
1268
- const response = await this.fetcher(`${this.baseUrl}${path}`, {
1625
+ const response = await this.fetcher(`${this.baseUrl}${path2}`, {
1269
1626
  method: "DELETE",
1270
1627
  headers: { "Content-Type": "application/json" },
1271
1628
  body: body === void 0 ? void 0 : JSON.stringify(body)
@@ -1860,6 +2217,7 @@ export {
1860
2217
  VibeClient,
1861
2218
  VibeRegistry,
1862
2219
  aggregateFeedbackSignals,
2220
+ assertLaunchReady,
1863
2221
  assertOutcomeBoundCompleted,
1864
2222
  assertSurvivalProvidersConfigured,
1865
2223
  buildAdaptivePlan,
@@ -1877,6 +2235,7 @@ export {
1877
2235
  buildReviewPrompt,
1878
2236
  buildReviewRequired,
1879
2237
  buildReviewResponseMessage,
2238
+ buildRuntimeMigrationPlan,
1880
2239
  buildSdkUpdateCommand,
1881
2240
  buildShareCopy,
1882
2241
  buildShareLink,
@@ -1894,19 +2253,26 @@ export {
1894
2253
  createAutoSelfReliance,
1895
2254
  createCampaign,
1896
2255
  createContextPack,
2256
+ createCustomAdapter,
1897
2257
  createDurabilityProxyClient,
1898
2258
  createInMemoryReflectionStore,
1899
2259
  createSelfRelianceMonitor,
1900
2260
  createSelfReliancePolicy,
2261
+ createServiceApiAdapter,
1901
2262
  createStrictMemoryRuntimePreset,
1902
2263
  createSurvivalMiddleware,
1903
2264
  createTreasuryPolicy,
2265
+ createWebBundledAdapter,
2266
+ createWebStaticAdapter,
2267
+ createWorkflowAgentAdapter,
1904
2268
  decideProcurementForTask,
1905
2269
  deriveMarketNeeds,
1906
2270
  discoverMarketNeeds,
1907
2271
  estimateContextPackTokens,
1908
2272
  evaluateAdaptiveReflectionPolicy,
2273
+ evaluateContextPackGate,
1909
2274
  evaluateEscapeHatch,
2275
+ evaluateLaunchReadiness,
1910
2276
  evaluateObjectiveChange,
1911
2277
  evaluateOutcomeBoundRun,
1912
2278
  evaluatePromptShield,
@@ -1925,7 +2291,10 @@ export {
1925
2291
  isComplexTask,
1926
2292
  normalizeListingText,
1927
2293
  rankListingsForTask,
2294
+ runAdapterBestShotChecklist,
1928
2295
  runAdaptiveReflectionCycle,
2296
+ runAgentLaunchRuntime,
2297
+ runAgentLaunchRuntimeCycle,
1929
2298
  runAgentReviewRuntimeCycle,
1930
2299
  runExecutionAdapter,
1931
2300
  runMarketDiscovery,
@@ -1933,6 +2302,7 @@ export {
1933
2302
  sanitizeListingNaming,
1934
2303
  scoreListingForTask,
1935
2304
  scoreReviewPriority,
2305
+ shouldAnnounceStateChange,
1936
2306
  treasuryStateFromSnapshot,
1937
2307
  upgradeToStrictMemoryRuntimePreset,
1938
2308
  validateContextPack,
@@ -1009,6 +1009,24 @@ declare const runAdaptiveReflectionCycle: (opts: RunAdaptiveReflectionOptions) =
1009
1009
  policyState: AdaptivePolicyState;
1010
1010
  }>;
1011
1011
 
1012
+ type ContextPackState = {
1013
+ id?: string;
1014
+ prepared?: boolean;
1015
+ semanticRecallConfirmed?: boolean;
1016
+ factsCount?: number;
1017
+ };
1018
+ type ContextPackGateOptions = {
1019
+ mode?: ExecutionRolloutMode;
1020
+ complexMutation?: boolean;
1021
+ contextPack?: ContextPackState;
1022
+ minFacts?: number;
1023
+ };
1024
+ type ContextPackGateResult = {
1025
+ passed: boolean;
1026
+ reasons: string[];
1027
+ };
1028
+ declare const evaluateContextPackGate: (options?: ContextPackGateOptions) => ContextPackGateResult;
1029
+
1012
1030
  type AgentReviewRuntimeOptions = {
1013
1031
  client: ReflectionClient;
1014
1032
  listingId: string;
@@ -1021,12 +1039,17 @@ type AgentReviewRuntimeOptions = {
1021
1039
  allowImmediateOnly?: boolean;
1022
1040
  reflectionOptions?: Omit<ReflectionCycleOptions, 'client' | 'listingId' | 'wallet' | 'signMessage' | 'store'>;
1023
1041
  now?: () => number;
1042
+ contextPack?: ContextPackState;
1043
+ complexMutation?: boolean;
1024
1044
  };
1025
1045
  /**
1026
1046
  * Required default review runtime for VIBEIAO agents.
1027
1047
  * Enforces verify->execute using the execution adapter contract.
1028
1048
  */
1029
1049
  declare const runAgentReviewRuntimeCycle: (opts: AgentReviewRuntimeOptions) => Promise<{
1050
+ contextGate: ContextPackGateResult;
1051
+ requestedRolloutMode: ExecutionRolloutMode;
1052
+ effectiveRolloutMode: ExecutionRolloutMode;
1030
1053
  generatedAt: string;
1031
1054
  aggregate: AdaptiveFeedbackAggregate;
1032
1055
  decision: AdaptivePolicyDecision;
@@ -1037,6 +1060,130 @@ declare const runAgentReviewRuntimeCycle: (opts: AgentReviewRuntimeOptions) => P
1037
1060
  policyState: AdaptivePolicyState;
1038
1061
  }>;
1039
1062
 
1063
+ type LaunchProfile = 'web_static' | 'web_bundled' | 'service_api' | 'workflow_agent' | 'custom';
1064
+ type LaunchReadinessInput = {
1065
+ profile: LaunchProfile;
1066
+ targetUser: string;
1067
+ problemStatement: string;
1068
+ researchEvidence: Array<{
1069
+ source: string;
1070
+ summary: string;
1071
+ }>;
1072
+ designRationale: string;
1073
+ qualityChecks: Array<{
1074
+ name: string;
1075
+ passed: boolean;
1076
+ detail?: string;
1077
+ }>;
1078
+ rollbackPlan: string;
1079
+ deploy?: {
1080
+ url?: string;
1081
+ smokePassed?: boolean;
1082
+ };
1083
+ listing?: {
1084
+ listingId?: string;
1085
+ updated?: boolean;
1086
+ };
1087
+ };
1088
+ type LaunchReadinessResult = {
1089
+ ready: boolean;
1090
+ score: number;
1091
+ blockers: string[];
1092
+ notes: string[];
1093
+ };
1094
+ declare const evaluateLaunchReadiness: (input: LaunchReadinessInput) => LaunchReadinessResult;
1095
+ declare const assertLaunchReady: (input: LaunchReadinessInput) => LaunchReadinessResult;
1096
+
1097
+ type AdapterPackKind = 'web_static' | 'web_bundled' | 'service_api' | 'workflow_agent' | 'custom';
1098
+ type AdapterPackOptions = {
1099
+ cwd: string;
1100
+ validateCommand?: string;
1101
+ buildCommand?: string;
1102
+ deployCommand?: string;
1103
+ smokeCommand?: string;
1104
+ requiredPaths?: string[];
1105
+ };
1106
+ type AdapterBestShotChecklistResult = {
1107
+ profile: AdapterPackKind;
1108
+ passed: boolean;
1109
+ checks: Array<{
1110
+ name: string;
1111
+ passed: boolean;
1112
+ detail?: string;
1113
+ }>;
1114
+ };
1115
+ declare const runAdapterBestShotChecklist: (profile: AdapterPackKind, options: AdapterPackOptions) => AdapterBestShotChecklistResult;
1116
+ declare const createWebStaticAdapter: (opts: AdapterPackOptions) => ExecutionAdapter;
1117
+ declare const createWebBundledAdapter: (opts: AdapterPackOptions) => ExecutionAdapter;
1118
+ declare const createWorkflowAgentAdapter: (opts: AdapterPackOptions) => ExecutionAdapter;
1119
+ declare const createServiceApiAdapter: (opts: AdapterPackOptions) => ExecutionAdapter;
1120
+ declare const createCustomAdapter: (adapter: ExecutionAdapter) => ExecutionAdapter;
1121
+
1122
+ type AgentLaunchRuntimeOptions = {
1123
+ rolloutMode?: ExecutionRolloutMode;
1124
+ adapter: ExecutionAdapter;
1125
+ readiness: LaunchReadinessInput;
1126
+ minScore?: number;
1127
+ objective?: string;
1128
+ nowMs?: number;
1129
+ bestShot?: {
1130
+ profile: AdapterPackKind;
1131
+ options: AdapterPackOptions;
1132
+ };
1133
+ trustedOverride?: {
1134
+ actor: string;
1135
+ reason: string;
1136
+ };
1137
+ contextPack?: ContextPackState;
1138
+ };
1139
+ type AgentLaunchRuntimeResult = {
1140
+ readiness: LaunchReadinessResult;
1141
+ execution: Awaited<ReturnType<typeof runExecutionAdapter>>;
1142
+ checklist?: AdapterBestShotChecklistResult;
1143
+ contextGate: ContextPackGateResult;
1144
+ overrideApplied: boolean;
1145
+ auditTrail: string[];
1146
+ };
1147
+ /**
1148
+ * Required launch runtime: verify best-shot launch readiness before publish execution.
1149
+ */
1150
+ declare const runAgentLaunchRuntime: (options: AgentLaunchRuntimeOptions) => Promise<AgentLaunchRuntimeResult>;
1151
+ declare const runAgentLaunchRuntimeCycle: (options: AgentLaunchRuntimeOptions) => Promise<AgentLaunchRuntimeResult>;
1152
+
1153
+ type RuntimeMigrationInput = {
1154
+ profile: AdapterPackKind;
1155
+ listingId: string;
1156
+ cwd: string;
1157
+ hasLegacyExecutePlan: boolean;
1158
+ hasAdapter: boolean;
1159
+ };
1160
+ type RuntimeMigrationPlan = {
1161
+ profile: AdapterPackKind;
1162
+ ready: boolean;
1163
+ blockers: string[];
1164
+ actions: string[];
1165
+ suggestedConfig: {
1166
+ executionMode: 'apply';
1167
+ rolloutMode: 'observe' | 'shadow' | 'apply_limited' | 'apply_full';
1168
+ allowImmediateOnly: boolean;
1169
+ };
1170
+ };
1171
+ declare const buildRuntimeMigrationPlan: (input: RuntimeMigrationInput) => RuntimeMigrationPlan;
1172
+
1173
+ type RuntimeStateSnapshot = {
1174
+ status: 'green' | 'degraded' | 'failing';
1175
+ ready?: boolean;
1176
+ decision?: string;
1177
+ reason?: string;
1178
+ };
1179
+ declare const shouldAnnounceStateChange: (input: {
1180
+ previous?: RuntimeStateSnapshot | null;
1181
+ current: RuntimeStateSnapshot;
1182
+ }) => {
1183
+ announce: boolean;
1184
+ reason: string;
1185
+ };
1186
+
1040
1187
  interface VibeClientOptions {
1041
1188
  baseUrl?: string;
1042
1189
  fetcher?: typeof fetch;
@@ -1496,4 +1643,4 @@ declare const getResourceSnapshot: (options: {
1496
1643
  apiBase?: string;
1497
1644
  }) => Promise<ResourceSnapshot>;
1498
1645
 
1499
- export { type ProcurementCandidate as $, type AdaptiveAdaptationPlan as A, type BuybackEvent as B, CONTEXT_PACK_SECTION_ORDER as C, type DurabilityCheckpointWriteOptions as D, type ExecutionAdapter as E, type ExecutionDryRunResult as F, type ExecutionRollbackResult as G, type ExecutionRolloutMode as H, type ExecutionRunResult as I, type ExecutionValidateResult as J, LISTING_NAME_RECOMMENDED_MAX as K, LISTING_NAME_MAX_LENGTH as L, LISTING_TAGLINE_MAX_LENGTH as M, LISTING_TAGLINE_RECOMMENDED_MAX as N, type LeaderboardEntry as O, type LeaderboardQuery as P, type ListingNamingValidationOptions as Q, type ListingNamingValidationResult as R, type ListingQuery as S, type ListingReviewCreatePayload as T, type TopupDecision, type TopupRequest, type TreasuryLedgerEvent, type TreasuryPolicy, type TreasuryPolicyV1, type TreasuryState, type ListingReviewResponsePayload as U, type ListingVersionPayload as V, type MarketingCampaign as W, type MarketingLinkOptions as X, type MemoryPingChallengeResponse as Y, type MemoryPingPayload as Z, type OpenRouterCredits as _, type AdaptiveExecution as a, type ProcurementDecision as a0, type ProcurementTaskProfile as a1, type ProcurementWeights as a2, type ResourceProviderManifestEntry as a3, type ResourceSnapshot as a4, ReviewGate as a5, type ReviewGateRecord as a6, type ReviewRequiredPayload as a7, type RunAdaptiveReflectionOptions as a8, SdkAutoUpdatedRestartRequiredError as a9, buildTradeLinks as aA, checkForSdkUpdate as aB, checkForSdkUpdatePolicy as aC, compareVersions as aD, createApiCreditProvider as aE, createApiCreditProviders as aF, createApiCreditProvidersFromManifest as aG, createCampaign as aH, createContextPack as aI, createDurabilityProxyClient as aJ, decideProcurementForTask as aK, estimateContextPackTokens as aL, evaluateAdaptiveReflectionPolicy as aM, getResourceSnapshot as aN, normalizeListingText as aO, rankListingsForTask as aP, runAdaptiveReflectionCycle as aQ, runAgentReviewRuntimeCycle as aR, runExecutionAdapter as aS, sanitizeListingNaming as aT, scoreListingForTask as aU, validateContextPack as aV, validateListingNaming as aW, verifyAdaptiveExecutionReadiness as aX, type SdkUpdateCheckOptions as aa, type SdkUpdatePolicyCheckOptions as ab, SdkUpdateRequiredError as ac, type SdkUpdateStatus as ad, VIBEIAO_IDL as ae, VibeClient as af, type VibeClientOptions as ag, VibeRegistry as ah, aggregateFeedbackSignals as ai, assertSurvivalProvidersConfigured as aj, buildAdaptivePlan as ak, buildBadgeMarkdown as al, buildClaimMessage as am, buildDecisionRecord as an, buildJupiterSwapUrl as ao, buildListingVersionMessage as ap, buildMemoryPingMessage as aq, buildOwnerTransferMessage as ar, buildProcurementPrompt as as, buildRaydiumSwapUrl as at, buildReviewPrompt as au, buildReviewRequired as av, buildReviewResponseMessage as aw, buildSdkUpdateCommand as ax, buildShareCopy as ay, buildShareLink as az, type AdaptiveFeedbackAggregate as b, buildTreasuryLedgerEvent, type AdaptivePolicyConfig as c, createTreasuryPolicy, type AdaptivePolicyDecision as d, type AdaptivePolicyState as e, evaluateTopupRequest, type AdaptiveReflectionStore as f, type AdaptiveTheme as g, type AdaptiveVerification as h, type AgentResourceProvidersManifest as i, type AgentReviewRuntimeOptions as j, type AnalyticsPoint as k, type ApiCreditProvider as l, type ApiCreditProviderFactoryOptions as m, type ApiCreditProviderPreset as n, type ApiCreditProviderPresetInput as o, type ApiResponse as p, type ContextPack as q, type ContextPackBudget as r, type ContextPackInput as s, type ContextPackOptions as t, treasuryStateFromSnapshot, type ContextPackSectionKey as u, type ContextPackSections as v, validateTreasuryPolicy, type DurabilityProxyClientOptions as w, type DurabilityRestoreDrillWriteOptions as x, type ExecutionApplyResult as y, type ExecutionDecisionRecord as z };
1646
+ export { type ListingNamingValidationOptions as $, type AdapterBestShotChecklistResult as A, type BuybackEvent as B, CONTEXT_PACK_SECTION_ORDER as C, type ContextPackOptions as D, type ContextPackSectionKey as E, type ContextPackSections as F, type ContextPackState as G, type DurabilityCheckpointWriteOptions as H, type DurabilityProxyClientOptions as I, type DurabilityRestoreDrillWriteOptions as J, type ExecutionAdapter as K, type ExecutionApplyResult as L, type ExecutionDecisionRecord as M, type ExecutionDryRunResult as N, type ExecutionRollbackResult as O, type ExecutionRolloutMode as P, type ExecutionRunResult as Q, type ExecutionValidateResult as R, LISTING_NAME_MAX_LENGTH as S, LISTING_NAME_RECOMMENDED_MAX as T, type TopupDecision, type TopupRequest, type TreasuryLedgerEvent, type TreasuryPolicy, type TreasuryPolicyV1, type TreasuryState, LISTING_TAGLINE_MAX_LENGTH as U, LISTING_TAGLINE_RECOMMENDED_MAX as V, type LaunchProfile as W, type LaunchReadinessInput as X, type LaunchReadinessResult as Y, type LeaderboardEntry as Z, type LeaderboardQuery as _, type AdapterPackKind as a, createServiceApiAdapter as a$, type ListingNamingValidationResult as a0, type ListingQuery as a1, type ListingReviewCreatePayload as a2, type ListingReviewResponsePayload as a3, type ListingVersionPayload as a4, type MarketingCampaign as a5, type MarketingLinkOptions as a6, type MemoryPingChallengeResponse as a7, type MemoryPingPayload as a8, type OpenRouterCredits as a9, buildBadgeMarkdown as aA, buildClaimMessage as aB, buildDecisionRecord as aC, buildJupiterSwapUrl as aD, buildListingVersionMessage as aE, buildMemoryPingMessage as aF, buildOwnerTransferMessage as aG, buildProcurementPrompt as aH, buildRaydiumSwapUrl as aI, buildReviewPrompt as aJ, buildReviewRequired as aK, buildReviewResponseMessage as aL, buildRuntimeMigrationPlan as aM, buildSdkUpdateCommand as aN, buildShareCopy as aO, buildShareLink as aP, buildTradeLinks as aQ, checkForSdkUpdate as aR, checkForSdkUpdatePolicy as aS, compareVersions as aT, createApiCreditProvider as aU, createApiCreditProviders as aV, createApiCreditProvidersFromManifest as aW, createCampaign as aX, createContextPack as aY, createCustomAdapter as aZ, createDurabilityProxyClient as a_, type ProcurementCandidate as aa, type ProcurementDecision as ab, type ProcurementTaskProfile as ac, type ProcurementWeights as ad, type ResourceProviderManifestEntry as ae, type ResourceSnapshot as af, ReviewGate as ag, type ReviewGateRecord as ah, type ReviewRequiredPayload as ai, type RunAdaptiveReflectionOptions as aj, type RuntimeMigrationInput as ak, type RuntimeMigrationPlan as al, type RuntimeStateSnapshot as am, SdkAutoUpdatedRestartRequiredError as an, type SdkUpdateCheckOptions as ao, type SdkUpdatePolicyCheckOptions as ap, SdkUpdateRequiredError as aq, type SdkUpdateStatus as ar, VIBEIAO_IDL as as, VibeClient as at, type VibeClientOptions as au, VibeRegistry as av, aggregateFeedbackSignals as aw, assertLaunchReady as ax, assertSurvivalProvidersConfigured as ay, buildAdaptivePlan as az, type AdapterPackOptions as b, createWebBundledAdapter as b0, createWebStaticAdapter as b1, createWorkflowAgentAdapter as b2, decideProcurementForTask as b3, estimateContextPackTokens as b4, evaluateAdaptiveReflectionPolicy as b5, evaluateContextPackGate as b6, evaluateLaunchReadiness as b7, getResourceSnapshot as b8, normalizeListingText as b9, rankListingsForTask as ba, runAdapterBestShotChecklist as bb, runAdaptiveReflectionCycle as bc, runAgentLaunchRuntime as bd, runAgentLaunchRuntimeCycle as be, runAgentReviewRuntimeCycle as bf, runExecutionAdapter as bg, sanitizeListingNaming as bh, scoreListingForTask as bi, shouldAnnounceStateChange as bj, validateContextPack as bk, validateListingNaming as bl, verifyAdaptiveExecutionReadiness as bm, buildTreasuryLedgerEvent, type AdaptiveAdaptationPlan as c, createTreasuryPolicy, type AdaptiveExecution as d, type AdaptiveFeedbackAggregate as e, evaluateTopupRequest, type AdaptivePolicyConfig as f, type AdaptivePolicyDecision as g, type AdaptivePolicyState as h, type AdaptiveReflectionStore as i, type AdaptiveTheme as j, type AdaptiveVerification as k, type AgentLaunchRuntimeOptions as l, type AgentLaunchRuntimeResult as m, type AgentResourceProvidersManifest as n, type AgentReviewRuntimeOptions as o, type AnalyticsPoint as p, type ApiCreditProvider as q, type ApiCreditProviderFactoryOptions as r, type ApiCreditProviderPreset as s, type ApiCreditProviderPresetInput as t, treasuryStateFromSnapshot, type ApiResponse as u, type ContextPack as v, validateTreasuryPolicy, type ContextPackBudget as w, type ContextPackGateOptions as x, type ContextPackGateResult as y, type ContextPackInput as z };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@vibeiao/sdk",
3
3
  "private": false,
4
4
  "type": "module",
5
- "version": "0.1.47",
5
+ "version": "0.1.49",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {
@@ -29,7 +29,8 @@
29
29
  },
30
30
  "scripts": {
31
31
  "build": "tsup src/index.ts src/memory.ts src/compoundingMemory.ts src/selfReliance.ts src/solana.ts src/reflection.ts src/survivalPlaybook.ts src/survivalIntegration.ts src/survivalEscapeHatch.ts src/agentLoop.ts src/marketDiscovery.ts src/treasuryGuardian.ts src/humanAppLoop.ts src/outcomeBoundFlow.ts src/strictMemoryRuntime.ts --format esm --dts --tsconfig tsconfig.json --out-dir dist --define.__VIBEIAO_SDK_VERSION__=\\\"$npm_package_version\\\"",
32
- "test:e2e-memory": "pnpm build && node --test test/memory.e2e.test.mjs"
32
+ "test:e2e-memory": "pnpm build && node --test test/memory.e2e.test.mjs",
33
+ "test": "pnpm build && node --test test/*.test.mjs"
33
34
  },
34
35
  "dependencies": {
35
36
  "@coral-xyz/anchor": "^0.30.1",