@fenglimg/fabric-shared 2.0.0-rc.15 → 2.0.0-rc.21
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/chunk-QZNUUIL3.js +39 -0
- package/dist/{chunk-BKTCBFXZ.js → chunk-VKCXD6CI.js} +178 -36
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +277 -5
- package/dist/index.js +538 -338
- package/dist/templates/bootstrap-canonical.d.ts +56 -0
- package/dist/templates/bootstrap-canonical.js +18 -0
- package/dist/types/index.d.ts +0 -1
- package/package.json +7 -3
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { Locale, Messages, PROTECTED_TOKENS, ProtectedToken, TranslationKey, Tra
|
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { Layer, KnowledgeType, StableId } from './schemas/api-contracts.js';
|
|
6
6
|
export { FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, FabReviewInput, FabReviewInputSchema, FabReviewInputShape, FabReviewOutput, FabReviewOutputSchema, FabReviewOutputShape, KNOWLEDGE_TYPE_CODES, KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, KnowledgeTypeCode, KnowledgeTypeSchema, LayerSchema, Maturity, MaturitySchema, PROPOSED_REASON_DESCRIPTIONS, ProposedReason, ProposedReasonSchema, StableIdSchema, annotateIntentRequestSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId, getKnowledgeAnnotations, getKnowledgeInputSchema, getKnowledgeOutputSchema, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, structuredWarningSchema } from './schemas/api-contracts.js';
|
|
7
|
+
export { BOOTSTRAP_CANONICAL, BOOTSTRAP_MARKER_BEGIN, BOOTSTRAP_MARKER_END, BOOTSTRAP_REGEX, LEGACY_KB_MARKER_BEGIN, LEGACY_KB_MARKER_END, LEGACY_KB_REGEX } from './templates/bootstrap-canonical.js';
|
|
7
8
|
|
|
8
9
|
declare const AGENTS_META_LAYERS: readonly ["L0", "L1", "L2"];
|
|
9
10
|
declare const AGENTS_META_TOPOLOGY_TYPES: readonly ["mirror", "cross-cutting", "domain", "local", "global"];
|
|
@@ -1354,7 +1355,6 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
1354
1355
|
cursor?: string | undefined;
|
|
1355
1356
|
codexCLI?: string | undefined;
|
|
1356
1357
|
}>>;
|
|
1357
|
-
externalFixturePath: z.ZodOptional<z.ZodString>;
|
|
1358
1358
|
scanIgnores: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1359
1359
|
audit_mode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
|
|
1360
1360
|
mcpPayloadLimits: z.ZodOptional<z.ZodObject<{
|
|
@@ -1414,7 +1414,6 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
1414
1414
|
cursor?: string | undefined;
|
|
1415
1415
|
codexCLI?: string | undefined;
|
|
1416
1416
|
} | undefined;
|
|
1417
|
-
externalFixturePath?: string | undefined;
|
|
1418
1417
|
scanIgnores?: string[] | undefined;
|
|
1419
1418
|
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
1420
1419
|
mcpPayloadLimits?: {
|
|
@@ -1428,7 +1427,6 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
1428
1427
|
cursor?: string | undefined;
|
|
1429
1428
|
codexCLI?: string | undefined;
|
|
1430
1429
|
} | undefined;
|
|
1431
|
-
externalFixturePath?: string | undefined;
|
|
1432
1430
|
scanIgnores?: string[] | undefined;
|
|
1433
1431
|
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
1434
1432
|
mcpPayloadLimits?: {
|
|
@@ -1457,6 +1455,46 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
1457
1455
|
review_stale_pending_days?: number | undefined;
|
|
1458
1456
|
}>;
|
|
1459
1457
|
|
|
1458
|
+
type FabricConfigSchemaShape = z.infer<typeof fabricConfigSchema>;
|
|
1459
|
+
type PanelFieldGroup = "A_locale" | "B_hint_threshold" | "C_audit";
|
|
1460
|
+
type ValidateResult = {
|
|
1461
|
+
ok: true;
|
|
1462
|
+
value: unknown;
|
|
1463
|
+
} | {
|
|
1464
|
+
ok: false;
|
|
1465
|
+
error: string;
|
|
1466
|
+
};
|
|
1467
|
+
interface PanelFieldMeta {
|
|
1468
|
+
/** Schema key this field edits — type-checked against the inferred config shape. */
|
|
1469
|
+
readonly key: keyof FabricConfigSchemaShape;
|
|
1470
|
+
/** Logical grouping for panel section headers. */
|
|
1471
|
+
readonly group: PanelFieldGroup;
|
|
1472
|
+
/** Clack widget hint — `select` for enums, `text` for free-form numbers. */
|
|
1473
|
+
readonly widget: "select" | "text";
|
|
1474
|
+
/** i18n key for the field label; strings landed in TASK-006. */
|
|
1475
|
+
readonly label_i18n_key: string;
|
|
1476
|
+
/** i18n key for the field's description / help text. */
|
|
1477
|
+
readonly description_i18n_key: string;
|
|
1478
|
+
/** Default value pulled from the Zod schema's `.default(...)`. */
|
|
1479
|
+
readonly default: string | number;
|
|
1480
|
+
/** Enum options for `select` widgets, derived from the Zod enum schema. */
|
|
1481
|
+
readonly enum_values?: readonly string[];
|
|
1482
|
+
/** Validates raw user input from the TUI prompt. */
|
|
1483
|
+
validate(raw: string): ValidateResult;
|
|
1484
|
+
/** Renders a stored value back to the panel display string. */
|
|
1485
|
+
format_for_display(value: unknown): string;
|
|
1486
|
+
}
|
|
1487
|
+
/**
|
|
1488
|
+
* Returns the per-field metadata array driving the `fab config` clack panel.
|
|
1489
|
+
* Group A (2) + Group B (8) + Group C (1) = 11 entries.
|
|
1490
|
+
*/
|
|
1491
|
+
declare function getPanelFields(): readonly PanelFieldMeta[];
|
|
1492
|
+
/**
|
|
1493
|
+
* Lookup a single panel field by its config key. Returns `undefined` if the
|
|
1494
|
+
* key is not panel-scoped (e.g. Group D/E plumbing).
|
|
1495
|
+
*/
|
|
1496
|
+
declare function getPanelFieldByKey(key: string): PanelFieldMeta | undefined;
|
|
1497
|
+
|
|
1460
1498
|
interface ForensicCodeSample {
|
|
1461
1499
|
path: string;
|
|
1462
1500
|
lines: string;
|
|
@@ -5353,6 +5391,46 @@ declare const mcpConfigMigratedEventSchema: z.ZodObject<{
|
|
|
5353
5391
|
correlation_id?: string | undefined;
|
|
5354
5392
|
session_id?: string | undefined;
|
|
5355
5393
|
}>;
|
|
5394
|
+
declare const bootstrapMarkerMigratedEventSchema: z.ZodObject<{
|
|
5395
|
+
event_type: z.ZodLiteral<"bootstrap_marker_migrated">;
|
|
5396
|
+
path: z.ZodString;
|
|
5397
|
+
migrated_count: z.ZodNumber;
|
|
5398
|
+
legacy_marker: z.ZodLiteral<"fabric:knowledge-base">;
|
|
5399
|
+
new_marker: z.ZodLiteral<"fabric:bootstrap">;
|
|
5400
|
+
timestamp: z.ZodString;
|
|
5401
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5402
|
+
id: z.ZodString;
|
|
5403
|
+
ts: z.ZodNumber;
|
|
5404
|
+
schema_version: z.ZodLiteral<1>;
|
|
5405
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5406
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5407
|
+
}, "strip", z.ZodTypeAny, {
|
|
5408
|
+
path: string;
|
|
5409
|
+
id: string;
|
|
5410
|
+
ts: number;
|
|
5411
|
+
schema_version: 1;
|
|
5412
|
+
kind: "fabric-event";
|
|
5413
|
+
event_type: "bootstrap_marker_migrated";
|
|
5414
|
+
migrated_count: number;
|
|
5415
|
+
legacy_marker: "fabric:knowledge-base";
|
|
5416
|
+
new_marker: "fabric:bootstrap";
|
|
5417
|
+
timestamp: string;
|
|
5418
|
+
correlation_id?: string | undefined;
|
|
5419
|
+
session_id?: string | undefined;
|
|
5420
|
+
}, {
|
|
5421
|
+
path: string;
|
|
5422
|
+
id: string;
|
|
5423
|
+
ts: number;
|
|
5424
|
+
schema_version: 1;
|
|
5425
|
+
kind: "fabric-event";
|
|
5426
|
+
event_type: "bootstrap_marker_migrated";
|
|
5427
|
+
migrated_count: number;
|
|
5428
|
+
legacy_marker: "fabric:knowledge-base";
|
|
5429
|
+
new_marker: "fabric:bootstrap";
|
|
5430
|
+
timestamp: string;
|
|
5431
|
+
correlation_id?: string | undefined;
|
|
5432
|
+
session_id?: string | undefined;
|
|
5433
|
+
}>;
|
|
5356
5434
|
declare const metaReconciledOnStartupEventSchema: z.ZodObject<{
|
|
5357
5435
|
event_type: z.ZodLiteral<"meta_reconciled_on_startup">;
|
|
5358
5436
|
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
@@ -6150,6 +6228,83 @@ declare const pendingAutoArchivedEventSchema: z.ZodObject<{
|
|
|
6150
6228
|
correlation_id?: string | undefined;
|
|
6151
6229
|
session_id?: string | undefined;
|
|
6152
6230
|
}>;
|
|
6231
|
+
declare const assistantTurnObservedEventSchema: z.ZodObject<{
|
|
6232
|
+
event_type: z.ZodLiteral<"assistant_turn_observed">;
|
|
6233
|
+
kb_line_raw: z.ZodNullable<z.ZodString>;
|
|
6234
|
+
cite_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
6235
|
+
cite_tags: z.ZodDefault<z.ZodArray<z.ZodEnum<["planned", "recalled", "chained-from", "dismissed", "none"]>, "many">>;
|
|
6236
|
+
client: z.ZodOptional<z.ZodEnum<["cc", "codex", "cursor"]>>;
|
|
6237
|
+
turn_id: z.ZodString;
|
|
6238
|
+
envelope_index: z.ZodOptional<z.ZodNumber>;
|
|
6239
|
+
timestamp: z.ZodString;
|
|
6240
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6241
|
+
id: z.ZodString;
|
|
6242
|
+
ts: z.ZodNumber;
|
|
6243
|
+
schema_version: z.ZodLiteral<1>;
|
|
6244
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6245
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6246
|
+
}, "strip", z.ZodTypeAny, {
|
|
6247
|
+
id: string;
|
|
6248
|
+
ts: number;
|
|
6249
|
+
schema_version: 1;
|
|
6250
|
+
kind: "fabric-event";
|
|
6251
|
+
event_type: "assistant_turn_observed";
|
|
6252
|
+
timestamp: string;
|
|
6253
|
+
kb_line_raw: string | null;
|
|
6254
|
+
cite_ids: string[];
|
|
6255
|
+
cite_tags: ("none" | "planned" | "recalled" | "chained-from" | "dismissed")[];
|
|
6256
|
+
turn_id: string;
|
|
6257
|
+
correlation_id?: string | undefined;
|
|
6258
|
+
session_id?: string | undefined;
|
|
6259
|
+
client?: "cursor" | "cc" | "codex" | undefined;
|
|
6260
|
+
envelope_index?: number | undefined;
|
|
6261
|
+
}, {
|
|
6262
|
+
id: string;
|
|
6263
|
+
ts: number;
|
|
6264
|
+
schema_version: 1;
|
|
6265
|
+
kind: "fabric-event";
|
|
6266
|
+
event_type: "assistant_turn_observed";
|
|
6267
|
+
timestamp: string;
|
|
6268
|
+
kb_line_raw: string | null;
|
|
6269
|
+
turn_id: string;
|
|
6270
|
+
correlation_id?: string | undefined;
|
|
6271
|
+
session_id?: string | undefined;
|
|
6272
|
+
cite_ids?: string[] | undefined;
|
|
6273
|
+
cite_tags?: ("none" | "planned" | "recalled" | "chained-from" | "dismissed")[] | undefined;
|
|
6274
|
+
client?: "cursor" | "cc" | "codex" | undefined;
|
|
6275
|
+
envelope_index?: number | undefined;
|
|
6276
|
+
}>;
|
|
6277
|
+
declare const citePolicyActivatedEventSchema: z.ZodObject<{
|
|
6278
|
+
event_type: z.ZodLiteral<"cite_policy_activated">;
|
|
6279
|
+
policy_version: z.ZodString;
|
|
6280
|
+
timestamp: z.ZodString;
|
|
6281
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6282
|
+
id: z.ZodString;
|
|
6283
|
+
ts: z.ZodNumber;
|
|
6284
|
+
schema_version: z.ZodLiteral<1>;
|
|
6285
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6286
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6287
|
+
}, "strip", z.ZodTypeAny, {
|
|
6288
|
+
id: string;
|
|
6289
|
+
ts: number;
|
|
6290
|
+
schema_version: 1;
|
|
6291
|
+
kind: "fabric-event";
|
|
6292
|
+
event_type: "cite_policy_activated";
|
|
6293
|
+
timestamp: string;
|
|
6294
|
+
policy_version: string;
|
|
6295
|
+
correlation_id?: string | undefined;
|
|
6296
|
+
session_id?: string | undefined;
|
|
6297
|
+
}, {
|
|
6298
|
+
id: string;
|
|
6299
|
+
ts: number;
|
|
6300
|
+
schema_version: 1;
|
|
6301
|
+
kind: "fabric-event";
|
|
6302
|
+
event_type: "cite_policy_activated";
|
|
6303
|
+
timestamp: string;
|
|
6304
|
+
policy_version: string;
|
|
6305
|
+
correlation_id?: string | undefined;
|
|
6306
|
+
session_id?: string | undefined;
|
|
6307
|
+
}>;
|
|
6153
6308
|
declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
6154
6309
|
event_type: z.ZodLiteral<"knowledge_context_planned">;
|
|
6155
6310
|
target_paths: z.ZodArray<z.ZodString, "many">;
|
|
@@ -6547,6 +6702,45 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6547
6702
|
removed_from: string;
|
|
6548
6703
|
correlation_id?: string | undefined;
|
|
6549
6704
|
session_id?: string | undefined;
|
|
6705
|
+
}>, z.ZodObject<{
|
|
6706
|
+
event_type: z.ZodLiteral<"bootstrap_marker_migrated">;
|
|
6707
|
+
path: z.ZodString;
|
|
6708
|
+
migrated_count: z.ZodNumber;
|
|
6709
|
+
legacy_marker: z.ZodLiteral<"fabric:knowledge-base">;
|
|
6710
|
+
new_marker: z.ZodLiteral<"fabric:bootstrap">;
|
|
6711
|
+
timestamp: z.ZodString;
|
|
6712
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6713
|
+
id: z.ZodString;
|
|
6714
|
+
ts: z.ZodNumber;
|
|
6715
|
+
schema_version: z.ZodLiteral<1>;
|
|
6716
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6717
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6718
|
+
}, "strip", z.ZodTypeAny, {
|
|
6719
|
+
path: string;
|
|
6720
|
+
id: string;
|
|
6721
|
+
ts: number;
|
|
6722
|
+
schema_version: 1;
|
|
6723
|
+
kind: "fabric-event";
|
|
6724
|
+
event_type: "bootstrap_marker_migrated";
|
|
6725
|
+
migrated_count: number;
|
|
6726
|
+
legacy_marker: "fabric:knowledge-base";
|
|
6727
|
+
new_marker: "fabric:bootstrap";
|
|
6728
|
+
timestamp: string;
|
|
6729
|
+
correlation_id?: string | undefined;
|
|
6730
|
+
session_id?: string | undefined;
|
|
6731
|
+
}, {
|
|
6732
|
+
path: string;
|
|
6733
|
+
id: string;
|
|
6734
|
+
ts: number;
|
|
6735
|
+
schema_version: 1;
|
|
6736
|
+
kind: "fabric-event";
|
|
6737
|
+
event_type: "bootstrap_marker_migrated";
|
|
6738
|
+
migrated_count: number;
|
|
6739
|
+
legacy_marker: "fabric:knowledge-base";
|
|
6740
|
+
new_marker: "fabric:bootstrap";
|
|
6741
|
+
timestamp: string;
|
|
6742
|
+
correlation_id?: string | undefined;
|
|
6743
|
+
session_id?: string | undefined;
|
|
6550
6744
|
}>, z.ZodObject<{
|
|
6551
6745
|
event_type: z.ZodLiteral<"meta_reconciled_on_startup">;
|
|
6552
6746
|
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
@@ -7321,6 +7515,81 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
7321
7515
|
touched_count: number;
|
|
7322
7516
|
correlation_id?: string | undefined;
|
|
7323
7517
|
session_id?: string | undefined;
|
|
7518
|
+
}>, z.ZodObject<{
|
|
7519
|
+
event_type: z.ZodLiteral<"assistant_turn_observed">;
|
|
7520
|
+
kb_line_raw: z.ZodNullable<z.ZodString>;
|
|
7521
|
+
cite_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7522
|
+
cite_tags: z.ZodDefault<z.ZodArray<z.ZodEnum<["planned", "recalled", "chained-from", "dismissed", "none"]>, "many">>;
|
|
7523
|
+
client: z.ZodOptional<z.ZodEnum<["cc", "codex", "cursor"]>>;
|
|
7524
|
+
turn_id: z.ZodString;
|
|
7525
|
+
envelope_index: z.ZodOptional<z.ZodNumber>;
|
|
7526
|
+
timestamp: z.ZodString;
|
|
7527
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
7528
|
+
id: z.ZodString;
|
|
7529
|
+
ts: z.ZodNumber;
|
|
7530
|
+
schema_version: z.ZodLiteral<1>;
|
|
7531
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
7532
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
7533
|
+
}, "strip", z.ZodTypeAny, {
|
|
7534
|
+
id: string;
|
|
7535
|
+
ts: number;
|
|
7536
|
+
schema_version: 1;
|
|
7537
|
+
kind: "fabric-event";
|
|
7538
|
+
event_type: "assistant_turn_observed";
|
|
7539
|
+
timestamp: string;
|
|
7540
|
+
kb_line_raw: string | null;
|
|
7541
|
+
cite_ids: string[];
|
|
7542
|
+
cite_tags: ("none" | "planned" | "recalled" | "chained-from" | "dismissed")[];
|
|
7543
|
+
turn_id: string;
|
|
7544
|
+
correlation_id?: string | undefined;
|
|
7545
|
+
session_id?: string | undefined;
|
|
7546
|
+
client?: "cursor" | "cc" | "codex" | undefined;
|
|
7547
|
+
envelope_index?: number | undefined;
|
|
7548
|
+
}, {
|
|
7549
|
+
id: string;
|
|
7550
|
+
ts: number;
|
|
7551
|
+
schema_version: 1;
|
|
7552
|
+
kind: "fabric-event";
|
|
7553
|
+
event_type: "assistant_turn_observed";
|
|
7554
|
+
timestamp: string;
|
|
7555
|
+
kb_line_raw: string | null;
|
|
7556
|
+
turn_id: string;
|
|
7557
|
+
correlation_id?: string | undefined;
|
|
7558
|
+
session_id?: string | undefined;
|
|
7559
|
+
cite_ids?: string[] | undefined;
|
|
7560
|
+
cite_tags?: ("none" | "planned" | "recalled" | "chained-from" | "dismissed")[] | undefined;
|
|
7561
|
+
client?: "cursor" | "cc" | "codex" | undefined;
|
|
7562
|
+
envelope_index?: number | undefined;
|
|
7563
|
+
}>, z.ZodObject<{
|
|
7564
|
+
event_type: z.ZodLiteral<"cite_policy_activated">;
|
|
7565
|
+
policy_version: z.ZodString;
|
|
7566
|
+
timestamp: z.ZodString;
|
|
7567
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
7568
|
+
id: z.ZodString;
|
|
7569
|
+
ts: z.ZodNumber;
|
|
7570
|
+
schema_version: z.ZodLiteral<1>;
|
|
7571
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
7572
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
7573
|
+
}, "strip", z.ZodTypeAny, {
|
|
7574
|
+
id: string;
|
|
7575
|
+
ts: number;
|
|
7576
|
+
schema_version: 1;
|
|
7577
|
+
kind: "fabric-event";
|
|
7578
|
+
event_type: "cite_policy_activated";
|
|
7579
|
+
timestamp: string;
|
|
7580
|
+
policy_version: string;
|
|
7581
|
+
correlation_id?: string | undefined;
|
|
7582
|
+
session_id?: string | undefined;
|
|
7583
|
+
}, {
|
|
7584
|
+
id: string;
|
|
7585
|
+
ts: number;
|
|
7586
|
+
schema_version: 1;
|
|
7587
|
+
kind: "fabric-event";
|
|
7588
|
+
event_type: "cite_policy_activated";
|
|
7589
|
+
timestamp: string;
|
|
7590
|
+
policy_version: string;
|
|
7591
|
+
correlation_id?: string | undefined;
|
|
7592
|
+
session_id?: string | undefined;
|
|
7324
7593
|
}>]>;
|
|
7325
7594
|
type KnowledgeContextPlannedEvent = z.infer<typeof knowledgeContextPlannedEventSchema>;
|
|
7326
7595
|
type KnowledgeSelectionEvent = z.infer<typeof knowledgeSelectionEventSchema>;
|
|
@@ -7331,6 +7600,7 @@ type McpEventLedgerEvent = z.infer<typeof mcpEventLedgerEventSchema>;
|
|
|
7331
7600
|
type ReapplyCompletedEvent = z.infer<typeof reapplyCompletedEventSchema>;
|
|
7332
7601
|
type EventLedgerTruncatedEvent = z.infer<typeof eventLedgerTruncatedEventSchema>;
|
|
7333
7602
|
type McpConfigMigratedEvent = z.infer<typeof mcpConfigMigratedEventSchema>;
|
|
7603
|
+
type BootstrapMarkerMigratedEvent = z.infer<typeof bootstrapMarkerMigratedEventSchema>;
|
|
7334
7604
|
type MetaReconciledOnStartupEvent = z.infer<typeof metaReconciledOnStartupEventSchema>;
|
|
7335
7605
|
type MetaReconciledEvent = z.infer<typeof metaReconciledEventSchema>;
|
|
7336
7606
|
type ClaudeSkillPathMigratedEvent = z.infer<typeof claudeSkillPathMigratedEventSchema>;
|
|
@@ -7354,9 +7624,11 @@ type PendingAutoArchivedEvent = z.infer<typeof pendingAutoArchivedEventSchema>;
|
|
|
7354
7624
|
type KnowledgePathDangledEvent = z.infer<typeof knowledgePathDangledEventSchema>;
|
|
7355
7625
|
type DoctorRunEvent = z.infer<typeof doctorRunEventSchema>;
|
|
7356
7626
|
type RelevanceMigrationRunEvent = z.infer<typeof relevanceMigrationRunEventSchema>;
|
|
7357
|
-
type
|
|
7627
|
+
type AssistantTurnObservedEvent = z.infer<typeof assistantTurnObservedEventSchema>;
|
|
7628
|
+
type CitePolicyActivatedEvent = z.infer<typeof citePolicyActivatedEventSchema>;
|
|
7629
|
+
type EventLedgerEvent = KnowledgeContextPlannedEvent | KnowledgeSelectionEvent | KnowledgeSectionsFetchedEvent | EditIntentCheckedEvent | KnowledgeDriftDetectedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | BootstrapMarkerMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | CodexSkillPathMigratedEvent | InitScanCompletedEvent | KnowledgeProposedEvent | KnowledgePromoteStartedEvent | KnowledgePromotedEvent | KnowledgePromoteFailedEvent | KnowledgeLayerChangedEvent | KnowledgeSlugRenamedEvent | KnowledgeDemotedEvent | KnowledgeArchivedEvent | KnowledgeArchiveAttemptedEvent | KnowledgeDeferredEvent | KnowledgeRejectedEvent | KnowledgeConsumedEvent | KnowledgeScopeDegradedEvent | PendingAutoArchivedEvent | KnowledgePathDangledEvent | DoctorRunEvent | RelevanceMigrationRunEvent | AssistantTurnObservedEvent | CitePolicyActivatedEvent;
|
|
7358
7630
|
type EventLedgerEventType = EventLedgerEvent["event_type"];
|
|
7359
7631
|
type EventLedgerEventInputFor<T extends EventLedgerEvent> = T extends EventLedgerEvent ? Omit<T, "kind" | "id" | "ts" | "schema_version" | "correlation_id" | "session_id"> & Partial<Pick<T, "id" | "ts" | "correlation_id" | "session_id">> : never;
|
|
7360
7632
|
type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
|
|
7361
7633
|
|
|
7362
|
-
export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type CandidateFileEntry, type CandidateFileFamily, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type CodexSkillPathMigratedEvent, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type FabricEvent, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type InitScanCompletedEvent, KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION, type KnowledgeArchiveAttemptedEvent, type KnowledgeArchivedEvent, type KnowledgeConsumedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDeferredEvent, type KnowledgeDemotedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeLayerChangedEvent, type KnowledgePathDangledEvent, type KnowledgePromoteFailedEvent, type KnowledgePromoteStartedEvent, type KnowledgePromotedEvent, type KnowledgeProposedEvent, type KnowledgeRejectedEvent, type KnowledgeScopeDegradedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, type KnowledgeSlugRenamedEvent, type KnowledgeTestIndex, type KnowledgeTestLink, type KnowledgeTestOrphanAnnotation, KnowledgeType, Layer, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type McpConfigMigratedEvent, type McpEventLedgerEvent, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, type PendingAutoArchivedEvent, type ReapplyCompletedEvent, type RelevanceMigrationRunEvent, StableId, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, allocateKnowledgeId, auditModeSchema, candidateFileEntrySchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientPathsSchema, codexSkillPathMigratedEventSchema, defaultAgentsMetaCounters, defaultLayerFilterSchema, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, doctorRunEventSchema, driftDetectedEventSchema, editIntentCheckedEventSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, fabricConfigSchema, fabricEventSchema, fabricLanguageSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, initScanCompletedEventSchema, isKnowledgeStableId, knowledgeArchiveAttemptedEventSchema, knowledgeArchivedEventSchema, knowledgeConsumedEventSchema, knowledgeContextPlannedEventSchema, knowledgeDeferredEventSchema, knowledgeDemotedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeLayerChangedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, mcpPayloadLimitsSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, pendingAutoArchivedEventSchema, reapplyCompletedEventSchema, relevanceMigrationRunEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, withDerivedAgentsMetaNodeDefaults };
|
|
7634
|
+
export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type AssistantTurnObservedEvent, type BootstrapMarkerMigratedEvent, type CandidateFileEntry, type CandidateFileFamily, type CitePolicyActivatedEvent, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type CodexSkillPathMigratedEvent, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type FabricConfigSchemaShape, type FabricEvent, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type InitScanCompletedEvent, KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION, type KnowledgeArchiveAttemptedEvent, type KnowledgeArchivedEvent, type KnowledgeConsumedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDeferredEvent, type KnowledgeDemotedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeLayerChangedEvent, type KnowledgePathDangledEvent, type KnowledgePromoteFailedEvent, type KnowledgePromoteStartedEvent, type KnowledgePromotedEvent, type KnowledgeProposedEvent, type KnowledgeRejectedEvent, type KnowledgeScopeDegradedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, type KnowledgeSlugRenamedEvent, type KnowledgeTestIndex, type KnowledgeTestLink, type KnowledgeTestOrphanAnnotation, KnowledgeType, Layer, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type McpConfigMigratedEvent, type McpEventLedgerEvent, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, type PanelFieldGroup, type PanelFieldMeta, type PendingAutoArchivedEvent, type ReapplyCompletedEvent, type RelevanceMigrationRunEvent, StableId, type ValidateResult, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, allocateKnowledgeId, assistantTurnObservedEventSchema, auditModeSchema, bootstrapMarkerMigratedEventSchema, candidateFileEntrySchema, citePolicyActivatedEventSchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientPathsSchema, codexSkillPathMigratedEventSchema, defaultAgentsMetaCounters, defaultLayerFilterSchema, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, doctorRunEventSchema, driftDetectedEventSchema, editIntentCheckedEventSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, fabricConfigSchema, fabricEventSchema, fabricLanguageSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, getPanelFieldByKey, getPanelFields, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, initScanCompletedEventSchema, isKnowledgeStableId, knowledgeArchiveAttemptedEventSchema, knowledgeArchivedEventSchema, knowledgeConsumedEventSchema, knowledgeContextPlannedEventSchema, knowledgeDeferredEventSchema, knowledgeDemotedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeLayerChangedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, mcpPayloadLimitsSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, pendingAutoArchivedEventSchema, reapplyCompletedEventSchema, relevanceMigrationRunEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, withDerivedAgentsMetaNodeDefaults };
|