@karmaniverous/jeeves 0.5.9 → 0.5.11

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.ts CHANGED
@@ -275,6 +275,20 @@ declare function createStatusHandler(options: CreateStatusHandlerOptions): Statu
275
275
  */
276
276
  declare function checkNodeVersion(): void;
277
277
 
278
+ /**
279
+ * @packageDocumentation
280
+ *
281
+ * Deep-walks config objects and replaces `${VAR_NAME}` patterns with environment variable values.
282
+ * Canonical implementation in `@karmaniverous/jeeves` (jeeves-core).
283
+ */
284
+ /**
285
+ * Deep-walk a value and substitute `${VAR_NAME}` patterns in all string values.
286
+ *
287
+ * @param value - The value to walk (object, array, or primitive).
288
+ * @returns A new value with all env var references resolved.
289
+ */
290
+ declare function substituteEnvVars<T>(value: T): T;
291
+
278
292
  /**
279
293
  * Workspace-level shared configuration: `jeeves.config.json`.
280
294
  *
@@ -1068,9 +1082,16 @@ declare function checkRegistryVersion(packageName: string, cacheDir: string, ttl
1068
1082
  interface InitOptions {
1069
1083
  /** Absolute path to the OpenClaw workspace root. */
1070
1084
  workspacePath: string;
1071
- /** Absolute path to the platform config root (e.g., `j:/config`). */
1085
+ /** Absolute path to the platform config root. */
1072
1086
  configRoot: string;
1073
1087
  }
1088
+ /**
1089
+ * Throw if a path looks like a Windows drive letter on a non-Windows platform.
1090
+ *
1091
+ * @param label - Human-readable name for the path (used in error messages).
1092
+ * @param value - The raw path string to validate.
1093
+ */
1094
+ declare function rejectWindowsDrivePath(label: string, value: string): void;
1074
1095
  /**
1075
1096
  * Initialize the core library with workspace and config root paths.
1076
1097
  *
@@ -1474,20 +1495,42 @@ interface SeedContentOptions {
1474
1495
  declare function seedContent(options: SeedContentOptions): Promise<void>;
1475
1496
 
1476
1497
  /**
1477
- * Skill seeding: write the `jeeves` workspace skill unconditionally.
1498
+ * Backward-compatible re-export of `seedSkills`.
1478
1499
  *
1479
1500
  * @remarks
1480
- * The skill file is entirely generated — no user-authored content (Decision 48).
1481
- * Every installer (core CLI and component plugins) writes it unconditionally.
1482
- * Content is inlined at build time via `rollup-plugin-md.ts`.
1501
+ * Delegates to `seedSkills` which seeds all bundled platform skills.
1502
+ * Retained for API compatibility with existing component plugins.
1503
+ *
1504
+ * @module
1483
1505
  */
1484
1506
  /**
1485
- * Seed the jeeves workspace skill file.
1507
+ * Seed all bundled platform skills into the workspace.
1486
1508
  *
1487
1509
  * @param workspacePath - Workspace root directory.
1488
1510
  */
1489
1511
  declare function seedSkill(workspacePath: string): void;
1490
1512
 
1513
+ /**
1514
+ * Skill seeding: write all bundled platform skills to the workspace.
1515
+ *
1516
+ * @remarks
1517
+ * Skill files are entirely generated — no user-authored content (Decision 48).
1518
+ * Every installer (core CLI and component plugins) writes them unconditionally.
1519
+ * Content is inlined at build time via `rollup-plugin-md.ts`.
1520
+ *
1521
+ * @module
1522
+ */
1523
+ /**
1524
+ * Seed all bundled platform skills into the workspace.
1525
+ *
1526
+ * @remarks
1527
+ * Writes each skill to `{workspace}/skills/{name}/SKILL.md`, creating
1528
+ * directories as needed. Overwrites existing content unconditionally.
1529
+ *
1530
+ * @param workspacePath - Workspace root directory.
1531
+ */
1532
+ declare function seedSkills(workspacePath: string): void;
1533
+
1491
1534
  /**
1492
1535
  * Factory for the standard plugin tool set.
1493
1536
  *
@@ -1925,5 +1968,5 @@ declare function getErrorMessage(err: unknown): string;
1925
1968
  */
1926
1969
  declare function isTransientError(err: unknown): boolean;
1927
1970
 
