@vibeiao/sdk 0.1.61 → 0.1.62

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.
@@ -8,7 +8,9 @@ import './survivalEscapeHatch.js';
8
8
  import './marketDiscovery.js';
9
9
  import './outcomeBoundFlow.js';
10
10
  import './strictMemoryRuntime.js';
11
- import { L as LaneMode, a as LaneSwitchDecision } from './agentLoop-DAkl2g28.js';
11
+ import { L as LaneMode, a as LaneSwitchDecision } from './agentLoop-BY_j-iIC.js';
12
+ import './socialProfile.js';
13
+ import './socialProtocol.js';
12
14
  import './solana.js';
13
15
  import './compoundingMemory.js';
14
16
  import '@coral-xyz/anchor';
@@ -1323,6 +1325,34 @@ declare const shouldAnnounceStateChange: (input: {
1323
1325
  reason: string;
1324
1326
  };
1325
1327
 
1328
+ type GovernanceProposalType = 'ADD_MEMBER' | 'REMOVE_MEMBER' | 'AMEND_PURPOSE';
1329
+ type GovernanceVote = 'yes' | 'no' | 'abstain';
1330
+ type GovernanceProposal = {
1331
+ proposalId: string;
1332
+ channelId: string;
1333
+ proposalType: GovernanceProposalType;
1334
+ proposerAgentId: string;
1335
+ targetAgentId: string;
1336
+ quorumThreshold: number;
1337
+ approvalThreshold: number;
1338
+ deadlineAtIso: string;
1339
+ status: 'open' | 'approved' | 'rejected' | 'expired' | 'executed';
1340
+ };
1341
+ type GovernanceTally = {
1342
+ totalEligibleVoters: number;
1343
+ yes: number;
1344
+ no: number;
1345
+ abstain: number;
1346
+ };
1347
+ type GovernanceDecision = {
1348
+ canExecute: boolean;
1349
+ outcome: 'approved' | 'rejected' | 'expired';
1350
+ quorumRatio: number;
1351
+ approvalRatio: number;
1352
+ reason?: string;
1353
+ };
1354
+ declare const evaluateGovernanceDecision: (proposal: GovernanceProposal, tally: GovernanceTally, nowIso?: string) => GovernanceDecision;
1355
+
1326
1356
  interface VibeClientOptions {
1327
1357
  baseUrl?: string;
1328
1358
  fetcher?: typeof fetch;
@@ -1782,4 +1812,4 @@ declare const getResourceSnapshot: (options: {
1782
1812
  apiBase?: string;
1783
1813
  }) => Promise<ResourceSnapshot>;
1784
1814
 
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 };
1815
+ export { type GovernanceProposal 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, type GovernanceDecision as _, type AdapterPackKind as a, buildDecisionRecord as a$, type GovernanceProposalType as a0, type GovernanceTally as a1, type GovernanceVote as a2, LISTING_NAME_MAX_LENGTH as a3, LISTING_NAME_RECOMMENDED_MAX as a4, LISTING_TAGLINE_MAX_LENGTH as a5, LISTING_TAGLINE_RECOMMENDED_MAX as a6, type LaunchProfile as a7, type LaunchReadinessInput as a8, type LaunchReadinessResult as a9, type PublishRuntimeResult as aA, type PublishValidateResult as aB, type PublishVerifyResult as aC, type ResourceProviderManifestEntry as aD, type ResourceSnapshot as aE, ReviewGate as aF, type ReviewGateRecord as aG, type ReviewRequiredPayload as aH, type RunAdaptiveReflectionOptions as aI, type RuntimeMigrationInput as aJ, type RuntimeMigrationPlan as aK, type RuntimeStateSnapshot as aL, SdkAutoUpdatedRestartRequiredError as aM, type SdkUpdateCheckOptions as aN, type SdkUpdatePolicyCheckOptions as aO, SdkUpdateRequiredError as aP, type SdkUpdateStatus as aQ, VIBEIAO_IDL as aR, VibeClient as aS, type VibeClientOptions as aT, VibeRegistry as aU, aggregateFeedbackSignals as aV, assertLaunchReady as aW, assertSurvivalProvidersConfigured as aX, buildAdaptivePlan as aY, buildBadgeMarkdown as aZ, buildClaimMessage as a_, type LeaderboardEntry as aa, type LeaderboardQuery as ab, type ListingNamingValidationOptions as ac, type ListingNamingValidationResult as ad, type ListingQuery as ae, type ListingReviewCreatePayload as af, type ListingReviewResponsePayload as ag, type ListingVersionPayload as ah, type MarketingCampaign as ai, type MarketingLinkOptions as aj, type MemoryPingChallengeResponse as ak, type MemoryPingPayload as al, type OpenRouterCredits as am, type ProcurementCandidate as an, type ProcurementDecision as ao, type ProcurementTaskProfile as ap, type ProcurementWeights as aq, type PublishCandidate as ar, type PublishDeployResult as as, type PublishListingResult as at, type PublishListingType as au, type PublishMode as av, type PublishPrepareResult as aw, type PublishProductKind as ax, type PublishRuntimeAdapter as ay, type PublishRuntimeMode as az, type AdapterPackOptions as b, buildJupiterSwapUrl as b0, buildListingVersionMessage as b1, buildMemoryPingMessage as b2, buildOwnerTransferMessage as b3, buildProcurementPrompt as b4, buildRaydiumSwapUrl as b5, buildReviewPrompt as b6, buildReviewRequired as b7, buildReviewResponseMessage as b8, buildRuntimeMigrationPlan as b9, normalizeListingText as bA, rankListingsForTask as bB, resolveLocalTimezone as bC, runAdapterBestShotChecklist as bD, runAdaptiveReflectionCycle as bE, runAgentCronRuntimeCycle as bF, runAgentLaunchRuntime as bG, runAgentLaunchRuntimeCycle as bH, runAgentPublishRuntimeCycle as bI, runAgentReviewRuntimeCycle as bJ, runExecutionAdapter as bK, sanitizeListingNaming as bL, scoreListingForTask as bM, shouldAnnounceStateChange as bN, validateContextPack as bO, validateListingNaming as bP, verifyAdaptiveExecutionReadiness as bQ, buildSdkUpdateCommand as ba, buildShareCopy as bb, buildShareLink as bc, buildTradeLinks as bd, checkForSdkUpdate as be, checkForSdkUpdatePolicy as bf, compareVersions as bg, createApiCreditProvider as bh, createApiCreditProviders as bi, createApiCreditProvidersFromManifest as bj, createCampaign as bk, createContextPack as bl, createCustomAdapter as bm, createDailyLocalMidnightSchedule as bn, createDurabilityProxyClient as bo, createServiceApiAdapter as bp, createWebBundledAdapter as bq, createWebStaticAdapter as br, createWorkflowAgentAdapter as bs, decideProcurementForTask as bt, estimateContextPackTokens as bu, buildTreasuryLedgerEvent, evaluateAdaptiveReflectionPolicy as bv, evaluateContextPackGate as bw, evaluateGovernanceDecision as bx, evaluateLaunchReadiness as by, getResourceSnapshot 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 };
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.61",
5
+ "version": "0.1.62",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {
@@ -18,7 +18,9 @@
18
18
  "./treasury-guardian": "./dist/treasuryGuardian.js",
19
19
  "./human-app-loop": "./dist/humanAppLoop.js",
20
20
  "./outcome-bound-flow": "./dist/outcomeBoundFlow.js",
21
- "./strict-memory-runtime": "./dist/strictMemoryRuntime.js"
21
+ "./strict-memory-runtime": "./dist/strictMemoryRuntime.js",
22
+ "./social-profile": "./dist/socialProfile.js",
23
+ "./social-protocol": "./dist/socialProtocol.js"
22
24
  },
23
25
  "files": [
24
26
  "dist",
@@ -28,7 +30,7 @@
28
30
  "access": "public"
29
31
  },
30
32
  "scripts": {
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\\\"",
33
+ "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 src/socialProfile.ts src/socialProtocol.ts --format esm --dts --tsconfig tsconfig.json --out-dir dist --define.__VIBEIAO_SDK_VERSION__=\\\"$npm_package_version\\\"",
32
34
  "test:e2e-memory": "pnpm build && node --test test/memory.e2e.test.mjs",
33
35
  "test": "pnpm build && node --test test/*.test.mjs"
34
36
  },