faf 7.16.2 → 8.0.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 +21 -9
- package/dist/cli.js +282 -269
- package/dist/cli.js.map +13 -12
- package/dist/core/faf-dna.d.ts +20 -0
- package/dist/core/slots.d.ts +1 -1
- package/dist/index.js +143 -143
- package/dist/index.js.map +11 -10
- package/dist/interop/command-note.d.ts +43 -0
- package/dist/interop/inject.d.ts +8 -1
- package/dist/wasm/kernel.d.ts +1 -1
- package/package.json +1 -1
- package/project.faf +24 -21
- package/vendor/faf-scoring-kernel/README.md +82 -8
- package/vendor/faf-scoring-kernel/faf_wasm_sdk.d.ts +5 -2
- package/vendor/faf-scoring-kernel/faf_wasm_sdk.js +5 -2
- package/vendor/faf-scoring-kernel/faf_wasm_sdk_bg.wasm +0 -0
- package/vendor/faf-scoring-kernel/package.json +4 -3
package/dist/core/faf-dna.d.ts
CHANGED
|
@@ -52,6 +52,20 @@ export interface Milestone {
|
|
|
52
52
|
label: string;
|
|
53
53
|
emoji: string;
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* A lineage a reset ended. `faf init --force` starts a fresh certificate, and
|
|
57
|
+
* the life before it is kept here rather than erased — a birth score is the one
|
|
58
|
+
* value in this format that cannot be recreated, so a reset is a REBIRTH, not a
|
|
59
|
+
* deletion. Chains: a project reset twice keeps both earlier lives, oldest first.
|
|
60
|
+
*/
|
|
61
|
+
export interface PriorLineage {
|
|
62
|
+
born: string;
|
|
63
|
+
birthDNA: number;
|
|
64
|
+
certificate: string;
|
|
65
|
+
projectDNA: string;
|
|
66
|
+
lastScore: number;
|
|
67
|
+
endedAt: string;
|
|
68
|
+
}
|
|
55
69
|
export interface FafDNA {
|
|
56
70
|
birthCertificate: BirthCertificate;
|
|
57
71
|
versions: VersionEntry[];
|
|
@@ -67,6 +81,8 @@ export interface FafDNA {
|
|
|
67
81
|
};
|
|
68
82
|
lastModified: string;
|
|
69
83
|
format: 'faf-dna-v1';
|
|
84
|
+
/** Lives ended by a reset, oldest first. Absent when there has never been one. */
|
|
85
|
+
priorLineage?: PriorLineage[];
|
|
70
86
|
}
|
|
71
87
|
/**
|
|
72
88
|
* The `.faf-dna` lineage of one project: birth, growth and the journey line.
|
|
@@ -110,6 +126,10 @@ export declare class FafDNAManager {
|
|
|
110
126
|
* load()), a file that appeared since is refused (SafePathError `changed`)
|
|
111
127
|
* rather than written over; over a `.faf-dna` that is there, birth starts a
|
|
112
128
|
* fresh lineage (`faf init --force`). */
|
|
129
|
+
/** The lives this birth is about to end, oldest first — the one already on
|
|
130
|
+
* disk, plus any it had itself inherited. Empty when there is no readable
|
|
131
|
+
* `.faf-dna`, so a first birth writes no `priorLineage` key at all. */
|
|
132
|
+
private endingLineage;
|
|
113
133
|
birth(birthDNA: number): FafDNA;
|
|
114
134
|
/** True when `.faf-dna` exists and is one faf wrote — in faf's shape, and
|
|
115
135
|
* exactly faf's own text — so recordGrowth may add to it. Any other file is
|
package/dist/core/slots.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare function getSlotByAnyPath(path: string): SlotDef | undefined;
|
|
|
20
20
|
export declare function readSlotValue(data: Record<string, unknown>, slot: SlotDef): unknown;
|
|
21
21
|
/** Slots grouped by category */
|
|
22
22
|
export declare function slotsByCategory(category: SlotCategory): SlotDef[];
|
|
23
|
-
/** Base-tier slots (1-21) —
|
|
23
|
+
/** Base-tier slots (1-21) — the slots faf-cli fills; the other 12 are `slotignored` */
|
|
24
24
|
export declare const BASE_SLOTS: SlotDef[];
|
|
25
25
|
/** Enterprise-tier slots (1-33) — used by score_faf_enterprise */
|
|
26
26
|
export declare const ENTERPRISE_SLOTS: SlotDef[];
|