@serviceme/devtools-core 0.3.2 → 0.3.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
@@ -1,7 +1,7 @@
1
1
  import * as _serviceme_devtools_protocol from '@serviceme/devtools-protocol';
2
2
  import { AgentMarketplaceEntry, AgentMutationRequest, AgentPermissionSummary, CopilotDoctorResult, CopilotPromptOptions, CopilotPromptResult, EnvironmentCheckResult, KnownEnvironmentTool, ToolCheckResult, ServiceMeImageValidationResult, ServiceMeImageInfo, ServiceMeImageCompressOptions, ServiceMeImageCompressResult, JsonSortOptions, JsonValidationResult, AgentToolRiskLevel, AgentToolPermission, ServiceMeProjectExtractTemplateInput, ServiceMeProjectExtractTemplateResult, ServiceMeProjectInstallDepsResult, ServiceMeProjectMakeScriptsExecutableResult, ServiceMeProjectGitInitResult, ServiceMeProjectScaffoldPruneResult, TaskExecutionStatus, ScheduledTaskType, TaskPayload, TaskWorkspaceRef, ScheduledTasksConfig, ScheduledTask, TaskExecutionLog, TaskStartedEventParams, TaskOutputEventParams, TaskCompletedEventParams, TaskFailedEventParams, TaskCancelledEventParams, TaskExecutionSnapshot, RunningTaskInfo, SkillMarketplaceEntry, SkillMutationRequest } from '@serviceme/devtools-protocol';
3
3
  import * as fs from 'node:fs/promises';
4
- export { AccessCheckResult, AccessControl, AccessControlOptions, AuthCore, AuthCoreOptions, AuthStateManager, AuthStateManagerOptions, CancellationCheck, DeviceFlowUiCallback, GitHubAuthProvider, GitHubAuthProviderConfig, IAuthProvider, IAuthProviderSession, IAuthProviderUserInfo, InMemoryKeychainAuthTokenStore, KeyValueStore, KeychainAccountKey, KeychainAuthTokenStore, KeychainTokenEnvelope, KeychainTokenMetadata, KeychainUnavailableError, MicrosoftAuthProvider, MicrosoftProviderNotHostedError, OrgMembershipFetcher, ProviderRegistry, buildGitHubLocalEmail, isGitHubLocalEmail, resolvePrimaryEmail } from './auth.mjs';
4
+ export { A as AccessCheckResult, a as AccessControl, b as AccessControlOptions, c as AuthCore, d as AuthCoreOptions, e as AuthStateManager, f as AuthStateManagerOptions, C as CancellationCheck, D as DeviceFlowUiCallback, G as GitHubAuthProvider, g as GitHubAuthProviderConfig, I as IAuthProvider, h as IAuthProviderSession, i as IAuthProviderUserInfo, j as InMemoryKeychainAuthTokenStore, K as KeyValueStore, k as KeychainAccountKey, l as KeychainAuthTokenStore, m as KeychainTokenEnvelope, n as KeychainTokenMetadata, o as KeychainUnavailableError, M as MicrosoftAuthProvider, p as MicrosoftProviderNotHostedError, O as OrgMembershipFetcher, P as ProviderRegistry, S as ServiceMeLogger, q as buildGitHubLocalEmail, r as createConsoleLogger, s as isGitHubLocalEmail, t as noopLogger, u as resolvePrimaryEmail } from './index-87-_JvQi.mjs';
5
5
  export { AtomicWriteResult, BuildSignedHeadersParams, DEVICE_JSON_SCHEMA_VERSION, DeviceAuthHeaders, DeviceCore, DeviceCoreOptions, DeviceReenrollRequiresAuthError, DeviceRequestSignatureParams, DeviceSecretVersionMismatchError, DeviceSignedHeaders, EnrollRequestFn, EnrollResponse, Enroller, EnrollerOptions, FsIdentityFileBackend, IdentityFileBackend, IdentityStore, IdentityStoreHooks, IdentityStoreOptions, PersistedDeviceIdentity, buildSignedHeaders, createDeviceRequestSignature, deriveInstallationId, fingerprintSource, randomInstallationId } from './device.mjs';
