@vibeiao/sdk 0.1.57 → 0.1.59

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/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 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 ExecutionPostDeployVerifyResult, P as ExecutionRollbackResult, Q as ExecutionRolloutMode, R as ExecutionRunResult, S as ExecutionValidateResult, T as LISTING_NAME_MAX_LENGTH, U as LISTING_NAME_RECOMMENDED_MAX, V as LISTING_TAGLINE_MAX_LENGTH, W as LISTING_TAGLINE_RECOMMENDED_MAX, X as LaunchProfile, Y as LaunchReadinessInput, Z as LaunchReadinessResult, _ as LeaderboardEntry, $ as LeaderboardQuery, a0 as ListingNamingValidationOptions, a1 as ListingNamingValidationResult, a2 as ListingQuery, a3 as ListingReviewCreatePayload, a4 as ListingReviewResponsePayload, a5 as ListingVersionPayload, a6 as MarketingCampaign, a7 as MarketingLinkOptions, a8 as MemoryPingChallengeResponse, a9 as MemoryPingPayload, aa as OpenRouterCredits, ab as ProcurementCandidate, ac as ProcurementDecision, ad as ProcurementTaskProfile, ae as ProcurementWeights, af as PublishCandidate, ag as PublishDeployResult, ah as PublishListingResult, ai as PublishListingType, aj as PublishPrepareResult, ak as PublishProductKind, al as PublishRuntimeAdapter, am as PublishRuntimeMode, an as PublishRuntimeResult, ao as PublishValidateResult, ap as PublishVerifyResult, aq as ResourceProviderManifestEntry, ar as ResourceSnapshot, as as ReviewGate, at as ReviewGateRecord, au as ReviewRequiredPayload, av as RunAdaptiveReflectionOptions, aw as RuntimeMigrationInput, ax as RuntimeMigrationPlan, ay as RuntimeStateSnapshot, az 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 assertLaunchReady, aK as assertSurvivalProvidersConfigured, aL as buildAdaptivePlan, aM as buildBadgeMarkdown, aN as buildClaimMessage, aO as buildDecisionRecord, aP as buildJupiterSwapUrl, aQ as buildListingVersionMessage, aR as buildMemoryPingMessage, aS as buildOwnerTransferMessage, aT as buildProcurementPrompt, aU as buildRaydiumSwapUrl, aV as buildReviewPrompt, aW as buildReviewRequired, aX as buildReviewResponseMessage, aY as buildRuntimeMigrationPlan, aZ as buildSdkUpdateCommand, a_ as buildShareCopy, a$ as buildShareLink, b0 as buildTradeLinks, buildTreasuryLedgerEvent, b1 as checkForSdkUpdate, b2 as checkForSdkUpdatePolicy, b3 as compareVersions, b4 as createApiCreditProvider, b5 as createApiCreditProviders, b6 as createApiCreditProvidersFromManifest, b7 as createCampaign, b8 as createContextPack, b9 as createCustomAdapter, ba as createDurabilityProxyClient, bb as createServiceApiAdapter, createTreasuryPolicy, bc as createWebBundledAdapter, bd as createWebStaticAdapter, be as createWorkflowAgentAdapter, bf as decideProcurementForTask, bg as estimateContextPackTokens, bh as evaluateAdaptiveReflectionPolicy, bi as evaluateContextPackGate, bj as evaluateLaunchReadiness, evaluateTopupRequest, bk as getResourceSnapshot, bl as normalizeListingText, bm as rankListingsForTask, bn as runAdapterBestShotChecklist, bo as runAdaptiveReflectionCycle, bp as runAgentLaunchRuntime, bq as runAgentLaunchRuntimeCycle, br as runAgentPublishRuntimeCycle, bs as runAgentReviewRuntimeCycle, bt as runExecutionAdapter, bu as sanitizeListingNaming, bv as scoreListingForTask, bw as shouldAnnounceStateChange, treasuryStateFromSnapshot, bx as validateContextPack, by as validateListingNaming, validateTreasuryPolicy, bz 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 AgentCronCycleResult, m as AgentCronCycleState, n as AgentCronHealth, o as AgentCronReflectResult, p as AgentCronResearchResult, q as AgentCronRuntimeAdapter, r as AgentLaunchRuntimeOptions, s as AgentLaunchRuntimeResult, t as AgentResourceProvidersManifest, u as AgentReviewRuntimeOptions, v as AnalyticsPoint, w as ApiCreditProvider, x as ApiCreditProviderFactoryOptions, y as ApiCreditProviderPreset, z as ApiCreditProviderPresetInput, B as ApiResponse, C as BuybackEvent, D as CONTEXT_PACK_SECTION_ORDER, E as ContextPack, F as ContextPackBudget, G as ContextPackGateOptions, H as ContextPackGateResult, I as ContextPackInput, J as ContextPackOptions, K as ContextPackSectionKey, L as ContextPackSections, M as ContextPackState, N as DurabilityCheckpointWriteOptions, O as DurabilityProxyClientOptions, P as DurabilityRestoreDrillWriteOptions, Q as ExecutionAdapter, R as ExecutionApplyResult, S as ExecutionDecisionRecord, T as ExecutionDryRunResult, U as ExecutionPostDeployVerifyResult, V as ExecutionRollbackResult, W as ExecutionRolloutMode, X as ExecutionRunResult, Y as ExecutionValidateResult, Z as LISTING_NAME_MAX_LENGTH, _ as LISTING_NAME_RECOMMENDED_MAX, $ as LISTING_TAGLINE_MAX_LENGTH, a0 as LISTING_TAGLINE_RECOMMENDED_MAX, a1 as LaunchProfile, a2 as LaunchReadinessInput, a3 as LaunchReadinessResult, a4 as LeaderboardEntry, a5 as LeaderboardQuery, a6 as ListingNamingValidationOptions, a7 as ListingNamingValidationResult, a8 as ListingQuery, a9 as ListingReviewCreatePayload, aa as ListingReviewResponsePayload, ab as ListingVersionPayload, ac as MarketingCampaign, ad as MarketingLinkOptions, ae as MemoryPingChallengeResponse, af as MemoryPingPayload, ag as OpenRouterCredits, ah as ProcurementCandidate, ai as ProcurementDecision, aj as ProcurementTaskProfile, ak as ProcurementWeights, al as PublishCandidate, am as PublishDeployResult, an as PublishListingResult, ao as PublishListingType, ap as PublishMode, aq as PublishPrepareResult, ar as PublishProductKind, as as PublishRuntimeAdapter, at as PublishRuntimeMode, au as PublishRuntimeResult, av as PublishValidateResult, aw as PublishVerifyResult, ax as ResourceProviderManifestEntry, ay as ResourceSnapshot, az as ReviewGate, aA as ReviewGateRecord, aB as ReviewRequiredPayload, aC as RunAdaptiveReflectionOptions, aD as RuntimeMigrationInput, aE as RuntimeMigrationPlan, aF as RuntimeStateSnapshot, aG as SdkAutoUpdatedRestartRequiredError, aH as SdkUpdateCheckOptions, aI as SdkUpdatePolicyCheckOptions, aJ as SdkUpdateRequiredError, aK as SdkUpdateStatus, TopupDecision, TopupRequest, TreasuryLedgerEvent, TreasuryPolicy, TreasuryPolicyV1, TreasuryState, aL as VIBEIAO_IDL, aM as VibeClient, aN as VibeClientOptions, aO as VibeRegistry, aP as aggregateFeedbackSignals, aQ as assertLaunchReady, aR as assertSurvivalProvidersConfigured, aS as buildAdaptivePlan, aT as buildBadgeMarkdown, aU as buildClaimMessage, aV as buildDecisionRecord, aW as buildJupiterSwapUrl, aX as buildListingVersionMessage, aY as buildMemoryPingMessage, aZ as buildOwnerTransferMessage, a_ as buildProcurementPrompt, a$ as buildRaydiumSwapUrl, b0 as buildReviewPrompt, b1 as buildReviewRequired, b2 as buildReviewResponseMessage, b3 as buildRuntimeMigrationPlan, b4 as buildSdkUpdateCommand, b5 as buildShareCopy, b6 as buildShareLink, b7 as buildTradeLinks, buildTreasuryLedgerEvent, b8 as checkForSdkUpdate, b9 as checkForSdkUpdatePolicy, ba as compareVersions, bb as createApiCreditProvider, bc as createApiCreditProviders, bd as createApiCreditProvidersFromManifest, be as createCampaign, bf as createContextPack, bg as createCustomAdapter, bh as createDurabilityProxyClient, bi as createServiceApiAdapter, createTreasuryPolicy, bj as createWebBundledAdapter, bk as createWebStaticAdapter, bl as createWorkflowAgentAdapter, bm as decideProcurementForTask, bn as estimateContextPackTokens, bo as evaluateAdaptiveReflectionPolicy, bp as evaluateContextPackGate, bq as evaluateLaunchReadiness, evaluateTopupRequest, br as getResourceSnapshot, bs as normalizeListingText, bt as rankListingsForTask, bu as runAdapterBestShotChecklist, bv as runAdaptiveReflectionCycle, bw as runAgentCronRuntimeCycle, bx as runAgentLaunchRuntime, by as runAgentLaunchRuntimeCycle, bz as runAgentPublishRuntimeCycle, bA as runAgentReviewRuntimeCycle, bB as runExecutionAdapter, bC as sanitizeListingNaming, bD as scoreListingForTask, bE as shouldAnnounceStateChange, treasuryStateFromSnapshot, bF as validateContextPack, bG as validateListingNaming, validateTreasuryPolicy, bH 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 { I as IntentSignals, L as LaneMode, a as LaneSwitchDecision, O as ObjectiveChangeProposal, b as ObjectiveChangeSourceTrust, c as ObjectiveGuardDecision, d as ObjectiveGuardPolicy, P as PromptShieldDecision, e as PromptShieldFlag, f as PromptShieldInput, g as PromptShieldPolicy, h as PromptShieldRisk, i as PromptShieldTrustLevel, j as applyIntentArbitration, k as evaluateLaneSwitch, l as evaluateObjectiveChange, m as evaluatePromptShield, s as scoreBuildLane, n as scorePolishLane } from './agentLoop-DAkl2g28.js';
package/dist/index.js CHANGED
@@ -952,7 +952,7 @@ var runAgentLaunchRuntimeCycle = runAgentLaunchRuntime;
952
952
 
