@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.
- package/dist/agentLoop-BY_j-iIC.d.ts +378 -0
- package/dist/agentLoop.d.ts +1 -1
- package/dist/agentLoop.js +17 -0
- package/dist/chunk-AEFR7F7O.js +154 -0
- package/dist/chunk-MMGPZS3H.js +26 -0
- package/dist/chunk-OA3LATWQ.js +155 -0
- package/dist/chunk-R45Z2S5K.js +142 -0
- package/dist/chunk-TTLJ2O6S.js +29 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +56 -8
- package/dist/socialProfile.d.ts +25 -0
- package/dist/socialProfile.js +8 -0
- package/dist/socialProtocol.d.ts +60 -0
- package/dist/socialProtocol.js +22 -0
- package/dist/treasuryGuardian.d.ts +32 -2
- package/package.json +5 -3
|
@@ -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-
|
|
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 {
|
|
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.
|
|
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
|
},
|