6
6
  import { c as SkillKind, b as SkillFile } from './types-B9gk3dXH.mjs';
7
7
  import { G as GitClient, P as PullResult } from './index-GAigCT0j.mjs';
@@ -262,6 +262,7 @@ declare class EnvironmentInspector {
262
262
  checkEnvironment(): Promise<EnvironmentCheckResult>;
263
263
  checkTool(toolName: KnownEnvironmentTool): Promise<ToolCheckResult>;
264
264
  private getToolPath;
265
+ private getToolPathFromLoginShell;
265
266
  /**
266
267
  * On Windows, prefer the `.cmd` shim for npm/pnpm/nrm. nvm4w registers
267
268
  * BOTH an extensionless entry (pointing to node.exe) and a `<tool>.cmd`
@@ -270,6 +271,7 @@ declare class EnvironmentInspector {
270
271
  */
271
272
  private getToolShimPath;
272
273
  private getToolVersion;
274
+ private shouldUsePosixLoginShellFallback;
273
275
  private checkNvm;
274
276
  private checkNuget;
275
277
  private getVersionInvocation;
@@ -298,15 +300,6 @@ interface JsonTools {
298
300
  }
299
301
  declare function createJsonTools(): JsonTools;
300
302
 
301
- interface ServiceMeLogger {
302
- debug(message: string, ...args: unknown[]): void;
303
- info(message: string, ...args: unknown[]): void;
304
- warn(message: string, ...args: unknown[]): void;
305
- error(message: string, ...args: unknown[]): void;
306
- }
307
- declare const noopLogger: ServiceMeLogger;
308
- declare function createConsoleLogger(prefix?: string): ServiceMeLogger;
309
-
310
303
  /**
311
304
  * SERVICEME user home directory helpers.
312
305
  *
@@ -669,10 +662,10 @@ declare const defaultRepoSchema: z.ZodObject<{
669
662
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
670
663
  lastSyncError: z.ZodOptional<z.ZodString>;
671
664
  }, "strip", z.ZodTypeAny, {
665
+ name: string;
672
666
  id: string;
673
667
  description: string;
674
668
  source: "default";
675
- name: string;
676
669
  url: string;
677
670
  branch: string;
678
671
  enabled: boolean;
@@ -684,10 +677,10 @@ declare const defaultRepoSchema: z.ZodObject<{
684
677
  lastSyncStatus?: "ok" | "error" | undefined;
685
678
  lastSyncError?: string | undefined;
686
679
  }, {
680
+ name: string;
687
681
  id: string;
688
682
  description: string;
689
683
  source: "default";
690
- name: string;
691
684
  url: string;
692
685
  branch: string;
693
686
  enabled: boolean;
@@ -714,9 +707,9 @@ declare const userRepoSchema: z.ZodObject<{
714
707
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
715
708
  lastSyncError: z.ZodOptional<z.ZodString>;
716
709
  }, "strip", z.ZodTypeAny, {
710
+ name: string;
717
711
  id: string;
718
712
  source: "user";
719
- name: string;
720
713
  url: string;
721
714
  branch: string;
722
715
  enabled: boolean;
@@ -728,9 +721,9 @@ declare const userRepoSchema: z.ZodObject<{
728
721
  lastSyncStatus?: "ok" | "error" | undefined;
729
722
  lastSyncError?: string | undefined;
730
723
  }, {
724
+ name: string;
731
725
  id: string;
732
726
  source: "user";
733
- name: string;
734
727
  url: string;
735
728
  branch: string;
736
729
  enabled: boolean;
@@ -758,10 +751,10 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
758
751
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
759
752
  lastSyncError: z.ZodOptional<z.ZodString>;
760
753
  }, "strip", z.ZodTypeAny, {
754
+ name: string;
761
755
  id: string;
762
756
  description: string;
763
757
  source: "default";
764
- name: string;
765
758
  url: string;
766
759
  branch: string;
767
760
  enabled: boolean;
@@ -773,10 +766,10 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
773
766
  lastSyncStatus?: "ok" | "error" | undefined;
774
767
  lastSyncError?: string | undefined;
775
768
  }, {
769
+ name: string;
776
770
  id: string;
777
771
  description: string;
778
772
  source: "default";
779
- name: string;
780
773
  url: string;
781
774
  branch: string;
782
775
  enabled: boolean;
@@ -802,9 +795,9 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
802
795
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
803
796
  lastSyncError: z.ZodOptional<z.ZodString>;
804
797
  }, "strip", z.ZodTypeAny, {
798
+ name: string;
805
799
  id: string;
806
800
  source: "user";
807
- name: string;
808
801
  url: string;
809
802
  branch: string;
810
803
  enabled: boolean;
@@ -816,9 +809,9 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
816
809
  lastSyncStatus?: "ok" | "error" | undefined;
817
810
  lastSyncError?: string | undefined;
818
811
  }, {
812
+ name: string;
819
813
  id: string;
820
814
  source: "user";
821
- name: string;
822
815
  url: string;
823
816
  branch: string;
824
817
  enabled: boolean;
@@ -849,10 +842,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
849
842
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
850
843
  lastSyncError: z.ZodOptional<z.ZodString>;
851
844
  }, "strip", z.ZodTypeAny, {
845
+ name: string;
852
846
  id: string;
853
847
  description: string;
854
848
  source: "default";
855
- name: string;
856
849
  url: string;
857
850
  branch: string;
858
851
  enabled: boolean;
@@ -864,10 +857,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
864
857
  lastSyncStatus?: "ok" | "error" | undefined;
865
858
  lastSyncError?: string | undefined;
866
859
  }, {
860
+ name: string;
867
861
  id: string;
868
862
  description: string;
869
863
  source: "default";
870
- name: string;
871
864
  url: string;
872
865
  branch: string;
873
866
  enabled: boolean;
@@ -893,9 +886,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
893
886
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
894
887
  lastSyncError: z.ZodOptional<z.ZodString>;
895
888
  }, "strip", z.ZodTypeAny, {
889
+ name: string;
896
890
  id: string;
897
891
  source: "user";
898
- name: string;
899
892
  url: string;
900
893
  branch: string;
901
894
  enabled: boolean;
@@ -907,9 +900,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
907
900
  lastSyncStatus?: "ok" | "error" | undefined;
908
901
  lastSyncError?: string | undefined;
909
902
  }, {
903
+ name: string;
910
904
  id: string;
911
905
  source: "user";
912
- name: string;
913
906
  url: string;
914
907
  branch: string;
915
908
  enabled: boolean;
@@ -924,10 +917,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
924
917
  }, "strip", z.ZodTypeAny, {
925
918
  version: 1;
926
919
  repos: ({
920
+ name: string;
927
921
  id: string;
928
922
  description: string;
929
923
  source: "default";
930
- name: string;
931
924
  url: string;
932
925
  branch: string;
933
926
  enabled: boolean;
@@ -939,9 +932,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
939
932
  lastSyncStatus?: "ok" | "error" | undefined;
940
933
  lastSyncError?: string | undefined;
941
934
  } | {
935
+ name: string;
942
936
  id: string;
943
937
  source: "user";
944
- name: string;
945
938
  url: string;
946
939
  branch: string;
947
940
  enabled: boolean;
@@ -957,10 +950,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
957
950
  }, {
958
951
  version: 1;
959
952
  repos: ({
953
+ name: string;
960
954
  id: string;
961
955
  description: string;
962
956
  source: "default";
963
- name: string;
964
957
  url: string;
965
958
  branch: string;
966
959
  enabled: boolean;
@@ -972,9 +965,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
972
965
  lastSyncStatus?: "ok" | "error" | undefined;
973
966
  lastSyncError?: string | undefined;
974
967
  } | {
968
+ name: string;
975
969
  id: string;
976
970
  source: "user";
977
- name: string;
978
971
  url: string;
979
972
  branch: string;
980
973
  enabled: boolean;
@@ -990,10 +983,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
990
983
  }>, {
991
984
  version: 1;
992
985
  repos: ({
986
+ name: string;
993
987
  id: string;
994
988
  description: string;
995
989
  source: "default";
996
- name: string;
997
990
  url: string;
998
991
  branch: string;
999
992
  enabled: boolean;
@@ -1005,9 +998,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
1005
998
  lastSyncStatus?: "ok" | "error" | undefined;
1006
999
  lastSyncError?: string | undefined;
1007
1000
  } | {
1001
+ name: string;
1008
1002
  id: string;
1009
1003
  source: "user";
1010
- name: string;
1011
1004
  url: string;
1012
1005
  branch: string;
1013
1006
  enabled: boolean;
@@ -1023,10 +1016,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
1023
1016
  }, {
1024
1017
  version: 1;
1025
1018
  repos: ({
1019
+ name: string;
1026
1020
  id: string;
1027
1021
  description: string;
1028
1022
  source: "default";
1029
- name: string;
1030
1023
  url: string;
1031
1024
  branch: string;
1032
1025
  enabled: boolean;
@@ -1038,9 +1031,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
1038
1031
  lastSyncStatus?: "ok" | "error" | undefined;
1039
1032
  lastSyncError?: string | undefined;
1040
1033
  } | {
1034
+ name: string;
1041
1035
  id: string;
1042
1036
  source: "user";
1043
- name: string;
1044
1037
  url: string;
1045
1038
  branch: string;
1046
1039
  enabled: boolean;
@@ -1929,4 +1922,4 @@ declare class SkillStore {
1929
1922
  declare const unzipFile: (zipPath: string, dest: string) => Promise<void>;
1930
1923
  declare const moveFiles: (sourceDir: string, destDir: string, overwrite?: boolean) => Promise<void>;
1931
1924
 
1932
- 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, type ServiceMeLogger, 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, createConsoleLogger, 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, noopLogger, parseAgentToolPermissions, parseIntervalMs, readServerProxyGlobal, reposFileSchema, resetUserHomeOverrides, resolveDraftDir, resolveTaskExecutionPayload, setUserHomeOverrides, unzipFile, userRepoSchema as userRepoConfigSchema, validateReposFile, validateTaskPayload, writeServerProxyGlobal };
1925
+ 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 };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _serviceme_devtools_protocol from '@serviceme/devtools-protocol';
2
2
  import { AgentMarketplaceEntry, AgentMutationRequest, AgentPermissionSummary, CopilotDoctorResult, CopilotPromptOptions, CopilotPromptResult, EnvironmentCheckResult, KnownEnvironmentTool, ToolCheckResult, ServiceMeImageValidationResult, ServiceMeImageInfo, ServiceMeImageCompressOptions, ServiceMeImageCompressResult, JsonSortOptions, JsonValidationResult, AgentToolRiskLevel, AgentToolPermission, ServiceMeProjectExtractTemplateInput, ServiceMeProjectExtractTemplateResult, ServiceMeProjectInstallDepsResult, ServiceMeProjectMakeScriptsExecutableResult, ServiceMeProjectGitInitResult, ServiceMeProjectScaffoldPruneResult, TaskExecutionStatus, ScheduledTaskType, TaskPayload, TaskWorkspaceRef, ScheduledTasksConfig, ScheduledTask, TaskExecutionLog, TaskStartedEventParams, TaskOutputEventParams, TaskCompletedEventParams, TaskFailedEventParams, TaskCancelledEventParams, TaskExecutionSnapshot, RunningTaskInfo, SkillMarketplaceEntry, SkillMutationRequest } from '@serviceme/devtools-protocol';
3
3
  import * as fs from 'node:fs/promises';
4
- export { AccessCheckResult, AccessControl, AccessControlOptions, AuthCore, AuthCoreOptions, AuthStateManager, AuthStateManagerOptions, CancellationCheck, DeviceFlowUiCallback, GitHubAuthProvider, GitHubAuthProviderConfig, IAuthProvider, IAuthProviderSession, IAuthProviderUserInfo, InMemoryKeychainAuthTokenStore, KeyValueStore, KeychainAccountKey, KeychainAuthTokenStore, KeychainTokenEnvelope, KeychainTokenMetadata, KeychainUnavailableError, MicrosoftAuthProvider, MicrosoftProviderNotHostedError, OrgMembershipFetcher, ProviderRegistry, buildGitHubLocalEmail, isGitHubLocalEmail, resolvePrimaryEmail } from './auth.js';
4
+ export { A as AccessCheckResult, a as AccessControl, b as AccessControlOptions, c as AuthCore, d as AuthCoreOptions, e as AuthStateManager, f as AuthStateManagerOptions, C as CancellationCheck, D as DeviceFlowUiCallback, G as GitHubAuthProvider, g as GitHubAuthProviderConfig, I as IAuthProvider, h as IAuthProviderSession, i as IAuthProviderUserInfo, j as InMemoryKeychainAuthTokenStore, K as KeyValueStore, k as KeychainAccountKey, l as KeychainAuthTokenStore, m as KeychainTokenEnvelope, n as KeychainTokenMetadata, o as KeychainUnavailableError, M as MicrosoftAuthProvider, p as MicrosoftProviderNotHostedError, O as OrgMembershipFetcher, P as ProviderRegistry, S as ServiceMeLogger, q as buildGitHubLocalEmail, r as createConsoleLogger, s as isGitHubLocalEmail, t as noopLogger, u as resolvePrimaryEmail } from './index-87-_JvQi.js';
5
5
  export { AtomicWriteResult, BuildSignedHeadersParams, DEVICE_JSON_SCHEMA_VERSION, DeviceAuthHeaders, DeviceCore, DeviceCoreOptions, DeviceReenrollRequiresAuthError, DeviceRequestSignatureParams, DeviceSecretVersionMismatchError, DeviceSignedHeaders, EnrollRequestFn, EnrollResponse, Enroller, EnrollerOptions, FsIdentityFileBackend, IdentityFileBackend, IdentityStore, IdentityStoreHooks, IdentityStoreOptions, PersistedDeviceIdentity, buildSignedHeaders, createDeviceRequestSignature, deriveInstallationId, fingerprintSource, randomInstallationId } from './device.js';
6
6
  import { c as SkillKind, b as SkillFile } from './types-B9gk3dXH.js';
7
7
  import { G as GitClient, P as PullResult } from './index-BmxS1A9G.js';
@@ -262,6 +262,7 @@ declare class EnvironmentInspector {
262
262
  checkEnvironment(): Promise<EnvironmentCheckResult>;
263
263
  checkTool(toolName: KnownEnvironmentTool): Promise<ToolCheckResult>;
264
264
  private getToolPath;
265
+ private getToolPathFromLoginShell;
265
266
  /**
266
267
  * On Windows, prefer the `.cmd` shim for npm/pnpm/nrm. nvm4w registers
267
268
  * BOTH an extensionless entry (pointing to node.exe) and a `<tool>.cmd`
@@ -270,6 +271,7 @@ declare class EnvironmentInspector {
270
271
  */
271
272
  private getToolShimPath;
272
273
  private getToolVersion;
274
+ private shouldUsePosixLoginShellFallback;
273
275
  private checkNvm;
274
276
  private checkNuget;
275
277
  private getVersionInvocation;
@@ -298,15 +300,6 @@ interface JsonTools {
298
300
  }
299
301
  declare function createJsonTools(): JsonTools;
300
302
 
301
- interface ServiceMeLogger {
302
- debug(message: string, ...args: unknown[]): void;
303
- info(message: string, ...args: unknown[]): void;
304
- warn(message: string, ...args: unknown[]): void;
305
- error(message: string, ...args: unknown[]): void;
306
- }
307
- declare const noopLogger: ServiceMeLogger;
308
- declare function createConsoleLogger(prefix?: string): ServiceMeLogger;
309
-
310
303
  /**
311
304
  * SERVICEME user home directory helpers.
312
305
  *
@@ -669,10 +662,10 @@ declare const defaultRepoSchema: z.ZodObject<{
669
662
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
670
663
  lastSyncError: z.ZodOptional<z.ZodString>;
671
664
  }, "strip", z.ZodTypeAny, {
665
+ name: string;
672
666
  id: string;
673
667
  description: string;
674
668
  source: "default";
675
- name: string;
676
669
  url: string;
677
670
  branch: string;
678
671
  enabled: boolean;
@@ -684,10 +677,10 @@ declare const defaultRepoSchema: z.ZodObject<{
684
677
  lastSyncStatus?: "ok" | "error" | undefined;
685
678
  lastSyncError?: string | undefined;
686
679
  }, {
680
+ name: string;
687
681
  id: string;
688
682
  description: string;
689
683
  source: "default";
690
- name: string;
691
684
  url: string;
692
685
  branch: string;
693
686
  enabled: boolean;
@@ -714,9 +707,9 @@ declare const userRepoSchema: z.ZodObject<{
714
707
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
715
708
  lastSyncError: z.ZodOptional<z.ZodString>;
716
709
  }, "strip", z.ZodTypeAny, {
710
+ name: string;
717
711
  id: string;
718
712
  source: "user";
719
- name: string;
720
713
  url: string;
721
714
  branch: string;
722
715
  enabled: boolean;
@@ -728,9 +721,9 @@ declare const userRepoSchema: z.ZodObject<{
728
721
  lastSyncStatus?: "ok" | "error" | undefined;
729
722
  lastSyncError?: string | undefined;
730
723
  }, {
724
+ name: string;
731
725
  id: string;
732
726
  source: "user";
733
- name: string;
734
727
  url: string;
735
728
  branch: string;
736
729
  enabled: boolean;
@@ -758,10 +751,10 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
758
751
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
759
752
  lastSyncError: z.ZodOptional<z.ZodString>;
760
753
  }, "strip", z.ZodTypeAny, {
754
+ name: string;
761
755
  id: string;
762
756
  description: string;
763
757
  source: "default";
764
- name: string;
765
758
  url: string;
766
759
  branch: string;
767
760
  enabled: boolean;
@@ -773,10 +766,10 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
773
766
  lastSyncStatus?: "ok" | "error" | undefined;
774
767
  lastSyncError?: string | undefined;
775
768
  }, {
769
+ name: string;
776
770
  id: string;
777
771
  description: string;
778
772
  source: "default";
779
- name: string;
780
773
  url: string;
781
774
  branch: string;
782
775
  enabled: boolean;
@@ -802,9 +795,9 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
802
795
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
803
796
  lastSyncError: z.ZodOptional<z.ZodString>;
804
797
  }, "strip", z.ZodTypeAny, {
798
+ name: string;
805
799
  id: string;
806
800
  source: "user";
807
- name: string;
808
801
  url: string;
809
802
  branch: string;
810
803
  enabled: boolean;
@@ -816,9 +809,9 @@ declare const repoSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
816
809
  lastSyncStatus?: "ok" | "error" | undefined;
817
810
  lastSyncError?: string | undefined;
818
811
  }, {
812
+ name: string;
819
813
  id: string;
820
814
  source: "user";
821
- name: string;
822
815
  url: string;
823
816
  branch: string;
824
817
  enabled: boolean;
@@ -849,10 +842,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
849
842
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
850
843
  lastSyncError: z.ZodOptional<z.ZodString>;
851
844
  }, "strip", z.ZodTypeAny, {
845
+ name: string;
852
846
  id: string;
853
847
  description: string;
854
848
  source: "default";
855
- name: string;
856
849
  url: string;
857
850
  branch: string;
858
851
  enabled: boolean;
@@ -864,10 +857,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
864
857
  lastSyncStatus?: "ok" | "error" | undefined;
865
858
  lastSyncError?: string | undefined;
866
859
  }, {
860
+ name: string;
867
861
  id: string;
868
862
  description: string;
869
863
  source: "default";
870
- name: string;
871
864
  url: string;
872
865
  branch: string;
873
866
  enabled: boolean;
@@ -893,9 +886,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
893
886
  lastSyncStatus: z.ZodOptional<z.ZodEnum<["ok", "error"]>>;
894
887
  lastSyncError: z.ZodOptional<z.ZodString>;
895
888
  }, "strip", z.ZodTypeAny, {
889
+ name: string;
896
890
  id: string;
897
891
  source: "user";
898
- name: string;
899
892
  url: string;
900
893
  branch: string;
901
894
  enabled: boolean;
@@ -907,9 +900,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
907
900
  lastSyncStatus?: "ok" | "error" | undefined;
908
901
  lastSyncError?: string | undefined;
909
902
  }, {
903
+ name: string;
910
904
  id: string;
911
905
  source: "user";
912
- name: string;
913
906
  url: string;
914
907
  branch: string;
915
908
  enabled: boolean;
@@ -924,10 +917,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
924
917
  }, "strip", z.ZodTypeAny, {
925
918
  version: 1;
926
919
  repos: ({
920
+ name: string;
927
921
  id: string;
928
922
  description: string;
929
923
  source: "default";
930
- name: string;
931
924
  url: string;
932
925
  branch: string;
933
926
  enabled: boolean;
@@ -939,9 +932,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
939
932
  lastSyncStatus?: "ok" | "error" | undefined;
940
933
  lastSyncError?: string | undefined;
941
934
  } | {
935
+ name: string;
942
936
  id: string;
943
937
  source: "user";
944
- name: string;
945
938
  url: string;
946
939
  branch: string;
947
940
  enabled: boolean;
@@ -957,10 +950,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
957
950
  }, {
958
951
  version: 1;
959
952
  repos: ({
953
+ name: string;
960
954
  id: string;
961
955
  description: string;
962
956
  source: "default";
963
- name: string;
964
957
  url: string;
965
958
  branch: string;
966
959
  enabled: boolean;
@@ -972,9 +965,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
972
965
  lastSyncStatus?: "ok" | "error" | undefined;
973
966
  lastSyncError?: string | undefined;
974
967
  } | {
968
+ name: string;
975
969
  id: string;
976
970
  source: "user";
977
- name: string;
978
971
  url: string;
979
972
  branch: string;
980
973
  enabled: boolean;
@@ -990,10 +983,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
990
983
  }>, {
991
984
  version: 1;
992
985
  repos: ({
986
+ name: string;
993
987
  id: string;
994
988
  description: string;
995
989
  source: "default";
996
- name: string;
997
990
  url: string;
998
991
  branch: string;
999
992
  enabled: boolean;
@@ -1005,9 +998,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
1005
998
  lastSyncStatus?: "ok" | "error" | undefined;
1006
999
  lastSyncError?: string | undefined;
1007
1000
  } | {
1001
+ name: string;
1008
1002
  id: string;
1009
1003
  source: "user";
1010
- name: string;
1011
1004
  url: string;
1012
1005
  branch: string;
1013
1006
  enabled: boolean;
@@ -1023,10 +1016,10 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
1023
1016
  }, {
1024
1017
  version: 1;
1025
1018
  repos: ({
1019
+ name: string;
1026
1020
  id: string;
1027
1021
  description: string;
1028
1022
  source: "default";
1029
- name: string;
1030
1023
  url: string;
1031
1024
  branch: string;
1032
1025
  enabled: boolean;
@@ -1038,9 +1031,9 @@ declare const reposFileSchema: z.ZodEffects<z.ZodObject<{
1038
1031
  lastSyncStatus?: "ok" | "error" | undefined;
1039
1032
  lastSyncError?: string | undefined;
1040
1033
  } | {
1034
+ name: string;
1041
1035
  id: string;
1042
1036
  source: "user";
1043
- name: string;
1044
1037
  url: string;
1045
1038
  branch: string;
1046
1039
  enabled: boolean;
@@ -1929,4 +1922,4 @@ declare class SkillStore {
1929
1922
  declare const unzipFile: (zipPath: string, dest: string) => Promise<void>;
1930
1923
  declare const moveFiles: (sourceDir: string, destDir: string, overwrite?: boolean) => Promise<void>;
1931
1924
 
1932
- 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, type ServiceMeLogger, 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, createConsoleLogger, 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, noopLogger, parseAgentToolPermissions, parseIntervalMs, readServerProxyGlobal, reposFileSchema, resetUserHomeOverrides, resolveDraftDir, resolveTaskExecutionPayload, setUserHomeOverrides, unzipFile, userRepoSchema as userRepoConfigSchema, validateReposFile, validateTaskPayload, writeServerProxyGlobal };
1925
+ 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 };