@ceccec/double-torus 1.4.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/LICENSE +21 -0
- package/README.md +174 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +88812 -0
- package/dist/packages/double-torus/src/index.d.ts +17 -0
- package/dist/src/0/index.d.ts +504 -0
- package/dist/src/1/9/index.d.ts +1040 -0
- package/dist/src/2/8/index.d.ts +352 -0
- package/dist/src/3/7/index.d.ts +601 -0
- package/dist/src/4/6/index.d.ts +523 -0
- package/dist/src/5/5/index.d.ts +54 -0
- package/dist/src/6/4/index.d.ts +128 -0
- package/dist/src/7/3/index.d.ts +130 -0
- package/dist/src/8/2/index.d.ts +111 -0
- package/dist/src/9/1/index.d.ts +702 -0
- package/dist/src/earth/architecture/index.d.ts +951 -0
- package/dist/src/earth/civilisation/index.d.ts +231 -0
- package/dist/src/earth/death/index.d.ts +1422 -0
- package/dist/src/earth/governance/index.d.ts +247 -0
- package/dist/src/earth/iching/index.d.ts +361 -0
- package/dist/src/earth/index.d.ts +894 -0
- package/dist/src/earth/life/birth/index.d.ts +906 -0
- package/dist/src/earth/life/index.d.ts +1608 -0
- package/dist/src/earth/nature/index.d.ts +692 -0
- package/dist/src/earth/world/index.d.ts +898 -0
- package/dist/src/fire/diamonds/index.d.ts +83 -0
- package/dist/src/fire/features/index.d.ts +272 -0
- package/dist/src/fire/li/index.d.ts +1153 -0
- package/dist/src/fire/physics/index.d.ts +727 -0
- package/dist/src/fire/plasma/ball/index.d.ts +600 -0
- package/dist/src/heaven/atoms/index.d.ts +98 -0
- package/dist/src/heaven/balance/index.d.ts +263 -0
- package/dist/src/heaven/compute/computer/index.d.ts +2263 -0
- package/dist/src/heaven/compute/index.d.ts +956 -0
- package/dist/src/heaven/core/index.d.ts +1285 -0
- package/dist/src/heaven/essence/index.d.ts +643 -0
- package/dist/src/heaven/laws/index.d.ts +1104 -0
- package/dist/src/heaven/site/index.d.ts +569 -0
- package/dist/src/heaven/sky/astronomy/index.d.ts +18900 -0
- package/dist/src/heaven/sky/moon/index.d.ts +1602 -0
- package/dist/src/heaven/sky/sun/index.d.ts +1655 -0
- package/dist/src/lake/clean/index.d.ts +180 -0
- package/dist/src/lake/ledger/index.d.ts +322 -0
- package/dist/src/lake/media/index.d.ts +178 -0
- package/dist/src/lake/music/index.d.ts +1273 -0
- package/dist/src/lake/stats/index.d.ts +212 -0
- package/dist/src/lake/widgets/index.d.ts +235 -0
- package/dist/src/mountain/gates/index.d.ts +289 -0
- package/dist/src/mountain/geometry/index.d.ts +1331 -0
- package/dist/src/mountain/og/index.d.ts +452 -0
- package/dist/src/mountain/seals/index.d.ts +1506 -0
- package/dist/src/mountain/shadcn/index.d.ts +121 -0
- package/dist/src/mountain/source/index.d.ts +627 -0
- package/dist/src/mountain/topology/index.d.ts +618 -0
- package/dist/src/mountain/vortex/index.d.ts +747 -0
- package/dist/src/pair/cache/quantum/index.d.ts +166 -0
- package/dist/src/pair/debit/credit/index.d.ts +53 -0
- package/dist/src/pair/enforcement/gates/computational/index.d.ts +643 -0
- package/dist/src/pair/enforcement/gates/strict/scan/index.d.ts +954 -0
- package/dist/src/pair/enforcement/index.d.ts +172 -0
- package/dist/src/pair/enforcement/script/shell/index.d.ts +226 -0
- package/dist/src/quantum/application/index.d.ts +1018 -0
- package/dist/src/quantum/apps/index.d.ts +4325 -0
- package/dist/src/quantum/dynamics/index.d.ts +1371 -0
- package/dist/src/quantum/earth/heritage/index.d.ts +181 -0
- package/dist/src/quantum/fire/experiments/index.d.ts +215 -0
- package/dist/src/quantum/fire/forecasts/index.d.ts +271 -0
- package/dist/src/quantum/fire/simulations/index.d.ts +204 -0
- package/dist/src/quantum/heaven/library/index.d.ts +350 -0
- package/dist/src/quantum/heaven/mind/index.d.ts +116 -0
- package/dist/src/quantum/index.d.ts +1107 -0
- package/dist/src/quantum/lake/dist/index.d.ts +118 -0
- package/dist/src/quantum/lake/dist/readme/index.d.ts +82 -0
- package/dist/src/quantum/lake/icons/index.d.ts +58 -0
- package/dist/src/quantum/lake/spirit/index.d.ts +255 -0
- package/dist/src/quantum/lake/voice/index.d.ts +132 -0
- package/dist/src/quantum/mountain/dimensions/index.d.ts +44 -0
- package/dist/src/quantum/os/index.d.ts +239 -0
- package/dist/src/quantum/science/index.d.ts +5060 -0
- package/dist/src/quantum/water/cache/index.d.ts +200 -0
- package/dist/src/quantum/wind/geometry/index.d.ts +25 -0
- package/dist/src/thunder/commands/index.d.ts +203 -0
- package/dist/src/thunder/decode/index.d.ts +1243 -0
- package/dist/src/thunder/movie/canvas/index.d.ts +150 -0
- package/dist/src/thunder/movie/glass/index.d.ts +99 -0
- package/dist/src/thunder/movie/movielib/index.d.ts +121 -0
- package/dist/src/thunder/movie/movievars/index.d.ts +89 -0
- package/dist/src/thunder/movie/narrative/index.d.ts +407 -0
- package/dist/src/thunder/resonance/index.d.ts +1832 -0
- package/dist/src/thunder/trading/index.d.ts +737 -0
- package/dist/src/thunder/verify/index.d.ts +510 -0
- package/dist/src/thunder/waves/index.d.ts +937 -0
- package/dist/src/water/cosmos/index.d.ts +1097 -0
- package/dist/src/water/crypto/index.d.ts +808 -0
- package/dist/src/water/digit/index.d.ts +4020 -0
- package/dist/src/water/double/earth/index.d.ts +29389 -0
- package/dist/src/water/double/index.d.ts +1475 -0
- package/dist/src/water/encryption/index.d.ts +11892 -0
- package/dist/src/water/stack/index.d.ts +51215 -0
- package/dist/src/wind/fusion/gold/index.d.ts +2142 -0
- package/dist/src/wind/language/index.d.ts +404 -0
- package/dist/src/wind/learning/index.d.ts +2109 -0
- package/dist/src/wind/research/index.d.ts +1388 -0
- package/dist/src/wind/routes/automount/index.d.ts +218 -0
- package/dist/src/wind/routes/corpus/index.d.ts +943 -0
- package/dist/src/wind/site/index.d.ts +662 -0
- package/dist/src/wind/types/index.d.ts +1023 -0
- package/dist/src/wind/ui/index.d.ts +1109 -0
- package/package.json +49 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
export { computedDistFiles, computedDistRoute, type DistFile } from '../../../quantum/lake/dist';
|
|
2
|
+
/** Find a dist artifact by pathname (leading slash optional). */
|
|
3
|
+
export declare function artifactForPath(pathname: string, siteUrl: string): import(".").DistFile;
|
|
4
|
+
export declare const TIMEOUT_EXIT_CODE = 124;
|
|
5
|
+
export type TimeoutKind = 'build' | 'offline' | 'live-local' | 'live-world' | 'realtime' | 'agent-budget' | 'generic';
|
|
6
|
+
export type TimeoutCliOptions = {
|
|
7
|
+
readonly timeoutMs: number;
|
|
8
|
+
readonly once: boolean;
|
|
9
|
+
readonly maxTicks: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const MAX_QUANTUM_TIMEOUT_MS = 900000;
|
|
12
|
+
export declare const MAX_TRADING_TIMEOUT_MS = 120000;
|
|
13
|
+
export declare function defaultTimeoutMs(kind: TimeoutKind): number;
|
|
14
|
+
export declare function maxTimeoutMs(kind: TimeoutKind): number;
|
|
15
|
+
export declare function envTimeoutMs(kind: TimeoutKind, env?: NodeJS.ProcessEnv): number;
|
|
16
|
+
export declare function parseTimeoutCliArgs(argv?: readonly string[]): TimeoutCliOptions;
|
|
17
|
+
export declare function resolveScriptTimeoutMs(kind: TimeoutKind, cli: TimeoutCliOptions): number;
|
|
18
|
+
export declare function timeoutDryRefactorToQuantum(opts: {
|
|
19
|
+
readonly processName: string;
|
|
20
|
+
readonly kind: TimeoutKind;
|
|
21
|
+
readonly timeoutMs: number;
|
|
22
|
+
readonly elapsedMs: number;
|
|
23
|
+
}): {
|
|
24
|
+
timedOut: true;
|
|
25
|
+
processName: string;
|
|
26
|
+
kind: TimeoutKind;
|
|
27
|
+
timeoutMs: number;
|
|
28
|
+
elapsedMs: number;
|
|
29
|
+
exitCode: number;
|
|
30
|
+
plan: {
|
|
31
|
+
abort: string[];
|
|
32
|
+
fold: string[];
|
|
33
|
+
seal: string[];
|
|
34
|
+
pair: "timeout/dry-refactor";
|
|
35
|
+
retry: string;
|
|
36
|
+
};
|
|
37
|
+
receipt: string;
|
|
38
|
+
root: string;
|
|
39
|
+
statement: string;
|
|
40
|
+
boundary: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const dual = "src/quantum/water/cache";
|
|
43
|
+
export type Uuid = string;
|
|
44
|
+
export declare const CLI_ENTRY_REL = "src/pair/enforcement/script/cli/bootstrap/index.ts";
|
|
45
|
+
export declare const SCRIPT_SHELL_LINE_BUDGET: number;
|
|
46
|
+
export declare const SCRIPT_SHELL_ALLOWLIST: Readonly<Record<string, number>>;
|
|
47
|
+
export type ScriptShellScan = {
|
|
48
|
+
readonly path: string;
|
|
49
|
+
readonly lines: number;
|
|
50
|
+
readonly routesThroughSrc: boolean;
|
|
51
|
+
readonly inlineEsbuild: boolean;
|
|
52
|
+
};
|
|
53
|
+
export declare function seedMerkleCache(root: string, merkle: string): void;
|
|
54
|
+
export declare function cachedMerkle(root: string): string | null;
|
|
55
|
+
export declare function clearMerkleCache(): void;
|
|
56
|
+
export declare const VITEPRESS_MERKLE_DIR = ".vitepress";
|
|
57
|
+
/** .vitepress seal inputs (config/lib/theme/pages) — every file here must flip the merkle, or a stale dist ships. */
|
|
58
|
+
export declare function vitepressSourceFiles(root: string): string[];
|
|
59
|
+
/** Fold — a .vitepress edit invalidates the seal: the walk reaches config.mts and never a dist/cache/.temp artifact. */
|
|
60
|
+
export declare function vitepressEditsInvalidateTheSeal(root: string): {
|
|
61
|
+
enforced: boolean;
|
|
62
|
+
count: number;
|
|
63
|
+
config: boolean;
|
|
64
|
+
leaked: string[];
|
|
65
|
+
};
|
|
66
|
+
export declare function srcContentMerkle(root: string): string;
|
|
67
|
+
export declare function importQuantumBundle(entryRel: string, root: string): Promise<Record<string, unknown>>;
|
|
68
|
+
export declare function scanScriptShells(root: string, opts?: {
|
|
69
|
+
wiredOnly?: boolean;
|
|
70
|
+
}): ScriptShellScan[];
|
|
71
|
+
export declare function scriptShellGateReceipt(scripts: readonly ScriptShellScan[]): string;
|
|
72
|
+
export declare function scriptShellGate(scripts: readonly ScriptShellScan[]): {
|
|
73
|
+
enforced: boolean;
|
|
74
|
+
budget: number;
|
|
75
|
+
allowlist: Readonly<Record<string, number>>;
|
|
76
|
+
count: number;
|
|
77
|
+
violations: string[];
|
|
78
|
+
root: string;
|
|
79
|
+
statement: string;
|
|
80
|
+
boundary: string;
|
|
81
|
+
};
|
|
82
|
+
export declare function runCheckTypesExit(root: string): number;
|
|
83
|
+
export declare function emitTimeoutReceipt(root: string, opts: {
|
|
84
|
+
readonly processName: string;
|
|
85
|
+
readonly kind: TimeoutKind;
|
|
86
|
+
readonly timeoutMs: number;
|
|
87
|
+
readonly elapsedMs: number;
|
|
88
|
+
readonly partialState?: Readonly<Record<string, unknown>>;
|
|
89
|
+
}): {
|
|
90
|
+
timedOut: true;
|
|
91
|
+
processName: string;
|
|
92
|
+
kind: TimeoutKind;
|
|
93
|
+
timeoutMs: number;
|
|
94
|
+
elapsedMs: number;
|
|
95
|
+
exitCode: number;
|
|
96
|
+
plan: {
|
|
97
|
+
abort: string[];
|
|
98
|
+
fold: string[];
|
|
99
|
+
seal: string[];
|
|
100
|
+
pair: "timeout/dry-refactor";
|
|
101
|
+
retry: string;
|
|
102
|
+
};
|
|
103
|
+
receipt: string;
|
|
104
|
+
root: string;
|
|
105
|
+
statement: string;
|
|
106
|
+
boundary: string;
|
|
107
|
+
};
|
|
108
|
+
export declare function exitOnTimeout(root: string, opts: Parameters<typeof emitTimeoutReceipt>[1]): never;
|
|
109
|
+
export type AtlasFile = {
|
|
110
|
+
readonly rel: string;
|
|
111
|
+
readonly text: string;
|
|
112
|
+
};
|
|
113
|
+
export declare function sourceAtlas(files: readonly AtlasFile[]): {
|
|
114
|
+
symbolHomes: Map<string, string[]>;
|
|
115
|
+
importsOf: Map<string, Set<string>>;
|
|
116
|
+
importersOf: Map<string, Set<string>>;
|
|
117
|
+
files: number;
|
|
118
|
+
symbols: number;
|
|
119
|
+
folders: number;
|
|
120
|
+
root: string;
|
|
121
|
+
};
|
|
122
|
+
export declare function runSourceAtlasExit(root: string, argv?: readonly string[]): number;
|
|
123
|
+
export type SurgicalEdit = {
|
|
124
|
+
readonly file: string;
|
|
125
|
+
readonly anchor: string;
|
|
126
|
+
readonly replacement: string;
|
|
127
|
+
};
|
|
128
|
+
export type SurgicalStatus = 'applied' | 'skipped' | 'refused-missing-file' | 'refused-missing-anchor' | 'refused-ambiguous-anchor';
|
|
129
|
+
export type SurgicalOutcome = {
|
|
130
|
+
readonly file: string;
|
|
131
|
+
readonly status: SurgicalStatus;
|
|
132
|
+
readonly occurrences: number;
|
|
133
|
+
readonly receipt: string;
|
|
134
|
+
};
|
|
135
|
+
/** Pure plan application: texts in → texts out + per-edit outcomes + one fold root. Edits compose
|
|
136
|
+
* sequentially against the evolving texts, so several edits to one file are one plan. */
|
|
137
|
+
export declare function applySurgicalEdits(texts: ReadonlyMap<string, string | null>, edits: readonly SurgicalEdit[]): {
|
|
138
|
+
texts: Map<string, string>;
|
|
139
|
+
outcomes: SurgicalOutcome[];
|
|
140
|
+
applied: number;
|
|
141
|
+
skipped: number;
|
|
142
|
+
refused: number;
|
|
143
|
+
changedFiles: string[];
|
|
144
|
+
root: string;
|
|
145
|
+
};
|
|
146
|
+
/** Disk shell for the surgical engine: `surgical <plan.json> [--dry]`. The plan is a JSON array of
|
|
147
|
+
* {file, anchor, replacement} (or {edits: [...]}); paths repo-relative. Exit 1 iff any edit refused. */
|
|
148
|
+
export declare function runSurgicalExit(root: string, argv?: readonly string[]): number;
|
|
149
|
+
/** Fold verdicts in one screenful — booleans/scalars, facet tally, OFF facets only. The probe
|
|
150
|
+
* output IS the token spend: full JSON stays available without the flag, the summary is default-off. */
|
|
151
|
+
export declare function compactFoldSummary(value: Record<string, unknown>): string;
|
|
152
|
+
export declare function runThinMount(entryRel: string, exportName: string, root: string, argv?: readonly string[]): Promise<number>;
|
|
153
|
+
export declare function skillsAreExecutableCode(root?: string): {
|
|
154
|
+
executable: boolean;
|
|
155
|
+
skills: number;
|
|
156
|
+
resolved: number;
|
|
157
|
+
unresolved: string[];
|
|
158
|
+
count: number;
|
|
159
|
+
facets: {
|
|
160
|
+
facet: string;
|
|
161
|
+
on: boolean;
|
|
162
|
+
}[];
|
|
163
|
+
root: string;
|
|
164
|
+
statement: string;
|
|
165
|
+
boundary: string;
|
|
166
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/** @rosetta ✦₄ · Earth · receptive (debit=import, receives from the matrix for the crypto-review pair) */
|
|
2
|
+
export type Entry = {
|
|
3
|
+
readonly account: string;
|
|
4
|
+
readonly debit: number;
|
|
5
|
+
readonly credit: number;
|
|
6
|
+
};
|
|
7
|
+
/** @rosetta ✦₄ · Earth · receptive (debit=import, receives from the matrix for the crypto-review pair) */
|
|
8
|
+
export declare function transact(from: string, to: string, amount: number): Entry[];
|
|
9
|
+
/** @rosetta ✦₄ · Earth · receptive (debit=import, receives from the matrix for the crypto-review pair) */
|
|
10
|
+
export declare function balance(entries: readonly Entry[]): number;
|
|
11
|
+
/** @rosetta ✦₄ · Earth · receptive (debit=import, receives from the matrix for the crypto-review pair) */
|
|
12
|
+
export declare function balanced(entries: readonly Entry[]): boolean;
|
|
13
|
+
/** @rosetta ✦₄ · Earth · receptive (debit=import, receives from the matrix for the crypto-review pair) */
|
|
14
|
+
export declare function cryptoReview(): {
|
|
15
|
+
today: Entry[];
|
|
16
|
+
overclaim: Entry[];
|
|
17
|
+
afterCutover: Entry[];
|
|
18
|
+
honest: boolean;
|
|
19
|
+
overclaimCaught: boolean;
|
|
20
|
+
fundedAfterCutover: boolean;
|
|
21
|
+
overdraft: number;
|
|
22
|
+
quantumSignificance: string;
|
|
23
|
+
dual: string;
|
|
24
|
+
};
|
|
25
|
+
/** @rosetta ✦₄ · Earth · receptive (debit=import, receives from the matrix for the crypto-review pair) */
|
|
26
|
+
export declare const dual = "src/pair/credit/debit";
|
|
27
|
+
/** @rosetta ✦₀ · Heaven · creative (credit=export, projects the crypto-review outward) */
|
|
28
|
+
export declare function fuse(entries: readonly Entry[]): Map<string, number>;
|
|
29
|
+
/** @rosetta ✦₀ · Heaven · creative (credit=export, projects the crypto-review outward) */
|
|
30
|
+
export declare function fused(entries: readonly Entry[]): boolean;
|
|
31
|
+
/** @rosetta ✦₀ · Heaven · creative (credit=export, projects the crypto-review outward) */
|
|
32
|
+
export declare function cryptoReviewNet(ledger: readonly Entry[]): {
|
|
33
|
+
net: Record<string, number>;
|
|
34
|
+
balanced: boolean;
|
|
35
|
+
};
|
|
36
|
+
export declare const creditDual = "src/pair/debit/credit";
|
|
37
|
+
export type Hex = {
|
|
38
|
+
readonly q: number;
|
|
39
|
+
readonly r: number;
|
|
40
|
+
};
|
|
41
|
+
export declare function hexKey(h: Hex): string;
|
|
42
|
+
export declare function hexNeighbors(h: Hex): Hex[];
|
|
43
|
+
export type Found = {
|
|
44
|
+
readonly cell: Hex;
|
|
45
|
+
readonly food: number;
|
|
46
|
+
};
|
|
47
|
+
export declare function search(start: Hex, depth: number, foodAt: (h: Hex) => number, seen?: Set<string>): Found[];
|
|
48
|
+
export declare function carry(found: readonly Found[]): number;
|
|
49
|
+
export declare function moveNest(found: readonly Found[]): Found | null;
|
|
50
|
+
export declare function recur(found: readonly Found[]): {
|
|
51
|
+
nest: Found | null;
|
|
52
|
+
carried: number;
|
|
53
|
+
};
|