@vibeiao/sdk 0.1.59 → 0.1.61
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 +1 -1
- package/dist/index.js +16 -1
- package/dist/treasuryGuardian.d.ts +12 -2
- package/package.json +1 -1
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 AgentCronCycleResult, m as AgentCronCycleState, n as AgentCronHealth, o as AgentCronReflectResult, p as AgentCronResearchResult, q as AgentCronRuntimeAdapter, r as
|
|
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 AgentCronSchedulePreset, s as AgentLaunchRuntimeOptions, t as AgentLaunchRuntimeResult, u as AgentResourceProvidersManifest, v as AgentReviewRuntimeOptions, w as AnalyticsPoint, x as ApiCreditProvider, y as ApiCreditProviderFactoryOptions, z as ApiCreditProviderPreset, B as ApiCreditProviderPresetInput, C as ApiResponse, D as BuybackEvent, E as CONTEXT_PACK_SECTION_ORDER, F as ContextPack, G as ContextPackBudget, H as ContextPackGateOptions, I as ContextPackGateResult, J as ContextPackInput, K as ContextPackOptions, L as ContextPackSectionKey, M as ContextPackSections, N as ContextPackState, O as DurabilityCheckpointWriteOptions, P as DurabilityProxyClientOptions, Q as DurabilityRestoreDrillWriteOptions, R as ExecutionAdapter, S as ExecutionApplyResult, T as ExecutionDecisionRecord, U as ExecutionDryRunResult, V as ExecutionPostDeployVerifyResult, W as ExecutionRollbackResult, X as ExecutionRolloutMode, Y as ExecutionRunResult, Z as ExecutionValidateResult, _ as LISTING_NAME_MAX_LENGTH, $ as LISTING_NAME_RECOMMENDED_MAX, a0 as LISTING_TAGLINE_MAX_LENGTH, a1 as LISTING_TAGLINE_RECOMMENDED_MAX, a2 as LaunchProfile, a3 as LaunchReadinessInput, a4 as LaunchReadinessResult, a5 as LeaderboardEntry, a6 as LeaderboardQuery, a7 as ListingNamingValidationOptions, a8 as ListingNamingValidationResult, a9 as ListingQuery, aa as ListingReviewCreatePayload, ab as ListingReviewResponsePayload, ac as ListingVersionPayload, ad as MarketingCampaign, ae as MarketingLinkOptions, af as MemoryPingChallengeResponse, ag as MemoryPingPayload, ah as OpenRouterCredits, ai as ProcurementCandidate, aj as ProcurementDecision, ak as ProcurementTaskProfile, al as ProcurementWeights, am as PublishCandidate, an as PublishDeployResult, ao as PublishListingResult, ap as PublishListingType, aq as PublishMode, ar as PublishPrepareResult, as as PublishProductKind, at as PublishRuntimeAdapter, au as PublishRuntimeMode, av as PublishRuntimeResult, aw as PublishValidateResult, ax as PublishVerifyResult, ay as ResourceProviderManifestEntry, az as ResourceSnapshot, aA as ReviewGate, aB as ReviewGateRecord, aC as ReviewRequiredPayload, aD as RunAdaptiveReflectionOptions, aE as RuntimeMigrationInput, aF as RuntimeMigrationPlan, aG as RuntimeStateSnapshot, aH as SdkAutoUpdatedRestartRequiredError, aI as SdkUpdateCheckOptions, aJ as SdkUpdatePolicyCheckOptions, aK as SdkUpdateRequiredError, aL as SdkUpdateStatus, TopupDecision, TopupRequest, TreasuryLedgerEvent, TreasuryPolicy, TreasuryPolicyV1, TreasuryState, aM as VIBEIAO_IDL, aN as VibeClient, aO as VibeClientOptions, aP as VibeRegistry, aQ as aggregateFeedbackSignals, aR as assertLaunchReady, aS as assertSurvivalProvidersConfigured, aT as buildAdaptivePlan, aU as buildBadgeMarkdown, aV as buildClaimMessage, aW as buildDecisionRecord, aX as buildJupiterSwapUrl, aY as buildListingVersionMessage, aZ as buildMemoryPingMessage, a_ as buildOwnerTransferMessage, a$ as buildProcurementPrompt, b0 as buildRaydiumSwapUrl, b1 as buildReviewPrompt, b2 as buildReviewRequired, b3 as buildReviewResponseMessage, b4 as buildRuntimeMigrationPlan, b5 as buildSdkUpdateCommand, b6 as buildShareCopy, b7 as buildShareLink, b8 as buildTradeLinks, buildTreasuryLedgerEvent, b9 as checkForSdkUpdate, ba as checkForSdkUpdatePolicy, bb as compareVersions, bc as createApiCreditProvider, bd as createApiCreditProviders, be as createApiCreditProvidersFromManifest, bf as createCampaign, bg as createContextPack, bh as createCustomAdapter, bi as createDailyLocalMidnightSchedule, bj as createDurabilityProxyClient, bk as createServiceApiAdapter, createTreasuryPolicy, bl as createWebBundledAdapter, bm as createWebStaticAdapter, bn as createWorkflowAgentAdapter, bo as decideProcurementForTask, bp as estimateContextPackTokens, bq as evaluateAdaptiveReflectionPolicy, br as evaluateContextPackGate, bs as evaluateLaunchReadiness, evaluateTopupRequest, bt as getResourceSnapshot, bu as normalizeListingText, bv as rankListingsForTask, bw as resolveLocalTimezone, bx as runAdapterBestShotChecklist, by as runAdaptiveReflectionCycle, bz as runAgentCronRuntimeCycle, bA as runAgentLaunchRuntime, bB as runAgentLaunchRuntimeCycle, bC as runAgentPublishRuntimeCycle, bD as runAgentReviewRuntimeCycle, bE as runExecutionAdapter, bF as sanitizeListingNaming, bG as scoreListingForTask, bH as shouldAnnounceStateChange, treasuryStateFromSnapshot, bI as validateContextPack, bJ as validateListingNaming, validateTreasuryPolicy, bK 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
|
@@ -1134,6 +1134,19 @@ var runAgentPublishRuntimeCycle = async (input) => {
|
|
|
1134
1134
|
};
|
|
1135
1135
|
|
|
1136
1136
|
// src/agentCronRuntime.ts
|
|
1137
|
+
var resolveLocalTimezone = () => {
|
|
1138
|
+
try {
|
|
1139
|
+
const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
1140
|
+
return tz && typeof tz === "string" ? tz : "UTC";
|
|
1141
|
+
} catch {
|
|
1142
|
+
return "UTC";
|
|
1143
|
+
}
|
|
1144
|
+
};
|
|
1145
|
+
var createDailyLocalMidnightSchedule = (input) => ({
|
|
1146
|
+
expr: "0 0 * * *",
|
|
1147
|
+
tz: input?.tz || resolveLocalTimezone(),
|
|
1148
|
+
staggerMs: 0
|
|
1149
|
+
});
|
|
1137
1150
|
var runAgentCronRuntimeCycle = async (input) => {
|
|
1138
1151
|
const previous = input.state || {};
|
|
1139
1152
|
const health = await input.adapter.health();
|
|
@@ -1345,7 +1358,7 @@ var ReviewGate = class {
|
|
|
1345
1358
|
var DEFAULT_API_BASE = "https://api.vibeiao.com";
|
|
1346
1359
|
var DEFAULT_WEB_BASE = "https://vibeiao.com";
|
|
1347
1360
|
var DEFAULT_SDK_PACKAGE = "@vibeiao/sdk";
|
|
1348
|
-
var DEFAULT_SDK_VERSION = "0.1.
|
|
1361
|
+
var DEFAULT_SDK_VERSION = "0.1.59" ? "0.1.59" : "0.1.4";
|
|
1349
1362
|
var DEFAULT_SDK_REGISTRY = "https://registry.npmjs.org";
|
|
1350
1363
|
var DEFAULT_SDK_POLICY_PATH = "/v1/sdk/policy";
|
|
1351
1364
|
var DEFAULT_SDK_CHECK_INTERVAL_MS = 1e3 * 60 * 30;
|
|
@@ -2515,6 +2528,7 @@ export {
|
|
|
2515
2528
|
createCampaign,
|
|
2516
2529
|
createContextPack,
|
|
2517
2530
|
createCustomAdapter,
|
|
2531
|
+
createDailyLocalMidnightSchedule,
|
|
2518
2532
|
createDurabilityProxyClient,
|
|
2519
2533
|
createInMemoryReflectionStore,
|
|
2520
2534
|
createSelfRelianceMonitor,
|
|
@@ -2553,6 +2567,7 @@ export {
|
|
|
2553
2567
|
isComplexTask,
|
|
2554
2568
|
normalizeListingText,
|
|
2555
2569
|
rankListingsForTask,
|
|
2570
|
+
resolveLocalTimezone,
|
|
2556
2571
|
runAdapterBestShotChecklist,
|
|
2557
2572
|
runAdaptiveReflectionCycle,
|
|
2558
2573
|
runAgentCronRuntimeCycle,
|
|
@@ -1243,6 +1243,11 @@ declare const runAgentPublishRuntimeCycle: (input: {
|
|
|
1243
1243
|
};
|
|
1244
1244
|
}) => Promise<PublishRuntimeResult>;
|
|
1245
1245
|
|
|
1246
|
+
type AgentCronSchedulePreset = {
|
|
1247
|
+
expr: string;
|
|
1248
|
+
tz: string;
|
|
1249
|
+
staggerMs?: number;
|
|
1250
|
+
};
|
|
1246
1251
|
type AgentCronCycleState = {
|
|
1247
1252
|
lane?: LaneMode;
|
|
1248
1253
|
greenStreak?: number;
|
|
@@ -1273,6 +1278,11 @@ type AgentCronCycleResult = {
|
|
|
1273
1278
|
laneDecision: LaneSwitchDecision;
|
|
1274
1279
|
publish?: PublishRuntimeResult;
|
|
1275
1280
|
};
|
|
1281
|
+
declare const resolveLocalTimezone: () => string;
|
|
1282
|
+
/** Default builder cadence preset: 00:00 local time every day. */
|
|
1283
|
+
declare const createDailyLocalMidnightSchedule: (input?: {
|
|
1284
|
+
tz?: string;
|
|
1285
|
+
}) => AgentCronSchedulePreset;
|
|
1276
1286
|
declare const runAgentCronRuntimeCycle: (input: {
|
|
1277
1287
|
adapter: AgentCronRuntimeAdapter;
|
|
1278
1288
|
state?: AgentCronCycleState;
|
|
@@ -1591,7 +1601,7 @@ declare class ReviewGate {
|
|
|
1591
1601
|
assertClear(listingId: string, wallet: string): void;
|
|
1592
1602
|
}
|
|
1593
1603
|
|
|
1594
|
-
declare const compareVersions: (currentVersion: string, latestVersion: string) =>
|
|
1604
|
+
declare const compareVersions: (currentVersion: string, latestVersion: string) => 1 | 0 | -1;
|
|
1595
1605
|
declare const buildSdkUpdateCommand: (packageName?: string) => string;
|
|
1596
1606
|
declare const checkForSdkUpdate: (options?: SdkUpdateCheckOptions) => Promise<SdkUpdateStatus>;
|
|
1597
1607
|
declare const checkForSdkUpdatePolicy: (options: SdkUpdatePolicyCheckOptions) => Promise<SdkUpdateStatus>;
|
|
@@ -1772,4 +1782,4 @@ declare const getResourceSnapshot: (options: {
|
|
|
1772
1782
|
apiBase?: string;
|
|
1773
1783
|
}) => Promise<ResourceSnapshot>;
|
|
1774
1784
|
|
|
1775
|
-
export {
|
|
1785
|
+
export { LISTING_NAME_RECOMMENDED_MAX as $, type AdapterBestShotChecklistResult as A, type ApiCreditProviderPresetInput as B, type ApiResponse as C, type BuybackEvent as D, CONTEXT_PACK_SECTION_ORDER as E, type ContextPack as F, type ContextPackBudget as G, type ContextPackGateOptions as H, type ContextPackGateResult as I, type ContextPackInput as J, type ContextPackOptions as K, type ContextPackSectionKey as L, type ContextPackSections as M, type ContextPackState as N, type DurabilityCheckpointWriteOptions as O, type DurabilityProxyClientOptions as P, type DurabilityRestoreDrillWriteOptions as Q, type ExecutionAdapter as R, type ExecutionApplyResult as S, type ExecutionDecisionRecord as T, type TopupDecision, type TopupRequest, type TreasuryLedgerEvent, type TreasuryPolicy, type TreasuryPolicyV1, type TreasuryState, type ExecutionDryRunResult as U, type ExecutionPostDeployVerifyResult as V, type ExecutionRollbackResult as W, type ExecutionRolloutMode as X, type ExecutionRunResult as Y, type ExecutionValidateResult as Z, LISTING_NAME_MAX_LENGTH as _, type AdapterPackKind as a, buildProcurementPrompt as a$, LISTING_TAGLINE_MAX_LENGTH as a0, LISTING_TAGLINE_RECOMMENDED_MAX as a1, type LaunchProfile as a2, type LaunchReadinessInput as a3, type LaunchReadinessResult as a4, type LeaderboardEntry as a5, type LeaderboardQuery as a6, type ListingNamingValidationOptions as a7, type ListingNamingValidationResult as a8, type ListingQuery as a9, ReviewGate as aA, type ReviewGateRecord as aB, type ReviewRequiredPayload as aC, type RunAdaptiveReflectionOptions as aD, type RuntimeMigrationInput as aE, type RuntimeMigrationPlan as aF, type RuntimeStateSnapshot as aG, SdkAutoUpdatedRestartRequiredError as aH, type SdkUpdateCheckOptions as aI, type SdkUpdatePolicyCheckOptions as aJ, SdkUpdateRequiredError as aK, type SdkUpdateStatus as aL, VIBEIAO_IDL as aM, VibeClient as aN, type VibeClientOptions as aO, VibeRegistry as aP, aggregateFeedbackSignals as aQ, assertLaunchReady as aR, assertSurvivalProvidersConfigured as aS, buildAdaptivePlan as aT, buildBadgeMarkdown as aU, buildClaimMessage as aV, buildDecisionRecord as aW, buildJupiterSwapUrl as aX, buildListingVersionMessage as aY, buildMemoryPingMessage as aZ, buildOwnerTransferMessage as a_, type ListingReviewCreatePayload as aa, type ListingReviewResponsePayload as ab, type ListingVersionPayload as ac, type MarketingCampaign as ad, type MarketingLinkOptions as ae, type MemoryPingChallengeResponse as af, type MemoryPingPayload as ag, type OpenRouterCredits as ah, type ProcurementCandidate as ai, type ProcurementDecision as aj, type ProcurementTaskProfile as ak, type ProcurementWeights as al, type PublishCandidate as am, type PublishDeployResult as an, type PublishListingResult as ao, type PublishListingType as ap, type PublishMode as aq, type PublishPrepareResult as ar, type PublishProductKind as as, type PublishRuntimeAdapter as at, type PublishRuntimeMode as au, type PublishRuntimeResult as av, type PublishValidateResult as aw, type PublishVerifyResult as ax, type ResourceProviderManifestEntry as ay, type ResourceSnapshot as az, type AdapterPackOptions as b, buildRaydiumSwapUrl as b0, buildReviewPrompt as b1, buildReviewRequired as b2, buildReviewResponseMessage as b3, buildRuntimeMigrationPlan as b4, buildSdkUpdateCommand as b5, buildShareCopy as b6, buildShareLink as b7, buildTradeLinks as b8, checkForSdkUpdate as b9, runAgentLaunchRuntime as bA, runAgentLaunchRuntimeCycle as bB, runAgentPublishRuntimeCycle as bC, runAgentReviewRuntimeCycle as bD, runExecutionAdapter as bE, sanitizeListingNaming as bF, scoreListingForTask as bG, shouldAnnounceStateChange as bH, validateContextPack as bI, validateListingNaming as bJ, verifyAdaptiveExecutionReadiness as bK, checkForSdkUpdatePolicy as ba, compareVersions as bb, createApiCreditProvider as bc, createApiCreditProviders as bd, createApiCreditProvidersFromManifest as be, createCampaign as bf, createContextPack as bg, createCustomAdapter as bh, createDailyLocalMidnightSchedule as bi, createDurabilityProxyClient as bj, createServiceApiAdapter as bk, createWebBundledAdapter as bl, createWebStaticAdapter as bm, createWorkflowAgentAdapter as bn, decideProcurementForTask as bo, estimateContextPackTokens as bp, evaluateAdaptiveReflectionPolicy as bq, evaluateContextPackGate as br, evaluateLaunchReadiness as bs, getResourceSnapshot as bt, normalizeListingText as bu, buildTreasuryLedgerEvent, rankListingsForTask as bv, resolveLocalTimezone as bw, runAdapterBestShotChecklist as bx, runAdaptiveReflectionCycle as by, runAgentCronRuntimeCycle 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 AgentCronSchedulePreset as r, type AgentLaunchRuntimeOptions as s, type AgentLaunchRuntimeResult as t, treasuryStateFromSnapshot, type AgentResourceProvidersManifest as u, type AgentReviewRuntimeOptions as v, validateTreasuryPolicy, type AnalyticsPoint as w, type ApiCreditProvider as x, type ApiCreditProviderFactoryOptions as y, type ApiCreditProviderPreset as z };
|