@vibeiao/sdk 0.1.56 → 0.1.57
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 +170 -13
- package/dist/treasuryGuardian.d.ts +72 -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 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
|
|
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';
|
|
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
|
@@ -95,10 +95,10 @@ var normalizeSectionInput = (value, maxItemChars) => {
|
|
|
95
95
|
const seen = /* @__PURE__ */ new Set();
|
|
96
96
|
const output = [];
|
|
97
97
|
for (const item of list) {
|
|
98
|
-
const
|
|
99
|
-
if (!
|
|
100
|
-
seen.add(
|
|
101
|
-
output.push(
|
|
98
|
+
const normalized2 = normalizeItem(String(item ?? ""), maxItemChars);
|
|
99
|
+
if (!normalized2 || seen.has(normalized2)) continue;
|
|
100
|
+
seen.add(normalized2);
|
|
101
|
+
output.push(normalized2);
|
|
102
102
|
}
|
|
103
103
|
return output;
|
|
104
104
|
};
|
|
@@ -197,9 +197,9 @@ var createContextPack = (input, options = {}) => {
|
|
|
197
197
|
const maxChars = Math.max(240, Number(options.maxChars ?? DEFAULT_MAX_CHARS));
|
|
198
198
|
const maxTokens = Math.max(80, Number(options.maxTokens ?? DEFAULT_MAX_TOKENS));
|
|
199
199
|
const maxItemChars = Math.max(16, Number(options.maxItemChars ?? DEFAULT_MAX_ITEM_CHARS));
|
|
200
|
-
const
|
|
201
|
-
const withinBudget = fitsBudget(
|
|
202
|
-
const sections = withinBudget ? copySections(
|
|
200
|
+
const normalized2 = buildSections(input, maxItemChars);
|
|
201
|
+
const withinBudget = fitsBudget(normalized2, maxChars, maxTokens);
|
|
202
|
+
const sections = withinBudget ? copySections(normalized2) : truncateToBudget(normalized2, maxChars, maxTokens);
|
|
203
203
|
const usage = measuredJson(sections);
|
|
204
204
|
return {
|
|
205
205
|
schema: "context-pack/v1",
|
|
@@ -950,6 +950,162 @@ var runAgentLaunchRuntime = async (options) => {
|
|
|
950
950
|
};
|
|
951
951
|
var runAgentLaunchRuntimeCycle = runAgentLaunchRuntime;
|
|
952
952
|
|
|
953
|
+
// src/agentPublishRuntime.ts
|
|
954
|
+
var normalized = (v) => String(v || "").trim().toLowerCase();
|
|
955
|
+
var enforcePublishKindGuard = (candidate, listing) => {
|
|
956
|
+
const kind = candidate.productKind;
|
|
957
|
+
if (!kind) return "publish_gate_blocked:missing_product_kind";
|
|
958
|
+
const listingType = normalized(listing.listingType);
|
|
959
|
+
const category = normalized(listing.category);
|
|
960
|
+
if (!listingType) return "publish_gate_blocked:missing_listing_type";
|
|
961
|
+
if (!category) return "publish_gate_blocked:missing_listing_category";
|
|
962
|
+
if (kind === "agent_app") {
|
|
963
|
+
if (listingType !== "agent") return "publish_gate_blocked:agent_app_requires_agent_listing";
|
|
964
|
+
return null;
|
|
965
|
+
}
|
|
966
|
+
if (listingType !== "human") return "publish_gate_blocked:human_product_requires_human_listing";
|
|
967
|
+
if (kind === "human_game" && !category.includes("game")) {
|
|
968
|
+
return "publish_gate_blocked:human_game_requires_games_category";
|
|
969
|
+
}
|
|
970
|
+
if (kind === "human_saas" && !category.includes("saas")) {
|
|
971
|
+
return "publish_gate_blocked:human_saas_requires_saas_category";
|
|
972
|
+
}
|
|
973
|
+
return null;
|
|
974
|
+
};
|
|
975
|
+
var runAgentPublishRuntimeCycle = async (input) => {
|
|
976
|
+
const mode = input.mode ?? "enforce";
|
|
977
|
+
const adapter = input.adapter;
|
|
978
|
+
if (!adapter) {
|
|
979
|
+
return {
|
|
980
|
+
mode,
|
|
981
|
+
changed: false,
|
|
982
|
+
attempted: false,
|
|
983
|
+
published: false,
|
|
984
|
+
deployed: false,
|
|
985
|
+
verified: false,
|
|
986
|
+
reason: "no_adapter"
|
|
987
|
+
};
|
|
988
|
+
}
|
|
989
|
+
const prepared = await adapter.prepare();
|
|
990
|
+
if (!prepared.changed || !prepared.candidate) {
|
|
991
|
+
return {
|
|
992
|
+
mode,
|
|
993
|
+
changed: false,
|
|
994
|
+
attempted: false,
|
|
995
|
+
published: false,
|
|
996
|
+
deployed: false,
|
|
997
|
+
verified: false,
|
|
998
|
+
reason: prepared.reason || "no_candidate_change"
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
1001
|
+
const candidate = prepared.candidate;
|
|
1002
|
+
const validate = await adapter.validate({ candidate });
|
|
1003
|
+
if (!validate.passed) {
|
|
1004
|
+
return {
|
|
1005
|
+
mode,
|
|
1006
|
+
changed: true,
|
|
1007
|
+
attempted: true,
|
|
1008
|
+
published: false,
|
|
1009
|
+
deployed: false,
|
|
1010
|
+
verified: false,
|
|
1011
|
+
reason: `validate_failed:${validate.reason || "unknown"}`,
|
|
1012
|
+
candidate,
|
|
1013
|
+
validate
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
if (mode === "observe") {
|
|
1017
|
+
return {
|
|
1018
|
+
mode,
|
|
1019
|
+
changed: true,
|
|
1020
|
+
attempted: true,
|
|
1021
|
+
published: false,
|
|
1022
|
+
deployed: false,
|
|
1023
|
+
verified: false,
|
|
1024
|
+
reason: "observe_mode",
|
|
1025
|
+
candidate,
|
|
1026
|
+
validate
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
const listing = await adapter.publish({ candidate });
|
|
1030
|
+
if (!listing?.listingId) {
|
|
1031
|
+
return {
|
|
1032
|
+
mode,
|
|
1033
|
+
changed: true,
|
|
1034
|
+
attempted: true,
|
|
1035
|
+
published: false,
|
|
1036
|
+
deployed: false,
|
|
1037
|
+
verified: false,
|
|
1038
|
+
reason: "publish_failed:missing_listing_id",
|
|
1039
|
+
candidate,
|
|
1040
|
+
validate,
|
|
1041
|
+
listing
|
|
1042
|
+
};
|
|
1043
|
+
}
|
|
1044
|
+
const gateError = enforcePublishKindGuard(candidate, listing);
|
|
1045
|
+
if (gateError) {
|
|
1046
|
+
return {
|
|
1047
|
+
mode,
|
|
1048
|
+
changed: true,
|
|
1049
|
+
attempted: true,
|
|
1050
|
+
published: false,
|
|
1051
|
+
deployed: false,
|
|
1052
|
+
verified: false,
|
|
1053
|
+
reason: gateError,
|
|
1054
|
+
candidate,
|
|
1055
|
+
validate,
|
|
1056
|
+
listing
|
|
1057
|
+
};
|
|
1058
|
+
}
|
|
1059
|
+
const deploy = await adapter.deploy({ candidate, listing });
|
|
1060
|
+
const deployed = Boolean(deploy && (deploy.productUrl || deploy.deployId));
|
|
1061
|
+
if (!deployed) {
|
|
1062
|
+
return {
|
|
1063
|
+
mode,
|
|
1064
|
+
changed: true,
|
|
1065
|
+
attempted: true,
|
|
1066
|
+
published: true,
|
|
1067
|
+
deployed: false,
|
|
1068
|
+
verified: false,
|
|
1069
|
+
reason: "deploy_failed:missing_deploy_evidence",
|
|
1070
|
+
candidate,
|
|
1071
|
+
validate,
|
|
1072
|
+
listing,
|
|
1073
|
+
deploy
|
|
1074
|
+
};
|
|
1075
|
+
}
|
|
1076
|
+
const verify = await adapter.verify({ candidate, listing, deploy });
|
|
1077
|
+
if (!verify.passed) {
|
|
1078
|
+
return {
|
|
1079
|
+
mode,
|
|
1080
|
+
changed: true,
|
|
1081
|
+
attempted: true,
|
|
1082
|
+
published: true,
|
|
1083
|
+
deployed: true,
|
|
1084
|
+
verified: false,
|
|
1085
|
+
reason: `verify_failed:${verify.reason || "unknown"}`,
|
|
1086
|
+
candidate,
|
|
1087
|
+
validate,
|
|
1088
|
+
listing,
|
|
1089
|
+
deploy,
|
|
1090
|
+
verify
|
|
1091
|
+
};
|
|
1092
|
+
}
|
|
1093
|
+
return {
|
|
1094
|
+
mode,
|
|
1095
|
+
changed: true,
|
|
1096
|
+
attempted: true,
|
|
1097
|
+
published: true,
|
|
1098
|
+
deployed: true,
|
|
1099
|
+
verified: true,
|
|
1100
|
+
reason: "published_deployed_verified",
|
|
1101
|
+
candidate,
|
|
1102
|
+
validate,
|
|
1103
|
+
listing,
|
|
1104
|
+
deploy,
|
|
1105
|
+
verify
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
|
|
953
1109
|
// src/runtimeMigration.ts
|
|
954
1110
|
var buildRuntimeMigrationPlan = (input) => {
|
|
955
1111
|
const blockers = [];
|
|
@@ -1112,7 +1268,7 @@ var ReviewGate = class {
|
|
|
1112
1268
|
var DEFAULT_API_BASE = "https://api.vibeiao.com";
|
|
1113
1269
|
var DEFAULT_WEB_BASE = "https://vibeiao.com";
|
|
1114
1270
|
var DEFAULT_SDK_PACKAGE = "@vibeiao/sdk";
|
|
1115
|
-
var DEFAULT_SDK_VERSION = "0.1.
|
|
1271
|
+
var DEFAULT_SDK_VERSION = "0.1.56" ? "0.1.56" : "0.1.4";
|
|
1116
1272
|
var DEFAULT_SDK_REGISTRY = "https://registry.npmjs.org";
|
|
1117
1273
|
var DEFAULT_SDK_POLICY_PATH = "/v1/sdk/policy";
|
|
1118
1274
|
var DEFAULT_SDK_CHECK_INTERVAL_MS = 1e3 * 60 * 30;
|
|
@@ -1338,11 +1494,11 @@ var extractCreditsFromPayload = (payload, creditsPath) => {
|
|
|
1338
1494
|
return credits;
|
|
1339
1495
|
};
|
|
1340
1496
|
var defaultApiKeyEnvForProvider = (provider) => {
|
|
1341
|
-
const
|
|
1342
|
-
if (
|
|
1343
|
-
if (
|
|
1344
|
-
if (
|
|
1345
|
-
return `${
|
|
1497
|
+
const normalized2 = normalizeProviderName(provider);
|
|
1498
|
+
if (normalized2 === "openrouter") return "OPENROUTER_API_KEY";
|
|
1499
|
+
if (normalized2 === "anthropic") return "ANTHROPIC_API_KEY";
|
|
1500
|
+
if (normalized2 === "gemini") return "GEMINI_API_KEY";
|
|
1501
|
+
return `${normalized2.toUpperCase()}_API_KEY`;
|
|
1346
1502
|
};
|
|
1347
1503
|
var providerConfigError = (providerName, detail, nextStep) => `provider_config_error:${providerName}:${detail}. ${nextStep}`;
|
|
1348
1504
|
var providerFetchError = (providerName, detail) => `provider_fetch_failed:${providerName}:${detail}`;
|
|
@@ -2324,6 +2480,7 @@ export {
|
|
|
2324
2480
|
runAdaptiveReflectionCycle,
|
|
2325
2481
|
runAgentLaunchRuntime,
|
|
2326
2482
|
runAgentLaunchRuntimeCycle,
|
|
2483
|
+
runAgentPublishRuntimeCycle,
|
|
2327
2484
|
runAgentReviewRuntimeCycle,
|
|
2328
2485
|
runExecutionAdapter,
|
|
2329
2486
|
runMarketDiscovery,
|
|
@@ -1162,6 +1162,77 @@ type AgentLaunchRuntimeResult = {
|
|
|
1162
1162
|
declare const runAgentLaunchRuntime: (options: AgentLaunchRuntimeOptions) => Promise<AgentLaunchRuntimeResult>;
|
|
1163
1163
|
declare const runAgentLaunchRuntimeCycle: (options: AgentLaunchRuntimeOptions) => Promise<AgentLaunchRuntimeResult>;
|
|
1164
1164
|
|
|
1165
|
+
type PublishRuntimeMode = 'observe' | 'enforce';
|
|
1166
|
+
type PublishProductKind = 'agent_app' | 'human_game' | 'human_saas';
|
|
1167
|
+
type PublishListingType = 'agent' | 'human';
|
|
1168
|
+
type PublishCandidate = {
|
|
1169
|
+
id: string;
|
|
1170
|
+
dir?: string;
|
|
1171
|
+
meta?: Record<string, unknown>;
|
|
1172
|
+
productKind?: PublishProductKind;
|
|
1173
|
+
};
|
|
1174
|
+
type PublishPrepareResult = {
|
|
1175
|
+
changed: boolean;
|
|
1176
|
+
candidate?: PublishCandidate;
|
|
1177
|
+
reason?: string;
|
|
1178
|
+
};
|
|
1179
|
+
type PublishValidateResult = {
|
|
1180
|
+
passed: boolean;
|
|
1181
|
+
reason?: string;
|
|
1182
|
+
metrics?: Record<string, number | string | boolean>;
|
|
1183
|
+
};
|
|
1184
|
+
type PublishListingResult = {
|
|
1185
|
+
listingId: string;
|
|
1186
|
+
claimId?: string;
|
|
1187
|
+
listingType?: PublishListingType;
|
|
1188
|
+
category?: string;
|
|
1189
|
+
};
|
|
1190
|
+
type PublishDeployResult = {
|
|
1191
|
+
productUrl?: string;
|
|
1192
|
+
deployId?: string;
|
|
1193
|
+
};
|
|
1194
|
+
type PublishVerifyResult = {
|
|
1195
|
+
passed: boolean;
|
|
1196
|
+
reason?: string;
|
|
1197
|
+
metrics?: Record<string, number | string | boolean>;
|
|
1198
|
+
};
|
|
1199
|
+
interface PublishRuntimeAdapter {
|
|
1200
|
+
prepare: () => Promise<PublishPrepareResult> | PublishPrepareResult;
|
|
1201
|
+
validate: (input: {
|
|
1202
|
+
candidate: PublishCandidate;
|
|
1203
|
+
}) => Promise<PublishValidateResult> | PublishValidateResult;
|
|
1204
|
+
publish: (input: {
|
|
1205
|
+
candidate: PublishCandidate;
|
|
1206
|
+
}) => Promise<PublishListingResult> | PublishListingResult;
|
|
1207
|
+
deploy: (input: {
|
|
1208
|
+
candidate: PublishCandidate;
|
|
1209
|
+
listing: PublishListingResult;
|
|
1210
|
+
}) => Promise<PublishDeployResult> | PublishDeployResult;
|
|
1211
|
+
verify: (input: {
|
|
1212
|
+
candidate: PublishCandidate;
|
|
1213
|
+
listing: PublishListingResult;
|
|
1214
|
+
deploy: PublishDeployResult;
|
|
1215
|
+
}) => Promise<PublishVerifyResult> | PublishVerifyResult;
|
|
1216
|
+
}
|
|
1217
|
+
type PublishRuntimeResult = {
|
|
1218
|
+
mode: PublishRuntimeMode;
|
|
1219
|
+
changed: boolean;
|
|
1220
|
+
attempted: boolean;
|
|
1221
|
+
published: boolean;
|
|
1222
|
+
deployed: boolean;
|
|
1223
|
+
verified: boolean;
|
|
1224
|
+
reason: string;
|
|
1225
|
+
candidate?: PublishCandidate;
|
|
1226
|
+
validate?: PublishValidateResult;
|
|
1227
|
+
listing?: PublishListingResult;
|
|
1228
|
+
deploy?: PublishDeployResult;
|
|
1229
|
+
verify?: PublishVerifyResult;
|
|
1230
|
+
};
|
|
1231
|
+
declare const runAgentPublishRuntimeCycle: (input: {
|
|
1232
|
+
mode?: PublishRuntimeMode;
|
|
1233
|
+
adapter?: PublishRuntimeAdapter;
|
|
1234
|
+
}) => Promise<PublishRuntimeResult>;
|
|
1235
|
+
|
|
1165
1236
|
type RuntimeMigrationInput = {
|
|
1166
1237
|
profile: AdapterPackKind;
|
|
1167
1238
|
listingId: string;
|
|
@@ -1655,4 +1726,4 @@ declare const getResourceSnapshot: (options: {
|
|
|
1655
1726
|
apiBase?: string;
|
|
1656
1727
|
}) => Promise<ResourceSnapshot>;
|
|
1657
1728
|
|
|
1658
|
-
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,
|
|
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 };
|