@fenglimg/fabric-shared 1.8.0-rc.2 → 1.8.0-rc.3
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.
|
@@ -166,8 +166,8 @@ var enMessages = {
|
|
|
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
168
|
"cli.init.reason-message.claude-body": ".fabric/forensic.json is ready; use the fabric-init skill to finish internal Fabric initialization.",
|
|
169
|
-
"cli.init.reason-message.codex-body": ".fabric/forensic.json is ready; continue with the repo skill at .
|
|
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 .
|
|
169
|
+
"cli.init.reason-message.codex-body": ".fabric/forensic.json is ready; continue with the repo skill at .codex/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 fabric-init, and Codex can use .codex/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).",
|
|
@@ -601,8 +601,8 @@ var zhCNMessages = {
|
|
|
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
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
|
-
"cli.init.reason-message.codex-body": ".fabric/forensic.json \u5DF2\u5C31\u7EEA\uFF1B\u8BF7\u7EE7\u7EED\u4F7F\u7528\u4ED3\u5E93\u5185\u7684 .
|
|
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 .
|
|
604
|
+
"cli.init.reason-message.codex-body": ".fabric/forensic.json \u5DF2\u5C31\u7EEA\uFF1B\u8BF7\u7EE7\u7EED\u4F7F\u7528\u4ED3\u5E93\u5185\u7684 .codex/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 fabric-init\uFF0CCodex \u4F7F\u7528 .codex/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
|
@@ -4157,6 +4157,37 @@ declare const claudeHookPathMigratedEventSchema: z.ZodObject<{
|
|
|
4157
4157
|
correlation_id?: string | undefined;
|
|
4158
4158
|
session_id?: string | undefined;
|
|
4159
4159
|
}>;
|
|
4160
|
+
declare const codexSkillPathMigratedEventSchema: z.ZodObject<{
|
|
4161
|
+
event_type: z.ZodLiteral<"codex_skill_path_migrated">;
|
|
4162
|
+
from: z.ZodString;
|
|
4163
|
+
to: z.ZodString;
|
|
4164
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4165
|
+
id: z.ZodString;
|
|
4166
|
+
ts: z.ZodNumber;
|
|
4167
|
+
schema_version: z.ZodLiteral<1>;
|
|
4168
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4169
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4170
|
+
}, "strip", z.ZodTypeAny, {
|
|
4171
|
+
schema_version: 1;
|
|
4172
|
+
ts: number;
|
|
4173
|
+
id: string;
|
|
4174
|
+
kind: "fabric-event";
|
|
4175
|
+
event_type: "codex_skill_path_migrated";
|
|
4176
|
+
from: string;
|
|
4177
|
+
to: string;
|
|
4178
|
+
correlation_id?: string | undefined;
|
|
4179
|
+
session_id?: string | undefined;
|
|
4180
|
+
}, {
|
|
4181
|
+
schema_version: 1;
|
|
4182
|
+
ts: number;
|
|
4183
|
+
id: string;
|
|
4184
|
+
kind: "fabric-event";
|
|
4185
|
+
event_type: "codex_skill_path_migrated";
|
|
4186
|
+
from: string;
|
|
4187
|
+
to: string;
|
|
4188
|
+
correlation_id?: string | undefined;
|
|
4189
|
+
session_id?: string | undefined;
|
|
4190
|
+
}>;
|
|
4160
4191
|
declare const legacyClientPathPresentEventSchema: z.ZodObject<{
|
|
4161
4192
|
event_type: z.ZodLiteral<"legacy_client_path_present">;
|
|
4162
4193
|
removed: z.ZodArray<z.ZodString, "many">;
|
|
@@ -4786,6 +4817,36 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4786
4817
|
to: string;
|
|
4787
4818
|
correlation_id?: string | undefined;
|
|
4788
4819
|
session_id?: string | undefined;
|
|
4820
|
+
}>, z.ZodObject<{
|
|
4821
|
+
event_type: z.ZodLiteral<"codex_skill_path_migrated">;
|
|
4822
|
+
from: z.ZodString;
|
|
4823
|
+
to: z.ZodString;
|
|
4824
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4825
|
+
id: z.ZodString;
|
|
4826
|
+
ts: z.ZodNumber;
|
|
4827
|
+
schema_version: z.ZodLiteral<1>;
|
|
4828
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4829
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4830
|
+
}, "strip", z.ZodTypeAny, {
|
|
4831
|
+
schema_version: 1;
|
|
4832
|
+
ts: number;
|
|
4833
|
+
id: string;
|
|
4834
|
+
kind: "fabric-event";
|
|
4835
|
+
event_type: "codex_skill_path_migrated";
|
|
4836
|
+
from: string;
|
|
4837
|
+
to: string;
|
|
4838
|
+
correlation_id?: string | undefined;
|
|
4839
|
+
session_id?: string | undefined;
|
|
4840
|
+
}, {
|
|
4841
|
+
schema_version: 1;
|
|
4842
|
+
ts: number;
|
|
4843
|
+
id: string;
|
|
4844
|
+
kind: "fabric-event";
|
|
4845
|
+
event_type: "codex_skill_path_migrated";
|
|
4846
|
+
from: string;
|
|
4847
|
+
to: string;
|
|
4848
|
+
correlation_id?: string | undefined;
|
|
4849
|
+
session_id?: string | undefined;
|
|
4789
4850
|
}>, z.ZodObject<{
|
|
4790
4851
|
event_type: z.ZodLiteral<"legacy_client_path_present">;
|
|
4791
4852
|
removed: z.ZodArray<z.ZodString, "many">;
|
|
@@ -4829,10 +4890,11 @@ type MetaReconciledOnStartupEvent = z.infer<typeof metaReconciledOnStartupEventS
|
|
|
4829
4890
|
type MetaReconciledEvent = z.infer<typeof metaReconciledEventSchema>;
|
|
4830
4891
|
type ClaudeSkillPathMigratedEvent = z.infer<typeof claudeSkillPathMigratedEventSchema>;
|
|
4831
4892
|
type ClaudeHookPathMigratedEvent = z.infer<typeof claudeHookPathMigratedEventSchema>;
|
|
4893
|
+
type CodexSkillPathMigratedEvent = z.infer<typeof codexSkillPathMigratedEventSchema>;
|
|
4832
4894
|
type LegacyClientPathPresentEvent = z.infer<typeof legacyClientPathPresentEventSchema>;
|
|
4833
|
-
type EventLedgerEvent = RuleContextPlannedEvent | RuleSelectionEvent | RuleSectionsFetchedEvent | EditIntentCheckedEvent | RuleDriftDetectedEvent | RuleBaselineAcceptedEvent | BaselineSyncedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | LegacyClientPathPresentEvent;
|
|
4895
|
+
type EventLedgerEvent = RuleContextPlannedEvent | RuleSelectionEvent | RuleSectionsFetchedEvent | EditIntentCheckedEvent | RuleDriftDetectedEvent | RuleBaselineAcceptedEvent | BaselineSyncedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | CodexSkillPathMigratedEvent | LegacyClientPathPresentEvent;
|
|
4834
4896
|
type EventLedgerEventType = EventLedgerEvent["event_type"];
|
|
4835
4897
|
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;
|
|
4836
4898
|
type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
|
|
4837
4899
|
|
|
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 };
|
|
4900
|
+
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 CodexSkillPathMigratedEvent, 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, codexSkillPathMigratedEventSchema, 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-FEEWLYO3.js";
|
|
11
11
|
import {
|
|
12
12
|
annotateIntentRequestSchema,
|
|
13
13
|
getRulesAnnotations,
|
|
@@ -547,6 +547,12 @@ var claudeHookPathMigratedEventSchema = z9.object({
|
|
|
547
547
|
from: z9.string(),
|
|
548
548
|
to: z9.string()
|
|
549
549
|
});
|
|
550
|
+
var codexSkillPathMigratedEventSchema = z9.object({
|
|
551
|
+
...eventLedgerEnvelopeSchema,
|
|
552
|
+
event_type: z9.literal("codex_skill_path_migrated"),
|
|
553
|
+
from: z9.string(),
|
|
554
|
+
to: z9.string()
|
|
555
|
+
});
|
|
550
556
|
var legacyClientPathPresentEventSchema = z9.object({
|
|
551
557
|
...eventLedgerEnvelopeSchema,
|
|
552
558
|
event_type: z9.literal("legacy_client_path_present"),
|
|
@@ -568,6 +574,7 @@ var eventLedgerEventSchema = z9.discriminatedUnion("event_type", [
|
|
|
568
574
|
metaReconciledEventSchema,
|
|
569
575
|
claudeSkillPathMigratedEventSchema,
|
|
570
576
|
claudeHookPathMigratedEventSchema,
|
|
577
|
+
codexSkillPathMigratedEventSchema,
|
|
571
578
|
legacyClientPathPresentEventSchema
|
|
572
579
|
]);
|
|
573
580
|
export {
|
|
@@ -589,6 +596,7 @@ export {
|
|
|
589
596
|
claudeHookPathMigratedEventSchema,
|
|
590
597
|
claudeSkillPathMigratedEventSchema,
|
|
591
598
|
clientPathsSchema,
|
|
599
|
+
codexSkillPathMigratedEventSchema,
|
|
592
600
|
createTranslator,
|
|
593
601
|
defaultMessages,
|
|
594
602
|
deriveAgentsMetaIdentitySource,
|