953
953
  // src/agentPublishRuntime.ts
954
954
  var normalized = (v) => String(v || "").trim().toLowerCase();
955
- var enforcePublishKindGuard = (candidate, listing) => {
955
+ var enforcePublishKindGuard = (candidate, listing, policy) => {
956
956
  const kind = candidate.productKind;
957
957
  if (!kind) return "publish_gate_blocked:missing_product_kind";
958
958
  const listingType = normalized(listing.listingType);
@@ -970,10 +970,34 @@ var enforcePublishKindGuard = (candidate, listing) => {
970
970
  if (kind === "human_saas" && !category.includes("saas")) {
971
971
  return "publish_gate_blocked:human_saas_requires_saas_category";
972
972
  }
973
+ if (!policy.lineageEnabled) return null;
974
+ if (!candidate.lineageKey) return "publish_gate_blocked:missing_lineage_key";
975
+ const mode = listing.publishMode || "create_new";
976
+ if (candidate.lineageExistingListingId) {
977
+ if (mode === "update_existing") {
978
+ if (listing.listingId !== candidate.lineageExistingListingId) {
979
+ return "publish_gate_blocked:update_target_mismatch";
980
+ }
981
+ } else {
982
+ if (!candidate.allowNewLineageBranch) {
983
+ return "publish_gate_blocked:existing_lineage_requires_update";
984
+ }
985
+ if (typeof candidate.lineageNoveltyScore !== "number") {
986
+ return "publish_gate_blocked:missing_novelty_for_lineage_branch";
987
+ }
988
+ if (candidate.lineageNoveltyScore < policy.minNoveltyForNewLineage) {
989
+ return "publish_gate_blocked:lineage_novelty_below_threshold";
990
+ }
991
+ }
992
+ } else if (mode === "update_existing") {
993
+ return "publish_gate_blocked:no_existing_lineage_for_update";
994
+ }
973
995
  return null;
974
996
  };
975
997
  var runAgentPublishRuntimeCycle = async (input) => {
976
998
  const mode = input.mode ?? "enforce";
999
+ const lineageEnabled = input.lineagePolicy?.enabled ?? true;
1000
+ const minNoveltyForNewLineage = input.lineagePolicy?.minNoveltyForNewLineage ?? 0.35;
977
1001
  const adapter = input.adapter;
978
1002
  if (!adapter) {
979
1003
  return {
@@ -1041,7 +1065,10 @@ var runAgentPublishRuntimeCycle = async (input) => {
1041
1065
  listing
1042
1066
  };
1043
1067
  }
1044
- const gateError = enforcePublishKindGuard(candidate, listing);
1068
+ const gateError = enforcePublishKindGuard(candidate, listing, {
1069
+ lineageEnabled,
1070
+ minNoveltyForNewLineage
1071
+ });
1045
1072
  if (gateError) {
1046
1073
  return {
1047
1074
  mode,
@@ -1106,6 +1133,56 @@ var runAgentPublishRuntimeCycle = async (input) => {
1106
1133
  };
1107
1134
  };
1108
1135
 
1136
+ // src/agentCronRuntime.ts
1137
+ var runAgentCronRuntimeCycle = async (input) => {
1138
+ const previous = input.state || {};
1139
+ const health = await input.adapter.health();
1140
+ const laneDecision = evaluateLaneSwitch({
1141
+ previousLane: previous.lane || "polish",
1142
+ previousGreenStreak: previous.greenStreak ?? Math.max(0, (health.greenStreak ?? 1) - 1),
1143
+ releaseReady: health.releaseReady,
1144
+ criticalPolishSignal: health.criticalPolishSignal,
1145
+ builderObjectiveAvailable: health.builderObjectiveAvailable,
1146
+ builderOnGreenStreak: input.builderOnGreenStreak ?? 3
1147
+ });
1148
+ const state = {
1149
+ lane: laneDecision.lane,
1150
+ greenStreak: laneDecision.greenStreak
1151
+ };
1152
+ if (!health.releaseReady) {
1153
+ return { message: `ALERT: release gate fail (${laneDecision.reason})`, state, laneDecision };
1154
+ }
1155
+ if (laneDecision.lane !== "builder") {
1156
+ return { message: "NO_REPLY", state, laneDecision };
1157
+ }
1158
+ const reflect = await input.adapter.reflect();
1159
+ if ((reflect.acted || 0) > 0) {
1160
+ return {
1161
+ message: `BUILDER_ACTED: acted=${reflect.acted}${reflect.summary ? ` ${reflect.summary}` : ""}`,
1162
+ state,
1163
+ laneDecision
1164
+ };
1165
+ }
1166
+ const research = await input.adapter.research();
1167
+ if (!research.ok) {
1168
+ return {
1169
+ message: `ALERT: builder proactive failed (research_failed:${research.reason || "unknown"})`,
1170
+ state,
1171
+ laneDecision
1172
+ };
1173
+ }
1174
+ const publish = await input.adapter.publish();
1175
+ if (publish.reason !== "published_deployed_verified") {
1176
+ return {
1177
+ message: `ALERT: builder proactive failed (${publish.reason})`,
1178
+ state,
1179
+ laneDecision,
1180
+ publish
1181
+ };
1182
+ }
1183
+ return { message: "BUILDER_BUILT: proactive_change_applied_and_validated", state, laneDecision, publish };
1184
+ };
1185
+
1109
1186
  // src/runtimeMigration.ts
1110
1187
  var buildRuntimeMigrationPlan = (input) => {
1111
1188
  const blockers = [];
@@ -1268,7 +1345,7 @@ var ReviewGate = class {
1268
1345
  var DEFAULT_API_BASE = "https://api.vibeiao.com";
1269
1346
  var DEFAULT_WEB_BASE = "https://vibeiao.com";
1270
1347
  var DEFAULT_SDK_PACKAGE = "@vibeiao/sdk";
1271
- var DEFAULT_SDK_VERSION = "0.1.56" ? "0.1.56" : "0.1.4";
1348
+ var DEFAULT_SDK_VERSION = "0.1.58" ? "0.1.58" : "0.1.4";
1272
1349
  var DEFAULT_SDK_REGISTRY = "https://registry.npmjs.org";
1273
1350
  var DEFAULT_SDK_POLICY_PATH = "/v1/sdk/policy";
1274
1351
  var DEFAULT_SDK_CHECK_INTERVAL_MS = 1e3 * 60 * 30;
@@ -2478,6 +2555,7 @@ export {
2478
2555
  rankListingsForTask,
2479
2556
  runAdapterBestShotChecklist,
2480
2557
  runAdaptiveReflectionCycle,
2558
+ runAgentCronRuntimeCycle,
2481
2559
  runAgentLaunchRuntime,
2482
2560
  runAgentLaunchRuntimeCycle,
2483
2561
  runAgentPublishRuntimeCycle,
@@ -8,7 +8,7 @@ import './survivalEscapeHatch.js';
8
8
  import './marketDiscovery.js';
9
9
  import './outcomeBoundFlow.js';
10
10
  import './strictMemoryRuntime.js';
11
- import './agentLoop-DAkl2g28.js';
11
+ import { L as LaneMode, a as LaneSwitchDecision } from './agentLoop-DAkl2g28.js';
12
12
  import './solana.js';
13
13
  import './compoundingMemory.js';
14
14
  import '@coral-xyz/anchor';
@@ -1165,11 +1165,16 @@ declare const runAgentLaunchRuntimeCycle: (options: AgentLaunchRuntimeOptions) =
1165
1165
  type PublishRuntimeMode = 'observe' | 'enforce';
1166
1166
  type PublishProductKind = 'agent_app' | 'human_game' | 'human_saas';
1167
1167
  type PublishListingType = 'agent' | 'human';
1168
+ type PublishMode = 'create_new' | 'update_existing';
1168
1169
  type PublishCandidate = {
1169
1170
  id: string;
1170
1171
  dir?: string;
1171
1172
  meta?: Record<string, unknown>;
1172
1173
  productKind?: PublishProductKind;
1174
+ lineageKey?: string;
1175
+ lineageExistingListingId?: string;
1176
+ lineageNoveltyScore?: number;
1177
+ allowNewLineageBranch?: boolean;
1173
1178
  };
1174
1179
  type PublishPrepareResult = {
1175
1180
  changed: boolean;
@@ -1186,6 +1191,7 @@ type PublishListingResult = {
1186
1191
  claimId?: string;
1187
1192
  listingType?: PublishListingType;
1188
1193
  category?: string;
1194
+ publishMode?: PublishMode;
1189
1195
  };
1190
1196
  type PublishDeployResult = {
1191
1197
  productUrl?: string;
@@ -1231,8 +1237,48 @@ type PublishRuntimeResult = {
1231
1237
  declare const runAgentPublishRuntimeCycle: (input: {
1232
1238
  mode?: PublishRuntimeMode;
1233
1239
  adapter?: PublishRuntimeAdapter;
1240
+ lineagePolicy?: {
1241
+ enabled?: boolean;
1242
+ minNoveltyForNewLineage?: number;
1243
+ };
1234
1244
  }) => Promise<PublishRuntimeResult>;
1235
1245
 
1246
+ type AgentCronCycleState = {
1247
+ lane?: LaneMode;
1248
+ greenStreak?: number;
1249
+ };
1250
+ type AgentCronHealth = {
1251
+ releaseReady: boolean;
1252
+ criticalPolishSignal?: boolean;
1253
+ builderObjectiveAvailable?: boolean;
1254
+ greenStreak?: number;
1255
+ };
1256
+ type AgentCronReflectResult = {
1257
+ acted: number;
1258
+ summary?: string;
1259
+ };
1260
+ type AgentCronResearchResult = {
1261
+ ok: boolean;
1262
+ reason?: string;
1263
+ };
1264
+ interface AgentCronRuntimeAdapter {
1265
+ health: () => Promise<AgentCronHealth> | AgentCronHealth;
1266
+ reflect: () => Promise<AgentCronReflectResult> | AgentCronReflectResult;
1267
+ research: () => Promise<AgentCronResearchResult> | AgentCronResearchResult;
1268
+ publish: () => Promise<PublishRuntimeResult> | PublishRuntimeResult;
1269
+ }
1270
+ type AgentCronCycleResult = {
1271
+ message: string;
1272
+ state: AgentCronCycleState;
1273
+ laneDecision: LaneSwitchDecision;
1274
+ publish?: PublishRuntimeResult;
1275
+ };
1276
+ declare const runAgentCronRuntimeCycle: (input: {
1277
+ adapter: AgentCronRuntimeAdapter;
1278
+ state?: AgentCronCycleState;
1279
+ builderOnGreenStreak?: number;
1280
+ }) => Promise<AgentCronCycleResult>;
1281
+
1236
1282
  type RuntimeMigrationInput = {
1237
1283
  profile: AdapterPackKind;
1238
1284
  listingId: string;
@@ -1545,7 +1591,7 @@ declare class ReviewGate {
1545
1591
  assertClear(listingId: string, wallet: string): void;
1546
1592
  }
1547
1593
 
1548
- declare const compareVersions: (currentVersion: string, latestVersion: string) => 1 | 0 | -1;
1594
+ declare const compareVersions: (currentVersion: string, latestVersion: string) => 0 | 1 | -1;
1549
1595
  declare const buildSdkUpdateCommand: (packageName?: string) => string;
1550
1596
  declare const checkForSdkUpdate: (options?: SdkUpdateCheckOptions) => Promise<SdkUpdateStatus>;
1551
1597
  declare const checkForSdkUpdatePolicy: (options: SdkUpdatePolicyCheckOptions) => Promise<SdkUpdateStatus>;
@@ -1726,4 +1772,4 @@ declare const getResourceSnapshot: (options: {
1726
1772
  apiBase?: string;
1727
1773
  }) => Promise<ResourceSnapshot>;
1728
1774
 
1729
- export { type LeaderboardQuery 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 ExecutionPostDeployVerifyResult as O, type ExecutionRollbackResult as P, type ExecutionRolloutMode as Q, type ExecutionRunResult as R, type ExecutionValidateResult as S, LISTING_NAME_MAX_LENGTH as T, type TopupDecision, type TopupRequest, type TreasuryLedgerEvent, type TreasuryPolicy, type TreasuryPolicyV1, type TreasuryState, LISTING_NAME_RECOMMENDED_MAX as U, LISTING_TAGLINE_MAX_LENGTH as V, LISTING_TAGLINE_RECOMMENDED_MAX as W, type LaunchProfile as X, type LaunchReadinessInput as Y, type LaunchReadinessResult as Z, type LeaderboardEntry as _, type AdapterPackKind as a, buildShareLink as a$, type ListingNamingValidationOptions as a0, type ListingNamingValidationResult as a1, type ListingQuery as a2, type ListingReviewCreatePayload as a3, type ListingReviewResponsePayload as a4, type ListingVersionPayload as a5, type MarketingCampaign as a6, type MarketingLinkOptions as a7, type MemoryPingChallengeResponse as a8, type MemoryPingPayload as a9, 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, assertLaunchReady as aJ, assertSurvivalProvidersConfigured as aK, buildAdaptivePlan as aL, buildBadgeMarkdown as aM, buildClaimMessage as aN, buildDecisionRecord as aO, buildJupiterSwapUrl as aP, buildListingVersionMessage as aQ, buildMemoryPingMessage as aR, buildOwnerTransferMessage as aS, buildProcurementPrompt as aT, buildRaydiumSwapUrl as aU, buildReviewPrompt as aV, buildReviewRequired as aW, buildReviewResponseMessage as aX, buildRuntimeMigrationPlan as aY, buildSdkUpdateCommand as aZ, buildShareCopy as a_, type OpenRouterCredits as aa, type ProcurementCandidate as ab, type ProcurementDecision as ac, type ProcurementTaskProfile as ad, type ProcurementWeights as ae, type PublishCandidate as af, type PublishDeployResult as ag, type PublishListingResult as ah, type PublishListingType as ai, type PublishPrepareResult as aj, type PublishProductKind as ak, type PublishRuntimeAdapter as al, type PublishRuntimeMode as am, type PublishRuntimeResult as an, type PublishValidateResult as ao, type PublishVerifyResult as ap, type ResourceProviderManifestEntry as aq, type ResourceSnapshot as ar, ReviewGate as as, type ReviewGateRecord as at, type ReviewRequiredPayload as au, type RunAdaptiveReflectionOptions as av, type RuntimeMigrationInput as aw, type RuntimeMigrationPlan as ax, type RuntimeStateSnapshot as ay, SdkAutoUpdatedRestartRequiredError as az, type AdapterPackOptions as b, buildTradeLinks as b0, checkForSdkUpdate as b1, checkForSdkUpdatePolicy as b2, compareVersions as b3, createApiCreditProvider as b4, createApiCreditProviders as b5, createApiCreditProvidersFromManifest as b6, createCampaign as b7, createContextPack as b8, createCustomAdapter as b9, createDurabilityProxyClient as ba, createServiceApiAdapter as bb, createWebBundledAdapter as bc, createWebStaticAdapter as bd, createWorkflowAgentAdapter as be, decideProcurementForTask as bf, estimateContextPackTokens as bg, evaluateAdaptiveReflectionPolicy as bh, evaluateContextPackGate as bi, evaluateLaunchReadiness as bj, getResourceSnapshot as bk, normalizeListingText as bl, rankListingsForTask as bm, runAdapterBestShotChecklist as bn, runAdaptiveReflectionCycle as bo, runAgentLaunchRuntime as bp, runAgentLaunchRuntimeCycle as bq, runAgentPublishRuntimeCycle as br, runAgentReviewRuntimeCycle as bs, runExecutionAdapter as bt, sanitizeListingNaming as bu, buildTreasuryLedgerEvent, scoreListingForTask as bv, shouldAnnounceStateChange as bw, validateContextPack as bx, validateListingNaming as by, verifyAdaptiveExecutionReadiness as bz, 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 };
1775
+ export { LISTING_TAGLINE_MAX_LENGTH as $, type AdapterBestShotChecklistResult as A, type ApiResponse as B, type BuybackEvent as C, CONTEXT_PACK_SECTION_ORDER as D, type ContextPack as E, type ContextPackBudget as F, type ContextPackGateOptions as G, type ContextPackGateResult as H, type ContextPackInput as I, type ContextPackOptions as J, type ContextPackSectionKey as K, type ContextPackSections as L, type ContextPackState as M, type DurabilityCheckpointWriteOptions as N, type DurabilityProxyClientOptions as O, type DurabilityRestoreDrillWriteOptions as P, type ExecutionAdapter as Q, type ExecutionApplyResult as R, type ExecutionDecisionRecord as S, type ExecutionDryRunResult as T, type TopupDecision, type TopupRequest, type TreasuryLedgerEvent, type TreasuryPolicy, type TreasuryPolicyV1, type TreasuryState, type ExecutionPostDeployVerifyResult as U, type ExecutionRollbackResult as V, type ExecutionRolloutMode as W, type ExecutionRunResult as X, type ExecutionValidateResult as Y, LISTING_NAME_MAX_LENGTH as Z, LISTING_NAME_RECOMMENDED_MAX as _, type AdapterPackKind as a, buildRaydiumSwapUrl as a$, LISTING_TAGLINE_RECOMMENDED_MAX as a0, type LaunchProfile as a1, type LaunchReadinessInput as a2, type LaunchReadinessResult as a3, type LeaderboardEntry as a4, type LeaderboardQuery as a5, type ListingNamingValidationOptions as a6, type ListingNamingValidationResult as a7, type ListingQuery as a8, type ListingReviewCreatePayload as a9, type ReviewGateRecord as aA, type ReviewRequiredPayload as aB, type RunAdaptiveReflectionOptions as aC, type RuntimeMigrationInput as aD, type RuntimeMigrationPlan as aE, type RuntimeStateSnapshot as aF, SdkAutoUpdatedRestartRequiredError as aG, type SdkUpdateCheckOptions as aH, type SdkUpdatePolicyCheckOptions as aI, SdkUpdateRequiredError as aJ, type SdkUpdateStatus as aK, VIBEIAO_IDL as aL, VibeClient as aM, type VibeClientOptions as aN, VibeRegistry as aO, aggregateFeedbackSignals as aP, assertLaunchReady as aQ, assertSurvivalProvidersConfigured as aR, buildAdaptivePlan as aS, buildBadgeMarkdown as aT, buildClaimMessage as aU, buildDecisionRecord as aV, buildJupiterSwapUrl as aW, buildListingVersionMessage as aX, buildMemoryPingMessage as aY, buildOwnerTransferMessage as aZ, buildProcurementPrompt as a_, type ListingReviewResponsePayload as aa, type ListingVersionPayload as ab, type MarketingCampaign as ac, type MarketingLinkOptions as ad, type MemoryPingChallengeResponse as ae, type MemoryPingPayload as af, type OpenRouterCredits as ag, type ProcurementCandidate as ah, type ProcurementDecision as ai, type ProcurementTaskProfile as aj, type ProcurementWeights as ak, type PublishCandidate as al, type PublishDeployResult as am, type PublishListingResult as an, type PublishListingType as ao, type PublishMode as ap, type PublishPrepareResult as aq, type PublishProductKind as ar, type PublishRuntimeAdapter as as, type PublishRuntimeMode as at, type PublishRuntimeResult as au, type PublishValidateResult as av, type PublishVerifyResult as aw, type ResourceProviderManifestEntry as ax, type ResourceSnapshot as ay, ReviewGate as az, type AdapterPackOptions as b, buildReviewPrompt as b0, buildReviewRequired as b1, buildReviewResponseMessage as b2, buildRuntimeMigrationPlan as b3, buildSdkUpdateCommand as b4, buildShareCopy as b5, buildShareLink as b6, buildTradeLinks as b7, checkForSdkUpdate as b8, checkForSdkUpdatePolicy as b9, runAgentReviewRuntimeCycle as bA, runExecutionAdapter as bB, sanitizeListingNaming as bC, scoreListingForTask as bD, shouldAnnounceStateChange as bE, validateContextPack as bF, validateListingNaming as bG, verifyAdaptiveExecutionReadiness as bH, compareVersions as ba, createApiCreditProvider as bb, createApiCreditProviders as bc, createApiCreditProvidersFromManifest as bd, createCampaign as be, createContextPack as bf, createCustomAdapter as bg, createDurabilityProxyClient as bh, createServiceApiAdapter as bi, createWebBundledAdapter as bj, createWebStaticAdapter as bk, createWorkflowAgentAdapter as bl, decideProcurementForTask as bm, estimateContextPackTokens as bn, evaluateAdaptiveReflectionPolicy as bo, evaluateContextPackGate as bp, evaluateLaunchReadiness as bq, getResourceSnapshot as br, normalizeListingText as bs, rankListingsForTask as bt, runAdapterBestShotChecklist as bu, buildTreasuryLedgerEvent, runAdaptiveReflectionCycle as bv, runAgentCronRuntimeCycle as bw, runAgentLaunchRuntime as bx, runAgentLaunchRuntimeCycle as by, runAgentPublishRuntimeCycle as bz, 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 AgentCronCycleResult as l, type AgentCronCycleState as m, type AgentCronHealth as n, type AgentCronReflectResult as o, type AgentCronResearchResult as p, type AgentCronRuntimeAdapter as q, type AgentLaunchRuntimeOptions as r, type AgentLaunchRuntimeResult as s, type AgentResourceProvidersManifest as t, treasuryStateFromSnapshot, type AgentReviewRuntimeOptions as u, type AnalyticsPoint as v, validateTreasuryPolicy, type ApiCreditProvider as w, type ApiCreditProviderFactoryOptions as x, type ApiCreditProviderPreset as y, type ApiCreditProviderPresetInput 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.57",
5
+ "version": "0.1.59",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {