@fenglimg/fabric-shared 1.8.0-rc.1 → 1.8.0-rc.2
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.
|
@@ -165,9 +165,9 @@ var enMessages = {
|
|
|
165
165
|
"cli.init.capabilities.follow-up.install": "install client assets",
|
|
166
166
|
"cli.init.capabilities.follow-up.manual": "manual step required",
|
|
167
167
|
"cli.init.next-step.message": "run fab hooks install to add the Day 4 pre-commit pipeline.",
|
|
168
|
-
"cli.init.reason-message.claude-body": ".fabric/forensic.json is ready; use the
|
|
168
|
+
"cli.init.reason-message.claude-body": ".fabric/forensic.json is ready; use the fabric-init skill to finish internal Fabric initialization.",
|
|
169
169
|
"cli.init.reason-message.codex-body": ".fabric/forensic.json is ready; continue with the repo skill at .agents/skills/fabric-init/SKILL.md and enable features.codex_hooks = true for Codex hooks.",
|
|
170
|
-
"cli.init.reason-message.multi-body": ".fabric/forensic.json is ready; continue in your installed client flow: Claude can use
|
|
170
|
+
"cli.init.reason-message.multi-body": ".fabric/forensic.json is ready; continue in your installed client flow: Claude can use fabric-init, and Codex can use .agents/skills/fabric-init/SKILL.md with features.codex_hooks = true.",
|
|
171
171
|
"cli.init.reason-message.installable-body": ".fabric/forensic.json is ready; some detected clients support Fabric follow-up but still need client assets installed.",
|
|
172
172
|
"cli.init.reason-message.manual-body": ".fabric/forensic.json is ready; some detected clients still need manual follow-up because no Fabric skill is installed for them yet.",
|
|
173
173
|
"cli.init.codex-hooks.created": "{label} {path} with Codex hooks config (requires features.codex_hooks = true).",
|
|
@@ -600,9 +600,9 @@ var zhCNMessages = {
|
|
|
600
600
|
"cli.init.capabilities.follow-up.install": "\u5B89\u88C5\u5BA2\u6237\u7AEF\u8D44\u4EA7",
|
|
601
601
|
"cli.init.capabilities.follow-up.manual": "\u9700\u8981\u624B\u52A8\u540E\u7EED\u5904\u7406",
|
|
602
602
|
"cli.init.next-step.message": "\u8FD0\u884C fab hooks install \u4EE5\u6DFB\u52A0\u7B2C 4 \u5929\u7684 pre-commit \u6D41\u6C34\u7EBF\u3002",
|
|
603
|
-
"cli.init.reason-message.claude-body": ".fabric/forensic.json \u5DF2\u5C31\u7EEA\uFF1B\u8BF7\u4F7F\u7528
|
|
603
|
+
"cli.init.reason-message.claude-body": ".fabric/forensic.json \u5DF2\u5C31\u7EEA\uFF1B\u8BF7\u4F7F\u7528 fabric-init skill \u5B8C\u6210 Fabric \u5185\u90E8\u521D\u59CB\u5316\u3002",
|
|
604
604
|
"cli.init.reason-message.codex-body": ".fabric/forensic.json \u5DF2\u5C31\u7EEA\uFF1B\u8BF7\u7EE7\u7EED\u4F7F\u7528\u4ED3\u5E93\u5185\u7684 .agents/skills/fabric-init/SKILL.md\uFF0C\u5E76\u4E3A Codex hooks \u542F\u7528 features.codex_hooks = true\u3002",
|
|
605
|
-
"cli.init.reason-message.multi-body": ".fabric/forensic.json \u5DF2\u5C31\u7EEA\uFF1B\u8BF7\u6309\u5DF2\u5B89\u88C5\u5BA2\u6237\u7AEF\u7EE7\u7EED\u540E\u7EED\u6D41\u7A0B\uFF1AClaude \u4F7F\u7528
|
|
605
|
+
"cli.init.reason-message.multi-body": ".fabric/forensic.json \u5DF2\u5C31\u7EEA\uFF1B\u8BF7\u6309\u5DF2\u5B89\u88C5\u5BA2\u6237\u7AEF\u7EE7\u7EED\u540E\u7EED\u6D41\u7A0B\uFF1AClaude \u4F7F\u7528 fabric-init\uFF0CCodex \u4F7F\u7528 .agents/skills/fabric-init/SKILL.md\uFF0C\u5E76\u542F\u7528 features.codex_hooks = true\u3002",
|
|
606
606
|
"cli.init.reason-message.installable-body": ".fabric/forensic.json \u5DF2\u5C31\u7EEA\uFF1B\u90E8\u5206\u5DF2\u68C0\u6D4B\u5230\u7684\u5BA2\u6237\u7AEF\u5DF2\u652F\u6301 Fabric \u540E\u7EED\u63A5\u529B\uFF0C\u4F46\u4ECD\u9700\u5B89\u88C5\u5BA2\u6237\u7AEF\u8D44\u4EA7\u3002",
|
|
607
607
|
"cli.init.reason-message.manual-body": ".fabric/forensic.json \u5DF2\u5C31\u7EEA\uFF1B\u90E8\u5206\u5DF2\u68C0\u6D4B\u5230\u7684\u5BA2\u6237\u7AEF\u5C1A\u672A\u5B89\u88C5 Fabric skill\uFF0C\u9700\u8981\u624B\u52A8\u5B8C\u6210\u540E\u7EED\u521D\u59CB\u5316\u3002",
|
|
608
608
|
"cli.init.codex-hooks.created": "{label} {path}\uFF0C\u5E76\u5199\u5165 Codex hooks \u914D\u7F6E\uFF08\u9700\u542F\u7528 features.codex_hooks = true\uFF09\u3002",
|
package/dist/i18n/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -4126,6 +4126,37 @@ declare const claudeSkillPathMigratedEventSchema: z.ZodObject<{
|
|
|
4126
4126
|
correlation_id?: string | undefined;
|
|
4127
4127
|
session_id?: string | undefined;
|
|
4128
4128
|
}>;
|
|
4129
|
+
declare const claudeHookPathMigratedEventSchema: z.ZodObject<{
|
|
4130
|
+
event_type: z.ZodLiteral<"claude_hook_path_migrated">;
|
|
4131
|
+
from: z.ZodString;
|
|
4132
|
+
to: z.ZodString;
|
|
4133
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4134
|
+
id: z.ZodString;
|
|
4135
|
+
ts: z.ZodNumber;
|
|
4136
|
+
schema_version: z.ZodLiteral<1>;
|
|
4137
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4138
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4139
|
+
}, "strip", z.ZodTypeAny, {
|
|
4140
|
+
schema_version: 1;
|
|
4141
|
+
ts: number;
|
|
4142
|
+
id: string;
|
|
4143
|
+
kind: "fabric-event";
|
|
4144
|
+
event_type: "claude_hook_path_migrated";
|
|
4145
|
+
from: string;
|
|
4146
|
+
to: string;
|
|
4147
|
+
correlation_id?: string | undefined;
|
|
4148
|
+
session_id?: string | undefined;
|
|
4149
|
+
}, {
|
|
4150
|
+
schema_version: 1;
|
|
4151
|
+
ts: number;
|
|
4152
|
+
id: string;
|
|
4153
|
+
kind: "fabric-event";
|
|
4154
|
+
event_type: "claude_hook_path_migrated";
|
|
4155
|
+
from: string;
|
|
4156
|
+
to: string;
|
|
4157
|
+
correlation_id?: string | undefined;
|
|
4158
|
+
session_id?: string | undefined;
|
|
4159
|
+
}>;
|
|
4129
4160
|
declare const legacyClientPathPresentEventSchema: z.ZodObject<{
|
|
4130
4161
|
event_type: z.ZodLiteral<"legacy_client_path_present">;
|
|
4131
4162
|
removed: z.ZodArray<z.ZodString, "many">;
|
|
@@ -4725,6 +4756,36 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4725
4756
|
to: string;
|
|
4726
4757
|
correlation_id?: string | undefined;
|
|
4727
4758
|
session_id?: string | undefined;
|
|
4759
|
+
}>, z.ZodObject<{
|
|
4760
|
+
event_type: z.ZodLiteral<"claude_hook_path_migrated">;
|
|
4761
|
+
from: z.ZodString;
|
|
4762
|
+
to: z.ZodString;
|
|
4763
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4764
|
+
id: z.ZodString;
|
|
4765
|
+
ts: z.ZodNumber;
|
|
4766
|
+
schema_version: z.ZodLiteral<1>;
|
|
4767
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4768
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4769
|
+
}, "strip", z.ZodTypeAny, {
|
|
4770
|
+
schema_version: 1;
|
|
4771
|
+
ts: number;
|
|
4772
|
+
id: string;
|
|
4773
|
+
kind: "fabric-event";
|
|
4774
|
+
event_type: "claude_hook_path_migrated";
|
|
4775
|
+
from: string;
|
|
4776
|
+
to: string;
|
|
4777
|
+
correlation_id?: string | undefined;
|
|
4778
|
+
session_id?: string | undefined;
|
|
4779
|
+
}, {
|
|
4780
|
+
schema_version: 1;
|
|
4781
|
+
ts: number;
|
|
4782
|
+
id: string;
|
|
4783
|
+
kind: "fabric-event";
|
|
4784
|
+
event_type: "claude_hook_path_migrated";
|
|
4785
|
+
from: string;
|
|
4786
|
+
to: string;
|
|
4787
|
+
correlation_id?: string | undefined;
|
|
4788
|
+
session_id?: string | undefined;
|
|
4728
4789
|
}>, z.ZodObject<{
|
|
4729
4790
|
event_type: z.ZodLiteral<"legacy_client_path_present">;
|
|
4730
4791
|
removed: z.ZodArray<z.ZodString, "many">;
|
|
@@ -4767,10 +4828,11 @@ type McpConfigMigratedEvent = z.infer<typeof mcpConfigMigratedEventSchema>;
|
|
|
4767
4828
|
type MetaReconciledOnStartupEvent = z.infer<typeof metaReconciledOnStartupEventSchema>;
|
|
4768
4829
|
type MetaReconciledEvent = z.infer<typeof metaReconciledEventSchema>;
|
|
4769
4830
|
type ClaudeSkillPathMigratedEvent = z.infer<typeof claudeSkillPathMigratedEventSchema>;
|
|
4831
|
+
type ClaudeHookPathMigratedEvent = z.infer<typeof claudeHookPathMigratedEventSchema>;
|
|
4770
4832
|
type LegacyClientPathPresentEvent = z.infer<typeof legacyClientPathPresentEventSchema>;
|
|
4771
|
-
type EventLedgerEvent = RuleContextPlannedEvent | RuleSelectionEvent | RuleSectionsFetchedEvent | EditIntentCheckedEvent | RuleDriftDetectedEvent | RuleBaselineAcceptedEvent | BaselineSyncedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | LegacyClientPathPresentEvent;
|
|
4833
|
+
type EventLedgerEvent = RuleContextPlannedEvent | RuleSelectionEvent | RuleSectionsFetchedEvent | EditIntentCheckedEvent | RuleDriftDetectedEvent | RuleBaselineAcceptedEvent | BaselineSyncedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | LegacyClientPathPresentEvent;
|
|
4772
4834
|
type EventLedgerEventType = EventLedgerEvent["event_type"];
|
|
4773
4835
|
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;
|
|
4774
4836
|
type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
|
|
4775
4837
|
|
|
4776
|
-
export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, AgentsMetaNode, AgentsTopologyType, type BaselineSyncedEvent, type CandidateFileEntry, type CandidateFileFamily, type ClaudeSkillPathMigratedEvent, 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 LedgerAppendedEvent, LedgerEntry, type LegacyClientPathPresentEvent, type LockApprovedEvent, type LockDriftEvent, type McpConfigMigratedEvent, type McpEventLedgerEvent, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, RULE_TEST_INDEX_SCHEMA_VERSION, type ReapplyCompletedEvent, type RuleBaselineAcceptedEvent, type RuleContextPlannedEvent, type RuleDriftDetectedEvent, type RuleSectionsFetchedEvent, type RuleSelectionEvent, type RuleTestIndex, type RuleTestLink, type RuleTestOrphanAnnotation, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, auditModeSchema, baselineSyncedEventSchema, candidateFileEntrySchema, claudeSkillPathMigratedEventSchema, clientPathsSchema, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, driftDetectedEventSchema, editIntentCheckedEventSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, fabricConfigSchema, fabricEventSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, ledgerAppendedEventSchema, ledgerEntrySchema, legacyClientPathPresentEventSchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, mcpPayloadLimitsSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, reapplyCompletedEventSchema, ruleBaselineAcceptedEventSchema, ruleContextPlannedEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, ruleDriftDetectedEventSchema, ruleSectionsFetchedEventSchema, ruleSelectionEventSchema, ruleTestIndexSchema, ruleTestLinkSchema, ruleTestOrphanAnnotationSchema, withDerivedAgentsMetaNodeDefaults };
|
|
4838
|
+
export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, AgentsMetaNode, AgentsTopologyType, type BaselineSyncedEvent, type CandidateFileEntry, type CandidateFileFamily, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, 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 LedgerAppendedEvent, LedgerEntry, type LegacyClientPathPresentEvent, type LockApprovedEvent, type LockDriftEvent, type McpConfigMigratedEvent, type McpEventLedgerEvent, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, RULE_TEST_INDEX_SCHEMA_VERSION, type ReapplyCompletedEvent, type RuleBaselineAcceptedEvent, type RuleContextPlannedEvent, type RuleDriftDetectedEvent, type RuleSectionsFetchedEvent, type RuleSelectionEvent, type RuleTestIndex, type RuleTestLink, type RuleTestOrphanAnnotation, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, auditModeSchema, baselineSyncedEventSchema, candidateFileEntrySchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientPathsSchema, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, driftDetectedEventSchema, editIntentCheckedEventSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, fabricConfigSchema, fabricEventSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, ledgerAppendedEventSchema, ledgerEntrySchema, legacyClientPathPresentEventSchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, mcpPayloadLimitsSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, reapplyCompletedEventSchema, ruleBaselineAcceptedEventSchema, ruleContextPlannedEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, ruleDriftDetectedEventSchema, ruleSectionsFetchedEventSchema, ruleSelectionEventSchema, ruleTestIndexSchema, ruleTestLinkSchema, ruleTestOrphanAnnotationSchema, withDerivedAgentsMetaNodeDefaults };
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
enMessages,
|
|
8
8
|
normalizeLocale,
|
|
9
9
|
zhCNMessages
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BLXHC5HA.js";
|
|
11
11
|
import {
|
|
12
12
|
annotateIntentRequestSchema,
|
|
13
13
|
getRulesAnnotations,
|
|
@@ -541,6 +541,12 @@ var claudeSkillPathMigratedEventSchema = z9.object({
|
|
|
541
541
|
from: z9.string(),
|
|
542
542
|
to: z9.string()
|
|
543
543
|
});
|
|
544
|
+
var claudeHookPathMigratedEventSchema = z9.object({
|
|
545
|
+
...eventLedgerEnvelopeSchema,
|
|
546
|
+
event_type: z9.literal("claude_hook_path_migrated"),
|
|
547
|
+
from: z9.string(),
|
|
548
|
+
to: z9.string()
|
|
549
|
+
});
|
|
544
550
|
var legacyClientPathPresentEventSchema = z9.object({
|
|
545
551
|
...eventLedgerEnvelopeSchema,
|
|
546
552
|
event_type: z9.literal("legacy_client_path_present"),
|
|
@@ -561,6 +567,7 @@ var eventLedgerEventSchema = z9.discriminatedUnion("event_type", [
|
|
|
561
567
|
metaReconciledOnStartupEventSchema,
|
|
562
568
|
metaReconciledEventSchema,
|
|
563
569
|
claudeSkillPathMigratedEventSchema,
|
|
570
|
+
claudeHookPathMigratedEventSchema,
|
|
564
571
|
legacyClientPathPresentEventSchema
|
|
565
572
|
]);
|
|
566
573
|
export {
|
|
@@ -579,6 +586,7 @@ export {
|
|
|
579
586
|
auditModeSchema,
|
|
580
587
|
baselineSyncedEventSchema,
|
|
581
588
|
candidateFileEntrySchema,
|
|
589
|
+
claudeHookPathMigratedEventSchema,
|
|
582
590
|
claudeSkillPathMigratedEventSchema,
|
|
583
591
|
clientPathsSchema,
|
|
584
592
|
createTranslator,
|