import type { PromptManifest, SkillManifest, SkillMetadata, TaskManifest, WebhookEndpointManifest, WebhookEndpointMetadata, WebhookSubscriberManifest, WorkerManifest, QueueManifest, ConcurrencyLimitManifest } from "../schemas/index.js"; import type { PromptMetadataWithFunctions, TaskMetadataWithFunctions, TaskSchema } from "../types/index.js"; import type { ResourceCatalog } from "./catalog.js"; /** * Sentinel file-context value the runtime workers set around task execution * (via `TaskExecutor.execute`) so that `task()` calls firing during a run — * e.g. as a side effect of `await import(...)` of a module containing a * task definition — register normally instead of hitting the silent-drop * guard in `registerTaskMetadata`. The catalog uses this exact string to * detect "registered during execution" and emit a one-time warning per * task id. The indexer never sets this context, so its behavior is * unchanged. */ export declare const NO_FILE_CONTEXT = ""; export declare class StandardResourceCatalog implements ResourceCatalog { private _taskSchemas; private _taskMetadata; private _taskFunctions; private _taskFileMetadata; private _promptMetadata; private _promptFunctions; private _promptFileMetadata; private _promptSchemas; private _currentFileContext?; private _queueMetadata; private _concurrencyLimitMetadata; private _skillMetadata; private _skillFileMetadata; private _webhookEndpointMetadata; private _webhookEndpointFileMetadata; private _webhookEndpointIdCollisions; private _webhookSubscribers; private _declaredSessionWebhooks; private _claimedSessionWebhooks; private _sentinelContextWarned; private _taskIdCollisions; setCurrentFileContext(filePath: string, entryPoint: string): void; clearCurrentFileContext(): void; listTaskIdCollisions(): Array<{ id: string; filePaths: string[]; }>; registerQueueMetadata(queue: QueueManifest): void; registerConcurrencyLimitMetadata(limit: ConcurrencyLimitManifest): void; registerWorkerManifest(workerManifest: WorkerManifest): void; registerTaskMetadata(task: TaskMetadataWithFunctions): void; updateTaskMetadata(id: string, updates: Partial): void; listTaskManifests(): Array; getTaskSchema(id: string): TaskSchema | undefined; listQueueManifests(): Array; listConcurrencyLimitManifests(): Array; getTaskManifest(id: string): TaskManifest | undefined; getTask(id: string): TaskMetadataWithFunctions | undefined; taskExists(id: string): boolean; registerPromptMetadata(prompt: PromptMetadataWithFunctions): void; getPromptSchema(id: string): TaskSchema | undefined; listPromptManifests(): Array; getPrompt(id: string): PromptMetadataWithFunctions | undefined; registerSkillMetadata(skill: SkillMetadata): void; listSkillManifests(): Array; getSkillManifest(id: string): SkillManifest | undefined; registerWebhookEndpointMetadata(endpoint: WebhookEndpointMetadata): void; listWebhookEndpointIdCollisions(): Array<{ id: string; filePaths: string[]; }>; registerWebhookSubscriber(subscriber: WebhookSubscriberManifest): void; listWebhookSubscribers(): Array; registerDeclaredSessionWebhook(id: string): void; markSessionWebhookClaimed(id: string): void; listUnclaimedSessionWebhooks(): Array; listWebhookEndpointManifests(): Array; getWebhookEndpointManifest(id: string): WebhookEndpointManifest | undefined; disable(): void; }