Compare commits

..

No commits in common. "unsandbox-tools-gaps" and "main" have entirely different histories.

3 changed files with 1 additions and 1179 deletions

View file

@ -3,10 +3,6 @@
* This file provides metadata for the blocks validator * This file provides metadata for the blocks validator
*/ */
import { import {
addContact,
boostSession,
checkServicePort,
cloneImage,
cloneSnapshot, cloneSnapshot,
// Service tools // Service tools
createService, createService,
@ -27,20 +23,15 @@ import {
executeCodeAsync, executeCodeAsync,
executeInService, executeInService,
executeInSession, executeInSession,
exportServiceEnv,
extendSession,
freezeService, freezeService,
freezeSession, freezeSession,
getAuditLog,
getClusterStatus, getClusterStatus,
getImage, getImage,
getImageTrustedKeys, getImageTrustedKeys,
// Job tools // Job tools
getJob, getJob,
getKeyInfo,
// Languages tools // Languages tools
getLanguages, getLanguages,
getPoolStats,
getService, getService,
getServiceEnv, getServiceEnv,
getServiceLogs, getServiceLogs,
@ -48,55 +39,37 @@ import {
getShells, getShells,
getSnapshot, getSnapshot,
getSystemStats, getSystemStats,
getUpgradeLogs,
getUpgradeProgress,
grantImageAccess, grantImageAccess,
// System tools // System tools
healthCheck, healthCheck,
listContacts,
listImages, listImages,
listJobs, listJobs,
listOwnedImages,
listPools, listPools,
listPublicImages,
listServices, listServices,
listSessions, listSessions,
listSharedImages,
listSnapshots, listSnapshots,
listTokens,
lockImage, lockImage,
lockService, lockService,
lockSession, lockSession,
lockSnapshot, lockSnapshot,
mintToken,
// Image tools // Image tools
publishImage, publishImage,
redeployService, redeployService,
removeContact,
restoreService,
restoreSession, restoreSession,
restoreSnapshot, restoreSnapshot,
revokeImageAccess, revokeImageAccess,
revokeToken,
run, run,
runAsync, runAsync,
setImageVisibility, setImageVisibility,
setServiceEnv, setServiceEnv,
spawnFromImage, spawnFromImage,
transferImage, transferImage,
unboostSession,
unfreezeService, unfreezeService,
unfreezeSession, unfreezeSession,
unlockImage, unlockImage,
unlockService, unlockService,
unlockSession, unlockSession,
unlockSnapshot, unlockSnapshot,
updateContact,
updateKeySettings,
updateService,
updateServiceDomains,
// API Key tools
validateKey,
} from './src/index.js'; } from './src/index.js';
export const block = { export const block = {
@ -127,9 +100,6 @@ export const block = {
createSessionSnapshot, createSessionSnapshot,
restoreSession, restoreSession,
deleteSession, deleteSession,
extendSession,
boostSession,
unboostSession,
// Service tools // Service tools
createService, createService,
getService, getService,
@ -146,13 +116,6 @@ export const block = {
setServiceEnv, setServiceEnv,
deleteServiceEnv, deleteServiceEnv,
deleteService, deleteService,
updateService,
checkServicePort,
getUpgradeProgress,
getUpgradeLogs,
updateServiceDomains,
exportServiceEnv,
restoreService,
// Snapshot tools // Snapshot tools
createSnapshot, createSnapshot,
getSnapshot, getSnapshot,
@ -175,29 +138,11 @@ export const block = {
spawnFromImage, spawnFromImage,
getImageTrustedKeys, getImageTrustedKeys,
deleteImage, deleteImage,
listOwnedImages,
listSharedImages,
listPublicImages,
cloneImage,
// System tools // System tools
healthCheck, healthCheck,
getClusterStatus, getClusterStatus,
getSystemStats, getSystemStats,
listPools, listPools,
getPoolStats,
// API Key tools
validateKey,
getKeyInfo,
updateKeySettings,
listContacts,
addContact,
updateContact,
removeContact,
getAuditLog,
// Live Token tools
mintToken,
revokeToken,
listTokens,
}, },
}; };

View file

@ -126,21 +126,6 @@
"name": "deleteSession", "name": "deleteSession",
"description": "Delete a session and release all associated resources." "description": "Delete a session and release all associated resources."
}, },
{
"name": "extendSession",
"description": "Add additional time to a session's TTL.",
"healthCheck": { "skipExecution": true }
},
{
"name": "boostSession",
"description": "Increase session vCPU and memory. Each vCPU includes 2GB RAM.",
"healthCheck": { "skipExecution": true }
},
{
"name": "unboostSession",
"description": "Return session to base vCPU and memory allocation.",
"healthCheck": { "skipExecution": true }
},
{ {
"name": "createService", "name": "createService",
"description": "Create a long-running service with persistent state, networking, and auto-restart capabilities." "description": "Create a long-running service with persistent state, networking, and auto-restart capabilities."
@ -201,41 +186,6 @@
"name": "deleteService", "name": "deleteService",
"description": "Delete a service and release all associated resources." "description": "Delete a service and release all associated resources."
}, },
{
"name": "updateService",
"description": "Update service settings: vCPU resize, auto-unfreeze on HTTP, or freeze page display.",
"healthCheck": { "skipExecution": true }
},
{
"name": "checkServicePort",
"description": "Check if a specific port is listening inside the service container.",
"healthCheck": { "skipExecution": true }
},
{
"name": "getUpgradeProgress",
"description": "Get OS upgrade progress including state, percentage, and version chain.",
"healthCheck": { "skipExecution": true }
},
{
"name": "getUpgradeLogs",
"description": "Get OS upgrade log output for a service.",
"healthCheck": { "skipExecution": true }
},
{
"name": "updateServiceDomains",
"description": "Manage custom domain names for a service (replace, add, or remove domains).",
"healthCheck": { "skipExecution": true }
},
{
"name": "exportServiceEnv",
"description": "Export all environment variables as a .env formatted string.",
"healthCheck": { "skipExecution": true }
},
{
"name": "restoreService",
"description": "Restore a service to a previous snapshot state.",
"healthCheck": { "skipExecution": true }
},
{ {
"name": "createSnapshot", "name": "createSnapshot",
"description": "Create a snapshot from any source (session, service, or existing snapshot)." "description": "Create a snapshot from any source (session, service, or existing snapshot)."
@ -316,23 +266,6 @@
"name": "deleteImage", "name": "deleteImage",
"description": "Delete an image and free associated storage." "description": "Delete an image and free associated storage."
}, },
{
"name": "listOwnedImages",
"description": "List only images owned by the authenticated API key."
},
{
"name": "listSharedImages",
"description": "List images shared with you via trusted_keys."
},
{
"name": "listPublicImages",
"description": "List all public images available in the marketplace."
},
{
"name": "cloneImage",
"description": "Create a copy of an image owned by you with private visibility.",
"healthCheck": { "skipExecution": true }
},
{ {
"name": "healthCheck", "name": "healthCheck",
"description": "Check the health status of the Unsandbox API service." "description": "Check the health status of the Unsandbox API service."
@ -348,64 +281,6 @@
{ {
"name": "listPools", "name": "listPools",
"description": "List available execution pools with their configurations and current status." "description": "List available execution pools with their configurations and current status."
},
{
"name": "getPoolStats",
"description": "Get detailed stats for a specific pool including load, memory, and network breakdown.",
"healthCheck": { "skipExecution": true }
},
{
"name": "validateKey",
"description": "Validate API key pair and retrieve rate limits, concurrency, and expiration."
},
{
"name": "getKeyInfo",
"description": "Get metadata for the authenticated API key including email, tier, and contacts."
},
{
"name": "updateKeySettings",
"description": "Update email or sudo settings for the authenticated API key.",
"healthCheck": { "skipExecution": true }
},
{
"name": "listContacts",
"description": "List all contacts associated with the authenticated API key."
},
{
"name": "addContact",
"description": "Add a contact with role (owner, operator, reader). Sends invitation email.",
"healthCheck": { "skipExecution": true }
},
{
"name": "updateContact",
"description": "Change a contact's role. Only owners can manage contacts.",
"healthCheck": { "skipExecution": true }
},
{
"name": "removeContact",
"description": "Remove a contact from the API key.",
"healthCheck": { "skipExecution": true }
},
{
"name": "getAuditLog",
"description": "Retrieve audit log entries for all major operations on the API key."
},
{
"name": "mintToken",
"description": "Create a short-lived token for client-side use (e.g., browser WebSocket).",
"healthCheck": {
"testParams": {},
"cleanup": [{ "tool": "revokeToken", "mapping": { "token": "token" } }]
}
},
{
"name": "revokeToken",
"description": "Immediately invalidate a previously minted live token.",
"healthCheck": { "skipExecution": true }
},
{
"name": "listTokens",
"description": "List all active live tokens for the authenticated API key."
} }
] ]
}, },

File diff suppressed because it is too large Load diff