1928
- export { AGENTS_MARKERS, CLEANUP_FLAG, COMPONENT_CONFIG_PREFIX, COMPONENT_VERSIONS_FILE, CONFIG_FILE, CORE_CONFIG_DIR, CORE_VERSION, ComponentWriter, DEFAULT_BIND_ADDRESS, DEFAULT_CORE_VERSION, DEFAULT_PORTS, HEARTBEAT_HEADING, JEEVES_SKILL_DIR, MEMORY_HEARTBEAT_NAME, META_PORT, PLATFORM_COMPONENTS, REGISTRY_CACHE_FILE, RUNNER_PORT, SECTION_IDS, SECTION_ORDER, SERVER_PORT, SKILLS_DIR, SOUL_MARKERS, STALENESS_THRESHOLD_MS, STALE_LOCK_MS, TEMPLATES_DIR, TOOLS_MARKERS, VERSION_STAMP_PATTERN, WATCHER_PORT, WORKSPACE_CONFIG_DEFAULTS, WORKSPACE_CONFIG_FILE, WORKSPACE_FILES, analyzeMemory, appendJsonl, atomicWrite, buildEffectiveConfig, buildHeartbeatSection, checkMemoryHealth, checkNodeVersion, checkRegistryVersion, connectionFail, coreConfigSchema, createAsyncContentCache, createComponentWriter, createConfigApplyHandler, createConfigQueryHandler, createGoogleAuth, createPluginCli, createPluginToolset, createServiceCli, createServiceManager, createStatusHandler, ensureDir, fail, fetchJson, fetchWithTimeout, formatBeginMarker, formatEndMarker, generateJsonSchema, generateWorkspaceJsonSchema, getArg, getBindAddress, getChannelWorkspace, getComponentConfigDir, getComponentConfigPath, getConfigRoot, getCoreConfigDir, getCoreConfigFile, getEffectiveServiceName, getErrorMessage, getPackageRoot, getPackageVersion, getServiceState, getServiceUrl, getWorkspacePath, init, isPrime, isTransientError, jaccard, jeevesComponentDescriptorSchema, loadEnvFile, loadWorkspaceConfig, needsCleanup, nowIso, ok, orchestrateHeartbeat, parseArgs, parseHeartbeat, parseManaged, patchConfig, postJson, readComponentVersions, readJson, readJsonl, refreshPlatformContent, registerComponentConfigPath, removeComponentVersion, removeManagedSection, resetInit, resolveConfigPath, resolveConfigValue, resolveOpenClawHome, resolveOptionalPluginSetting, resolvePluginSetting, resolveWorkspacePath, run, runScript, runWithRetry, saveCache, seedContent, seedSkill, shingles, shouldWrite, sleepAsync, sleepMs, updateManagedSection, uuid, withFileLock, workspaceConfigSchema, writeComponentVersion, writeHeartbeatSection, writeJsonAtomic, writeJsonl };
1971
+ export { AGENTS_MARKERS, CLEANUP_FLAG, COMPONENT_CONFIG_PREFIX, COMPONENT_VERSIONS_FILE, CONFIG_FILE, CORE_CONFIG_DIR, CORE_VERSION, ComponentWriter, DEFAULT_BIND_ADDRESS, DEFAULT_CORE_VERSION, DEFAULT_PORTS, HEARTBEAT_HEADING, JEEVES_SKILL_DIR, MEMORY_HEARTBEAT_NAME, META_PORT, PLATFORM_COMPONENTS, REGISTRY_CACHE_FILE, RUNNER_PORT, SECTION_IDS, SECTION_ORDER, SERVER_PORT, SKILLS_DIR, SOUL_MARKERS, STALENESS_THRESHOLD_MS, STALE_LOCK_MS, TEMPLATES_DIR, TOOLS_MARKERS, VERSION_STAMP_PATTERN, WATCHER_PORT, WORKSPACE_CONFIG_DEFAULTS, WORKSPACE_CONFIG_FILE, WORKSPACE_FILES, analyzeMemory, appendJsonl, atomicWrite, buildEffectiveConfig, buildHeartbeatSection, checkMemoryHealth, checkNodeVersion, checkRegistryVersion, connectionFail, coreConfigSchema, createAsyncContentCache, createComponentWriter, createConfigApplyHandler, createConfigQueryHandler, createGoogleAuth, createPluginCli, createPluginToolset, createServiceCli, createServiceManager, createStatusHandler, ensureDir, fail, fetchJson, fetchWithTimeout, formatBeginMarker, formatEndMarker, generateJsonSchema, generateWorkspaceJsonSchema, getArg, getBindAddress, getChannelWorkspace, getComponentConfigDir, getComponentConfigPath, getConfigRoot, getCoreConfigDir, getCoreConfigFile, getEffectiveServiceName, getErrorMessage, getPackageRoot, getPackageVersion, getServiceState, getServiceUrl, getWorkspacePath, init, isPrime, isTransientError, jaccard, jeevesComponentDescriptorSchema, loadEnvFile, loadWorkspaceConfig, needsCleanup, nowIso, ok, orchestrateHeartbeat, parseArgs, parseHeartbeat, parseManaged, patchConfig, postJson, readComponentVersions, readJson, readJsonl, refreshPlatformContent, registerComponentConfigPath, rejectWindowsDrivePath, removeComponentVersion, removeManagedSection, resetInit, resolveConfigPath, resolveConfigValue, resolveOpenClawHome, resolveOptionalPluginSetting, resolvePluginSetting, resolveWorkspacePath, run, runScript, runWithRetry, saveCache, seedContent, seedSkill, seedSkills, shingles, shouldWrite, sleepAsync, sleepMs, substituteEnvVars, updateManagedSection, uuid, withFileLock, workspaceConfigSchema, writeComponentVersion, writeHeartbeatSection, writeJsonAtomic, writeJsonl };
1929
1972
  export type { AccountConfig, AsyncContentCacheOptions, ComponentDependencies, ComponentState, ComponentVersionEntry, ComponentVersionsState, ComponentWriterOptions, ConfigApplyHandler, ConfigApplyRequest, ConfigApplyResult, ConfigProvenance, ConfigQueryHandler, ConfigQueryResponse, CoreConfig, CreatePluginCliOptions, CreateStatusHandlerOptions, GoogleAuthOptions, HeartbeatEntry, InitOptions, JeevesComponentDescriptor, ManagedMarkers, ManagedSection, MemoryHygieneOptions, MemoryHygieneResult, OrchestrateHeartbeatOptions, ParseManagedResult, ParsedHeartbeat, PlatformComponent, PluginApi, PluginInstallRecord, RefreshPlatformContentOptions, RemoveManagedSectionOptions, ResolvedCliConfig, ResolvedValue, RetryOptions, RunOptions, SectionId, SeedContentOptions, ServiceAccountFileConfig, ServiceManager, ServiceManagerOptions, ServiceState, SlackWorkspaceOptions, StatusHandler, StatusHandlerResult, StatusResponse, ToolDescriptor, ToolRegistrationOptions, ToolResult, UpdateManagedSectionOptions, VersionStamp, WorkspaceConfig, WorkspaceOptions, WriteComponentVersionOptions };