botinabox 2.9.0 → 2.9.2
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/README.md +2 -1
- package/dist/channels/discord/adapter.d.ts +32 -0
- package/dist/channels/discord/inbound.d.ts +25 -0
- package/dist/channels/discord/index.d.ts +8 -84
- package/dist/channels/discord/models.d.ts +8 -0
- package/dist/channels/discord/outbound.d.ts +14 -0
- package/dist/channels/slack/adapter.d.ts +33 -0
- package/dist/channels/slack/bolt-adapter.d.ts +31 -0
- package/dist/channels/slack/enrichers/enrich.d.ts +12 -0
- package/dist/channels/slack/enrichers/image-enricher.d.ts +10 -0
- package/dist/channels/slack/enrichers/index.d.ts +4 -0
- package/dist/channels/slack/enrichers/pdf-enricher.d.ts +8 -0
- package/dist/channels/slack/enrichers/types.d.ts +33 -0
- package/dist/channels/slack/inbound.d.ts +59 -0
- package/dist/channels/slack/index.d.ts +13 -252
- package/dist/channels/slack/index.js +6 -2
- package/dist/channels/slack/media-type.d.ts +14 -0
- package/dist/channels/slack/models.d.ts +9 -0
- package/dist/channels/slack/outbound.d.ts +12 -0
- package/dist/channels/slack/transcribe.d.ts +41 -0
- package/dist/channels/webhook/adapter.d.ts +23 -0
- package/dist/channels/webhook/hmac.d.ts +13 -0
- package/dist/channels/webhook/index.d.ts +7 -70
- package/dist/channels/webhook/models.d.ts +9 -0
- package/dist/channels/webhook/server.d.ts +20 -0
- package/dist/cli/templates/config.yml.d.ts +7 -0
- package/dist/cli/templates/env.d.ts +1 -0
- package/dist/cli/templates/index.ts.d.ts +2 -0
- package/dist/cli/templates/package.json.d.ts +5 -0
- package/dist/cli.d.ts +1 -3
- package/dist/connectors/google/calendar-connector.d.ts +40 -0
- package/dist/connectors/google/drive-connector.d.ts +43 -0
- package/dist/connectors/google/drive-read.d.ts +81 -0
- package/dist/connectors/google/gmail-connector.d.ts +42 -0
- package/dist/connectors/google/index.d.ts +10 -369
- package/dist/connectors/google/oauth.d.ts +48 -0
- package/dist/connectors/google/types.d.ts +110 -0
- package/dist/core/chat/auto-discovery.d.ts +16 -0
- package/dist/core/chat/channel-registry.d.ts +45 -0
- package/dist/core/chat/chat-pipeline-v2.d.ts +138 -0
- package/dist/core/chat/chat-pipeline.d.ts +116 -0
- package/dist/core/chat/chat-responder.d.ts +94 -0
- package/dist/core/chat/formatter.d.ts +11 -0
- package/dist/core/chat/index.d.ts +26 -0
- package/dist/core/chat/message-interpreter.d.ts +91 -0
- package/dist/core/chat/message-store.d.ts +71 -0
- package/dist/core/chat/notification-queue.d.ts +34 -0
- package/dist/core/chat/pipeline.d.ts +38 -0
- package/dist/core/chat/policies.d.ts +16 -0
- package/dist/core/chat/routing.d.ts +17 -0
- package/dist/core/chat/session-key.d.ts +30 -0
- package/dist/core/chat/session-manager.d.ts +17 -0
- package/dist/core/chat/text-chunker.d.ts +9 -0
- package/dist/core/chat/triage-router.d.ts +75 -0
- package/dist/core/chat/types.d.ts +5 -0
- package/dist/core/config/defaults.d.ts +2 -0
- package/dist/core/config/index.d.ts +6 -0
- package/dist/core/config/interpolate.d.ts +5 -0
- package/dist/core/config/loader.d.ts +24 -0
- package/dist/core/config/schema.d.ts +5 -0
- package/dist/core/data/context-builder.d.ts +27 -0
- package/dist/core/data/core-entity-contexts.d.ts +14 -0
- package/dist/core/data/core-migrations.d.ts +5 -0
- package/dist/core/data/core-schema.d.ts +6 -0
- package/dist/core/data/data-store.d.ts +67 -0
- package/dist/core/data/domain-entity-contexts.d.ts +35 -0
- package/dist/core/data/domain-schema.d.ts +36 -0
- package/dist/core/data/index.d.ts +8 -0
- package/dist/core/data/types.d.ts +111 -0
- package/dist/core/hooks/hook-bus.d.ts +24 -0
- package/dist/core/hooks/index.d.ts +2 -0
- package/dist/core/hooks/types.d.ts +19 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/llm/auto-discovery.d.ts +11 -0
- package/dist/core/llm/cost-tracker.d.ts +6 -0
- package/dist/core/llm/default-llm-call.d.ts +35 -0
- package/dist/core/llm/index.d.ts +6 -0
- package/dist/core/llm/model-router.d.ts +25 -0
- package/dist/core/llm/provider-registry.d.ts +9 -0
- package/dist/core/llm/types.d.ts +2 -0
- package/dist/core/orchestrator/adapters/api-adapter.d.ts +34 -0
- package/dist/core/orchestrator/adapters/cli-adapter.d.ts +62 -0
- package/dist/core/orchestrator/adapters/deterministic-adapter.d.ts +35 -0
- package/dist/core/orchestrator/adapters/env-whitelist.d.ts +4 -0
- package/dist/core/orchestrator/adapters/output-extractor.d.ts +11 -0
- package/dist/core/orchestrator/adapters/process-manager.d.ts +15 -0
- package/dist/core/orchestrator/adapters/tool-loop.d.ts +22 -0
- package/dist/core/orchestrator/agent-registry.d.ts +31 -0
- package/dist/core/orchestrator/budget-controller.d.ts +19 -0
- package/dist/core/orchestrator/chain-guard.d.ts +14 -0
- package/dist/core/orchestrator/circuit-breaker.d.ts +65 -0
- package/dist/core/orchestrator/claude-stream-parser.d.ts +31 -0
- package/dist/core/orchestrator/config-revisions.d.ts +6 -0
- package/dist/core/orchestrator/dependency-resolver.d.ts +20 -0
- package/dist/core/orchestrator/execution-engine.d.ts +99 -0
- package/dist/core/orchestrator/governance-gate.d.ts +110 -0
- package/dist/core/orchestrator/learning-pipeline.d.ts +112 -0
- package/dist/core/orchestrator/loop-detector.d.ts +51 -0
- package/dist/core/orchestrator/ndjson-logger.d.ts +6 -0
- package/dist/core/orchestrator/permission-relay.d.ts +72 -0
- package/dist/core/orchestrator/run-manager.d.ts +31 -0
- package/dist/core/orchestrator/scheduler.d.ts +74 -0
- package/dist/core/orchestrator/secret-store.d.ts +57 -0
- package/dist/core/orchestrator/session-manager.d.ts +13 -0
- package/dist/core/orchestrator/task-queue.d.ts +34 -0
- package/dist/core/orchestrator/template-interpolate.d.ts +5 -0
- package/dist/core/orchestrator/tools/file-ops.d.ts +12 -0
- package/dist/core/orchestrator/tools/index.d.ts +47 -0
- package/dist/core/orchestrator/tools/management.d.ts +12 -0
- package/dist/core/orchestrator/tools/messaging.d.ts +21 -0
- package/dist/core/orchestrator/tools/read-file.d.ts +5 -0
- package/dist/core/orchestrator/tools/resolve-agent.d.ts +9 -0
- package/dist/core/orchestrator/tools/roster.d.ts +16 -0
- package/dist/core/orchestrator/tools/send-file.d.ts +5 -0
- package/dist/core/orchestrator/tools/status.d.ts +20 -0
- package/dist/core/orchestrator/tools/task-ops.d.ts +13 -0
- package/dist/core/orchestrator/user-registry.d.ts +47 -0
- package/dist/core/orchestrator/wakeup-queue.d.ts +9 -0
- package/dist/core/orchestrator/workflow-engine.d.ts +47 -0
- package/dist/core/security/audit.d.ts +20 -0
- package/dist/core/security/column-validator.d.ts +20 -0
- package/dist/core/security/index.d.ts +5 -0
- package/dist/core/security/process-env.d.ts +13 -0
- package/dist/core/security/sanitizer.d.ts +11 -0
- package/dist/core/security/types.d.ts +11 -0
- package/dist/core/update/auto-update.d.ts +21 -0
- package/dist/core/update/backup-manager.d.ts +7 -0
- package/dist/core/update/index.d.ts +8 -0
- package/dist/core/update/migration-hooks.d.ts +11 -0
- package/dist/core/update/types.d.ts +11 -0
- package/dist/core/update/update-checker.d.ts +11 -0
- package/dist/core/update/update-manager.d.ts +25 -0
- package/dist/core/update/version-utils.d.ts +6 -0
- package/dist/index.d.ts +38 -2366
- package/dist/index.js +112 -5
- package/dist/providers/anthropic/index.d.ts +5 -20
- package/dist/providers/anthropic/models.d.ts +2 -0
- package/dist/providers/anthropic/provider.d.ts +13 -0
- package/dist/providers/anthropic/tool-converter.d.ts +10 -0
- package/dist/providers/ollama/index.d.ts +4 -22
- package/dist/providers/ollama/provider.d.ts +17 -0
- package/dist/providers/openai/index.d.ts +5 -20
- package/dist/providers/openai/models.d.ts +2 -0
- package/dist/providers/openai/provider.d.ts +13 -0
- package/dist/providers/openai/tool-converter.d.ts +10 -0
- package/dist/shared/constants.d.ts +50 -0
- package/dist/shared/index.d.ts +14 -0
- package/dist/shared/types/agent.d.ts +36 -0
- package/dist/shared/types/channel.d.ts +78 -0
- package/dist/shared/types/config.d.ts +160 -0
- package/dist/shared/types/connector.d.ts +77 -0
- package/dist/shared/types/execution.d.ts +29 -0
- package/dist/shared/types/provider.d.ts +87 -0
- package/dist/shared/types/task.d.ts +47 -0
- package/dist/shared/types/workflow.d.ts +39 -0
- package/dist/shared/utils.d.ts +6 -0
- package/dist/update-check.d.ts +5 -0
- package/package.json +2 -2
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/** Connector types — generic external service integrations. */
|
|
2
|
+
export interface ConnectorMeta {
|
|
3
|
+
displayName: string;
|
|
4
|
+
/** Provider identifier, e.g. "google", "trello", "jira", "salesforce" */
|
|
5
|
+
provider: string;
|
|
6
|
+
/** Data type this connector handles, e.g. "email", "calendar", "board", "crm" */
|
|
7
|
+
dataType: string;
|
|
8
|
+
}
|
|
9
|
+
export interface SyncOptions {
|
|
10
|
+
/** Only sync records after this ISO 8601 timestamp */
|
|
11
|
+
since?: string;
|
|
12
|
+
/** Provider-specific incremental sync token */
|
|
13
|
+
cursor?: string;
|
|
14
|
+
/** Maximum number of records to fetch */
|
|
15
|
+
limit?: number;
|
|
16
|
+
/** Provider-specific query filters */
|
|
17
|
+
filters?: Record<string, unknown>;
|
|
18
|
+
}
|
|
19
|
+
export interface SyncResult<T = Record<string, unknown>> {
|
|
20
|
+
/** Typed records produced by the connector — consumer decides where to store */
|
|
21
|
+
records: T[];
|
|
22
|
+
/** Next incremental sync token (persist for future calls) */
|
|
23
|
+
cursor?: string;
|
|
24
|
+
/** Whether more records are available (pagination) */
|
|
25
|
+
hasMore: boolean;
|
|
26
|
+
/** Errors encountered during sync (non-fatal per-record failures) */
|
|
27
|
+
errors: Array<{
|
|
28
|
+
id?: string;
|
|
29
|
+
error: string;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
export interface PushResult {
|
|
33
|
+
success: boolean;
|
|
34
|
+
externalId?: string;
|
|
35
|
+
error?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface AuthResult {
|
|
38
|
+
success: boolean;
|
|
39
|
+
account?: string;
|
|
40
|
+
/** URL the user must visit to authorize (for OAuth flows) */
|
|
41
|
+
authUrl?: string;
|
|
42
|
+
error?: string;
|
|
43
|
+
}
|
|
44
|
+
export type ConnectorConfig = Record<string, unknown>;
|
|
45
|
+
/**
|
|
46
|
+
* Generic connector interface for external service integrations.
|
|
47
|
+
*
|
|
48
|
+
* Connectors pull and optionally push data to/from external services
|
|
49
|
+
* (Gmail, Calendar, Trello, Jira, Salesforce, etc.). They produce
|
|
50
|
+
* typed records — the consuming application decides where to store them.
|
|
51
|
+
*
|
|
52
|
+
* @typeParam T - The record type this connector produces/consumes.
|
|
53
|
+
*/
|
|
54
|
+
export interface Connector<T = Record<string, unknown>> {
|
|
55
|
+
readonly id: string;
|
|
56
|
+
readonly meta: ConnectorMeta;
|
|
57
|
+
connect(config: ConnectorConfig): Promise<void>;
|
|
58
|
+
disconnect(): Promise<void>;
|
|
59
|
+
healthCheck(): Promise<{
|
|
60
|
+
ok: boolean;
|
|
61
|
+
account?: string;
|
|
62
|
+
error?: string;
|
|
63
|
+
}>;
|
|
64
|
+
/** Pull records from external source */
|
|
65
|
+
sync(options?: SyncOptions): Promise<SyncResult<T>>;
|
|
66
|
+
/** Push a record to external source (optional) */
|
|
67
|
+
push?(payload: T): Promise<PushResult>;
|
|
68
|
+
/**
|
|
69
|
+
* Run the authentication/authorization flow for this connector.
|
|
70
|
+
* For OAuth connectors, this generates the auth URL and exchanges the code for tokens.
|
|
71
|
+
*
|
|
72
|
+
* @param codeProvider - called with the auth URL; must return the authorization code.
|
|
73
|
+
* For CLI flows, this prints the URL and reads from stdin.
|
|
74
|
+
* For programmatic flows, the caller handles the redirect.
|
|
75
|
+
*/
|
|
76
|
+
authenticate?(codeProvider: (authUrl: string) => Promise<string>): Promise<AuthResult>;
|
|
77
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** Execution adapter types — Story 1.5 / 3.4 / 3.5 */
|
|
2
|
+
export type RunStatus = "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3
|
+
export interface RunContext {
|
|
4
|
+
runId: string;
|
|
5
|
+
agentId: string;
|
|
6
|
+
agentSlug: string;
|
|
7
|
+
taskId?: string;
|
|
8
|
+
taskTitle?: string;
|
|
9
|
+
taskDescription?: string;
|
|
10
|
+
model: string;
|
|
11
|
+
workdir: string;
|
|
12
|
+
sessionParams?: unknown;
|
|
13
|
+
abortSignal?: AbortSignal;
|
|
14
|
+
onLog?: (line: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export interface RunResult {
|
|
17
|
+
status: "succeeded" | "failed";
|
|
18
|
+
output?: string;
|
|
19
|
+
error?: string;
|
|
20
|
+
usage?: import("./provider.js").TokenUsage;
|
|
21
|
+
costCents?: number;
|
|
22
|
+
sessionParams?: unknown;
|
|
23
|
+
clearSession?: boolean;
|
|
24
|
+
durationMs: number;
|
|
25
|
+
}
|
|
26
|
+
export interface ExecutionAdapter {
|
|
27
|
+
id: string;
|
|
28
|
+
execute(ctx: RunContext): Promise<RunResult>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/** LLM provider types — Story 1.5 / 2.1 */
|
|
2
|
+
export interface ToolDefinition {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
parameters: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
export interface ChatMessage {
|
|
8
|
+
role: "user" | "assistant" | "system";
|
|
9
|
+
content: string | ContentBlock[];
|
|
10
|
+
}
|
|
11
|
+
export type ContentBlock = {
|
|
12
|
+
type: "text";
|
|
13
|
+
text: string;
|
|
14
|
+
} | {
|
|
15
|
+
type: "tool_use";
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
input: unknown;
|
|
19
|
+
} | {
|
|
20
|
+
type: "tool_result";
|
|
21
|
+
tool_use_id: string;
|
|
22
|
+
content: string;
|
|
23
|
+
} | {
|
|
24
|
+
type: "image";
|
|
25
|
+
source: {
|
|
26
|
+
type: "base64";
|
|
27
|
+
media_type: string;
|
|
28
|
+
data: string;
|
|
29
|
+
};
|
|
30
|
+
} | {
|
|
31
|
+
type: "document";
|
|
32
|
+
source: {
|
|
33
|
+
type: "base64";
|
|
34
|
+
media_type: "application/pdf";
|
|
35
|
+
data: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export interface ChatParams {
|
|
39
|
+
messages: ChatMessage[];
|
|
40
|
+
system?: string;
|
|
41
|
+
tools?: ToolDefinition[];
|
|
42
|
+
maxTokens?: number;
|
|
43
|
+
temperature?: number;
|
|
44
|
+
model: string;
|
|
45
|
+
abortSignal?: AbortSignal;
|
|
46
|
+
}
|
|
47
|
+
export interface TokenUsage {
|
|
48
|
+
inputTokens: number;
|
|
49
|
+
outputTokens: number;
|
|
50
|
+
cacheReadTokens?: number;
|
|
51
|
+
cacheWriteTokens?: number;
|
|
52
|
+
}
|
|
53
|
+
export interface ChatResult {
|
|
54
|
+
content: string;
|
|
55
|
+
toolUses?: ToolUse[];
|
|
56
|
+
usage: TokenUsage;
|
|
57
|
+
model: string;
|
|
58
|
+
stopReason: "end_turn" | "tool_use" | "max_tokens" | "stop_sequence";
|
|
59
|
+
}
|
|
60
|
+
export interface ToolUse {
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
input: unknown;
|
|
64
|
+
}
|
|
65
|
+
export interface ModelInfo {
|
|
66
|
+
id: string;
|
|
67
|
+
displayName: string;
|
|
68
|
+
contextWindow: number;
|
|
69
|
+
maxOutputTokens: number;
|
|
70
|
+
capabilities: Array<"chat" | "tools" | "vision" | "streaming">;
|
|
71
|
+
/** Cost in micro-cents per 1M tokens */
|
|
72
|
+
inputCostPerMToken?: number;
|
|
73
|
+
outputCostPerMToken?: number;
|
|
74
|
+
}
|
|
75
|
+
export interface ResolvedModel {
|
|
76
|
+
provider: string;
|
|
77
|
+
model: string;
|
|
78
|
+
}
|
|
79
|
+
export interface LLMProvider {
|
|
80
|
+
id: string;
|
|
81
|
+
displayName: string;
|
|
82
|
+
models: ModelInfo[];
|
|
83
|
+
chat(params: ChatParams): Promise<ChatResult>;
|
|
84
|
+
chatStream(params: ChatParams): AsyncGenerator<string, ChatResult, unknown>;
|
|
85
|
+
/** Convert ToolDefinition[] to provider-native format */
|
|
86
|
+
serializeTools(tools: ToolDefinition[]): unknown;
|
|
87
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** Task types — Story 1.5 / 3.2 */
|
|
2
|
+
export type TaskStatus = "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
|
|
3
|
+
export interface RetryPolicy {
|
|
4
|
+
maxRetries: number;
|
|
5
|
+
backoffMs: number;
|
|
6
|
+
backoffMultiplier: number;
|
|
7
|
+
maxBackoffMs: number;
|
|
8
|
+
}
|
|
9
|
+
export interface TaskDefinition {
|
|
10
|
+
title: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
assigneeId?: string;
|
|
13
|
+
priority?: number;
|
|
14
|
+
parentId?: string;
|
|
15
|
+
dependsOn?: string[];
|
|
16
|
+
followupAgentId?: string;
|
|
17
|
+
followupTemplate?: string;
|
|
18
|
+
chainOriginId?: string;
|
|
19
|
+
chainDepth?: number;
|
|
20
|
+
retryPolicy?: RetryPolicy;
|
|
21
|
+
metadata?: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
export interface TaskRecord extends Required<Pick<TaskDefinition, "title" | "priority">> {
|
|
24
|
+
id: string;
|
|
25
|
+
description: string;
|
|
26
|
+
assigneeId?: string;
|
|
27
|
+
status: TaskStatus;
|
|
28
|
+
priority: number;
|
|
29
|
+
parentId?: string;
|
|
30
|
+
dependsOn: string[];
|
|
31
|
+
followupAgentId?: string;
|
|
32
|
+
followupTemplate?: string;
|
|
33
|
+
chainOriginId?: string;
|
|
34
|
+
chainDepth: number;
|
|
35
|
+
retryPolicy?: RetryPolicy;
|
|
36
|
+
retryCount: number;
|
|
37
|
+
maxRetries: number;
|
|
38
|
+
nextRetryAt?: string;
|
|
39
|
+
executionRunId?: string;
|
|
40
|
+
result?: string;
|
|
41
|
+
completedOutput?: string;
|
|
42
|
+
metadata?: Record<string, unknown>;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
completedAt?: string;
|
|
46
|
+
deletedAt?: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** Workflow types — Story 1.5 / 5.1 */
|
|
2
|
+
export type WorkflowRunStatus = "running" | "completed" | "failed" | "cancelled";
|
|
3
|
+
export interface WorkflowStep {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
agentSlug?: string;
|
|
7
|
+
agentResolver?: string;
|
|
8
|
+
taskTemplate: {
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
dependsOn?: string[];
|
|
13
|
+
onComplete?: "next" | "parallel" | "end";
|
|
14
|
+
onFail?: "abort" | "skip" | "retry";
|
|
15
|
+
retryPolicy?: import("./task.js").RetryPolicy;
|
|
16
|
+
condition?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface WorkflowDefinition {
|
|
19
|
+
slug: string;
|
|
20
|
+
name: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
steps: WorkflowStep[];
|
|
23
|
+
trigger?: WorkflowTrigger;
|
|
24
|
+
}
|
|
25
|
+
export interface WorkflowTrigger {
|
|
26
|
+
type: "task_completed" | "event" | "schedule" | "manual";
|
|
27
|
+
filter?: Record<string, unknown>;
|
|
28
|
+
}
|
|
29
|
+
export interface WorkflowRunRecord {
|
|
30
|
+
id: string;
|
|
31
|
+
workflowId: string;
|
|
32
|
+
status: WorkflowRunStatus;
|
|
33
|
+
currentStep: number;
|
|
34
|
+
context: Record<string, unknown>;
|
|
35
|
+
originTaskId?: string;
|
|
36
|
+
startedAt: string;
|
|
37
|
+
finishedAt?: string;
|
|
38
|
+
error?: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check the npm registry for a newer version. Caches results for 24 hours.
|
|
3
|
+
* Returns the latest version string if an update is available, null otherwise.
|
|
4
|
+
*/
|
|
5
|
+
export declare function checkForUpdate(pkgName: string, currentVersion: string): Promise<string | null>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "botinabox",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.2",
|
|
4
4
|
"description": "Bot in a Box — framework for building multi-agent bots",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"node": ">=18"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
|
-
"build": "tsup",
|
|
53
|
+
"build": "tsup && tsc --emitDeclarationOnly",
|
|
54
54
|
"test": "vitest run",
|
|
55
55
|
"typecheck": "tsc --noEmit",
|
|
56
56
|
"check-docs": "echo 'Documentation check passed'",
|