@serviceme/devtools-core 0.1.3 → 0.1.4
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/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +493 -226
- package/dist/index.mjs +490 -225
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -151,6 +151,7 @@ declare class ShellExecutor implements StreamingTaskExecutor {
|
|
|
151
151
|
|
|
152
152
|
declare function getExecutor(taskType: ScheduledTaskType): TaskExecutor;
|
|
153
153
|
|
|
154
|
+
declare function validateTaskPayload(taskType: ScheduledTaskType, payload: TaskPayload): void;
|
|
154
155
|
interface CreateTaskInput {
|
|
155
156
|
name: string;
|
|
156
157
|
description?: string;
|
|
@@ -191,6 +192,7 @@ interface TaskEventListener {
|
|
|
191
192
|
onFailed(params: TaskFailedEventParams): void;
|
|
192
193
|
onCancelled(params: TaskCancelledEventParams): void;
|
|
193
194
|
}
|
|
195
|
+
declare function resolveTaskExecutionPayload(taskType: ScheduledTaskType, payload: TaskPayload, workspacePath: string): TaskPayload;
|
|
194
196
|
declare class TaskExecutionEngine {
|
|
195
197
|
private readonly getExecutor;
|
|
196
198
|
private readonly running;
|
|
@@ -234,4 +236,4 @@ declare class TaskLogManager {
|
|
|
234
236
|
declare const unzipFile: (zipPath: string, dest: string) => Promise<void>;
|
|
235
237
|
declare const moveFiles: (sourceDir: string, destDir: string, overwrite?: boolean) => Promise<void>;
|
|
236
238
|
|
|
237
|
-
export { type AppendLogInput, type CreateTaskInput, DaemonLogger, type EditTaskInput, EnvironmentInspector, type ExecutorResult, GithubCopilotCliExecutor, HttpRequestExecutor, ImageTools, type JsonTools, type OutputEventCallback, PidManager, ProjectTools, SchedulerDaemon, type ServiceMeLogger, ShellExecutor, type StreamingExecutorHandle, type StreamingTaskExecutor, TaskConfigManager, type TaskEventListener, TaskExecutionEngine, type TaskExecutor, TaskLogManager, copilotDoctor, copilotPrompt, createConsoleLogger, createCopilotAuthRequiredError, createCopilotNotInstalledError, createImageTools, createJsonTools, createProjectTools, getExecutor, isCopilotAuthenticated, isStreamingTaskExecutor, matchesCron, moveFiles, noopLogger, parseIntervalMs, unzipFile };
|
|
239
|
+
export { type AppendLogInput, type CreateTaskInput, DaemonLogger, type EditTaskInput, EnvironmentInspector, type ExecutorResult, GithubCopilotCliExecutor, HttpRequestExecutor, ImageTools, type JsonTools, type OutputEventCallback, PidManager, ProjectTools, SchedulerDaemon, type ServiceMeLogger, ShellExecutor, type StreamingExecutorHandle, type StreamingTaskExecutor, TaskConfigManager, type TaskEventListener, TaskExecutionEngine, type TaskExecutor, TaskLogManager, copilotDoctor, copilotPrompt, createConsoleLogger, createCopilotAuthRequiredError, createCopilotNotInstalledError, createImageTools, createJsonTools, createProjectTools, getExecutor, isCopilotAuthenticated, isStreamingTaskExecutor, matchesCron, moveFiles, noopLogger, parseIntervalMs, resolveTaskExecutionPayload, unzipFile, validateTaskPayload };
|
package/dist/index.d.ts
CHANGED
|
@@ -151,6 +151,7 @@ declare class ShellExecutor implements StreamingTaskExecutor {
|
|
|
151
151
|
|
|
152
152
|
declare function getExecutor(taskType: ScheduledTaskType): TaskExecutor;
|
|
153
153
|
|
|
154
|
+
declare function validateTaskPayload(taskType: ScheduledTaskType, payload: TaskPayload): void;
|
|
154
155
|
interface CreateTaskInput {
|
|
155
156
|
name: string;
|
|
156
157
|
description?: string;
|
|
@@ -191,6 +192,7 @@ interface TaskEventListener {
|
|
|
191
192
|
onFailed(params: TaskFailedEventParams): void;
|
|
192
193
|
onCancelled(params: TaskCancelledEventParams): void;
|
|
193
194
|
}
|
|
195
|
+
declare function resolveTaskExecutionPayload(taskType: ScheduledTaskType, payload: TaskPayload, workspacePath: string): TaskPayload;
|
|
194
196
|
declare class TaskExecutionEngine {
|
|
195
197
|
private readonly getExecutor;
|
|
196
198
|
private readonly running;
|
|
@@ -234,4 +236,4 @@ declare class TaskLogManager {
|
|
|
234
236
|
declare const unzipFile: (zipPath: string, dest: string) => Promise<void>;
|
|
235
237
|
declare const moveFiles: (sourceDir: string, destDir: string, overwrite?: boolean) => Promise<void>;
|
|
236
238
|
|
|
237
|
-
export { type AppendLogInput, type CreateTaskInput, DaemonLogger, type EditTaskInput, EnvironmentInspector, type ExecutorResult, GithubCopilotCliExecutor, HttpRequestExecutor, ImageTools, type JsonTools, type OutputEventCallback, PidManager, ProjectTools, SchedulerDaemon, type ServiceMeLogger, ShellExecutor, type StreamingExecutorHandle, type StreamingTaskExecutor, TaskConfigManager, type TaskEventListener, TaskExecutionEngine, type TaskExecutor, TaskLogManager, copilotDoctor, copilotPrompt, createConsoleLogger, createCopilotAuthRequiredError, createCopilotNotInstalledError, createImageTools, createJsonTools, createProjectTools, getExecutor, isCopilotAuthenticated, isStreamingTaskExecutor, matchesCron, moveFiles, noopLogger, parseIntervalMs, unzipFile };
|
|
239
|
+
export { type AppendLogInput, type CreateTaskInput, DaemonLogger, type EditTaskInput, EnvironmentInspector, type ExecutorResult, GithubCopilotCliExecutor, HttpRequestExecutor, ImageTools, type JsonTools, type OutputEventCallback, PidManager, ProjectTools, SchedulerDaemon, type ServiceMeLogger, ShellExecutor, type StreamingExecutorHandle, type StreamingTaskExecutor, TaskConfigManager, type TaskEventListener, TaskExecutionEngine, type TaskExecutor, TaskLogManager, copilotDoctor, copilotPrompt, createConsoleLogger, createCopilotAuthRequiredError, createCopilotNotInstalledError, createImageTools, createJsonTools, createProjectTools, getExecutor, isCopilotAuthenticated, isStreamingTaskExecutor, matchesCron, moveFiles, noopLogger, parseIntervalMs, resolveTaskExecutionPayload, unzipFile, validateTaskPayload };
|