@vibeiao/sdk 0.1.46 → 0.1.47
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 +25 -1
- package/dist/treasuryGuardian.d.ts +29 -1
- 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 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
|
|
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';
|
|
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
|
@@ -589,6 +589,29 @@ var runAdaptiveReflectionCycle = async (opts) => {
|
|
|
589
589
|
};
|
|
590
590
|
};
|
|
591
591
|
|
|
592
|
+
// src/agentReviewRuntime.ts
|
|
593
|
+
var runAgentReviewRuntimeCycle = async (opts) => {
|
|
594
|
+
if (!opts.adapter) {
|
|
595
|
+
throw new Error("agent_review_runtime_requires_execution_adapter");
|
|
596
|
+
}
|
|
597
|
+
return runAdaptiveReflectionCycle({
|
|
598
|
+
client: opts.client,
|
|
599
|
+
listingId: opts.listingId,
|
|
600
|
+
wallet: opts.wallet,
|
|
601
|
+
signMessage: opts.signMessage,
|
|
602
|
+
reflectionStore: opts.reflectionStore,
|
|
603
|
+
policy: opts.policy,
|
|
604
|
+
reflectionOptions: opts.reflectionOptions,
|
|
605
|
+
execution: {
|
|
606
|
+
mode: "apply",
|
|
607
|
+
rolloutMode: opts.rolloutMode || "apply_full",
|
|
608
|
+
allowImmediateOnly: opts.allowImmediateOnly ?? false,
|
|
609
|
+
adapter: opts.adapter
|
|
610
|
+
},
|
|
611
|
+
now: opts.now
|
|
612
|
+
});
|
|
613
|
+
};
|
|
614
|
+
|
|
592
615
|
// src/index.ts
|
|
593
616
|
var SdkUpdateRequiredError = class extends Error {
|
|
594
617
|
status;
|
|
@@ -705,7 +728,7 @@ var ReviewGate = class {
|
|
|
705
728
|
var DEFAULT_API_BASE = "https://api.vibeiao.com";
|
|
706
729
|
var DEFAULT_WEB_BASE = "https://vibeiao.com";
|
|
707
730
|
var DEFAULT_SDK_PACKAGE = "@vibeiao/sdk";
|
|
708
|
-
var DEFAULT_SDK_VERSION = "0.1.
|
|
731
|
+
var DEFAULT_SDK_VERSION = "0.1.46" ? "0.1.46" : "0.1.4";
|
|
709
732
|
var DEFAULT_SDK_REGISTRY = "https://registry.npmjs.org";
|
|
710
733
|
var DEFAULT_SDK_POLICY_PATH = "/v1/sdk/policy";
|
|
711
734
|
var DEFAULT_SDK_CHECK_INTERVAL_MS = 1e3 * 60 * 30;
|
|
@@ -1903,6 +1926,7 @@ export {
|
|
|
1903
1926
|
normalizeListingText,
|
|
1904
1927
|
rankListingsForTask,
|
|
1905
1928
|
runAdaptiveReflectionCycle,
|
|
1929
|
+
runAgentReviewRuntimeCycle,
|
|
1906
1930
|
runExecutionAdapter,
|
|
1907
1931
|
runMarketDiscovery,
|
|
1908
1932
|
runReflectionCycle,
|
|
@@ -1009,6 +1009,34 @@ declare const runAdaptiveReflectionCycle: (opts: RunAdaptiveReflectionOptions) =
|
|
|
1009
1009
|
policyState: AdaptivePolicyState;
|
|
1010
1010
|
}>;
|
|
1011
1011
|
|
|
1012
|
+
type AgentReviewRuntimeOptions = {
|
|
1013
|
+
client: ReflectionClient;
|
|
1014
|
+
listingId: string;
|
|
1015
|
+
wallet: string;
|
|
1016
|
+
signMessage: ReflectionCycleOptions['signMessage'];
|
|
1017
|
+
reflectionStore?: AdaptiveReflectionStore;
|
|
1018
|
+
policy?: AdaptivePolicyConfig;
|
|
1019
|
+
rolloutMode?: ExecutionRolloutMode;
|
|
1020
|
+
adapter: ExecutionAdapter;
|
|
1021
|
+
allowImmediateOnly?: boolean;
|
|
1022
|
+
reflectionOptions?: Omit<ReflectionCycleOptions, 'client' | 'listingId' | 'wallet' | 'signMessage' | 'store'>;
|
|
1023
|
+
now?: () => number;
|
|
1024
|
+
};
|
|
1025
|
+
/**
|
|
1026
|
+
* Required default review runtime for VIBEIAO agents.
|
|
1027
|
+
* Enforces verify->execute using the execution adapter contract.
|
|
1028
|
+
*/
|
|
1029
|
+
declare const runAgentReviewRuntimeCycle: (opts: AgentReviewRuntimeOptions) => Promise<{
|
|
1030
|
+
generatedAt: string;
|
|
1031
|
+
aggregate: AdaptiveFeedbackAggregate;
|
|
1032
|
+
decision: AdaptivePolicyDecision;
|
|
1033
|
+
verification: AdaptiveVerification;
|
|
1034
|
+
execution: AdaptiveExecution;
|
|
1035
|
+
plan: AdaptiveAdaptationPlan;
|
|
1036
|
+
reflection: ReflectionCycleResult;
|
|
1037
|
+
policyState: AdaptivePolicyState;
|
|
1038
|
+
}>;
|
|
1039
|
+
|
|
1012
1040
|
interface VibeClientOptions {
|
|
1013
1041
|
baseUrl?: string;
|
|
1014
1042
|
fetcher?: typeof fetch;
|
|
@@ -1468,4 +1496,4 @@ declare const getResourceSnapshot: (options: {
|
|
|
1468
1496
|
apiBase?: string;
|
|
1469
1497
|
}) => Promise<ResourceSnapshot>;
|
|
1470
1498
|
|
|
1471
|
-
export { type
|
|
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 };
|