@roll-agent/runtime 0.27.0 → 1.0.1
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/engine/agent-session.d.ts +8 -5
- package/dist/engine/agent-session.js +1 -1
- package/dist/engine/cancelled-turn-recovery.d.ts +1 -11
- package/dist/engine/capability-manifest.d.ts +3 -3
- package/dist/engine/compaction-checkpoint.d.ts +486 -3903
- package/dist/engine/compaction-checkpoint.js +1 -1
- package/dist/engine/compaction-semantic-state.d.ts +210 -1804
- package/dist/engine/compactor.d.ts +5 -0
- package/dist/engine/compactor.js +1 -1
- package/dist/engine/conversation-engine.d.ts +24 -42
- package/dist/engine/conversation-engine.js +1 -1
- package/dist/engine/explicit-skill-context.d.ts +6 -62
- package/dist/engine/explicit-skill-context.js +1 -1
- package/dist/engine/model-catalog.d.ts +3 -27
- package/dist/engine/request-budget.d.ts +9 -50
- package/dist/host-contracts/agent-host.d.ts +39 -0
- package/dist/host-contracts/agent-host.js +1 -0
- package/dist/host-contracts/index.d.ts +7 -0
- package/dist/host-contracts/index.js +1 -0
- package/dist/host-contracts/runtime-settings.d.ts +68 -0
- package/dist/host-contracts/runtime-settings.js +1 -0
- package/dist/host-contracts/schedule-tools.d.ts +138 -0
- package/dist/host-contracts/schedule-tools.js +1 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +1 -1
- package/dist/interaction/user-input-interaction-manager.d.ts +1 -1
- package/dist/scheduler/calendar.d.ts +13 -51
- package/dist/scheduler/trigger.d.ts +20 -156
- package/dist/server/protocol.d.ts +11 -73
- package/dist/server/runtime-client-interaction-lifecycle.d.ts +2 -2
- package/dist/skills/contracts.d.ts +24 -0
- package/dist/skills/contracts.js +1 -0
- package/dist/skills/index.d.ts +2 -0
- package/dist/skills/index.js +1 -0
- package/dist/skills/invocation.d.ts +29 -0
- package/dist/skills/invocation.js +1 -0
- package/dist/store/semantic-ledger.d.ts +27 -72
- package/dist/store/thread-origin.d.ts +8 -100
- package/dist/store/thread-store.d.ts +3 -3
- package/dist/store/turn-input.d.ts +11 -135
- package/dist/store/turn-input.js +1 -1
- package/dist/tool-bridge/bash-tool.d.ts +1 -13
- package/dist/tool-bridge/build-tools.d.ts +5 -5
- package/dist/tool-bridge/build-tools.js +1 -1
- package/dist/tool-bridge/file-tools/edit-file-tool.d.ts +2 -24
- package/dist/tool-bridge/file-tools/glob-tool.d.ts +1 -7
- package/dist/tool-bridge/file-tools/grep-tool.d.ts +1 -15
- package/dist/tool-bridge/file-tools/list-dir-tool.d.ts +1 -5
- package/dist/tool-bridge/file-tools/read-file-tool.d.ts +1 -9
- package/dist/tool-bridge/file-tools/verify-file-tool.d.ts +5 -8
- package/dist/tool-bridge/file-tools/write-file-tool.d.ts +1 -7
- package/dist/tool-bridge/model-input-schema.d.ts +3 -0
- package/dist/tool-bridge/model-input-schema.js +1 -0
- package/dist/tool-bridge/naming.d.ts +2 -2
- package/dist/tool-bridge/normalize-result.js +1 -1
- package/dist/tool-bridge/observation-recall-tool.d.ts +1 -9
- package/dist/tool-bridge/schedule-create-input.d.ts +9 -75
- package/dist/tool-bridge/schedule-tool.d.ts +1 -1
- package/dist/tool-bridge/schedule-tool.js +1 -1
- package/dist/tool-bridge/session-exec-tool.d.ts +3 -23
- package/dist/tool-bridge/skill-tool.d.ts +2 -8
- package/dist/tool-bridge/skill-tool.js +1 -1
- package/dist/tool-bridge/tool-approval-continuation.d.ts +1 -1
- package/dist/tool-bridge/tool-approval-continuation.js +1 -1
- package/dist/tool-bridge/tool-execution-coordinator.d.ts +3 -26
- package/dist/tool-bridge/tool-execution-coordinator.js +1 -1
- package/dist/tool-bridge/transcript-tool.d.ts +7 -35
- package/dist/tool-bridge/user-input-tool.js +1 -1
- package/dist/tool-contracts/agent-types.d.ts +32 -0
- package/dist/tool-contracts/agent-types.js +1 -0
- package/dist/tool-contracts/execution-timeout.d.ts +2 -0
- package/dist/tool-contracts/execution-timeout.js +1 -0
- package/dist/tool-contracts/index.d.ts +8 -0
- package/dist/tool-contracts/index.js +1 -0
- package/dist/tool-contracts/issues.d.ts +22 -0
- package/dist/tool-contracts/issues.js +1 -0
- package/dist/tool-contracts/json-schema-refs.d.ts +19 -0
- package/dist/tool-contracts/json-schema-refs.js +1 -0
- package/dist/tool-contracts/preflight.d.ts +16 -0
- package/dist/tool-contracts/preflight.js +1 -0
- package/dist/tool-contracts/resource-hints.d.ts +26 -0
- package/dist/tool-contracts/resource-hints.js +1 -0
- package/dist/tool-contracts/results.d.ts +7 -0
- package/dist/tool-contracts/results.js +1 -0
- package/dist/tool-contracts/schema.d.ts +13 -0
- package/dist/tool-contracts/schema.js +1 -0
- package/dist/types/cancellation.d.ts +6 -10
- package/dist/types/events.d.ts +12 -0
- package/dist/types/events.js +1 -1
- package/package.json +17 -6
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RUNTIME_COMPACTION_STRATEGIES: readonly ["summarize", "truncate"];
|
|
3
|
+
export declare const runtimeCompactionSettingsSchema: z.ZodObject<{
|
|
4
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
+
strategy: z.ZodDefault<z.ZodEnum<{
|
|
6
|
+
summarize: "summarize";
|
|
7
|
+
truncate: "truncate";
|
|
8
|
+
}>>;
|
|
9
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
10
|
+
maxOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
11
|
+
threshold: z.ZodDefault<z.ZodNumber>;
|
|
12
|
+
keepRecentTurns: z.ZodDefault<z.ZodNumber>;
|
|
13
|
+
keepRecentTokens: z.ZodDefault<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const runtimeShellSessionSettingsSchema: z.ZodObject<{
|
|
16
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
+
maxSessions: z.ZodDefault<z.ZodNumber>;
|
|
18
|
+
defaultYieldMs: z.ZodDefault<z.ZodNumber>;
|
|
19
|
+
maxOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const runtimeShellSettingsSchema: z.ZodObject<{
|
|
22
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
autoApproveSafe: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
+
defaultTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
25
|
+
maxTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
26
|
+
maxCaptureBytes: z.ZodDefault<z.ZodNumber>;
|
|
27
|
+
maxModelOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
28
|
+
session: z.ZodPrefault<z.ZodObject<{
|
|
29
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
+
maxSessions: z.ZodDefault<z.ZodNumber>;
|
|
31
|
+
defaultYieldMs: z.ZodDefault<z.ZodNumber>;
|
|
32
|
+
maxOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
/** Execution settings only. Provider credentials, discovery paths and install config belong to hosts. */
|
|
36
|
+
export declare const runtimeSettingsSchema: z.ZodObject<{
|
|
37
|
+
maxSteps: z.ZodDefault<z.ZodNumber>;
|
|
38
|
+
turnTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
39
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
compaction: z.ZodPrefault<z.ZodObject<{
|
|
41
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
42
|
+
strategy: z.ZodDefault<z.ZodEnum<{
|
|
43
|
+
summarize: "summarize";
|
|
44
|
+
truncate: "truncate";
|
|
45
|
+
}>>;
|
|
46
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
47
|
+
maxOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
48
|
+
threshold: z.ZodDefault<z.ZodNumber>;
|
|
49
|
+
keepRecentTurns: z.ZodDefault<z.ZodNumber>;
|
|
50
|
+
keepRecentTokens: z.ZodDefault<z.ZodNumber>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
shell: z.ZodPrefault<z.ZodObject<{
|
|
53
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
54
|
+
autoApproveSafe: z.ZodDefault<z.ZodBoolean>;
|
|
55
|
+
defaultTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
56
|
+
maxTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
57
|
+
maxCaptureBytes: z.ZodDefault<z.ZodNumber>;
|
|
58
|
+
maxModelOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
59
|
+
session: z.ZodPrefault<z.ZodObject<{
|
|
60
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
61
|
+
maxSessions: z.ZodDefault<z.ZodNumber>;
|
|
62
|
+
defaultYieldMs: z.ZodDefault<z.ZodNumber>;
|
|
63
|
+
maxOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
instructions: z.ZodDefault<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export type RuntimeSettings = z.infer<typeof runtimeSettingsSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as e}from"zod";export const RUNTIME_COMPACTION_STRATEGIES=["summarize","truncate"];export const runtimeCompactionSettingsSchema=e.object({enabled:e.boolean().default(!0),strategy:e.enum(RUNTIME_COMPACTION_STRATEGIES).default("summarize"),timeoutMs:e.number().int().min(1e4).max(6e5).default(12e4),maxOutputTokens:e.number().int().min(2048).max(32768).default(8192),threshold:e.number().min(.1).max(.95).default(.75),keepRecentTurns:e.number().int().min(1).default(4),keepRecentTokens:e.number().int().min(1).default(32e3)});export const runtimeShellSessionSettingsSchema=e.object({enabled:e.boolean().default(!1),maxSessions:e.number().int().min(1).max(64).default(8),defaultYieldMs:e.number().int().min(250).max(3e4).default(1e4),maxOutputTokens:e.number().int().min(256).default(1e4)});export const runtimeShellSettingsSchema=e.object({enabled:e.boolean().default(!1),autoApproveSafe:e.boolean().default(!0),defaultTimeoutMs:e.number().int().min(1e3).max(6e5).default(1e4),maxTimeoutMs:e.number().int().min(1e3).max(6e5).default(6e5),maxCaptureBytes:e.number().int().min(16384).default(1048576),maxModelOutputChars:e.number().int().min(1e3).default(16e3),session:runtimeShellSessionSettingsSchema.prefault({})});export const runtimeSettingsSchema=e.object({maxSteps:e.number().int().min(1).default(80),turnTimeoutMs:e.number().int().min(1e4).default(3e5),contextWindow:e.number().int().min(1).optional(),compaction:runtimeCompactionSettingsSchema.prefault({}),shell:runtimeShellSettingsSchema.prefault({}),instructions:e.string().trim().min(1).default("auto")});
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type { ScheduleRecord } from "../scheduler/types.ts";
|
|
2
|
+
import type { ScheduleTimingInput } from "../scheduler/trigger.ts";
|
|
3
|
+
export declare const SCHEDULE_TOOL_ERROR_CODES: {
|
|
4
|
+
readonly invalidInput: "invalid_input";
|
|
5
|
+
readonly configError: "config_error";
|
|
6
|
+
readonly admissionStale: "admission_stale";
|
|
7
|
+
readonly migrationRequired: "migration_required";
|
|
8
|
+
};
|
|
9
|
+
export interface ScheduleToolError {
|
|
10
|
+
readonly ok: false;
|
|
11
|
+
readonly code: string;
|
|
12
|
+
readonly message: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const SCHEDULE_READINESS_WARNING_CODES: readonly ["service-not-installed", "daemon-not-running", "data-dir-mismatch", "daemon-version-mismatch", "unresolved-placeholders"];
|
|
15
|
+
export interface ScheduleReadinessWarning {
|
|
16
|
+
readonly code: (typeof SCHEDULE_READINESS_WARNING_CODES)[number];
|
|
17
|
+
readonly message: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ScheduleExecutionReadiness {
|
|
20
|
+
readonly daemonRunning: boolean;
|
|
21
|
+
readonly serviceInstalled: boolean;
|
|
22
|
+
readonly automaticRunsReady: boolean;
|
|
23
|
+
readonly warnings: readonly ScheduleReadinessWarning[];
|
|
24
|
+
}
|
|
25
|
+
export interface ScheduleToolCreateRequest extends ScheduleTimingInput {
|
|
26
|
+
readonly name: string;
|
|
27
|
+
readonly prompt: string;
|
|
28
|
+
readonly cwd?: string | undefined;
|
|
29
|
+
readonly maxRun?: string | undefined;
|
|
30
|
+
readonly rounds?: number | undefined;
|
|
31
|
+
}
|
|
32
|
+
export interface ScheduleCreateAdmission {
|
|
33
|
+
readonly ok: true;
|
|
34
|
+
readonly name: string;
|
|
35
|
+
readonly prompt: string;
|
|
36
|
+
readonly cwd: string;
|
|
37
|
+
readonly sessionCwd: string;
|
|
38
|
+
readonly everyMs: number | undefined;
|
|
39
|
+
readonly trigger: ScheduleRecord["trigger"];
|
|
40
|
+
readonly everyDisplay: string;
|
|
41
|
+
readonly maxRunMs: number | undefined;
|
|
42
|
+
readonly maxRounds: ScheduleRecord["maxRounds"];
|
|
43
|
+
readonly maxRunDisplay: string;
|
|
44
|
+
readonly dataDir: string;
|
|
45
|
+
readonly authorityDigest: string;
|
|
46
|
+
readonly firstRunAt: string;
|
|
47
|
+
readonly readiness: ScheduleExecutionReadiness;
|
|
48
|
+
}
|
|
49
|
+
export interface ScheduleToolScheduleView {
|
|
50
|
+
readonly id: string;
|
|
51
|
+
readonly name: string;
|
|
52
|
+
readonly prompt: string;
|
|
53
|
+
readonly cwd: string;
|
|
54
|
+
readonly status: ScheduleRecord["status"];
|
|
55
|
+
readonly rounds: {
|
|
56
|
+
readonly max: number | null;
|
|
57
|
+
readonly started: number;
|
|
58
|
+
};
|
|
59
|
+
readonly roundsDisplay: string;
|
|
60
|
+
readonly trigger: {
|
|
61
|
+
readonly everyMs?: number | undefined;
|
|
62
|
+
readonly display: string;
|
|
63
|
+
readonly spec?: ScheduleRecord["trigger"];
|
|
64
|
+
};
|
|
65
|
+
readonly maxRun: {
|
|
66
|
+
readonly explicit: boolean;
|
|
67
|
+
readonly effectiveMs: number;
|
|
68
|
+
readonly display: string;
|
|
69
|
+
};
|
|
70
|
+
readonly nextRunAt: string | undefined;
|
|
71
|
+
readonly createdAt: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ScheduleToolCreateOutcome {
|
|
74
|
+
readonly ok: true;
|
|
75
|
+
readonly created: boolean;
|
|
76
|
+
readonly reauthorized: boolean;
|
|
77
|
+
readonly schedule: ScheduleToolScheduleView;
|
|
78
|
+
readonly readiness: ScheduleExecutionReadiness;
|
|
79
|
+
}
|
|
80
|
+
export interface ScheduleToolListQuery {
|
|
81
|
+
readonly status?: "all" | ScheduleRecord["status"] | undefined;
|
|
82
|
+
readonly offset?: number | undefined;
|
|
83
|
+
readonly limit?: number | undefined;
|
|
84
|
+
}
|
|
85
|
+
export interface ScheduleToolListItem {
|
|
86
|
+
readonly id: string;
|
|
87
|
+
readonly name: string;
|
|
88
|
+
readonly status: ScheduleRecord["status"];
|
|
89
|
+
readonly rounds: {
|
|
90
|
+
readonly max: number | null;
|
|
91
|
+
readonly started: number;
|
|
92
|
+
};
|
|
93
|
+
readonly roundsDisplay: string;
|
|
94
|
+
readonly trigger: string;
|
|
95
|
+
readonly timeZone?: string | undefined;
|
|
96
|
+
readonly cwd: string;
|
|
97
|
+
readonly promptExcerpt: string;
|
|
98
|
+
readonly maxRun: string;
|
|
99
|
+
readonly nextRunAt: string | undefined;
|
|
100
|
+
readonly lastRunAt: string | undefined;
|
|
101
|
+
readonly lastError: string | undefined;
|
|
102
|
+
}
|
|
103
|
+
export interface ScheduleToolListOutcome {
|
|
104
|
+
readonly ok: true;
|
|
105
|
+
readonly total: number;
|
|
106
|
+
readonly offset: number;
|
|
107
|
+
readonly hasMore: boolean;
|
|
108
|
+
readonly schedules: readonly ScheduleToolListItem[];
|
|
109
|
+
readonly readiness: ScheduleExecutionReadiness;
|
|
110
|
+
}
|
|
111
|
+
export interface ScheduleToolExtendRequest {
|
|
112
|
+
readonly scheduleId: string;
|
|
113
|
+
readonly rounds: number;
|
|
114
|
+
readonly expectedMaxRounds: number;
|
|
115
|
+
readonly requestId: string;
|
|
116
|
+
}
|
|
117
|
+
export interface ScheduleExtendAdmission {
|
|
118
|
+
readonly ok: true;
|
|
119
|
+
readonly request: ScheduleToolExtendRequest;
|
|
120
|
+
readonly sessionCwd: string;
|
|
121
|
+
readonly dataDir: string;
|
|
122
|
+
readonly authorityDigest: string;
|
|
123
|
+
readonly schedule: ScheduleRecord;
|
|
124
|
+
}
|
|
125
|
+
export interface ScheduleToolExtendOutcome {
|
|
126
|
+
readonly ok: true;
|
|
127
|
+
readonly extended: boolean;
|
|
128
|
+
readonly requestId: string;
|
|
129
|
+
readonly schedule: ScheduleToolScheduleView;
|
|
130
|
+
readonly readiness: ScheduleExecutionReadiness;
|
|
131
|
+
}
|
|
132
|
+
export interface ScheduleToolPort {
|
|
133
|
+
captureExtend?(request: ScheduleToolExtendRequest, sessionCwd: string): ScheduleExtendAdmission | ScheduleToolError;
|
|
134
|
+
extend?(admission: ScheduleExtendAdmission): Promise<ScheduleToolExtendOutcome | ScheduleToolError>;
|
|
135
|
+
captureCreate(request: ScheduleToolCreateRequest, sessionCwd: string): ScheduleCreateAdmission | ScheduleToolError;
|
|
136
|
+
create(admission: ScheduleCreateAdmission): Promise<ScheduleToolCreateOutcome | ScheduleToolError>;
|
|
137
|
+
list(query: ScheduleToolListQuery, sessionCwd: string): Promise<ScheduleToolListOutcome | ScheduleToolError>;
|
|
138
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const SCHEDULE_TOOL_ERROR_CODES={invalidInput:"invalid_input",configError:"config_error",admissionStale:"admission_stale",migrationRequired:"migration_required"};export const SCHEDULE_READINESS_WARNING_CODES=["service-not-installed","daemon-not-running","data-dir-mismatch","daemon-version-mismatch","unresolved-placeholders"];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
export { ConversationEngine } from "./engine/conversation-engine.ts";
|
|
1
|
+
export { ConversationEngine, buildSessionBashSettings, buildSessionExecSettings, } from "./engine/conversation-engine.ts";
|
|
2
|
+
export { runtimeSettingsSchema } from "./host-contracts/runtime-settings.ts";
|
|
3
|
+
export type { RuntimeSettings } from "./host-contracts/runtime-settings.ts";
|
|
4
|
+
export type { AgentHost, AgentHostOperation, AgentHostSnapshot, AgentHostRefresh, AgentHostInstallResult, } from "./host-contracts/agent-host.ts";
|
|
5
|
+
export { buildScheduleToolset, SCHEDULE_CREATE_TOOL_ID } from "./tool-bridge/schedule-tool.ts";
|
|
6
|
+
export { scheduleCreateInputSchema } from "./tool-bridge/schedule-create-input.ts";
|
|
2
7
|
export type { EngineModelSwitch } from "./engine/conversation-engine.ts";
|
|
3
8
|
export type { AgentBootstrapIssue, ConversationEngineOptions, CreateSessionInput, ForkSessionInput, } from "./engine/conversation-engine.ts";
|
|
4
9
|
export { AgentSession } from "./engine/agent-session.ts";
|
|
@@ -66,7 +71,7 @@ export type { RuntimeServiceEngine, RuntimeServiceOptions, RuntimeServiceSession
|
|
|
66
71
|
export { createStdioConnection } from "./server/transport/stdio.ts";
|
|
67
72
|
export { RpcMethod, EVENT_NOTIFICATION, isRequest } from "./server/protocol.ts";
|
|
68
73
|
export type { JsonRpcConnection, JsonRpcMessage, JsonRpcRequest, JsonRpcNotification, JsonRpcId, } from "./server/protocol.ts";
|
|
69
|
-
export type { SessionEvent, SessionEventStage, SessionTokenUsage, ContextCompactionReason, ContextCompactionStrategy, } from "./types/events.ts";
|
|
74
|
+
export type { SessionEvent, SessionEventStage, SessionTokenUsage, ContextCompactionReason, ContextCompactionStrategy, ContextCompactionFailure, } from "./types/events.ts";
|
|
70
75
|
export { createTurnCancellationMessage, readTurnCancellationReason, SESSION_CANCELLATION_REASONS, USER_CANCELLATION_ABORT_REASON, } from "./types/cancellation.ts";
|
|
71
76
|
export type { SessionCancellationReason } from "./types/cancellation.ts";
|
|
72
77
|
export { APPROVAL_DIFF_PREVIEW_KEY, fileChangeDiffSchema, fileChangeDisplaySchema, getApprovalDiffPreview, getFileChangeDisplay, } from "@roll-agent/protocol";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ConversationEngine}from"./engine/conversation-engine.js";export{AgentSession}from"./engine/agent-session.js";export{WORKSPACE_INSTRUCTION_FILE_NAMES,WORKSPACE_INSTRUCTIONS_MAX_CHARS,WORKSPACE_INSTRUCTIONS_MODES,createWorkspaceInstructionsSource,findWorkspaceInstructionsPath,parseWorkspaceInstructionsSetting}from"./engine/workspace-instructions.js";export{resolveContextWindow,lookupContextWindow,resolveModelContextWindow,CONTEXT_WINDOW_SOURCES}from"./engine/context-window.js";export{createDefaultModelCatalog}from"./engine/model-catalog-default.js";export{ModelCatalog,defaultModelCatalogCachePath,lookupCatalogContextWindow,trimModelCatalog,MODEL_CATALOG_REFRESH_RESULTS}from"./engine/model-catalog.js";export{compactMessages,findTurnBoundaries,SUMMARY_PREFIX,SUMMARY_ACK}from"./engine/compactor.js";export{ROLL_RESOURCE_HINTS_META_KEY,buildAgentToolset}from"./tool-bridge/build-tools.js";export{COMMAND_CLASSIFICATIONS,unknownCommandClassifier}from"./types/command-classification.js";export{ruleBasedClassifier}from"./bash/classifier/index.js";export{buildPowerShellEncodedCommand,resolveShellProfile,SHELL_PROFILE_IDS,SHELL_TOOL_NAMES}from"./bash/profile.js";export{buildSessionExecToolset,EXEC_COMMAND_ID,EXEC_LIST_ID,EXEC_POLL_ID}from"./tool-bridge/session-exec-tool.js";export{ToolRegistry}from"./tool-bridge/naming.js";export{TOOL_RESOURCE_ACCESS_MODES,TOOL_RESOURCE_HINT_KINDS}from"./tool-bridge/tool-execution-coordinator.js";export{TOOL_CANCELLATION_EXECUTION_STATES,TOOL_OUTCOME_KINDS,normalizeToolResult,readToolOutcome}from"./tool-bridge/normalize-result.js";export{ThreadStore,defaultThreadsDir,expandTilde}from"./store/thread-store.js";export{stripCancelledTurnRecoveryMessages}from"./engine/cancelled-turn-recovery.js";export{THREAD_ORIGIN_KINDS,threadOriginSchema,scheduledThreadOriginSchema,threadDerivedFromSchema}from"./store/thread-origin.js";export{SCHEDULE_LEDGER_READ_STATUSES,ScheduleStore,readScheduleLedger,readScheduleOccupancy}from"./scheduler/schedule-store.js";export{SCHEDULER_LIMITS}from"./scheduler/limits.js";export{SCHEDULER_SCHEMA_VERSION}from"./scheduler/database-version.js";export{TRIGGER_KINDS,ScheduleTriggerError,computeNextRunAtMs,computeFirstRunAtMs,createScheduleTrigger,scheduleTimingInputSchema,createIntervalTrigger,describeTrigger,formatDuration,formatInterval,parseIntervalText,parseMaxRunText,parseTriggerJson,triggerSpecSchema}from"./scheduler/trigger.js";export{calendarScheduleSchema,calendarScheduleInputSchema,systemTimeZone}from"./scheduler/calendar.js";export{CANCEL_INVOCATION_OUTCOMES,COMPLETE_INVOCATION_OUTCOMES,EXECUTOR_LIVENESS,INVOCATION_FAILURE_OUTCOMES,INVOCATION_LIVE_STATUSES,INVOCATION_MODES,INVOCATION_STATUSES,INVOCATION_TERMINAL_STATUSES,INVOCATION_TREE_LIVENESS,TRACKED_LEADER_STATES,SCHEDULE_STATUSES,SCHEDULE_STORE_ERROR_CODES,ScheduleStoreError}from"./scheduler/types.js";export{DefaultToolPolicy}from"./policy/default-policy.js";export{ConfigurableToolPolicy}from"./policy/configurable-policy.js";export{UNATTENDED_CONFIRMATION_DENIED_REASON,UnattendedToolPolicy}from"./policy/unattended-policy.js";export{CAPABILITY_HOST_MODES,CAPABILITY_TURN_ORIGIN_KINDS}from"./engine/capability-manifest.js";export{ApprovalGate}from"./approval/approval-gate.js";export{RuntimeServer}from"./server/runtime-server.js";export{RuntimeClientRequestCancelledError,RuntimeClientRequestCoordinator,RuntimeClientRequestError,RuntimeClientRequestExpiredError,createRuntimeClientResponderId}from"./server/runtime-client-request-coordinator.js";export{RuntimeService,RuntimeServiceError}from"./service/runtime-service.js";export{AttachmentStore}from"./service/attachment-store.js";export{createStdioConnection}from"./server/transport/stdio.js";export{RpcMethod,EVENT_NOTIFICATION,isRequest}from"./server/protocol.js";export{createTurnCancellationMessage,readTurnCancellationReason,SESSION_CANCELLATION_REASONS,USER_CANCELLATION_ABORT_REASON}from"./types/cancellation.js";export{APPROVAL_DIFF_PREVIEW_KEY,fileChangeDiffSchema,fileChangeDisplaySchema,getApprovalDiffPreview,getFileChangeDisplay}from"@roll-agent/protocol";export{readScheduleHistory,readScheduleRun}from"./scheduler/schedule-store.js";
|
|
1
|
+
export{ConversationEngine,buildSessionBashSettings,buildSessionExecSettings}from"./engine/conversation-engine.js";export{runtimeSettingsSchema}from"./host-contracts/runtime-settings.js";export{buildScheduleToolset,SCHEDULE_CREATE_TOOL_ID}from"./tool-bridge/schedule-tool.js";export{scheduleCreateInputSchema}from"./tool-bridge/schedule-create-input.js";export{AgentSession}from"./engine/agent-session.js";export{WORKSPACE_INSTRUCTION_FILE_NAMES,WORKSPACE_INSTRUCTIONS_MAX_CHARS,WORKSPACE_INSTRUCTIONS_MODES,createWorkspaceInstructionsSource,findWorkspaceInstructionsPath,parseWorkspaceInstructionsSetting}from"./engine/workspace-instructions.js";export{resolveContextWindow,lookupContextWindow,resolveModelContextWindow,CONTEXT_WINDOW_SOURCES}from"./engine/context-window.js";export{createDefaultModelCatalog}from"./engine/model-catalog-default.js";export{ModelCatalog,defaultModelCatalogCachePath,lookupCatalogContextWindow,trimModelCatalog,MODEL_CATALOG_REFRESH_RESULTS}from"./engine/model-catalog.js";export{compactMessages,findTurnBoundaries,SUMMARY_PREFIX,SUMMARY_ACK}from"./engine/compactor.js";export{ROLL_RESOURCE_HINTS_META_KEY,buildAgentToolset}from"./tool-bridge/build-tools.js";export{COMMAND_CLASSIFICATIONS,unknownCommandClassifier}from"./types/command-classification.js";export{ruleBasedClassifier}from"./bash/classifier/index.js";export{buildPowerShellEncodedCommand,resolveShellProfile,SHELL_PROFILE_IDS,SHELL_TOOL_NAMES}from"./bash/profile.js";export{buildSessionExecToolset,EXEC_COMMAND_ID,EXEC_LIST_ID,EXEC_POLL_ID}from"./tool-bridge/session-exec-tool.js";export{ToolRegistry}from"./tool-bridge/naming.js";export{TOOL_RESOURCE_ACCESS_MODES,TOOL_RESOURCE_HINT_KINDS}from"./tool-bridge/tool-execution-coordinator.js";export{TOOL_CANCELLATION_EXECUTION_STATES,TOOL_OUTCOME_KINDS,normalizeToolResult,readToolOutcome}from"./tool-bridge/normalize-result.js";export{ThreadStore,defaultThreadsDir,expandTilde}from"./store/thread-store.js";export{stripCancelledTurnRecoveryMessages}from"./engine/cancelled-turn-recovery.js";export{THREAD_ORIGIN_KINDS,threadOriginSchema,scheduledThreadOriginSchema,threadDerivedFromSchema}from"./store/thread-origin.js";export{SCHEDULE_LEDGER_READ_STATUSES,ScheduleStore,readScheduleLedger,readScheduleOccupancy}from"./scheduler/schedule-store.js";export{SCHEDULER_LIMITS}from"./scheduler/limits.js";export{SCHEDULER_SCHEMA_VERSION}from"./scheduler/database-version.js";export{TRIGGER_KINDS,ScheduleTriggerError,computeNextRunAtMs,computeFirstRunAtMs,createScheduleTrigger,scheduleTimingInputSchema,createIntervalTrigger,describeTrigger,formatDuration,formatInterval,parseIntervalText,parseMaxRunText,parseTriggerJson,triggerSpecSchema}from"./scheduler/trigger.js";export{calendarScheduleSchema,calendarScheduleInputSchema,systemTimeZone}from"./scheduler/calendar.js";export{CANCEL_INVOCATION_OUTCOMES,COMPLETE_INVOCATION_OUTCOMES,EXECUTOR_LIVENESS,INVOCATION_FAILURE_OUTCOMES,INVOCATION_LIVE_STATUSES,INVOCATION_MODES,INVOCATION_STATUSES,INVOCATION_TERMINAL_STATUSES,INVOCATION_TREE_LIVENESS,TRACKED_LEADER_STATES,SCHEDULE_STATUSES,SCHEDULE_STORE_ERROR_CODES,ScheduleStoreError}from"./scheduler/types.js";export{DefaultToolPolicy}from"./policy/default-policy.js";export{ConfigurableToolPolicy}from"./policy/configurable-policy.js";export{UNATTENDED_CONFIRMATION_DENIED_REASON,UnattendedToolPolicy}from"./policy/unattended-policy.js";export{CAPABILITY_HOST_MODES,CAPABILITY_TURN_ORIGIN_KINDS}from"./engine/capability-manifest.js";export{ApprovalGate}from"./approval/approval-gate.js";export{RuntimeServer}from"./server/runtime-server.js";export{RuntimeClientRequestCancelledError,RuntimeClientRequestCoordinator,RuntimeClientRequestError,RuntimeClientRequestExpiredError,createRuntimeClientResponderId}from"./server/runtime-client-request-coordinator.js";export{RuntimeService,RuntimeServiceError}from"./service/runtime-service.js";export{AttachmentStore}from"./service/attachment-store.js";export{createStdioConnection}from"./server/transport/stdio.js";export{RpcMethod,EVENT_NOTIFICATION,isRequest}from"./server/protocol.js";export{createTurnCancellationMessage,readTurnCancellationReason,SESSION_CANCELLATION_REASONS,USER_CANCELLATION_ABORT_REASON}from"./types/cancellation.js";export{APPROVAL_DIFF_PREVIEW_KEY,fileChangeDiffSchema,fileChangeDisplaySchema,getApprovalDiffPreview,getFileChangeDisplay}from"@roll-agent/protocol";export{readScheduleHistory,readScheduleRun}from"./scheduler/schedule-store.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
import { type UserInputForm, type UserInputResult } from "@roll-agent/protocol";
|
|
3
|
-
export declare const sessionUserInputRequestIdSchema: z.core.$ZodBranded<z.ZodString, "SessionUserInputRequestId">;
|
|
3
|
+
export declare const sessionUserInputRequestIdSchema: z.core.$ZodBranded<z.ZodString, "SessionUserInputRequestId", "out">;
|
|
4
4
|
export type SessionUserInputRequestId = z.output<typeof sessionUserInputRequestIdSchema>;
|
|
5
5
|
export interface SessionUserInputInteraction {
|
|
6
6
|
readonly requestId: SessionUserInputRequestId;
|
|
@@ -1,65 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare function systemTimeZone(): string;
|
|
3
|
-
export declare const timeZoneSchema: z.
|
|
4
|
-
export declare const calendarScheduleSchema: z.ZodDiscriminatedUnion<
|
|
3
|
+
export declare const timeZoneSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
4
|
+
export declare const calendarScheduleSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
5
|
time: z.ZodString;
|
|
6
|
-
timeZone: z.
|
|
6
|
+
timeZone: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
7
7
|
frequency: z.ZodLiteral<"daily">;
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
frequency: "daily";
|
|
11
|
-
timeZone: string;
|
|
12
|
-
}, {
|
|
13
|
-
time: string;
|
|
14
|
-
frequency: "daily";
|
|
15
|
-
timeZone: string;
|
|
16
|
-
}>, z.ZodObject<{
|
|
17
|
-
weekdays: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
|
|
8
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9
|
+
weekdays: z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>;
|
|
18
10
|
time: z.ZodString;
|
|
19
|
-
timeZone: z.
|
|
11
|
+
timeZone: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
20
12
|
frequency: z.ZodLiteral<"weekly">;
|
|
21
|
-
},
|
|
22
|
-
time: string;
|
|
23
|
-
frequency: "weekly";
|
|
24
|
-
timeZone: string;
|
|
25
|
-
weekdays: number[];
|
|
26
|
-
}, {
|
|
27
|
-
time: string;
|
|
28
|
-
frequency: "weekly";
|
|
29
|
-
timeZone: string;
|
|
30
|
-
weekdays: number[];
|
|
31
|
-
}>]>;
|
|
13
|
+
}, z.core.$strict>], "frequency">;
|
|
32
14
|
export type CalendarSchedule = z.output<typeof calendarScheduleSchema>;
|
|
33
|
-
export declare const calendarScheduleInputSchema: z.ZodDiscriminatedUnion<
|
|
15
|
+
export declare const calendarScheduleInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
34
16
|
time: z.ZodString;
|
|
35
17
|
frequency: z.ZodLiteral<"daily">;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
time: string;
|
|
40
|
-
frequency: "daily";
|
|
41
|
-
timeZone?: string | undefined;
|
|
42
|
-
}, {
|
|
43
|
-
time: string;
|
|
44
|
-
frequency: "daily";
|
|
45
|
-
timeZone?: string | undefined;
|
|
46
|
-
}>, z.ZodObject<{
|
|
47
|
-
weekdays: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
|
|
18
|
+
timeZone: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
19
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
20
|
+
weekdays: z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>;
|
|
48
21
|
time: z.ZodString;
|
|
49
22
|
frequency: z.ZodLiteral<"weekly">;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}, "strict", z.ZodTypeAny, {
|
|
53
|
-
time: string;
|
|
54
|
-
frequency: "weekly";
|
|
55
|
-
weekdays: number[];
|
|
56
|
-
timeZone?: string | undefined;
|
|
57
|
-
}, {
|
|
58
|
-
time: string;
|
|
59
|
-
frequency: "weekly";
|
|
60
|
-
weekdays: number[];
|
|
61
|
-
timeZone?: string | undefined;
|
|
62
|
-
}>]>;
|
|
23
|
+
timeZone: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
24
|
+
}, z.core.$strict>], "frequency">;
|
|
63
25
|
export type CalendarScheduleInput = z.input<typeof calendarScheduleInputSchema>;
|
|
64
26
|
export declare function parseLocalStartAt(text: string, timeZone: string): number;
|
|
65
27
|
export declare function nextCalendarRunAtMs(calendar: CalendarSchedule, afterMs: number): number;
|
|
@@ -8,178 +8,42 @@ export declare const intervalTriggerSchema: z.ZodObject<{
|
|
|
8
8
|
kind: z.ZodLiteral<"interval">;
|
|
9
9
|
everyMs: z.ZodNumber;
|
|
10
10
|
startAtMs: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
timeZone: z.ZodOptional<z.
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
everyMs: number;
|
|
15
|
-
timeZone?: string | undefined;
|
|
16
|
-
startAtMs?: number | undefined;
|
|
17
|
-
}, {
|
|
18
|
-
kind: "interval";
|
|
19
|
-
everyMs: number;
|
|
20
|
-
timeZone?: string | undefined;
|
|
21
|
-
startAtMs?: number | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
export declare const triggerSpecSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
11
|
+
timeZone: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export declare const triggerSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24
14
|
kind: z.ZodLiteral<"interval">;
|
|
25
15
|
everyMs: z.ZodNumber;
|
|
26
16
|
startAtMs: z.ZodOptional<z.ZodNumber>;
|
|
27
|
-
timeZone: z.ZodOptional<z.
|
|
28
|
-
},
|
|
29
|
-
kind: "interval";
|
|
30
|
-
everyMs: number;
|
|
31
|
-
timeZone?: string | undefined;
|
|
32
|
-
startAtMs?: number | undefined;
|
|
33
|
-
}, {
|
|
34
|
-
kind: "interval";
|
|
35
|
-
everyMs: number;
|
|
36
|
-
timeZone?: string | undefined;
|
|
37
|
-
startAtMs?: number | undefined;
|
|
38
|
-
}>, z.ZodObject<{
|
|
17
|
+
timeZone: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
18
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39
19
|
kind: z.ZodLiteral<"calendar">;
|
|
40
|
-
calendar: z.ZodDiscriminatedUnion<
|
|
20
|
+
calendar: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
41
21
|
time: z.ZodString;
|
|
42
|
-
timeZone: z.
|
|
22
|
+
timeZone: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
43
23
|
frequency: z.ZodLiteral<"daily">;
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
frequency: "daily";
|
|
47
|
-
timeZone: string;
|
|
48
|
-
}, {
|
|
49
|
-
time: string;
|
|
50
|
-
frequency: "daily";
|
|
51
|
-
timeZone: string;
|
|
52
|
-
}>, z.ZodObject<{
|
|
53
|
-
weekdays: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
|
|
24
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
25
|
+
weekdays: z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>;
|
|
54
26
|
time: z.ZodString;
|
|
55
|
-
timeZone: z.
|
|
27
|
+
timeZone: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
56
28
|
frequency: z.ZodLiteral<"weekly">;
|
|
57
|
-
},
|
|
58
|
-
time: string;
|
|
59
|
-
frequency: "weekly";
|
|
60
|
-
timeZone: string;
|
|
61
|
-
weekdays: number[];
|
|
62
|
-
}, {
|
|
63
|
-
time: string;
|
|
64
|
-
frequency: "weekly";
|
|
65
|
-
timeZone: string;
|
|
66
|
-
weekdays: number[];
|
|
67
|
-
}>]>;
|
|
29
|
+
}, z.core.$strict>], "frequency">;
|
|
68
30
|
startAtMs: z.ZodOptional<z.ZodNumber>;
|
|
69
|
-
},
|
|
70
|
-
kind: "calendar";
|
|
71
|
-
calendar: {
|
|
72
|
-
time: string;
|
|
73
|
-
frequency: "daily";
|
|
74
|
-
timeZone: string;
|
|
75
|
-
} | {
|
|
76
|
-
time: string;
|
|
77
|
-
frequency: "weekly";
|
|
78
|
-
timeZone: string;
|
|
79
|
-
weekdays: number[];
|
|
80
|
-
};
|
|
81
|
-
startAtMs?: number | undefined;
|
|
82
|
-
}, {
|
|
83
|
-
kind: "calendar";
|
|
84
|
-
calendar: {
|
|
85
|
-
time: string;
|
|
86
|
-
frequency: "daily";
|
|
87
|
-
timeZone: string;
|
|
88
|
-
} | {
|
|
89
|
-
time: string;
|
|
90
|
-
frequency: "weekly";
|
|
91
|
-
timeZone: string;
|
|
92
|
-
weekdays: number[];
|
|
93
|
-
};
|
|
94
|
-
startAtMs?: number | undefined;
|
|
95
|
-
}>]>;
|
|
31
|
+
}, z.core.$strict>], "kind">;
|
|
96
32
|
export type TriggerSpec = z.infer<typeof triggerSpecSchema>;
|
|
97
|
-
export declare const scheduleTimingInputSchema: z.
|
|
33
|
+
export declare const scheduleTimingInputSchema: z.ZodObject<{
|
|
98
34
|
every: z.ZodOptional<z.ZodString>;
|
|
99
|
-
calendar: z.ZodOptional<z.ZodDiscriminatedUnion<
|
|
35
|
+
calendar: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
100
36
|
time: z.ZodString;
|
|
101
37
|
frequency: z.ZodLiteral<"daily">;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
time: string;
|
|
106
|
-
frequency: "daily";
|
|
107
|
-
timeZone?: string | undefined;
|
|
108
|
-
}, {
|
|
109
|
-
time: string;
|
|
110
|
-
frequency: "daily";
|
|
111
|
-
timeZone?: string | undefined;
|
|
112
|
-
}>, z.ZodObject<{
|
|
113
|
-
weekdays: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
|
|
38
|
+
timeZone: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
39
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40
|
+
weekdays: z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>;
|
|
114
41
|
time: z.ZodString;
|
|
115
42
|
frequency: z.ZodLiteral<"weekly">;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}, "strict", z.ZodTypeAny, {
|
|
119
|
-
time: string;
|
|
120
|
-
frequency: "weekly";
|
|
121
|
-
weekdays: number[];
|
|
122
|
-
timeZone?: string | undefined;
|
|
123
|
-
}, {
|
|
124
|
-
time: string;
|
|
125
|
-
frequency: "weekly";
|
|
126
|
-
weekdays: number[];
|
|
127
|
-
timeZone?: string | undefined;
|
|
128
|
-
}>]>>;
|
|
43
|
+
timeZone: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
44
|
+
}, z.core.$strict>], "frequency">>;
|
|
129
45
|
startAt: z.ZodOptional<z.ZodString>;
|
|
130
|
-
},
|
|
131
|
-
every?: string | undefined;
|
|
132
|
-
calendar?: {
|
|
133
|
-
time: string;
|
|
134
|
-
frequency: "daily";
|
|
135
|
-
timeZone?: string | undefined;
|
|
136
|
-
} | {
|
|
137
|
-
time: string;
|
|
138
|
-
frequency: "weekly";
|
|
139
|
-
weekdays: number[];
|
|
140
|
-
timeZone?: string | undefined;
|
|
141
|
-
} | undefined;
|
|
142
|
-
startAt?: string | undefined;
|
|
143
|
-
}, {
|
|
144
|
-
every?: string | undefined;
|
|
145
|
-
calendar?: {
|
|
146
|
-
time: string;
|
|
147
|
-
frequency: "daily";
|
|
148
|
-
timeZone?: string | undefined;
|
|
149
|
-
} | {
|
|
150
|
-
time: string;
|
|
151
|
-
frequency: "weekly";
|
|
152
|
-
weekdays: number[];
|
|
153
|
-
timeZone?: string | undefined;
|
|
154
|
-
} | undefined;
|
|
155
|
-
startAt?: string | undefined;
|
|
156
|
-
}>, {
|
|
157
|
-
every?: string | undefined;
|
|
158
|
-
calendar?: {
|
|
159
|
-
time: string;
|
|
160
|
-
frequency: "daily";
|
|
161
|
-
timeZone?: string | undefined;
|
|
162
|
-
} | {
|
|
163
|
-
time: string;
|
|
164
|
-
frequency: "weekly";
|
|
165
|
-
weekdays: number[];
|
|
166
|
-
timeZone?: string | undefined;
|
|
167
|
-
} | undefined;
|
|
168
|
-
startAt?: string | undefined;
|
|
169
|
-
}, {
|
|
170
|
-
every?: string | undefined;
|
|
171
|
-
calendar?: {
|
|
172
|
-
time: string;
|
|
173
|
-
frequency: "daily";
|
|
174
|
-
timeZone?: string | undefined;
|
|
175
|
-
} | {
|
|
176
|
-
time: string;
|
|
177
|
-
frequency: "weekly";
|
|
178
|
-
weekdays: number[];
|
|
179
|
-
timeZone?: string | undefined;
|
|
180
|
-
} | undefined;
|
|
181
|
-
startAt?: string | undefined;
|
|
182
|
-
}>;
|
|
46
|
+
}, z.core.$strict>;
|
|
183
47
|
export type ScheduleTimingInput = z.input<typeof scheduleTimingInputSchema>;
|
|
184
48
|
export declare function createScheduleTrigger(input: ScheduleTimingInput, nowMs?: number): TriggerSpec;
|
|
185
49
|
export declare class ScheduleTriggerError extends Error {
|
|
@@ -49,72 +49,32 @@ export declare const RpcMethod: {
|
|
|
49
49
|
export declare const EVENT_NOTIFICATION = "session.event";
|
|
50
50
|
export declare const createParamsSchema: z.ZodObject<{
|
|
51
51
|
title: z.ZodOptional<z.ZodString>;
|
|
52
|
-
},
|
|
53
|
-
title?: string | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
title?: string | undefined;
|
|
56
|
-
}>;
|
|
52
|
+
}, z.core.$strip>;
|
|
57
53
|
export declare const resumeParamsSchema: z.ZodObject<{
|
|
58
54
|
threadId: z.ZodString;
|
|
59
|
-
},
|
|
60
|
-
threadId: string;
|
|
61
|
-
}, {
|
|
62
|
-
threadId: string;
|
|
63
|
-
}>;
|
|
55
|
+
}, z.core.$strip>;
|
|
64
56
|
export declare const sendParamsSchema: z.ZodObject<{
|
|
65
57
|
sessionId: z.ZodString;
|
|
66
58
|
input: z.ZodString;
|
|
67
|
-
},
|
|
68
|
-
input: string;
|
|
69
|
-
sessionId: string;
|
|
70
|
-
}, {
|
|
71
|
-
input: string;
|
|
72
|
-
sessionId: string;
|
|
73
|
-
}>;
|
|
59
|
+
}, z.core.$strip>;
|
|
74
60
|
export declare const approveParamsSchema: z.ZodObject<{
|
|
75
61
|
sessionId: z.ZodString;
|
|
76
62
|
approvalId: z.ZodString;
|
|
77
|
-
},
|
|
78
|
-
sessionId: string;
|
|
79
|
-
approvalId: string;
|
|
80
|
-
}, {
|
|
81
|
-
sessionId: string;
|
|
82
|
-
approvalId: string;
|
|
83
|
-
}>;
|
|
63
|
+
}, z.core.$strip>;
|
|
84
64
|
export declare const rejectParamsSchema: z.ZodObject<{
|
|
85
65
|
sessionId: z.ZodString;
|
|
86
66
|
approvalId: z.ZodString;
|
|
87
67
|
reason: z.ZodOptional<z.ZodString>;
|
|
88
|
-
},
|
|
89
|
-
sessionId: string;
|
|
90
|
-
approvalId: string;
|
|
91
|
-
reason?: string | undefined;
|
|
92
|
-
}, {
|
|
93
|
-
sessionId: string;
|
|
94
|
-
approvalId: string;
|
|
95
|
-
reason?: string | undefined;
|
|
96
|
-
}>;
|
|
68
|
+
}, z.core.$strip>;
|
|
97
69
|
export declare const abortParamsSchema: z.ZodObject<{
|
|
98
70
|
sessionId: z.ZodString;
|
|
99
|
-
},
|
|
100
|
-
sessionId: string;
|
|
101
|
-
}, {
|
|
102
|
-
sessionId: string;
|
|
103
|
-
}>;
|
|
71
|
+
}, z.core.$strip>;
|
|
104
72
|
export declare const closeParamsSchema: z.ZodObject<{
|
|
105
73
|
sessionId: z.ZodString;
|
|
106
|
-
},
|
|
107
|
-
sessionId: string;
|
|
108
|
-
}, {
|
|
109
|
-
sessionId: string;
|
|
110
|
-
}>;
|
|
74
|
+
}, z.core.$strip>;
|
|
111
75
|
export declare const messagesParamsSchema: z.ZodObject<{
|
|
112
76
|
sessionId: z.ZodString;
|
|
113
|
-
},
|
|
114
|
-
sessionId: string;
|
|
115
|
-
}, {
|
|
116
|
-
sessionId: string;
|
|
117
|
-
}>;
|
|
77
|
+
}, z.core.$strip>;
|
|
118
78
|
export declare const toolExecutionsParamsSchema: z.ZodObject<{
|
|
119
79
|
sessionId: z.ZodString;
|
|
120
80
|
executionId: z.ZodOptional<z.ZodString>;
|
|
@@ -122,33 +82,11 @@ export declare const toolExecutionsParamsSchema: z.ZodObject<{
|
|
|
122
82
|
afterSequence: z.ZodOptional<z.ZodNumber>;
|
|
123
83
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
124
84
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
125
|
-
},
|
|
126
|
-
sessionId: string;
|
|
127
|
-
includeRaw: boolean;
|
|
128
|
-
limit?: number | undefined;
|
|
129
|
-
toolCallId?: string | undefined;
|
|
130
|
-
executionId?: string | undefined;
|
|
131
|
-
afterSequence?: number | undefined;
|
|
132
|
-
}, {
|
|
133
|
-
sessionId: string;
|
|
134
|
-
limit?: number | undefined;
|
|
135
|
-
toolCallId?: string | undefined;
|
|
136
|
-
executionId?: string | undefined;
|
|
137
|
-
afterSequence?: number | undefined;
|
|
138
|
-
includeRaw?: boolean | undefined;
|
|
139
|
-
}>;
|
|
85
|
+
}, z.core.$strip>;
|
|
140
86
|
export declare const capabilitiesParamsSchema: z.ZodObject<{
|
|
141
87
|
sessionId: z.ZodString;
|
|
142
|
-
},
|
|
143
|
-
sessionId: string;
|
|
144
|
-
}, {
|
|
145
|
-
sessionId: string;
|
|
146
|
-
}>;
|
|
88
|
+
}, z.core.$strip>;
|
|
147
89
|
export declare const compactParamsSchema: z.ZodObject<{
|
|
148
90
|
sessionId: z.ZodString;
|
|
149
|
-
},
|
|
150
|
-
sessionId: string;
|
|
151
|
-
}, {
|
|
152
|
-
sessionId: string;
|
|
153
|
-
}>;
|
|
91
|
+
}, z.core.$strip>;
|
|
154
92
|
export declare function isRequest(message: JsonRpcMessage): message is JsonRpcRequest;
|