@karmaniverous/jeeves-meta 0.6.1 → 0.8.0
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/README.md +3 -3
- package/dist/cli/jeeves-meta/index.js +7448 -308
- package/dist/index.d.ts +20 -7
- package/dist/index.js +7198 -66
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -80,8 +80,10 @@ declare const serviceConfigSchema: z.ZodObject<{
|
|
|
80
80
|
metaProperty: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
81
81
|
metaArchiveProperty: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
82
82
|
port: z.ZodDefault<z.ZodNumber>;
|
|
83
|
+
host: z.ZodDefault<z.ZodString>;
|
|
83
84
|
schedule: z.ZodDefault<z.ZodString>;
|
|
84
85
|
reportChannel: z.ZodOptional<z.ZodString>;
|
|
86
|
+
serverBaseUrl: z.ZodOptional<z.ZodString>;
|
|
85
87
|
watcherHealthIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
86
88
|
logging: z.ZodDefault<z.ZodObject<{
|
|
87
89
|
level: z.ZodDefault<z.ZodString>;
|
|
@@ -141,6 +143,7 @@ declare const metaJsonSchema: z.ZodObject<{
|
|
|
141
143
|
_architectTokensAvg: z.ZodOptional<z.ZodNumber>;
|
|
142
144
|
_builderTokensAvg: z.ZodOptional<z.ZodNumber>;
|
|
143
145
|
_criticTokensAvg: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
_state: z.ZodOptional<z.ZodUnknown>;
|
|
144
147
|
_error: z.ZodOptional<z.ZodObject<{
|
|
145
148
|
step: z.ZodEnum<{
|
|
146
149
|
architect: "architect";
|
|
@@ -256,6 +259,8 @@ interface MetaContext {
|
|
|
256
259
|
previousFeedback: string | null;
|
|
257
260
|
/** Current _steer value, or null if unset. */
|
|
258
261
|
steer: string | null;
|
|
262
|
+
/** _state from the last cycle, or null on first run. */
|
|
263
|
+
previousState: unknown;
|
|
259
264
|
/** Archive snapshot file paths (for steer change detection, etc.). */
|
|
260
265
|
archives: string[];
|
|
261
266
|
}
|
|
@@ -794,6 +799,8 @@ interface BuilderOutput {
|
|
|
794
799
|
content: string;
|
|
795
800
|
/** Additional structured fields (non-underscore keys). */
|
|
796
801
|
fields: Record<string, unknown>;
|
|
802
|
+
/** Opaque state for progressive synthesis, if provided by the builder. */
|
|
803
|
+
state?: unknown;
|
|
797
804
|
}
|
|
798
805
|
/**
|
|
799
806
|
* Parse architect output. The architect returns a task brief as text.
|
|
@@ -859,6 +866,13 @@ interface MergeOptions {
|
|
|
859
866
|
criticTokens?: number;
|
|
860
867
|
/** Override output path (default: metaPath/meta.json). Used for lock staging. */
|
|
861
868
|
outputPath?: string;
|
|
869
|
+
/** Opaque state from builder output for progressive synthesis. */
|
|
870
|
+
state?: unknown;
|
|
871
|
+
/**
|
|
872
|
+
* When true, preserve _content and _generatedAt from current meta.
|
|
873
|
+
* Used for timeout recovery where state advanced but content did not.
|
|
874
|
+
*/
|
|
875
|
+
stateOnly?: boolean;
|
|
862
876
|
}
|
|
863
877
|
/**
|
|
864
878
|
* Merge results into meta.json and write atomically.
|
|
@@ -890,8 +904,10 @@ type ProgressReporterConfig = {
|
|
|
890
904
|
gatewayApiKey?: string;
|
|
891
905
|
/** Gateway channel target (platform-agnostic). If unset, reporting is disabled. */
|
|
892
906
|
reportChannel?: string;
|
|
907
|
+
/** Optional base URL for the service, used to construct entity links. */
|
|
908
|
+
serverBaseUrl?: string;
|
|
893
909
|
};
|
|
894
|
-
declare function formatProgressEvent(event: ProgressEvent): string;
|
|
910
|
+
declare function formatProgressEvent(event: ProgressEvent, serverBaseUrl?: string): string;
|
|
895
911
|
declare class ProgressReporter {
|
|
896
912
|
private readonly config;
|
|
897
913
|
private readonly logger;
|
|
@@ -900,10 +916,7 @@ declare class ProgressReporter {
|
|
|
900
916
|
}
|
|
901
917
|
|
|
902
918
|
/**
|
|
903
|
-
* Main orchestration
|
|
904
|
-
*
|
|
905
|
-
* Wires together discovery, scheduling, archiving, executor calls,
|
|
906
|
-
* and merge/write-back.
|
|
919
|
+
* Main orchestration entry point — discovery, scheduling, candidate selection.
|
|
907
920
|
*
|
|
908
921
|
* @module orchestrator/orchestrate
|
|
909
922
|
*/
|
|
@@ -1354,9 +1367,9 @@ interface ShutdownDeps {
|
|
|
1354
1367
|
declare function registerShutdownHandlers(deps: ShutdownDeps): void;
|
|
1355
1368
|
|
|
1356
1369
|
/**
|
|
1357
|
-
*
|
|
1370
|
+
* Service bootstrap — wire up all components and start listening.
|
|
1358
1371
|
*
|
|
1359
|
-
* @
|
|
1372
|
+
* @module bootstrap
|
|
1360
1373
|
*/
|
|
1361
1374
|
|
|
1362
1375
|
/**
|