@karmaniverous/jeeves-meta 0.12.4 → 0.13.1

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
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { Command } from 'commander';
3
3
  import { JeevesComponentDescriptor } from '@karmaniverous/jeeves';
4
+ export { sleepAsync as sleep } from '@karmaniverous/jeeves';
4
5
  import pino, { Logger } from 'pino';
5
6
  import * as fastify from 'fastify';
6
7
  import { FastifyInstance, FastifyBaseLogger } from 'fastify';
@@ -236,7 +237,6 @@ declare const serviceConfigSchema: z.ZodObject<{
236
237
  metaProperty: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
237
238
  metaArchiveProperty: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
238
239
  port: z.ZodDefault<z.ZodNumber>;
239
- host: z.ZodDefault<z.ZodString>;
240
240
  schedule: z.ZodDefault<z.ZodString>;
241
241
  reportChannel: z.ZodOptional<z.ZodString>;
242
242
  serverBaseUrl: z.ZodOptional<z.ZodString>;
@@ -636,7 +636,7 @@ declare class Scheduler {
636
636
  * Shared between the descriptor's `onConfigApply` and the file-watcher
637
637
  * hot-reload in `bootstrap.ts`.
638
638
  */
639
- declare const RESTART_REQUIRED_FIELDS: readonly ["port", "host", "watcherUrl", "gatewayUrl", "gatewayApiKey", "defaultArchitect", "defaultCritic"];
639
+ declare const RESTART_REQUIRED_FIELDS: readonly ["port", "watcherUrl", "gatewayUrl", "gatewayApiKey", "defaultArchitect", "defaultCritic"];
640
640
 
641
641
  /**
642
642
  * Load and resolve jeeves-meta service config.
@@ -1368,6 +1368,8 @@ declare function selectCandidate(candidates: StalenessCandidate[]): StalenessCan
1368
1368
  * @returns True if any file in scope was modified after `_generatedAt`.
1369
1369
  */
1370
1370
  declare function isStale(scopePrefix: string, meta: MetaJson, watcher: WatcherClient): Promise<boolean>;
1371
+ /** Maximum staleness for never-synthesized metas (1 year in seconds). */
1372
+ declare const MAX_STALENESS_SECONDS: number;
1371
1373
  /**
1372
1374
  * Compute actual staleness in seconds (now minus _generatedAt).
1373
1375
  *
@@ -1453,9 +1455,6 @@ declare function registerRoutes(app: FastifyInstance, deps: RouteDeps): void;
1453
1455
  */
1454
1456
  declare function verifyRuleApplication(watcher: WatcherClient, logger: MinimalLogger): Promise<number>;
1455
1457
 
1456
- /** Sleep for a given number of milliseconds. */
1457
- declare function sleep(ms: number): Promise<void>;
1458
-
1459
1458
  /** Options for creating the server. */
1460
1459
  interface ServerOptions {
1461
1460
  /** Pino logger instance. */
@@ -1519,5 +1518,5 @@ declare function registerShutdownHandlers(deps: ShutdownDeps): void;
1519
1518
  */
1520
1519
  declare function startService(config: ServiceConfig, configPath?: string): Promise<void>;
1521
1520
 
1522
- export { DEFAULT_PORT, DEFAULT_PORT_STR, GatewayExecutor, HttpWatcherClient, ProgressReporter, RESTART_REQUIRED_FIELDS, RuleRegistrar, SERVICE_NAME, SERVICE_VERSION, Scheduler, SynthesisQueue, acquireLock, actualStaleness, buildArchitectTask, buildBuilderTask, buildContextPackage, buildCriticTask, buildOwnershipTree, cleanupStaleLocks, computeEffectiveStaleness, computeEma, computeStructureHash, createLogger, createServer, createSnapshot, discoverMetas, filterInScope, findNode, formatProgressEvent, getScopePrefix, hasSteerChanged, isArchitectTriggered, isLocked, isStale, listArchiveFiles, listMetas, loadServiceConfig, mergeAndWrite, metaConfigSchema, metaDescriptor, metaErrorSchema, metaJsonSchema, migrateConfigPath, normalizePath, orchestrate, parseArchitectOutput, parseBuilderOutput, parseCriticOutput, pruneArchive, readLatestArchive, readLockState, registerCustomCliCommands, registerRoutes, registerShutdownHandlers, releaseLock, resolveConfigPath, resolveMetaDir, selectCandidate, serviceConfigSchema, sleep, startService, toMetaError, verifyRuleApplication };
1521
+ export { DEFAULT_PORT, DEFAULT_PORT_STR, GatewayExecutor, HttpWatcherClient, MAX_STALENESS_SECONDS, ProgressReporter, RESTART_REQUIRED_FIELDS, RuleRegistrar, SERVICE_NAME, SERVICE_VERSION, Scheduler, SynthesisQueue, acquireLock, actualStaleness, buildArchitectTask, buildBuilderTask, buildContextPackage, buildCriticTask, buildOwnershipTree, cleanupStaleLocks, computeEffectiveStaleness, computeEma, computeStructureHash, createLogger, createServer, createSnapshot, discoverMetas, filterInScope, findNode, formatProgressEvent, getScopePrefix, hasSteerChanged, isArchitectTriggered, isLocked, isStale, listArchiveFiles, listMetas, loadServiceConfig, mergeAndWrite, metaConfigSchema, metaDescriptor, metaErrorSchema, metaJsonSchema, migrateConfigPath, normalizePath, orchestrate, parseArchitectOutput, parseBuilderOutput, parseCriticOutput, pruneArchive, readLatestArchive, readLockState, registerCustomCliCommands, registerRoutes, registerShutdownHandlers, releaseLock, resolveConfigPath, resolveMetaDir, selectCandidate, serviceConfigSchema, startService, toMetaError, verifyRuleApplication };
1523
1522
  export type { BuilderOutput, EnqueueResult, GatewayExecutorOptions, HttpWatcherClientOptions, InferenceRuleSpec, LockState, LoggerConfig, MergeOptions, MetaConfig, MetaContext, MetaEntry, MetaError, MetaExecutor, MetaJson, MetaListResult, MetaListSummary, MetaNode, MetaSpawnOptions, MetaSpawnResult, MinimalLogger, OrchestrateResult, OwnershipTree, ProgressCallback, ProgressEvent, ProgressPhase, ProgressReporterConfig, QueueItem, QueueState, RouteDeps, ServerOptions, ServiceConfig, ServiceStats, StalenessCandidate, WatcherClient, WatcherScanPoint, WatcherScanRequest, WatcherScanResult };