@serviceme/devtools-core 0.4.2 → 0.4.3

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 CHANGED
@@ -670,10 +670,10 @@ declare const defaultRepoSchema: z.ZodObject<{
670
670
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
671
671
  lastSyncError: z.ZodOptional<z.ZodString>;
672
672
  }, "strip", z.ZodTypeAny, {
673
+ name: string;
673
674
  id: string;
674
675
  description: string;
675
676
  source: "default";
676
- name: string;
677
677
  url: string;
678
678
  branch: string;
679
679
  enabled: boolean;
@@ -685,10 +685,10 @@ declare const defaultRepoSchema: z.ZodObject<{
685
685
  lastSyncStatus?: "ok" | "error" | undefined;
686
686
  lastSyncError?: string | undefined;
687
687
  }, {
688
+ name: string;
688
689
  id: string;
689
690
  description: string;
690
691
  source: "default";
691
- name: string;
692
692
  url: string;
693
693
  branch: string;
694
694
  enabled: boolean;
@@ -715,9 +715,9 @@ declare const userRepoSchema: z.ZodObject<{
715
715
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
716
716
  lastSyncError: z.ZodOptional<z.ZodString>;
717
717
  }, "strip", z.ZodTypeAny, {
718
+ name: string;
718
719
  id: string;
719
720
  source: "user";
720
- name: string;
721
721
  url: string;
722
722
  branch: string;
723
723
  enabled: boolean;
@@ -729,9 +729,9 @@ declare const userRepoSchema: z.ZodObject<{
729
729
  lastSyncStatus?: "ok" | "error" | undefined;
730
730
  lastSyncError?: string | undefined;
731
731
  }, {
732
+ name: string;
732
733
  id: string;
733
734
  source: "user";
734
- name: string;
735
735
  url: string;
736
736
  branch: string;
737
737
  enabled: boolean;
@@ -759,10 +759,10 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
759
759
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
760
760
  lastSyncError: z.ZodOptional<z.ZodString>;
761
761
  }, "strip", z.ZodTypeAny, {
762
+ name: string;
762
763
  id: string;
763
764
  description: string;
764
765
  source: "default";
765
- name: string;
766
766
  url: string;
767
767
  branch: string;
768
768
  enabled: boolean;
@@ -774,10 +774,10 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
774
774
  lastSyncStatus?: "ok" | "error" | undefined;
775
775
  lastSyncError?: string | undefined;
776
776
  }, {
777
+ name: string;
777
778
  id: string;
778
779
  description: string;
779
780
  source: "default";
780
- name: string;
781
781
  url: string;
782
782
  branch: string;
783
783
  enabled: boolean;
@@ -803,9 +803,9 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
803
803
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
804
804
  lastSyncError: z.ZodOptional<z.ZodString>;
805
805
  }, "strip", z.ZodTypeAny, {
806
+ name: string;
806
807
  id: string;
807
808
  source: "user";
808
- name: string;
809
809
  url: string;
810
810
  branch: string;
811
811
  enabled: boolean;
@@ -817,9 +817,9 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
817
817
  lastSyncStatus?: "ok" | "error" | undefined;
818
818
  lastSyncError?: string | undefined;
819
819
  }, {
820
+ name: string;
820
821
  id: string;
821
822
  source: "user";
822
- name: string;
823
823
  url: string;
824
824
  branch: string;
825
825
  enabled: boolean;
@@ -850,10 +850,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
850
850
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
851
851
  lastSyncError: z.ZodOptional<z.ZodString>;
852
852
  }, "strip", z.ZodTypeAny, {
853
+ name: string;
853
854
  id: string;
854
855
  description: string;
855
856
  source: "default";
856
- name: string;
857
857
  url: string;
858
858
  branch: string;
859
859
  enabled: boolean;
@@ -865,10 +865,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
865
865
  lastSyncStatus?: "ok" | "error" | undefined;
866
866
  lastSyncError?: string | undefined;
867
867
  }, {
868
+ name: string;
868
869
  id: string;
869
870
  description: string;
870
871
  source: "default";
871
- name: string;
872
872
  url: string;
873
873
  branch: string;
874
874
  enabled: boolean;
@@ -894,9 +894,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
894
894
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
895
895
  lastSyncError: z.ZodOptional<z.ZodString>;
896
896
  }, "strip", z.ZodTypeAny, {
897
+ name: string;
897
898
  id: string;
898
899
  source: "user";
899
- name: string;
900
900
  url: string;
901
901
  branch: string;
902
902
  enabled: boolean;
@@ -908,9 +908,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
908
908
  lastSyncStatus?: "ok" | "error" | undefined;
909
909
  lastSyncError?: string | undefined;
910
910
  }, {
911
+ name: string;
911
912
  id: string;
912
913
  source: "user";
913
- name: string;
914
914
  url: string;
915
915
  branch: string;
916
916
  enabled: boolean;
@@ -925,10 +925,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
925
925
  }, "strip", z.ZodTypeAny, {
926
926
  version: 1;
927
927
  repos: ({
928
+ name: string;
928
929
  id: string;
929
930
  description: string;
930
931
  source: "default";
931
- name: string;
932
932
  url: string;
933
933
  branch: string;
934
934
  enabled: boolean;
@@ -940,9 +940,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
940
940
  lastSyncStatus?: "ok" | "error" | undefined;
941
941
  lastSyncError?: string | undefined;
942
942
  } | {
943
+ name: string;
943
944
  id: string;
944
945
  source: "user";
945
- name: string;
946
946
  url: string;
947
947
  branch: string;
948
948
  enabled: boolean;
@@ -958,10 +958,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
958
958
  }, {
959
959
  version: 1;
960
960
  repos: ({
961
+ name: string;
961
962
  id: string;
962
963
  description: string;
963
964
  source: "default";
964
- name: string;
965
965
  url: string;
966
966
  branch: string;
967
967
  enabled: boolean;
@@ -973,9 +973,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
973
973
  lastSyncStatus?: "ok" | "error" | undefined;
974
974
  lastSyncError?: string | undefined;
975
975
  } | {
976
+ name: string;
976
977
  id: string;
977
978
  source: "user";
978
- name: string;
979
979
  url: string;
980
980
  branch: string;
981
981
  enabled: boolean;
@@ -991,10 +991,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
991
991
  }>, {
992
992
  version: 1;
993
993
  repos: ({
994
+ name: string;
994
995
  id: string;
995
996
  description: string;
996
997
  source: "default";
997
- name: string;
998
998
  url: string;
999
999
  branch: string;
1000
1000
  enabled: boolean;
@@ -1006,9 +1006,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
1006
1006
  lastSyncStatus?: "ok" | "error" | undefined;
1007
1007
  lastSyncError?: string | undefined;
1008
1008
  } | {
1009
+ name: string;
1009
1010
  id: string;
1010
1011
  source: "user";
1011
- name: string;
1012
1012
  url: string;
1013
1013
  branch: string;
1014
1014
  enabled: boolean;
@@ -1024,10 +1024,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
1024
1024
  }, {
1025
1025
  version: 1;
1026
1026
  repos: ({
1027
+ name: string;
1027
1028
  id: string;
1028
1029
  description: string;
1029
1030
  source: "default";
1030
- name: string;
1031
1031
  url: string;
1032
1032
  branch: string;
1033
1033
  enabled: boolean;
@@ -1039,9 +1039,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
1039
1039
  lastSyncStatus?: "ok" | "error" | undefined;
1040
1040
  lastSyncError?: string | undefined;
1041
1041
  } | {
1042
+ name: string;
1042
1043
  id: string;
1043
1044
  source: "user";
1044
- name: string;
1045
1045
  url: string;
1046
1046
  branch: string;
1047
1047
  enabled: boolean;
@@ -1530,54 +1530,6 @@ declare class ShellExecutor implements StreamingTaskExecutor {
1530
1530
 
1531
1531
  declare function getExecutor(taskType: ScheduledTaskType): TaskExecutor;
1532
1532
 
1533
- interface SchedulerDaemonOptions {
1534
- /**
1535
- * Override the executor factory. Production callers should leave this
1536
- * undefined and rely on the default `getExecutor` from `../executors`;
1537
- * tests inject a fake to drive the execution branch without spawning
1538
- * real subprocesses.
1539
- */
1540
- getExecutor?: typeof getExecutor;
1541
- }
1542
- /**
1543
- * @deprecated v1 per-workspace daemon. Superseded by `SchedulerDaemonV2` in
1544
- * `daemon/SchedulerDaemonV2.ts` for the global single-instance model. Kept
1545
- * temporarily so callers can roll back to v1 behaviour during the M1.5
1546
- * transition. New code should use SchedulerDaemonV2.
1547
- */
1548
- declare class SchedulerDaemon {
1549
- private readonly workspacePath;
1550
- private readonly configManager;
1551
- private readonly logManager;
1552
- private readonly pidManager;
1553
- private readonly logger;
1554
- private readonly getExecutor;
1555
- private tickTimer;
1556
- private watcher;
1557
- private running;
1558
- private startTime;
1559
- private lastRun;
1560
- private taskRunning;
1561
- constructor(workspacePath: string, options?: SchedulerDaemonOptions);
1562
- start(): void;
1563
- stop(): void;
1564
- private setupConfigWatch;
1565
- private tick;
1566
- private shouldRun;
1567
- private executeTask;
1568
- getStatus(): {
1569
- running: boolean;
1570
- pid: number;
1571
- uptimeSeconds: number | null;
1572
- tasksRegistered: number;
1573
- tasksEnabled: number;
1574
- workspacePath: string;
1575
- pidFile: string;
1576
- };
1577
- }
1578
- declare function parseIntervalMs(schedule: string): number;
1579
- declare function matchesCron(expression: string, date: Date): boolean;
1580
-
1581
1533
  declare function validateTaskPayload(taskType: ScheduledTaskType, payload: TaskPayload): void;
1582
1534
  interface CreateTaskInput {
1583
1535
  name: string;
@@ -1930,4 +1882,4 @@ declare class SkillStore {
1930
1882
  declare const unzipFile: (zipPath: string, dest: string) => Promise<void>;
1931
1883
  declare const moveFiles: (sourceDir: string, destDir: string, overwrite?: boolean) => Promise<void>;
1932
1884
 
1933
- export { AGENT_DRAFTS_SUBDIR, type AddUserRepoInput, type AddUserRepoResult, type AgentCatalog, AgentCatalogClient, type AgentCatalogClientOptions, type AgentDownloadFile, type AgentInstallScope, type AgentMutateResult, AgentReconciler, type AgentReconcilerDependencies, AgentStore, type AgentStoreFileSystem, type AgentStoreOptions, type AgentsStateFile, type AnyRepoConfig, type AppendLogInput, type BootstrapPhase5Result, CACHE_SUBDIR, CREDENTIALS_CONFIG_FILENAME, CannotRemoveDefaultRepoError, type CreateTaskInput, FIXED_ADDED_AT as DEFAULT_REPO_FIXED_ADDED_AT, DEFAULT_REPO_ID, DEVICE_JSON_FILENAME, DRAFTS_SUBDIR, DaemonLogger, type DefaultRepoConfig, type DraftDetail, DraftNotFoundError, type DraftSummary, DraftsError, DraftsStore, type EditTaskInput, EnvironmentInspector, type EnvironmentInspectorOptions, type ExecutorResult, type FsWatcherCallbacks, type FsWatcherHandle, GitClient, GithubCopilotCliExecutor, HttpRequestExecutor, ImageTools, type InstalledAgent, InvalidDraftError, InvalidRepoUrlError, type IsoTimestamp, type JsonTools, KNOWN_WORKSPACES_FILENAME, type LoadResult, MACHINE_ID_FILENAME, MIGRATION_FAILURES_FILENAME, type MigrateToGlobalOptions, type MigrationResult, type OutputEventCallback, PROFILES_JSON_FILENAME, PidManager, type ProbeError, type ProbeOptions, type ProbeResult, ProjectTools, REPOS_CONFIG_FILENAME, REPOS_SUBDIR, RepoAlreadyExistsError, RepoCloneConflictError, type RepoConfig, RepoManager, RepoManagerError, type RepoManagerOptions, RepoNotFoundError, RepoNotInStoreError, type RepoSource, type ReposFile, type ReposFileInput, ReposLoader, type ReposLoaderFileSystem, type ReposLoaderOptions, ReposStore, type ReposStoreChange, type ReposStoreFileSystem, type ReposStoreListener, type ReposStoreOptions, SAFE_REPO_ID_PATTERN, SCHEDULED_TASKS_CONFIG_FILENAME, SCHEDULED_TASKS_LOG_FILENAME, SCHEDULER_LOCK_FILENAME, SCHEDULER_LOG_FILENAME, SCHEDULER_PID_FILENAME, SERVER_PROXY_GLOBAL_FILENAME, SERVICEME_DIR_NAME, SERVICEME_HOME_ENV, SKILL_DRAFTS_SUBDIR, type SaveDraftOptions, SchedulerDaemon, SchedulerDaemonV2, type SchedulerDaemonV2Options, type ServerProxyGlobalPatch, type ServerProxyGlobalState, ShellExecutor, type SkillCatalog, SkillCatalogClient, type SkillCatalogClientOptions, type SkillDownloadFile, type SkillMutateResult, SkillReconciler, type SkillReconcilerDependencies, SkillStore, type SkillStoreFileSystem, type SkillStoreOptions, type StreamingExecutorHandle, type StreamingTaskExecutor, type SyncReport, type SyncStatus, TOOLBOX_JSON_FILENAME, TOOL_RISK_MAP, TaskConfigManager, type TaskEventListener, TaskExecutionEngine, type TaskExecutor, TaskLogManager, type UserRepoConfig, WorkspaceProbe, repoSchema as anyRepoConfigSchema, assertSafeRepoId, bootstrapDefaults, bootstrapPhase5Placeholders, buildDefaultReposFile, copilotDoctor, copilotPrompt, createCopilotAuthRequiredError, createCopilotNotInstalledError, createImageTools, createJsonTools, createProjectTools, createReposStore, defaultRepoSchema as defaultRepoConfigSchema, ensureDefaultsInstalled, generateDraftId, getAgentDraftsDir, getAllDefaultRepoConfigs, getCacheDir, getCredentialsConfigPath, getDefaultRepoConfig, getDeviceJsonPath, getDraftsDir, getExecutor, getHomeDir, getHomePlatform, getKnownWorkspacesPath, getMachineIdPath, getMigrationFailuresPath, getProfilesJsonPath, getRepoCacheDir, getRepoDir, getReposConfigPath, getReposDir, getScheduledTasksConfigPath, getScheduledTasksLogPath, getSchedulerLockPath, getSchedulerLogPath, getSchedulerPidPath, getServerProxyGlobalPath, getServicemeHome, getSkillDraftsDir, getToolboxJsonPath, isCopilotAuthenticated, isDefaultRepo, isStreamingTaskExecutor, isUserRepo, matchesCron, migrateLegacyServerProxyEnabled, migrateToGlobal, moveFiles, narrowRepoConfig, parseAgentToolPermissions, parseIntervalMs, readServerProxyGlobal, reposFileSchema, resetUserHomeOverrides, resolveDraftDir, resolveTaskExecutionPayload, setUserHomeOverrides, unzipFile, userRepoSchema as userRepoConfigSchema, validateReposFile, validateTaskPayload, writeServerProxyGlobal };
1885
+ export { AGENT_DRAFTS_SUBDIR, type AddUserRepoInput, type AddUserRepoResult, type AgentCatalog, AgentCatalogClient, type AgentCatalogClientOptions, type AgentDownloadFile, type AgentInstallScope, type AgentMutateResult, AgentReconciler, type AgentReconcilerDependencies, AgentStore, type AgentStoreFileSystem, type AgentStoreOptions, type AgentsStateFile, type AnyRepoConfig, type AppendLogInput, type BootstrapPhase5Result, CACHE_SUBDIR, CREDENTIALS_CONFIG_FILENAME, CannotRemoveDefaultRepoError, type CreateTaskInput, FIXED_ADDED_AT as DEFAULT_REPO_FIXED_ADDED_AT, DEFAULT_REPO_ID, DEVICE_JSON_FILENAME, DRAFTS_SUBDIR, DaemonLogger, type DefaultRepoConfig, type DraftDetail, DraftNotFoundError, type DraftSummary, DraftsError, DraftsStore, type EditTaskInput, EnvironmentInspector, type EnvironmentInspectorOptions, type ExecutorResult, type FsWatcherCallbacks, type FsWatcherHandle, GitClient, GithubCopilotCliExecutor, HttpRequestExecutor, ImageTools, type InstalledAgent, InvalidDraftError, InvalidRepoUrlError, type IsoTimestamp, type JsonTools, KNOWN_WORKSPACES_FILENAME, type LoadResult, MACHINE_ID_FILENAME, MIGRATION_FAILURES_FILENAME, type MigrateToGlobalOptions, type MigrationResult, type OutputEventCallback, PROFILES_JSON_FILENAME, PidManager, type ProbeError, type ProbeOptions, type ProbeResult, ProjectTools, REPOS_CONFIG_FILENAME, REPOS_SUBDIR, RepoAlreadyExistsError, RepoCloneConflictError, type RepoConfig, RepoManager, RepoManagerError, type RepoManagerOptions, RepoNotFoundError, RepoNotInStoreError, type RepoSource, type ReposFile, type ReposFileInput, ReposLoader, type ReposLoaderFileSystem, type ReposLoaderOptions, ReposStore, type ReposStoreChange, type ReposStoreFileSystem, type ReposStoreListener, type ReposStoreOptions, SAFE_REPO_ID_PATTERN, SCHEDULED_TASKS_CONFIG_FILENAME, SCHEDULED_TASKS_LOG_FILENAME, SCHEDULER_LOCK_FILENAME, SCHEDULER_LOG_FILENAME, SCHEDULER_PID_FILENAME, SERVER_PROXY_GLOBAL_FILENAME, SERVICEME_DIR_NAME, SERVICEME_HOME_ENV, SKILL_DRAFTS_SUBDIR, type SaveDraftOptions, SchedulerDaemonV2, type SchedulerDaemonV2Options, type ServerProxyGlobalPatch, type ServerProxyGlobalState, ShellExecutor, type SkillCatalog, SkillCatalogClient, type SkillCatalogClientOptions, type SkillDownloadFile, type SkillMutateResult, SkillReconciler, type SkillReconcilerDependencies, SkillStore, type SkillStoreFileSystem, type SkillStoreOptions, type StreamingExecutorHandle, type StreamingTaskExecutor, type SyncReport, type SyncStatus, TOOLBOX_JSON_FILENAME, TOOL_RISK_MAP, TaskConfigManager, type TaskEventListener, TaskExecutionEngine, type TaskExecutor, TaskLogManager, type UserRepoConfig, WorkspaceProbe, repoSchema as anyRepoConfigSchema, assertSafeRepoId, bootstrapDefaults, bootstrapPhase5Placeholders, buildDefaultReposFile, copilotDoctor, copilotPrompt, createCopilotAuthRequiredError, createCopilotNotInstalledError, createImageTools, createJsonTools, createProjectTools, createReposStore, defaultRepoSchema as defaultRepoConfigSchema, ensureDefaultsInstalled, generateDraftId, getAgentDraftsDir, getAllDefaultRepoConfigs, getCacheDir, getCredentialsConfigPath, getDefaultRepoConfig, getDeviceJsonPath, getDraftsDir, getExecutor, getHomeDir, getHomePlatform, getKnownWorkspacesPath, getMachineIdPath, getMigrationFailuresPath, getProfilesJsonPath, getRepoCacheDir, getRepoDir, getReposConfigPath, getReposDir, getScheduledTasksConfigPath, getScheduledTasksLogPath, getSchedulerLockPath, getSchedulerLogPath, getSchedulerPidPath, getServerProxyGlobalPath, getServicemeHome, getSkillDraftsDir, getToolboxJsonPath, isCopilotAuthenticated, isDefaultRepo, isStreamingTaskExecutor, isUserRepo, migrateLegacyServerProxyEnabled, migrateToGlobal, moveFiles, narrowRepoConfig, parseAgentToolPermissions, readServerProxyGlobal, reposFileSchema, resetUserHomeOverrides, resolveDraftDir, resolveTaskExecutionPayload, setUserHomeOverrides, unzipFile, userRepoSchema as userRepoConfigSchema, validateReposFile, validateTaskPayload, writeServerProxyGlobal };
package/dist/index.d.ts CHANGED
@@ -670,10 +670,10 @@ declare const defaultRepoSchema: z.ZodObject<{
670
670
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
671
671
  lastSyncError: z.ZodOptional<z.ZodString>;
672
672
  }, "strip", z.ZodTypeAny, {
673
+ name: string;
673
674
  id: string;
674
675
  description: string;
675
676
  source: "default";
676
- name: string;
677
677
  url: string;
678
678
  branch: string;
679
679
  enabled: boolean;
@@ -685,10 +685,10 @@ declare const defaultRepoSchema: z.ZodObject<{
685
685
  lastSyncStatus?: "ok" | "error" | undefined;
686
686
  lastSyncError?: string | undefined;
687
687
  }, {
688
+ name: string;
688
689
  id: string;
689
690
  description: string;
690
691
  source: "default";
691
- name: string;
692
692
  url: string;
693
693
  branch: string;
694
694
  enabled: boolean;
@@ -715,9 +715,9 @@ declare const userRepoSchema: z.ZodObject<{
715
715
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
716
716
  lastSyncError: z.ZodOptional<z.ZodString>;
717
717
  }, "strip", z.ZodTypeAny, {
718
+ name: string;
718
719
  id: string;
719
720
  source: "user";
720
- name: string;
721
721
  url: string;
722
722
  branch: string;
723
723
  enabled: boolean;
@@ -729,9 +729,9 @@ declare const userRepoSchema: z.ZodObject<{
729
729
  lastSyncStatus?: "ok" | "error" | undefined;
730
730
  lastSyncError?: string | undefined;
731
731
  }, {
732
+ name: string;
732
733
  id: string;
733
734
  source: "user";
734
- name: string;
735
735
  url: string;
736
736
  branch: string;
737
737
  enabled: boolean;
@@ -759,10 +759,10 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
759
759
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
760
760
  lastSyncError: z.ZodOptional<z.ZodString>;
761
761
  }, "strip", z.ZodTypeAny, {
762
+ name: string;
762
763
  id: string;
763
764
  description: string;
764
765
  source: "default";
765
- name: string;
766
766
  url: string;
767
767
  branch: string;
768
768
  enabled: boolean;
@@ -774,10 +774,10 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
774
774
  lastSyncStatus?: "ok" | "error" | undefined;
775
775
  lastSyncError?: string | undefined;
776
776
  }, {
777
+ name: string;
777
778
  id: string;
778
779
  description: string;
779
780
  source: "default";
780
- name: string;
781
781
  url: string;
782
782
  branch: string;
783
783
  enabled: boolean;
@@ -803,9 +803,9 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
803
803
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
804
804
  lastSyncError: z.ZodOptional<z.ZodString>;
805
805
  }, "strip", z.ZodTypeAny, {
806
+ name: string;
806
807
  id: string;
807
808
  source: "user";
808
- name: string;
809
809
  url: string;
810
810
  branch: string;
811
811
  enabled: boolean;
@@ -817,9 +817,9 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
817
817
  lastSyncStatus?: "ok" | "error" | undefined;
818
818
  lastSyncError?: string | undefined;
819
819
  }, {
820
+ name: string;
820
821
  id: string;
821
822
  source: "user";
822
- name: string;
823
823
  url: string;
824
824
  branch: string;
825
825
  enabled: boolean;
@@ -850,10 +850,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
850
850
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
851
851
  lastSyncError: z.ZodOptional<z.ZodString>;
852
852
  }, "strip", z.ZodTypeAny, {
853
+ name: string;
853
854
  id: string;
854
855
  description: string;
855
856
  source: "default";
856
- name: string;
857
857
  url: string;
858
858
  branch: string;
859
859
  enabled: boolean;
@@ -865,10 +865,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
865
865
  lastSyncStatus?: "ok" | "error" | undefined;
866
866
  lastSyncError?: string | undefined;
867
867
  }, {
868
+ name: string;
868
869
  id: string;
869
870
  description: string;
870
871
  source: "default";
871
- name: string;
872
872
  url: string;
873
873
  branch: string;
874
874
  enabled: boolean;
@@ -894,9 +894,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
894
894
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
895
895
  lastSyncError: z.ZodOptional<z.ZodString>;
896
896
  }, "strip", z.ZodTypeAny, {
897
+ name: string;
897
898
  id: string;
898
899
  source: "user";
899
- name: string;
900
900
  url: string;
901
901
  branch: string;
902
902
  enabled: boolean;
@@ -908,9 +908,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
908
908
  lastSyncStatus?: "ok" | "error" | undefined;
909
909
  lastSyncError?: string | undefined;
910
910
  }, {
911
+ name: string;
911
912
  id: string;
912
913
  source: "user";
913
- name: string;
914
914
  url: string;
915
915
  branch: string;
916
916
  enabled: boolean;
@@ -925,10 +925,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
925
925
  }, "strip", z.ZodTypeAny, {
926
926
  version: 1;
927
927
  repos: ({
928
+ name: string;
928
929
  id: string;
929
930
  description: string;
930
931
  source: "default";
931
- name: string;
932
932
  url: string;
933
933
  branch: string;
934
934
  enabled: boolean;
@@ -940,9 +940,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
940
940
  lastSyncStatus?: "ok" | "error" | undefined;
941
941
  lastSyncError?: string | undefined;
942
942
  } | {
943
+ name: string;
943
944
  id: string;
944
945
  source: "user";
945
- name: string;
946
946
  url: string;
947
947
  branch: string;
948
948
  enabled: boolean;
@@ -958,10 +958,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
958
958
  }, {
959
959
  version: 1;
960
960
  repos: ({
961
+ name: string;
961
962
  id: string;
962
963
  description: string;
963
964
  source: "default";
964
- name: string;
965
965
  url: string;
966
966
  branch: string;
967
967
  enabled: boolean;
@@ -973,9 +973,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
973
973
  lastSyncStatus?: "ok" | "error" | undefined;
974
974
  lastSyncError?: string | undefined;
975
975
  } | {
976
+ name: string;
976
977
  id: string;
977
978
  source: "user";
978
- name: string;
979
979
  url: string;
980
980
  branch: string;
981
981
  enabled: boolean;
@@ -991,10 +991,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
991
991
  }>, {
992
992
  version: 1;
993
993
  repos: ({
994
+ name: string;
994
995
  id: string;
995
996
  description: string;
996
997
  source: "default";
997
- name: string;
998
998
  url: string;
999
999
  branch: string;
1000
1000
  enabled: boolean;
@@ -1006,9 +1006,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
1006
1006
  lastSyncStatus?: "ok" | "error" | undefined;
1007
1007
  lastSyncError?: string | undefined;
1008
1008
  } | {
1009
+ name: string;
1009
1010
  id: string;
1010
1011
  source: "user";
1011
- name: string;
1012
1012
  url: string;
1013
1013
  branch: string;
1014
1014
  enabled: boolean;
@@ -1024,10 +1024,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
1024
1024
  }, {
1025
1025
  version: 1;
1026
1026
  repos: ({
1027
+ name: string;
1027
1028
  id: string;
1028
1029
  description: string;
1029
1030
  source: "default";
1030
- name: string;
1031
1031
  url: string;
1032
1032
  branch: string;
1033
1033
  enabled: boolean;
@@ -1039,9 +1039,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
1039
1039
  lastSyncStatus?: "ok" | "error" | undefined;
1040
1040
  lastSyncError?: string | undefined;
1041
1041
  } | {
1042
+ name: string;
1042
1043
  id: string;
1043
1044
  source: "user";
1044
- name: string;
1045
1045
  url: string;
1046
1046
  branch: string;
1047
1047
  enabled: boolean;
@@ -1530,54 +1530,6 @@ declare class ShellExecutor implements StreamingTaskExecutor {
1530
1530
 
1531
1531
  declare function getExecutor(taskType: ScheduledTaskType): TaskExecutor;
1532
1532
 
1533
- interface SchedulerDaemonOptions {
1534
- /**
1535
- * Override the executor factory. Production callers should leave this
1536
- * undefined and rely on the default `getExecutor` from `../executors`;
1537
- * tests inject a fake to drive the execution branch without spawning
1538
- * real subprocesses.
1539
- */
1540
- getExecutor?: typeof getExecutor;
1541
- }
1542
- /**
1543
- * @deprecated v1 per-workspace daemon. Superseded by `SchedulerDaemonV2` in
1544
- * `daemon/SchedulerDaemonV2.ts` for the global single-instance model. Kept
1545
- * temporarily so callers can roll back to v1 behaviour during the M1.5
1546
- * transition. New code should use SchedulerDaemonV2.
1547
- */
1548
- declare class SchedulerDaemon {
1549
- private readonly workspacePath;
1550
- private readonly configManager;
1551
- private readonly logManager;
1552
- private readonly pidManager;
1553
- private readonly logger;
1554
- private readonly getExecutor;
1555
- private tickTimer;
1556
- private watcher;
1557
- private running;
1558
- private startTime;
1559
- private lastRun;
1560
- private taskRunning;
1561
- constructor(workspacePath: string, options?: SchedulerDaemonOptions);
1562
- start(): void;
1563
- stop(): void;
1564
- private setupConfigWatch;
1565
- private tick;
1566
- private shouldRun;
1567
- private executeTask;
1568
- getStatus(): {
1569
- running: boolean;
1570
- pid: number;
1571
- uptimeSeconds: number | null;
1572
- tasksRegistered: number;
1573
- tasksEnabled: number;
1574
- workspacePath: string;
1575
- pidFile: string;
1576
- };
1577
- }
1578
- declare function parseIntervalMs(schedule: string): number;
1579
- declare function matchesCron(expression: string, date: Date): boolean;
1580
-
1581
1533
  declare function validateTaskPayload(taskType: ScheduledTaskType, payload: TaskPayload): void;
1582
1534
  interface CreateTaskInput {
1583
1535
  name: string;
@@ -1930,4 +1882,4 @@ declare class SkillStore {
1930
1882
  declare const unzipFile: (zipPath: string, dest: string) => Promise<void>;
1931
1883
  declare const moveFiles: (sourceDir: string, destDir: string, overwrite?: boolean) => Promise<void>;
1932
1884
 
1933
- export { AGENT_DRAFTS_SUBDIR, type AddUserRepoInput, type AddUserRepoResult, type AgentCatalog, AgentCatalogClient, type AgentCatalogClientOptions, type AgentDownloadFile, type AgentInstallScope, type AgentMutateResult, AgentReconciler, type AgentReconcilerDependencies, AgentStore, type AgentStoreFileSystem, type AgentStoreOptions, type AgentsStateFile, type AnyRepoConfig, type AppendLogInput, type BootstrapPhase5Result, CACHE_SUBDIR, CREDENTIALS_CONFIG_FILENAME, CannotRemoveDefaultRepoError, type CreateTaskInput, FIXED_ADDED_AT as DEFAULT_REPO_FIXED_ADDED_AT, DEFAULT_REPO_ID, DEVICE_JSON_FILENAME, DRAFTS_SUBDIR, DaemonLogger, type DefaultRepoConfig, type DraftDetail, DraftNotFoundError, type DraftSummary, DraftsError, DraftsStore, type EditTaskInput, EnvironmentInspector, type EnvironmentInspectorOptions, type ExecutorResult, type FsWatcherCallbacks, type FsWatcherHandle, GitClient, GithubCopilotCliExecutor, HttpRequestExecutor, ImageTools, type InstalledAgent, InvalidDraftError, InvalidRepoUrlError, type IsoTimestamp, type JsonTools, KNOWN_WORKSPACES_FILENAME, type LoadResult, MACHINE_ID_FILENAME, MIGRATION_FAILURES_FILENAME, type MigrateToGlobalOptions, type MigrationResult, type OutputEventCallback, PROFILES_JSON_FILENAME, PidManager, type ProbeError, type ProbeOptions, type ProbeResult, ProjectTools, REPOS_CONFIG_FILENAME, REPOS_SUBDIR, RepoAlreadyExistsError, RepoCloneConflictError, type RepoConfig, RepoManager, RepoManagerError, type RepoManagerOptions, RepoNotFoundError, RepoNotInStoreError, type RepoSource, type ReposFile, type ReposFileInput, ReposLoader, type ReposLoaderFileSystem, type ReposLoaderOptions, ReposStore, type ReposStoreChange, type ReposStoreFileSystem, type ReposStoreListener, type ReposStoreOptions, SAFE_REPO_ID_PATTERN, SCHEDULED_TASKS_CONFIG_FILENAME, SCHEDULED_TASKS_LOG_FILENAME, SCHEDULER_LOCK_FILENAME, SCHEDULER_LOG_FILENAME, SCHEDULER_PID_FILENAME, SERVER_PROXY_GLOBAL_FILENAME, SERVICEME_DIR_NAME, SERVICEME_HOME_ENV, SKILL_DRAFTS_SUBDIR, type SaveDraftOptions, SchedulerDaemon, SchedulerDaemonV2, type SchedulerDaemonV2Options, type ServerProxyGlobalPatch, type ServerProxyGlobalState, ShellExecutor, type SkillCatalog, SkillCatalogClient, type SkillCatalogClientOptions, type SkillDownloadFile, type SkillMutateResult, SkillReconciler, type SkillReconcilerDependencies, SkillStore, type SkillStoreFileSystem, type SkillStoreOptions, type StreamingExecutorHandle, type StreamingTaskExecutor, type SyncReport, type SyncStatus, TOOLBOX_JSON_FILENAME, TOOL_RISK_MAP, TaskConfigManager, type TaskEventListener, TaskExecutionEngine, type TaskExecutor, TaskLogManager, type UserRepoConfig, WorkspaceProbe, repoSchema as anyRepoConfigSchema, assertSafeRepoId, bootstrapDefaults, bootstrapPhase5Placeholders, buildDefaultReposFile, copilotDoctor, copilotPrompt, createCopilotAuthRequiredError, createCopilotNotInstalledError, createImageTools, createJsonTools, createProjectTools, createReposStore, defaultRepoSchema as defaultRepoConfigSchema, ensureDefaultsInstalled, generateDraftId, getAgentDraftsDir, getAllDefaultRepoConfigs, getCacheDir, getCredentialsConfigPath, getDefaultRepoConfig, getDeviceJsonPath, getDraftsDir, getExecutor, getHomeDir, getHomePlatform, getKnownWorkspacesPath, getMachineIdPath, getMigrationFailuresPath, getProfilesJsonPath, getRepoCacheDir, getRepoDir, getReposConfigPath, getReposDir, getScheduledTasksConfigPath, getScheduledTasksLogPath, getSchedulerLockPath, getSchedulerLogPath, getSchedulerPidPath, getServerProxyGlobalPath, getServicemeHome, getSkillDraftsDir, getToolboxJsonPath, isCopilotAuthenticated, isDefaultRepo, isStreamingTaskExecutor, isUserRepo, matchesCron, migrateLegacyServerProxyEnabled, migrateToGlobal, moveFiles, narrowRepoConfig, parseAgentToolPermissions, parseIntervalMs, readServerProxyGlobal, reposFileSchema, resetUserHomeOverrides, resolveDraftDir, resolveTaskExecutionPayload, setUserHomeOverrides, unzipFile, userRepoSchema as userRepoConfigSchema, validateReposFile, validateTaskPayload, writeServerProxyGlobal };
1885
+ export { AGENT_DRAFTS_SUBDIR, type AddUserRepoInput, type AddUserRepoResult, type AgentCatalog, AgentCatalogClient, type AgentCatalogClientOptions, type AgentDownloadFile, type AgentInstallScope, type AgentMutateResult, AgentReconciler, type AgentReconcilerDependencies, AgentStore, type AgentStoreFileSystem, type AgentStoreOptions, type AgentsStateFile, type AnyRepoConfig, type AppendLogInput, type BootstrapPhase5Result, CACHE_SUBDIR, CREDENTIALS_CONFIG_FILENAME, CannotRemoveDefaultRepoError, type CreateTaskInput, FIXED_ADDED_AT as DEFAULT_REPO_FIXED_ADDED_AT, DEFAULT_REPO_ID, DEVICE_JSON_FILENAME, DRAFTS_SUBDIR, DaemonLogger, type DefaultRepoConfig, type DraftDetail, DraftNotFoundError, type DraftSummary, DraftsError, DraftsStore, type EditTaskInput, EnvironmentInspector, type EnvironmentInspectorOptions, type ExecutorResult, type FsWatcherCallbacks, type FsWatcherHandle, GitClient, GithubCopilotCliExecutor, HttpRequestExecutor, ImageTools, type InstalledAgent, InvalidDraftError, InvalidRepoUrlError, type IsoTimestamp, type JsonTools, KNOWN_WORKSPACES_FILENAME, type LoadResult, MACHINE_ID_FILENAME, MIGRATION_FAILURES_FILENAME, type MigrateToGlobalOptions, type MigrationResult, type OutputEventCallback, PROFILES_JSON_FILENAME, PidManager, type ProbeError, type ProbeOptions, type ProbeResult, ProjectTools, REPOS_CONFIG_FILENAME, REPOS_SUBDIR, RepoAlreadyExistsError, RepoCloneConflictError, type RepoConfig, RepoManager, RepoManagerError, type RepoManagerOptions, RepoNotFoundError, RepoNotInStoreError, type RepoSource, type ReposFile, type ReposFileInput, ReposLoader, type ReposLoaderFileSystem, type ReposLoaderOptions, ReposStore, type ReposStoreChange, type ReposStoreFileSystem, type ReposStoreListener, type ReposStoreOptions, SAFE_REPO_ID_PATTERN, SCHEDULED_TASKS_CONFIG_FILENAME, SCHEDULED_TASKS_LOG_FILENAME, SCHEDULER_LOCK_FILENAME, SCHEDULER_LOG_FILENAME, SCHEDULER_PID_FILENAME, SERVER_PROXY_GLOBAL_FILENAME, SERVICEME_DIR_NAME, SERVICEME_HOME_ENV, SKILL_DRAFTS_SUBDIR, type SaveDraftOptions, SchedulerDaemonV2, type SchedulerDaemonV2Options, type ServerProxyGlobalPatch, type ServerProxyGlobalState, ShellExecutor, type SkillCatalog, SkillCatalogClient, type SkillCatalogClientOptions, type SkillDownloadFile, type SkillMutateResult, SkillReconciler, type SkillReconcilerDependencies, SkillStore, type SkillStoreFileSystem, type SkillStoreOptions, type StreamingExecutorHandle, type StreamingTaskExecutor, type SyncReport, type SyncStatus, TOOLBOX_JSON_FILENAME, TOOL_RISK_MAP, TaskConfigManager, type TaskEventListener, TaskExecutionEngine, type TaskExecutor, TaskLogManager, type UserRepoConfig, WorkspaceProbe, repoSchema as anyRepoConfigSchema, assertSafeRepoId, bootstrapDefaults, bootstrapPhase5Placeholders, buildDefaultReposFile, copilotDoctor, copilotPrompt, createCopilotAuthRequiredError, createCopilotNotInstalledError, createImageTools, createJsonTools, createProjectTools, createReposStore, defaultRepoSchema as defaultRepoConfigSchema, ensureDefaultsInstalled, generateDraftId, getAgentDraftsDir, getAllDefaultRepoConfigs, getCacheDir, getCredentialsConfigPath, getDefaultRepoConfig, getDeviceJsonPath, getDraftsDir, getExecutor, getHomeDir, getHomePlatform, getKnownWorkspacesPath, getMachineIdPath, getMigrationFailuresPath, getProfilesJsonPath, getRepoCacheDir, getRepoDir, getReposConfigPath, getReposDir, getScheduledTasksConfigPath, getScheduledTasksLogPath, getSchedulerLockPath, getSchedulerLogPath, getSchedulerPidPath, getServerProxyGlobalPath, getServicemeHome, getSkillDraftsDir, getToolboxJsonPath, isCopilotAuthenticated, isDefaultRepo, isStreamingTaskExecutor, isUserRepo, migrateLegacyServerProxyEnabled, migrateToGlobal, moveFiles, narrowRepoConfig, parseAgentToolPermissions, readServerProxyGlobal, reposFileSchema, resetUserHomeOverrides, resolveDraftDir, resolveTaskExecutionPayload, setUserHomeOverrides, unzipFile, userRepoSchema as userRepoConfigSchema, validateReposFile, validateTaskPayload, writeServerProxyGlobal };