@rivet-dev/agentos-core 0.0.0-abc-fixes-1.d8c4d95 → 0.0.0-agent-acp-codex-session-benchmark.d578a31
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 +48 -48
- package/dist/agent-os.d.ts +215 -161
- package/dist/agent-os.js +1300 -2576
- package/dist/agentos-package.d.ts +27 -0
- package/dist/agentos-package.js +21 -0
- package/dist/base-filesystem.d.ts +1 -16
- package/dist/base-filesystem.js +1 -173
- package/dist/cron/cron-manager.d.ts +39 -14
- package/dist/cron/cron-manager.js +289 -128
- package/dist/cron/errors.d.ts +8 -0
- package/dist/cron/errors.js +16 -0
- package/dist/cron/index.d.ts +1 -3
- package/dist/cron/index.js +1 -2
- package/dist/cron/types.d.ts +2 -2
- package/dist/default-software.d.ts +8 -0
- package/dist/default-software.js +10 -0
- package/dist/filesystem-snapshot.d.ts +1 -1
- package/dist/filesystem-snapshot.js +1 -1
- package/dist/generated/AcpLimitsConfig.d.ts +4 -0
- package/dist/generated/AcpLimitsConfig.js +2 -0
- package/dist/generated/CreateVmConfig.d.ts +29 -0
- package/dist/generated/FsPermissionRule.d.ts +6 -0
- package/dist/generated/FsPermissionRule.js +1 -0
- package/dist/generated/FsPermissionRuleSet.d.ts +6 -0
- package/dist/generated/FsPermissionRuleSet.js +1 -0
- package/dist/generated/FsPermissionScope.d.ts +3 -0
- package/dist/generated/FsPermissionScope.js +1 -0
- package/dist/generated/HttpLimitsConfig.d.ts +3 -0
- package/dist/generated/HttpLimitsConfig.js +2 -0
- package/dist/generated/JsModuleResolution.d.ts +1 -0
- package/dist/generated/JsModuleResolution.js +2 -0
- package/dist/generated/JsRuntimeConfig.d.ts +31 -0
- package/dist/generated/JsRuntimeConfig.js +1 -0
- package/dist/generated/JsRuntimeLimitsConfig.d.ts +8 -0
- package/dist/generated/JsRuntimeLimitsConfig.js +2 -0
- package/dist/generated/JsRuntimePlatform.d.ts +1 -0
- package/dist/generated/JsRuntimePlatform.js +2 -0
- package/dist/generated/MountPluginDescriptor.d.ts +4 -0
- package/dist/generated/MountPluginDescriptor.js +2 -0
- package/dist/generated/NativeRootFilesystemConfig.d.ts +5 -0
- package/dist/generated/NativeRootFilesystemConfig.js +1 -0
- package/dist/generated/PatternPermissionRule.d.ts +6 -0
- package/dist/generated/PatternPermissionRule.js +1 -0
- package/dist/generated/PatternPermissionRuleSet.d.ts +6 -0
- package/dist/generated/PatternPermissionRuleSet.js +1 -0
- package/dist/generated/PatternPermissionScope.d.ts +3 -0
- package/dist/generated/PatternPermissionScope.js +1 -0
- package/dist/generated/PermissionMode.d.ts +1 -0
- package/dist/generated/PermissionMode.js +2 -0
- package/dist/generated/PermissionsPolicy.d.ts +10 -0
- package/dist/generated/PermissionsPolicy.js +1 -0
- package/dist/generated/PluginLimitsConfig.d.ts +4 -0
- package/dist/generated/PluginLimitsConfig.js +2 -0
- package/dist/generated/PythonLimitsConfig.d.ts +6 -0
- package/dist/generated/PythonLimitsConfig.js +2 -0
- package/dist/generated/ResourceLimitsConfig.d.ts +25 -0
- package/dist/generated/ResourceLimitsConfig.js +2 -0
- package/dist/generated/RootFilesystemConfig.d.ts +9 -0
- package/dist/generated/RootFilesystemConfig.js +1 -0
- package/dist/generated/RootFilesystemEntry.d.ts +13 -0
- package/dist/generated/RootFilesystemEntry.js +1 -0
- package/dist/generated/RootFilesystemEntryEncoding.d.ts +1 -0
- package/dist/generated/RootFilesystemEntryEncoding.js +2 -0
- package/dist/generated/RootFilesystemEntryKind.d.ts +1 -0
- package/dist/generated/RootFilesystemEntryKind.js +2 -0
- package/dist/generated/RootFilesystemLowerDescriptor.d.ts +7 -0
- package/dist/generated/RootFilesystemLowerDescriptor.js +1 -0
- package/dist/generated/RootFilesystemMode.d.ts +1 -0
- package/dist/generated/RootFilesystemMode.js +2 -0
- package/dist/generated/ToolLimitsConfig.d.ts +10 -0
- package/dist/generated/ToolLimitsConfig.js +2 -0
- package/dist/generated/VmDnsConfig.d.ts +6 -0
- package/dist/generated/VmDnsConfig.js +2 -0
- package/dist/generated/VmLimitsConfig.d.ts +18 -0
- package/dist/generated/VmLimitsConfig.js +1 -0
- package/dist/generated/VmListenPolicyConfig.d.ts +5 -0
- package/dist/generated/VmListenPolicyConfig.js +2 -0
- package/dist/generated/WasmLimitsConfig.d.ts +7 -0
- package/dist/generated/WasmLimitsConfig.js +2 -0
- package/dist/host-dir-mount.d.ts +5 -5
- package/dist/host-dir-mount.js +4 -4
- package/dist/host-tools-zod.js +27 -7
- package/dist/host-tools.d.ts +2 -9
- package/dist/host-tools.js +0 -18
- package/dist/index.d.ts +7 -4
- package/dist/index.js +6 -4
- package/dist/layers.d.ts +3 -3
- package/dist/layers.js +19 -10
- package/dist/memory-filesystem.d.ts +39 -0
- package/dist/memory-filesystem.js +375 -0
- package/dist/options-schema.d.ts +452 -0
- package/dist/options-schema.js +269 -0
- package/dist/overlay-filesystem.d.ts +1 -1
- package/dist/overlay-filesystem.js +3 -3
- package/dist/packages.d.ts +10 -123
- package/dist/packages.js +3 -329
- package/dist/runtime.d.ts +41 -184
- package/dist/sidecar/agentos-protocol.d.ts +232 -29
- package/dist/sidecar/agentos-protocol.js +456 -120
- package/dist/sidecar/binary.d.ts +2 -2
- package/dist/sidecar/binary.js +2 -2
- package/dist/sidecar/native-process-client.d.ts +5 -3
- package/dist/sidecar/native-process-client.js +5 -3
- package/dist/sidecar/permissions.d.ts +4 -3
- package/dist/sidecar/permissions.js +6 -23
- package/dist/sidecar/rpc-client.d.ts +74 -86
- package/dist/sidecar/rpc-client.js +422 -1418
- package/dist/test/file-system.d.ts +1 -1
- package/dist/test/file-system.js +3 -1
- package/dist/test/runtime.d.ts +2 -3
- package/dist/test/runtime.js +1 -1
- package/dist/test/terminal-harness.d.ts +5 -4
- package/dist/test/terminal-harness.js +12 -7
- package/dist/types.d.ts +12 -5
- package/package.json +37 -41
- package/dist/agents.d.ts +0 -63
- package/dist/agents.js +0 -42
- package/dist/cron/parse-schedule.d.ts +0 -25
- package/dist/cron/parse-schedule.js +0 -66
- package/dist/cron/schedule-driver.d.ts +0 -19
- package/dist/cron/timer-driver.d.ts +0 -17
- package/dist/cron/timer-driver.js +0 -61
- package/dist/runtime-compat.d.ts +0 -475
- package/dist/runtime-compat.js +0 -2010
- package/dist/sidecar/cargo.d.ts +0 -2
- package/dist/sidecar/cargo.js +0 -142
- package/fixtures/AGENTOS_SYSTEM_PROMPT.md +0 -21
- /package/dist/{cron/schedule-driver.js → generated/CreateVmConfig.js} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* agentOS package model (Linux-exact, Homebrew-modeled) — client-facing surface.
|
|
3
|
+
*
|
|
4
|
+
* A package is a self-contained directory produced by `@rivet-dev/agentos-toolchain
|
|
5
|
+
* pack`. The HOST no longer projects it: the client forwards only the package
|
|
6
|
+
* directory over the wire and the secure-exec sidecar owns the `/opt/agentos`
|
|
7
|
+
* projection. Package metadata lives in `<dir>/agentos-package.json`.
|
|
8
|
+
*
|
|
9
|
+
* This module is therefore only the client-facing package-dir surface plus the
|
|
10
|
+
* `/opt/agentos` path constants used for agent-config wiring.
|
|
11
|
+
*
|
|
12
|
+
* See `website/src/content/docs/docs/architecture/packages-and-command-resolution.mdx`.
|
|
13
|
+
*/
|
|
14
|
+
import type { PackageAgentDescriptor, PackageRef as ManifestPackageRef } from "@agentos-software/manifest";
|
|
15
|
+
/** Root of the agentOS package tree inside the VM. */
|
|
16
|
+
export declare const OPT_AGENTOS_ROOT = "/opt/agentos";
|
|
17
|
+
/** The symlink farm on `$PATH` (commands link here). */
|
|
18
|
+
export declare const OPT_AGENTOS_BIN = "/opt/agentos/bin";
|
|
19
|
+
export type AgentBlock = PackageAgentDescriptor;
|
|
20
|
+
export type PackageRef = ManifestPackageRef;
|
|
21
|
+
export type SoftwarePackageRef = {
|
|
22
|
+
packagePath: string;
|
|
23
|
+
};
|
|
24
|
+
/** @deprecated Package software is now represented by its package directory. */
|
|
25
|
+
export type PackageDescriptor = PackageRef;
|
|
26
|
+
/** Discriminate the dir-only package reference. */
|
|
27
|
+
export declare function isPackageDescriptor(value: unknown): value is PackageDescriptor;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* agentOS package model (Linux-exact, Homebrew-modeled) — client-facing surface.
|
|
3
|
+
*
|
|
4
|
+
* A package is a self-contained directory produced by `@rivet-dev/agentos-toolchain
|
|
5
|
+
* pack`. The HOST no longer projects it: the client forwards only the package
|
|
6
|
+
* directory over the wire and the secure-exec sidecar owns the `/opt/agentos`
|
|
7
|
+
* projection. Package metadata lives in `<dir>/agentos-package.json`.
|
|
8
|
+
*
|
|
9
|
+
* This module is therefore only the client-facing package-dir surface plus the
|
|
10
|
+
* `/opt/agentos` path constants used for agent-config wiring.
|
|
11
|
+
*
|
|
12
|
+
* See `website/src/content/docs/docs/architecture/packages-and-command-resolution.mdx`.
|
|
13
|
+
*/
|
|
14
|
+
/** Root of the agentOS package tree inside the VM. */
|
|
15
|
+
export const OPT_AGENTOS_ROOT = "/opt/agentos";
|
|
16
|
+
/** The symlink farm on `$PATH` (commands link here). */
|
|
17
|
+
export const OPT_AGENTOS_BIN = "/opt/agentos/bin";
|
|
18
|
+
/** Discriminate the dir-only package reference. */
|
|
19
|
+
export function isPackageDescriptor(value) {
|
|
20
|
+
return typeof value === "string";
|
|
21
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type VirtualFileSystem } from "./runtime-compat.js";
|
|
1
|
+
import type { FilesystemEntry } from "./filesystem-snapshot.js";
|
|
3
2
|
export interface BaseFilesystemEnvironment {
|
|
4
3
|
env: Record<string, string>;
|
|
5
4
|
prompt: string;
|
|
@@ -18,17 +17,3 @@ export interface BaseFilesystemSnapshot {
|
|
|
18
17
|
entries: BaseFilesystemEntry[];
|
|
19
18
|
};
|
|
20
19
|
}
|
|
21
|
-
export declare function createBaseLowerFilesystem(): Promise<VirtualFileSystem>;
|
|
22
|
-
export declare function createBootstrapAwareFilesystem(filesystem: VirtualFileSystem, existingRoot: VirtualFileSystem, options?: {
|
|
23
|
-
readOnlyAfterBootstrap?: boolean;
|
|
24
|
-
}): {
|
|
25
|
-
filesystem: VirtualFileSystem;
|
|
26
|
-
finishKernelBootstrap: () => void;
|
|
27
|
-
};
|
|
28
|
-
export declare function getBaseFilesystemSnapshot(): BaseFilesystemSnapshot;
|
|
29
|
-
export declare function getBaseEnvironment(): Record<string, string>;
|
|
30
|
-
export declare function getBaseFilesystemEntries(): BaseFilesystemEntry[];
|
|
31
|
-
export declare function createBaseRootFilesystem(): Promise<{
|
|
32
|
-
filesystem: VirtualFileSystem;
|
|
33
|
-
finishKernelBootstrap: () => void;
|
|
34
|
-
}>;
|
package/dist/base-filesystem.js
CHANGED
|
@@ -1,173 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { createRequire } from "node:module";
|
|
3
|
-
import * as posixPath from "node:path/posix";
|
|
4
|
-
import { createFilesystemFromEntries, } from "./filesystem-snapshot.js";
|
|
5
|
-
import { createOverlayBackend } from "./overlay-filesystem.js";
|
|
6
|
-
import { KernelError } from "./runtime-compat.js";
|
|
7
|
-
const require = createRequire(import.meta.url);
|
|
8
|
-
const SNAPSHOT_PATH = require.resolve("@secure-exec/core/fixtures/base-filesystem.json");
|
|
9
|
-
const SUPPRESSED_KERNEL_BOOTSTRAP_DIRS = new Set([
|
|
10
|
-
"/boot",
|
|
11
|
-
"/usr/games",
|
|
12
|
-
"/usr/include",
|
|
13
|
-
"/usr/libexec",
|
|
14
|
-
"/usr/man",
|
|
15
|
-
]);
|
|
16
|
-
const SUPPRESSED_KERNEL_BOOTSTRAP_FILES = new Set(["/usr/bin/env"]);
|
|
17
|
-
let snapshotCache = null;
|
|
18
|
-
function loadSnapshot() {
|
|
19
|
-
if (snapshotCache) {
|
|
20
|
-
return snapshotCache;
|
|
21
|
-
}
|
|
22
|
-
snapshotCache = JSON.parse(readFileSync(SNAPSHOT_PATH, "utf-8"));
|
|
23
|
-
return snapshotCache;
|
|
24
|
-
}
|
|
25
|
-
function normalizePath(path) {
|
|
26
|
-
const normalized = posixPath.normalize(path);
|
|
27
|
-
return normalized === "." ? "/" : normalized;
|
|
28
|
-
}
|
|
29
|
-
export async function createBaseLowerFilesystem() {
|
|
30
|
-
return createFilesystemFromEntries(getBaseFilesystemEntries());
|
|
31
|
-
}
|
|
32
|
-
export function createBootstrapAwareFilesystem(filesystem, existingRoot, options) {
|
|
33
|
-
let bootstrapActive = true;
|
|
34
|
-
let writesLocked = false;
|
|
35
|
-
function throwReadOnly() {
|
|
36
|
-
throw new KernelError("EROFS", "read-only file system");
|
|
37
|
-
}
|
|
38
|
-
async function rootHasPath(path) {
|
|
39
|
-
try {
|
|
40
|
-
return await existingRoot.exists(path);
|
|
41
|
-
}
|
|
42
|
-
catch {
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
const wrapped = {
|
|
47
|
-
...filesystem,
|
|
48
|
-
async createDir(path) {
|
|
49
|
-
if (writesLocked) {
|
|
50
|
-
throwReadOnly();
|
|
51
|
-
}
|
|
52
|
-
const normalized = normalizePath(path);
|
|
53
|
-
if (bootstrapActive &&
|
|
54
|
-
SUPPRESSED_KERNEL_BOOTSTRAP_DIRS.has(normalized) &&
|
|
55
|
-
!(await rootHasPath(normalized))) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
return filesystem.createDir(path);
|
|
59
|
-
},
|
|
60
|
-
async mkdir(path, options) {
|
|
61
|
-
if (writesLocked) {
|
|
62
|
-
if (options?.recursive && (await rootHasPath(path))) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
throwReadOnly();
|
|
66
|
-
}
|
|
67
|
-
const normalized = normalizePath(path);
|
|
68
|
-
if (bootstrapActive &&
|
|
69
|
-
options?.recursive &&
|
|
70
|
-
SUPPRESSED_KERNEL_BOOTSTRAP_DIRS.has(normalized) &&
|
|
71
|
-
!(await rootHasPath(normalized))) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
return filesystem.mkdir(path, options);
|
|
75
|
-
},
|
|
76
|
-
async writeFile(path, content) {
|
|
77
|
-
if (writesLocked) {
|
|
78
|
-
throwReadOnly();
|
|
79
|
-
}
|
|
80
|
-
const normalized = normalizePath(path);
|
|
81
|
-
if (bootstrapActive &&
|
|
82
|
-
SUPPRESSED_KERNEL_BOOTSTRAP_FILES.has(normalized)) {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
return filesystem.writeFile(path, content);
|
|
86
|
-
},
|
|
87
|
-
async removeFile(path) {
|
|
88
|
-
if (writesLocked) {
|
|
89
|
-
throwReadOnly();
|
|
90
|
-
}
|
|
91
|
-
return filesystem.removeFile(path);
|
|
92
|
-
},
|
|
93
|
-
async removeDir(path) {
|
|
94
|
-
if (writesLocked) {
|
|
95
|
-
throwReadOnly();
|
|
96
|
-
}
|
|
97
|
-
return filesystem.removeDir(path);
|
|
98
|
-
},
|
|
99
|
-
async rename(oldPath, newPath) {
|
|
100
|
-
if (writesLocked) {
|
|
101
|
-
throwReadOnly();
|
|
102
|
-
}
|
|
103
|
-
return filesystem.rename(oldPath, newPath);
|
|
104
|
-
},
|
|
105
|
-
async symlink(target, linkPath) {
|
|
106
|
-
if (writesLocked) {
|
|
107
|
-
throwReadOnly();
|
|
108
|
-
}
|
|
109
|
-
return filesystem.symlink(target, linkPath);
|
|
110
|
-
},
|
|
111
|
-
async link(oldPath, newPath) {
|
|
112
|
-
if (writesLocked) {
|
|
113
|
-
throwReadOnly();
|
|
114
|
-
}
|
|
115
|
-
return filesystem.link(oldPath, newPath);
|
|
116
|
-
},
|
|
117
|
-
async chmod(path, mode) {
|
|
118
|
-
if (writesLocked) {
|
|
119
|
-
throwReadOnly();
|
|
120
|
-
}
|
|
121
|
-
return filesystem.chmod(path, mode);
|
|
122
|
-
},
|
|
123
|
-
async chown(path, uid, gid) {
|
|
124
|
-
if (writesLocked) {
|
|
125
|
-
throwReadOnly();
|
|
126
|
-
}
|
|
127
|
-
return filesystem.chown(path, uid, gid);
|
|
128
|
-
},
|
|
129
|
-
async utimes(path, atime, mtime) {
|
|
130
|
-
if (writesLocked) {
|
|
131
|
-
throwReadOnly();
|
|
132
|
-
}
|
|
133
|
-
return filesystem.utimes(path, atime, mtime);
|
|
134
|
-
},
|
|
135
|
-
async truncate(path, length) {
|
|
136
|
-
if (writesLocked) {
|
|
137
|
-
throwReadOnly();
|
|
138
|
-
}
|
|
139
|
-
return filesystem.truncate(path, length);
|
|
140
|
-
},
|
|
141
|
-
async pwrite(path, offset, data) {
|
|
142
|
-
if (writesLocked) {
|
|
143
|
-
throwReadOnly();
|
|
144
|
-
}
|
|
145
|
-
return filesystem.pwrite(path, offset, data);
|
|
146
|
-
},
|
|
147
|
-
};
|
|
148
|
-
return {
|
|
149
|
-
filesystem: wrapped,
|
|
150
|
-
finishKernelBootstrap() {
|
|
151
|
-
bootstrapActive = false;
|
|
152
|
-
writesLocked = options?.readOnlyAfterBootstrap ?? false;
|
|
153
|
-
},
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
export function getBaseFilesystemSnapshot() {
|
|
157
|
-
return loadSnapshot();
|
|
158
|
-
}
|
|
159
|
-
export function getBaseEnvironment() {
|
|
160
|
-
const snapshot = loadSnapshot();
|
|
161
|
-
return {
|
|
162
|
-
...snapshot.environment.env,
|
|
163
|
-
PS1: snapshot.environment.prompt,
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
export function getBaseFilesystemEntries() {
|
|
167
|
-
return loadSnapshot().filesystem.entries;
|
|
168
|
-
}
|
|
169
|
-
export async function createBaseRootFilesystem() {
|
|
170
|
-
const lower = await createBaseLowerFilesystem();
|
|
171
|
-
const overlay = createOverlayBackend({ lower });
|
|
172
|
-
return createBootstrapAwareFilesystem(overlay, lower);
|
|
173
|
-
}
|
|
1
|
+
export {};
|
|
@@ -1,22 +1,47 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ScheduleDriver } from "./schedule-driver.js";
|
|
1
|
+
import type { AuthenticatedSession, CreatedVm, SidecarCronAlarm, SidecarCronDispatch, SidecarProcess } from "../sidecar/native-process-client.js";
|
|
3
2
|
import type { CronEventHandler, CronJob, CronJobInfo, CronJobOptions } from "./types.js";
|
|
3
|
+
interface CronAlarmDriver {
|
|
4
|
+
set(alarm: SidecarCronAlarm, wake: (generation: number) => Promise<void>): void;
|
|
5
|
+
dispose(): void;
|
|
6
|
+
}
|
|
7
|
+
interface CronTransport {
|
|
8
|
+
scheduleCron: SidecarProcess["scheduleCron"];
|
|
9
|
+
listCronJobs: SidecarProcess["listCronJobs"];
|
|
10
|
+
cancelCronJob: SidecarProcess["cancelCronJob"];
|
|
11
|
+
wakeCron: SidecarProcess["wakeCron"];
|
|
12
|
+
completeCronRun: SidecarProcess["completeCronRun"];
|
|
13
|
+
}
|
|
4
14
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
15
|
+
* Thin cron host adapter. The sidecar owns grammar, defaults, job/run state,
|
|
16
|
+
* overlap policy, counts, missed-fire coalescing, and alarm generations. This
|
|
17
|
+
* class only arms the host clock and routes actions containing host resources.
|
|
7
18
|
*/
|
|
8
19
|
export declare class CronManager {
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
private readonly transport;
|
|
21
|
+
private readonly session;
|
|
22
|
+
private readonly sidecarVm;
|
|
23
|
+
private readonly alarmDriver;
|
|
24
|
+
private readonly listeners;
|
|
25
|
+
private readonly callbacks;
|
|
26
|
+
private readonly callbackByJob;
|
|
27
|
+
private callbackSequence;
|
|
28
|
+
private alarmGeneration;
|
|
29
|
+
private disposed;
|
|
30
|
+
constructor(transport: CronTransport, session: AuthenticatedSession, sidecarVm: CreatedVm, alarmDriver?: CronAlarmDriver);
|
|
31
|
+
schedule(options: CronJobOptions): Promise<CronJob>;
|
|
32
|
+
cancel(id: string): Promise<void>;
|
|
33
|
+
list(): Promise<CronJobInfo[]>;
|
|
17
34
|
onEvent(handler: CronEventHandler): void;
|
|
18
35
|
dispose(): void;
|
|
36
|
+
private wake;
|
|
37
|
+
consumeDispatch(dispatch: SidecarCronDispatch): void;
|
|
38
|
+
private executeRun;
|
|
39
|
+
private toJobInfo;
|
|
19
40
|
private emit;
|
|
20
|
-
private
|
|
21
|
-
private
|
|
41
|
+
private applyAlarm;
|
|
42
|
+
private replaceJobCallback;
|
|
43
|
+
private releaseCallback;
|
|
44
|
+
private allocateCallbackId;
|
|
45
|
+
private ensureActive;
|
|
22
46
|
}
|
|
47
|
+
export {};
|