@ibgib/ts-gib 0.5.28 → 0.5.30
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/CHANGELOG.md +5 -0
- package/dist/V1/factory.d.mts.map +1 -1
- package/dist/V1/factory.mjs +5 -1
- package/dist/V1/factory.mjs.map +1 -1
- package/dist/respec-gib.node.mjs +3 -212
- package/dist/respec-gib.node.mjs.map +1 -1
- package/package.json +3 -5
- package/src/V1/factory.mts +13 -8
- package/src/respec-gib.node.mts +3 -200
- package/.VSCodeCounter/2024-07-02_16-01-47/details.md +0 -45
- package/.VSCodeCounter/2024-07-02_16-01-47/diff-details.md +0 -15
- package/.VSCodeCounter/2024-07-02_16-01-47/diff.csv +0 -2
- package/.VSCodeCounter/2024-07-02_16-01-47/diff.md +0 -19
- package/.VSCodeCounter/2024-07-02_16-01-47/diff.txt +0 -22
- package/.VSCodeCounter/2024-07-02_16-01-47/results.csv +0 -32
- package/.VSCodeCounter/2024-07-02_16-01-47/results.json +0 -1
- package/.VSCodeCounter/2024-07-02_16-01-47/results.md +0 -30
- package/.VSCodeCounter/2024-07-02_16-01-47/results.txt +0 -63
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## 0.5.28/29
|
|
2
|
+
* added `squash` param to `firstGen`
|
|
3
|
+
* for use when not using `dna` and you want the firstGen to output a single
|
|
4
|
+
frame with no intermediates.
|
|
5
|
+
|
|
1
6
|
## 0.5.26/27
|
|
2
7
|
* added `Factory_V1.stone` and `Factory_V1.constant` functions
|
|
3
8
|
* added testing for these
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.mts","sourceRoot":"","sources":["../../src/V1/factory.mts"],"names":[],"mappings":"AAKA,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AACrG,OAAO,EAAE,QAAQ,EAAE,YAAY,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C,EAAE,MAAM,CAAC;QACzB,IAAI,CAAC,EAAE,KAAK,CAAC;QACb,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB;;WAEG;QACH,IAAI,CAAC,EAAE,OAAO,CAAC;KAClB,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IA6DrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;WACU,QAAQ,CACjB,KAAK,SAAS,YAAY,GAAG,GAAG,EAChC,OAAO,SAAS,cAAc,GAAG,cAAc,EACjD,EACE,iBAAiB,EACjB,EAAE,EACF,eAAe,EACf,IAAI,EACJ,MAAM,GACT,EAAE;QACC,iBAAiB,EAAE,EAAE,CAAC;QACtB,EAAE,EAAE,EAAE,CAAC;QACP;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,IAAI,CAAC,EAAE,KAAK,CAAC;QACb,MAAM,CAAC,EAAE,OAAO,CAAC;KACpB,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;CAkBxC"}
|
package/dist/V1/factory.mjs
CHANGED
|
@@ -99,7 +99,7 @@ export class Factory_V1 {
|
|
|
99
99
|
return resultWithIntermediates;
|
|
100
100
|
}
|
|
101
101
|
else if (squash) {
|
|
102
|
-
// manually remove past and change the tjp, if it exists
|
|
102
|
+
// manually remove past and change the tjp, if it exists, reset n
|
|
103
103
|
if (!newIbGib.rel8ns) {
|
|
104
104
|
throw new Error(`(UNEXPECTED) newIbGib.rel8ns is falsy? (E: 6b09e8057fc5b00c6cfd13be60e97f26)`);
|
|
105
105
|
}
|
|
@@ -109,6 +109,10 @@ export class Factory_V1 {
|
|
|
109
109
|
newIbGib.data ??= {};
|
|
110
110
|
newIbGib.data.isTjp = true;
|
|
111
111
|
}
|
|
112
|
+
if (nCounter) {
|
|
113
|
+
newIbGib.data ??= {};
|
|
114
|
+
newIbGib.data.n = 0;
|
|
115
|
+
}
|
|
112
116
|
// recalculate the gib
|
|
113
117
|
newIbGib.gib = await getGib({ ibGib: newIbGib });
|
|
114
118
|
const resultSquashed = { newIbGib };
|
package/dist/V1/factory.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.mjs","sourceRoot":"","sources":["../../src/V1/factory.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,iDAAiD,CAAC;AAE3F,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,iBAAiB,EAAE,uCAAuC,EAAE,MAAM,iBAAiB,CAAC;AAC5G,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAE3D,MAAM,OAAO,GAAG,KAAK,CAAC;AAEtB,MAAM,OAAO,UAAU;IACnB,MAAM,CAAC,IAAI;QACP,OAAO,UAAU,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,EACb,EAAE,EAGL;QACG,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,UAAU,CAAC,EACd,GAAG,EAGN;QACG,OAAO,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IACvD,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAc,EA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C;QAC/D,IAAI,CAAC;YACD,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,KAAK,CAAC;gBACzC,iBAAiB;gBACjB,EAAE;gBACF,eAAe;gBACf,IAAI;gBACJ,MAAM;gBACN,WAAW,EAAE,IAAI;gBACjB,IAAI,EAAE,KAAK;aACd,CAAC,CAAC;YACH,OAAO,aAAa,CAAC;QACzB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;YACxC,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC;CACJ"}
|
package/dist/respec-gib.node.mjs
CHANGED
|
@@ -1,213 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import * as pathUtils from 'path';
|
|
5
|
-
import { pretty } from '@ibgib/helper-gib/dist/helpers/utils-helper.mjs';
|
|
6
|
-
import { getGlobalRespecGib } from '@ibgib/helper-gib/dist/respec-gib/respec-gib.mjs';
|
|
7
|
-
// #region settings
|
|
8
|
-
/**
|
|
9
|
-
* This is how I enable/disable verbose logging. Do with it what you will.
|
|
10
|
-
*/
|
|
11
|
-
const logalot = false;
|
|
12
|
-
/** set this to the root of the respecs to look at */
|
|
13
|
-
const RESPEC_ROOT_DIR_RELATIVE_TO_BASE = './dist';
|
|
14
|
-
/** change this to suit your naming convention */
|
|
15
|
-
const RESPEC_FILE_REG_EXP = /^.+respec\.mjs$/;
|
|
16
|
-
// const RESPEC_FILE_REG_EXP = /^.*respec-gib.respec\.mjs$/;
|
|
17
|
-
// if (respecPath.includes('respec-gib.respec.mjs')) {
|
|
18
|
-
/**
|
|
19
|
-
* If on, will first load a file and see if there is an extra respecful
|
|
20
|
-
* `respecfully`/`ifWe` block. Use these if you want to focus on a single or
|
|
21
|
-
* subset of respecs.
|
|
22
|
-
*
|
|
23
|
-
* If there are no extra respecful blocks found in an entire file, that file
|
|
24
|
-
* will be skipped.
|
|
25
|
-
*
|
|
26
|
-
* Note: this only is a flag to search through respec files.
|
|
27
|
-
*/
|
|
28
|
-
const LOOK_FOR_EXTRA_RESPEC = true;
|
|
29
|
-
/**
|
|
30
|
-
* The names of the functions that indicate that we want to focus on just those
|
|
31
|
-
* blocks.
|
|
32
|
-
*
|
|
33
|
-
* ATOW, for first run implementation here, I am implementing it such that it
|
|
34
|
-
* will filter out files that don't have these indicators. The respec files that
|
|
35
|
-
* do have these will execute fully, but the output will only include these
|
|
36
|
-
* particular blocks.
|
|
37
|
-
*/
|
|
38
|
-
const EXTRA_RESPEC_FUNCTION_NAMES = ['await respecfullyDear', 'ifWeMight'];
|
|
39
|
-
// #endregion settings
|
|
40
|
-
// #region 1. get respec paths
|
|
41
|
-
const basePath = process.cwd();
|
|
42
|
-
const srcPath = pathUtils.join(basePath, RESPEC_ROOT_DIR_RELATIVE_TO_BASE);
|
|
43
|
-
if (logalot) {
|
|
44
|
-
console.log(`cwd: ${process.cwd()}`);
|
|
45
|
-
}
|
|
46
|
-
if (logalot) {
|
|
47
|
-
console.log(`basePath: ${basePath}`);
|
|
48
|
-
}
|
|
49
|
-
if (logalot) {
|
|
50
|
-
console.log(`srcPath: ${srcPath}`);
|
|
51
|
-
}
|
|
52
|
-
const respecGib = getGlobalRespecGib();
|
|
53
|
-
const allRespecPaths = await getRespecFileFullPaths(srcPath, []);
|
|
54
|
-
if (logalot) {
|
|
55
|
-
console.log(`allRespecPaths: ${allRespecPaths} (I: f5182a455375a8cf2aa6e1127a082423)`);
|
|
56
|
-
}
|
|
57
|
-
let filteredRespecPaths = undefined;
|
|
58
|
-
if (LOOK_FOR_EXTRA_RESPEC) {
|
|
59
|
-
const hasExtraRespecPromises = allRespecPaths.map(async (respecPath) => {
|
|
60
|
-
const hasExtra = await respecFileHasExtraRespec(respecPath);
|
|
61
|
-
return [respecPath, hasExtra];
|
|
62
|
-
});
|
|
63
|
-
const resPathHasExtraTuples = await Promise.all(hasExtraRespecPromises);
|
|
64
|
-
filteredRespecPaths = resPathHasExtraTuples
|
|
65
|
-
.filter(([_respecPath, hasExtra]) => hasExtra)
|
|
66
|
-
.map(([respecPath, _hasExtra]) => respecPath);
|
|
67
|
-
// if there are no files that have extra respec then we do all files
|
|
68
|
-
if (filteredRespecPaths.length === 0) {
|
|
69
|
-
if (logalot) {
|
|
70
|
-
console.log(`filteredRespecPaths is empty. doing allRespecPaths found (I: b98f54656899646025eecb4c028ab523)`);
|
|
71
|
-
}
|
|
72
|
-
filteredRespecPaths = allRespecPaths.concat();
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
console.log(`filteredRespecPaths for extra respec: ${filteredRespecPaths} (I: b98f54656899646025eecb4c028ab523)`);
|
|
76
|
-
respecGib.extraRespecOnly = true;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
// #endregion 1. get respec paths
|
|
80
|
-
respecGib.allRespecPaths = allRespecPaths;
|
|
81
|
-
respecGib.filteredRespecPaths = filteredRespecPaths;
|
|
82
|
-
const respecPaths = filteredRespecPaths ?? allRespecPaths;
|
|
83
|
-
respecGib.respecPaths = respecPaths;
|
|
84
|
-
if (logalot) {
|
|
85
|
-
console.log(`respecPaths found:\n${respecPaths}`);
|
|
86
|
-
}
|
|
87
|
-
// #region 2. execute paths' respective respecs
|
|
88
|
-
// for now, we'll do sequentially, but in the future we could conceivable farm
|
|
89
|
-
// these out to other node processes, or at least Promise.all
|
|
90
|
-
for (let i = 0; i < respecPaths.length; i++) {
|
|
91
|
-
const respecPath = respecPaths[i];
|
|
92
|
-
if (logalot) {
|
|
93
|
-
console.log(respecPath);
|
|
94
|
-
}
|
|
95
|
-
const respecPathUrl = pathToFileURL(respecPath).href;
|
|
96
|
-
const esm = await import(respecPathUrl);
|
|
97
|
-
if (logalot) {
|
|
98
|
-
console.log(pretty(Object.keys(esm)));
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
const skippedRespecPathCount = respecGib.allRespecPaths.length - respecGib.respecPaths.length;
|
|
102
|
-
if (skippedRespecPathCount > 0) {
|
|
103
|
-
console.log('');
|
|
104
|
-
console.error('\x1b[33m%s\x1b[0m', `${skippedRespecPathCount} respec files completely skipped.`); // yellow
|
|
105
|
-
}
|
|
106
|
-
if (respecGib.ifWeBlocksSkipped > 0) {
|
|
107
|
-
console.log('');
|
|
108
|
-
console.error('\x1b[33m%s\x1b[0m', `${respecGib.ifWeBlocksSkipped} ifWe blocks ran but skipped reporting`); // yellow
|
|
109
|
-
}
|
|
110
|
-
if (respecGib.errorMsgs.length === 0) {
|
|
111
|
-
console.log('');
|
|
112
|
-
console.error('\x1b[32m%s\x1b[0m', `💚💚 nothing but respec 💚💚`); // green
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
console.log('');
|
|
116
|
-
console.error('\x1b[31m%s\x1b[0m', `💔💔 DISrespec found 💔💔`); // red
|
|
117
|
-
for (const errorMsg of respecGib.errorMsgs) {
|
|
118
|
-
console.error('\x1b[31m%s\x1b[0m', errorMsg); // red
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
// #endregion 2. execute paths' respective respecs
|
|
122
|
-
// #region helper functions
|
|
123
|
-
/**
|
|
124
|
-
* builds a list of respec file paths, recursively traversing subdirectories
|
|
125
|
-
* starting from `dirPath`.
|
|
126
|
-
*
|
|
127
|
-
* @param dirPath a full path corresponding to a directory
|
|
128
|
-
* @param found respec paths already found (used in recursive calls)
|
|
129
|
-
* @returns list of all respec paths according to the respec regexp constant {@link RESPEC_FILE_REG_EXP}
|
|
130
|
-
*/
|
|
131
|
-
async function getRespecFileFullPaths(dirPath, found) {
|
|
132
|
-
const lc = `[${getRespecFileFullPaths.name}][${dirPath}]`;
|
|
133
|
-
try {
|
|
134
|
-
if (logalot) {
|
|
135
|
-
console.log(`${lc} starting... (I: 16026290523925f79ba1933847e2a623)`);
|
|
136
|
-
}
|
|
137
|
-
found ??= [];
|
|
138
|
-
const children = await readdir(dirPath);
|
|
139
|
-
if (logalot) {
|
|
140
|
-
for (let i = 0; i < children.length; i++) {
|
|
141
|
-
console.log(children[i]);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
const files = [];
|
|
145
|
-
const dirs = [];
|
|
146
|
-
children.forEach(name => {
|
|
147
|
-
const fullPath = pathUtils.join(dirPath, name);
|
|
148
|
-
const stat = statSync(fullPath);
|
|
149
|
-
if (stat.isDirectory()) {
|
|
150
|
-
// symbolic link could create a loop
|
|
151
|
-
if (!stat.isSymbolicLink()) {
|
|
152
|
-
dirs.push(fullPath);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
else if (!!name.match(RESPEC_FILE_REG_EXP)) {
|
|
156
|
-
files.push(fullPath);
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
found = found.concat(files);
|
|
160
|
-
for (let i = 0; i < dirs.length; i++) {
|
|
161
|
-
const subfound = await getRespecFileFullPaths(dirs[i], found);
|
|
162
|
-
found = found.concat(subfound);
|
|
163
|
-
}
|
|
164
|
-
return Array.from(new Set(found)); // unique
|
|
165
|
-
}
|
|
166
|
-
catch (error) {
|
|
167
|
-
console.error(`${lc} ${error.message}`);
|
|
168
|
-
throw error;
|
|
169
|
-
}
|
|
170
|
-
finally {
|
|
171
|
-
if (logalot) {
|
|
172
|
-
console.log(`${lc} complete.`);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Searches through the file (without importing it) for extra respecful
|
|
178
|
-
* functions.
|
|
179
|
-
*
|
|
180
|
-
* @param respecPath
|
|
181
|
-
* @returns true if extra respecful functions found in file
|
|
182
|
-
*/
|
|
183
|
-
async function respecFileHasExtraRespec(respecPath) {
|
|
184
|
-
const lc = `[${respecFileHasExtraRespec.name}]`;
|
|
185
|
-
try {
|
|
186
|
-
if (logalot) {
|
|
187
|
-
console.log(`${lc} starting... (I: 61f3221917ba77175efa305b14defc23)`);
|
|
188
|
-
}
|
|
189
|
-
const file = await open(respecPath);
|
|
190
|
-
for await (const line of file.readLines()) {
|
|
191
|
-
const hasExtraRespecInLine = EXTRA_RESPEC_FUNCTION_NAMES.some(fnName => {
|
|
192
|
-
if (line.includes(`${fnName}(`)) {
|
|
193
|
-
return true;
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
if (hasExtraRespecInLine) {
|
|
197
|
-
return true;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
return false;
|
|
201
|
-
}
|
|
202
|
-
catch (error) {
|
|
203
|
-
console.error(`${lc} ${error.message}`);
|
|
204
|
-
throw error;
|
|
205
|
-
}
|
|
206
|
-
finally {
|
|
207
|
-
if (logalot) {
|
|
208
|
-
console.log(`${lc} complete.`);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
// #endregion helper functions
|
|
1
|
+
import { RespecNodeRunner } from '@ibgib/helper-gib/dist/respec-gib/respec-node-runner.mjs';
|
|
2
|
+
const runner = new RespecNodeRunner();
|
|
3
|
+
await runner.run();
|
|
213
4
|
//# sourceMappingURL=respec-gib.node.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"respec-gib.node.mjs","sourceRoot":"","sources":["../src/respec-gib.node.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"respec-gib.node.mjs","sourceRoot":"","sources":["../src/respec-gib.node.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAE5F,MAAM,MAAM,GAAG,IAAI,gBAAgB,EAAE,CAAC;AACtC,MAAM,MAAM,CAAC,GAAG,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibgib/ts-gib",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.30",
|
|
4
4
|
"description": "ibgib library with low-level graphing-related substrate functionality, e.g. creating raw ibgibs and transformations. node19+ needed for heavily-used webcrypto hashing isomorphically consumed in node and browsers (apps).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://gitlab.com/ibgib/ts-gib",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"main": "dist/index.mjs",
|
|
14
14
|
"scripts": {
|
|
15
|
-
"clean": "node node_modules/@ibgib/helper-gib/tools/clean.js ./dist",
|
|
15
|
+
"clean": "node ../../node_modules/@ibgib/helper-gib/tools/clean.js ./dist",
|
|
16
16
|
"build": "npm run clean && tsc -b tsconfig.json --force",
|
|
17
17
|
"build:test": "npm run clean && tsc -b tsconfig.test.json --force",
|
|
18
18
|
"build:test:noclean": "tsc -b tsconfig.test.json --force",
|
|
@@ -51,9 +51,7 @@
|
|
|
51
51
|
],
|
|
52
52
|
"author": "William Raiford",
|
|
53
53
|
"license": "ISC",
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@types/node": "^20.2.1"
|
|
56
|
-
},
|
|
54
|
+
"devDependencies": {},
|
|
57
55
|
"engines": {
|
|
58
56
|
"node": ">=19.0.0"
|
|
59
57
|
},
|
package/src/V1/factory.mts
CHANGED
|
@@ -67,7 +67,7 @@ export class Factory_V1 {
|
|
|
67
67
|
tjp?: TemporalJunctionPointOptions;
|
|
68
68
|
linkedRel8ns?: string[],
|
|
69
69
|
/**
|
|
70
|
-
* If true, no timestamp will be
|
|
70
|
+
* If true, no timestamp will be
|
|
71
71
|
*/
|
|
72
72
|
noTimestamp?: boolean,
|
|
73
73
|
/**
|
|
@@ -77,18 +77,18 @@ export class Factory_V1 {
|
|
|
77
77
|
nCounter?: boolean,
|
|
78
78
|
/**
|
|
79
79
|
* ONLY USED IF {@link dna} IS FALSY.
|
|
80
|
-
*
|
|
80
|
+
*
|
|
81
81
|
* If {@link dna} is falsy and this is true, then the resulting 1st gen
|
|
82
82
|
* ibgib will be squashed into a single frame, even if both mut8 and
|
|
83
83
|
* rel8 transforms are executed.
|
|
84
|
-
*
|
|
84
|
+
*
|
|
85
85
|
* ## intent / driving use case
|
|
86
|
-
*
|
|
87
|
-
* We are working on the new, production-quality v1 sync saga and we
|
|
88
|
-
* want the saga ibgib to be one frame per participant (Alice, Bob).
|
|
86
|
+
*
|
|
87
|
+
* We are working on the new, production-quality v1 sync saga and we
|
|
88
|
+
* want the saga ibgib to be one frame per participant (Alice, Bob).
|
|
89
89
|
* So Alice creates one frame, then Bob evolves 1 frame, etc. No dna
|
|
90
90
|
* is required, because this is not meant to be merged at a later time.
|
|
91
|
-
*
|
|
91
|
+
*
|
|
92
92
|
* So the use case is when you don't need dna and you want a single
|
|
93
93
|
* frame.
|
|
94
94
|
*/
|
|
@@ -161,7 +161,7 @@ export class Factory_V1 {
|
|
|
161
161
|
|
|
162
162
|
return resultWithIntermediates;
|
|
163
163
|
} else if (squash) {
|
|
164
|
-
// manually remove past and change the tjp, if it exists
|
|
164
|
+
// manually remove past and change the tjp, if it exists, reset n
|
|
165
165
|
if (!newIbGib.rel8ns) { throw new Error(`(UNEXPECTED) newIbGib.rel8ns is falsy? (E: 6b09e8057fc5b00c6cfd13be60e97f26)`); }
|
|
166
166
|
|
|
167
167
|
delete newIbGib.rel8ns.past;
|
|
@@ -172,6 +172,11 @@ export class Factory_V1 {
|
|
|
172
172
|
newIbGib.data.isTjp = true;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
if (nCounter) {
|
|
176
|
+
newIbGib.data ??= {};
|
|
177
|
+
newIbGib.data.n = 0;
|
|
178
|
+
}
|
|
179
|
+
|
|
175
180
|
// recalculate the gib
|
|
176
181
|
newIbGib.gib = await getGib({ ibGib: newIbGib });
|
|
177
182
|
|
package/src/respec-gib.node.mts
CHANGED
|
@@ -1,201 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { pathToFileURL } from 'node:url';
|
|
3
|
-
import { statSync } from 'node:fs';
|
|
4
|
-
import * as pathUtils from 'path';
|
|
1
|
+
import { RespecNodeRunner } from '@ibgib/helper-gib/dist/respec-gib/respec-node-runner.mjs';
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// #region settings
|
|
10
|
-
/**
|
|
11
|
-
* This is how I enable/disable verbose logging. Do with it what you will.
|
|
12
|
-
*/
|
|
13
|
-
const logalot = false;
|
|
14
|
-
|
|
15
|
-
/** set this to the root of the respecs to look at */
|
|
16
|
-
const RESPEC_ROOT_DIR_RELATIVE_TO_BASE = './dist';
|
|
17
|
-
|
|
18
|
-
/** change this to suit your naming convention */
|
|
19
|
-
const RESPEC_FILE_REG_EXP = /^.+respec\.mjs$/;
|
|
20
|
-
// const RESPEC_FILE_REG_EXP = /^.*respec-gib.respec\.mjs$/;
|
|
21
|
-
// if (respecPath.includes('respec-gib.respec.mjs')) {
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* If on, will first load a file and see if there is an extra respecful
|
|
25
|
-
* `respecfully`/`ifWe` block. Use these if you want to focus on a single or
|
|
26
|
-
* subset of respecs.
|
|
27
|
-
*
|
|
28
|
-
* If there are no extra respecful blocks found in an entire file, that file
|
|
29
|
-
* will be skipped.
|
|
30
|
-
*
|
|
31
|
-
* Note: this only is a flag to search through respec files.
|
|
32
|
-
*/
|
|
33
|
-
const LOOK_FOR_EXTRA_RESPEC = true;
|
|
34
|
-
/**
|
|
35
|
-
* The names of the functions that indicate that we want to focus on just those
|
|
36
|
-
* blocks.
|
|
37
|
-
*
|
|
38
|
-
* ATOW, for first run implementation here, I am implementing it such that it
|
|
39
|
-
* will filter out files that don't have these indicators. The respec files that
|
|
40
|
-
* do have these will execute fully, but the output will only include these
|
|
41
|
-
* particular blocks.
|
|
42
|
-
*/
|
|
43
|
-
const EXTRA_RESPEC_FUNCTION_NAMES: string[] = ['await respecfullyDear', 'ifWeMight'];
|
|
44
|
-
|
|
45
|
-
// #endregion settings
|
|
46
|
-
|
|
47
|
-
// #region 1. get respec paths
|
|
48
|
-
|
|
49
|
-
const basePath = process.cwd();
|
|
50
|
-
const srcPath = pathUtils.join(basePath, RESPEC_ROOT_DIR_RELATIVE_TO_BASE);
|
|
51
|
-
|
|
52
|
-
if (logalot) { console.log(`cwd: ${process.cwd()}`); }
|
|
53
|
-
if (logalot) { console.log(`basePath: ${basePath}`); }
|
|
54
|
-
if (logalot) { console.log(`srcPath: ${srcPath}`); }
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const respecGib = getGlobalRespecGib();
|
|
58
|
-
const allRespecPaths = await getRespecFileFullPaths(srcPath, []);
|
|
59
|
-
|
|
60
|
-
if (logalot) { console.log(`allRespecPaths: ${allRespecPaths} (I: f5182a455375a8cf2aa6e1127a082423)`); }
|
|
61
|
-
let filteredRespecPaths: string[] | undefined = undefined;
|
|
62
|
-
|
|
63
|
-
if (LOOK_FOR_EXTRA_RESPEC) {
|
|
64
|
-
const hasExtraRespecPromises = allRespecPaths.map(async respecPath => {
|
|
65
|
-
const hasExtra = await respecFileHasExtraRespec(respecPath);
|
|
66
|
-
return [respecPath, hasExtra] as [string, boolean];
|
|
67
|
-
});
|
|
68
|
-
const resPathHasExtraTuples = await Promise.all(hasExtraRespecPromises);
|
|
69
|
-
filteredRespecPaths = resPathHasExtraTuples
|
|
70
|
-
.filter(([_respecPath, hasExtra]) => hasExtra)
|
|
71
|
-
.map(([respecPath, _hasExtra]) => respecPath);
|
|
72
|
-
|
|
73
|
-
// if there are no files that have extra respec then we do all files
|
|
74
|
-
if (filteredRespecPaths.length === 0) {
|
|
75
|
-
if (logalot) { console.log(`filteredRespecPaths is empty. doing allRespecPaths found (I: b98f54656899646025eecb4c028ab523)`); }
|
|
76
|
-
filteredRespecPaths = allRespecPaths.concat();
|
|
77
|
-
} else {
|
|
78
|
-
console.log(`filteredRespecPaths for extra respec: ${filteredRespecPaths} (I: b98f54656899646025eecb4c028ab523)`);
|
|
79
|
-
respecGib.extraRespecOnly = true;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// #endregion 1. get respec paths
|
|
84
|
-
|
|
85
|
-
respecGib.allRespecPaths = allRespecPaths;
|
|
86
|
-
respecGib.filteredRespecPaths = filteredRespecPaths;
|
|
87
|
-
const respecPaths = filteredRespecPaths ?? allRespecPaths;
|
|
88
|
-
respecGib.respecPaths = respecPaths;
|
|
89
|
-
if (logalot) { console.log(`respecPaths found:\n${respecPaths}`); }
|
|
90
|
-
|
|
91
|
-
// #region 2. execute paths' respective respecs
|
|
92
|
-
|
|
93
|
-
// for now, we'll do sequentially, but in the future we could conceivable farm
|
|
94
|
-
// these out to other node processes, or at least Promise.all
|
|
95
|
-
|
|
96
|
-
for (let i = 0; i < respecPaths.length; i++) {
|
|
97
|
-
const respecPath = respecPaths[i];
|
|
98
|
-
if (logalot) { console.log(respecPath); }
|
|
99
|
-
const respecPathUrl = pathToFileURL(respecPath).href;
|
|
100
|
-
const esm = await import(respecPathUrl);
|
|
101
|
-
if (logalot) { console.log(pretty(Object.keys(esm))); }
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
const skippedRespecPathCount = respecGib.allRespecPaths.length - respecGib.respecPaths.length;
|
|
105
|
-
if (skippedRespecPathCount > 0) {
|
|
106
|
-
console.log('');
|
|
107
|
-
console.error('\x1b[33m%s\x1b[0m', `${skippedRespecPathCount} respec files completely skipped.`); // yellow
|
|
108
|
-
}
|
|
109
|
-
if (respecGib.ifWeBlocksSkipped > 0) {
|
|
110
|
-
console.log('');
|
|
111
|
-
console.error('\x1b[33m%s\x1b[0m', `${respecGib.ifWeBlocksSkipped} ifWe blocks ran but skipped reporting`); // yellow
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
if (respecGib.errorMsgs.length === 0) {
|
|
115
|
-
console.log('');
|
|
116
|
-
console.error('\x1b[32m%s\x1b[0m', `💚💚 nothing but respec 💚💚`); // green
|
|
117
|
-
} else {
|
|
118
|
-
console.log('');
|
|
119
|
-
console.error('\x1b[31m%s\x1b[0m', `💔💔 DISrespec found 💔💔`); // red
|
|
120
|
-
for (const errorMsg of respecGib.errorMsgs) {
|
|
121
|
-
console.error('\x1b[31m%s\x1b[0m', errorMsg); // red
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// #endregion 2. execute paths' respective respecs
|
|
126
|
-
|
|
127
|
-
// #region helper functions
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* builds a list of respec file paths, recursively traversing subdirectories
|
|
131
|
-
* starting from `dirPath`.
|
|
132
|
-
*
|
|
133
|
-
* @param dirPath a full path corresponding to a directory
|
|
134
|
-
* @param found respec paths already found (used in recursive calls)
|
|
135
|
-
* @returns list of all respec paths according to the respec regexp constant {@link RESPEC_FILE_REG_EXP}
|
|
136
|
-
*/
|
|
137
|
-
async function getRespecFileFullPaths(dirPath: string, found: string[]): Promise<string[]> {
|
|
138
|
-
const lc = `[${getRespecFileFullPaths.name}][${dirPath}]`;
|
|
139
|
-
try {
|
|
140
|
-
if (logalot) { console.log(`${lc} starting... (I: 16026290523925f79ba1933847e2a623)`); }
|
|
141
|
-
found ??= [];
|
|
142
|
-
const children = await readdir(dirPath);
|
|
143
|
-
if (logalot) { for (let i = 0; i < children.length; i++) { console.log(children[i]); } }
|
|
144
|
-
const files: string[] = [];
|
|
145
|
-
const dirs: string[] = [];
|
|
146
|
-
children.forEach(name => {
|
|
147
|
-
const fullPath = pathUtils.join(dirPath, name);
|
|
148
|
-
const stat = statSync(fullPath);
|
|
149
|
-
if (stat.isDirectory()) {
|
|
150
|
-
// symbolic link could create a loop
|
|
151
|
-
if (!stat.isSymbolicLink()) { dirs.push(fullPath); }
|
|
152
|
-
} else if (!!name.match(RESPEC_FILE_REG_EXP)) {
|
|
153
|
-
files.push(fullPath);
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
found = found.concat(files);
|
|
158
|
-
for (let i = 0; i < dirs.length; i++) {
|
|
159
|
-
const subfound = await getRespecFileFullPaths(dirs[i], found);
|
|
160
|
-
found = found.concat(subfound);
|
|
161
|
-
}
|
|
162
|
-
return Array.from(new Set(found)); // unique
|
|
163
|
-
} catch (error) {
|
|
164
|
-
console.error(`${lc} ${error.message}`);
|
|
165
|
-
throw error;
|
|
166
|
-
} finally {
|
|
167
|
-
if (logalot) { console.log(`${lc} complete.`); }
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Searches through the file (without importing it) for extra respecful
|
|
173
|
-
* functions.
|
|
174
|
-
*
|
|
175
|
-
* @param respecPath
|
|
176
|
-
* @returns true if extra respecful functions found in file
|
|
177
|
-
*/
|
|
178
|
-
async function respecFileHasExtraRespec(respecPath: string): Promise<boolean> {
|
|
179
|
-
const lc = `[${respecFileHasExtraRespec.name}]`;
|
|
180
|
-
try {
|
|
181
|
-
if (logalot) { console.log(`${lc} starting... (I: 61f3221917ba77175efa305b14defc23)`); }
|
|
182
|
-
const file = await open(respecPath);
|
|
183
|
-
for await (const line of file.readLines()) {
|
|
184
|
-
const hasExtraRespecInLine =
|
|
185
|
-
EXTRA_RESPEC_FUNCTION_NAMES.some(fnName => {
|
|
186
|
-
if (line.includes(`${fnName}(`)) { return true; }
|
|
187
|
-
});
|
|
188
|
-
if (hasExtraRespecInLine) {
|
|
189
|
-
return true;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
return false;
|
|
193
|
-
} catch (error) {
|
|
194
|
-
console.error(`${lc} ${error.message}`);
|
|
195
|
-
throw error;
|
|
196
|
-
} finally {
|
|
197
|
-
if (logalot) { console.log(`${lc} complete.`); }
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// #endregion helper functions
|
|
3
|
+
const runner = new RespecNodeRunner();
|
|
4
|
+
await runner.run();
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# Details
|
|
2
|
-
|
|
3
|
-
Date : 2024-07-02 16:01:47
|
|
4
|
-
|
|
5
|
-
Directory /home/wraiford/ibgib/ibgib/libs/ts-gib
|
|
6
|
-
|
|
7
|
-
Total : 30 files, 3596 codes, 1209 comments, 663 blanks, all 5468 lines
|
|
8
|
-
|
|
9
|
-
[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
|
|
10
|
-
|
|
11
|
-
## Files
|
|
12
|
-
| filename | language | code | comment | blank | total |
|
|
13
|
-
| :--- | :--- | ---: | ---: | ---: | ---: |
|
|
14
|
-
| [CHANGELOG.md](/CHANGELOG.md) | Markdown | 164 | 0 | 28 | 192 |
|
|
15
|
-
| [README.md](/README.md) | Markdown | 429 | 0 | 118 | 547 |
|
|
16
|
-
| [package-lock.json](/package-lock.json) | JSON | 57 | 0 | 1 | 58 |
|
|
17
|
-
| [package.json](/package.json) | JSON | 66 | 0 | 1 | 67 |
|
|
18
|
-
| [src/V1/constants.mts](/src/V1/constants.mts) | TypeScript | 8 | 42 | 2 | 52 |
|
|
19
|
-
| [src/V1/factory.mts](/src/V1/factory.mts) | TypeScript | 101 | 18 | 8 | 127 |
|
|
20
|
-
| [src/V1/factory.respec.mts](/src/V1/factory.respec.mts) | TypeScript | 129 | 15 | 22 | 166 |
|
|
21
|
-
| [src/V1/index.mts](/src/V1/index.mts) | TypeScript | 5 | 0 | 1 | 6 |
|
|
22
|
-
| [src/V1/sha256v1.mts](/src/V1/sha256v1.mts) | TypeScript | 110 | 30 | 6 | 146 |
|
|
23
|
-
| [src/V1/sha256v1.respec.mts](/src/V1/sha256v1.respec.mts) | TypeScript | 180 | 31 | 21 | 232 |
|
|
24
|
-
| [src/V1/transforms/fork.mts](/src/V1/transforms/fork.mts) | TypeScript | 73 | 19 | 14 | 106 |
|
|
25
|
-
| [src/V1/transforms/fork.spec.mts](/src/V1/transforms/fork.spec.mts) | TypeScript | 275 | 86 | 53 | 414 |
|
|
26
|
-
| [src/V1/transforms/index.mts](/src/V1/transforms/index.mts) | TypeScript | 4 | 0 | 1 | 5 |
|
|
27
|
-
| [src/V1/transforms/mut8.mts](/src/V1/transforms/mut8.mts) | TypeScript | 139 | 80 | 21 | 240 |
|
|
28
|
-
| [src/V1/transforms/mut8.spec.mts](/src/V1/transforms/mut8.spec.mts) | TypeScript | 448 | 87 | 123 | 658 |
|
|
29
|
-
| [src/V1/transforms/rel8.mts](/src/V1/transforms/rel8.mts) | TypeScript | 134 | 24 | 20 | 178 |
|
|
30
|
-
| [src/V1/transforms/rel8.spec.mts](/src/V1/transforms/rel8.spec.mts) | TypeScript | 380 | 99 | 79 | 558 |
|
|
31
|
-
| [src/V1/transforms/transform-helper.mts](/src/V1/transforms/transform-helper.mts) | TypeScript | 153 | 90 | 22 | 265 |
|
|
32
|
-
| [src/V1/transforms/transform-helper.spec.mts](/src/V1/transforms/transform-helper.spec.mts) | TypeScript | 28 | 11 | 8 | 47 |
|
|
33
|
-
| [src/V1/types.mts](/src/V1/types.mts) | TypeScript | 39 | 129 | 4 | 172 |
|
|
34
|
-
| [src/V1/v1-helper.mts](/src/V1/v1-helper.mts) | TypeScript | 50 | 36 | 11 | 97 |
|
|
35
|
-
| [src/V1/validate-helper.mts](/src/V1/validate-helper.mts) | TypeScript | 191 | 105 | 35 | 331 |
|
|
36
|
-
| [src/V1/validate-helper.respec.mts](/src/V1/validate-helper.respec.mts) | TypeScript | 123 | 19 | 13 | 155 |
|
|
37
|
-
| [src/helper.mts](/src/helper.mts) | TypeScript | 49 | 22 | 6 | 77 |
|
|
38
|
-
| [src/helper.respec.mts](/src/helper.respec.mts) | TypeScript | 49 | 2 | 12 | 63 |
|
|
39
|
-
| [src/index.mts](/src/index.mts) | TypeScript | 3 | 0 | 1 | 4 |
|
|
40
|
-
| [src/respec-gib.node.mts](/src/respec-gib.node.mts) | TypeScript | 119 | 53 | 28 | 200 |
|
|
41
|
-
| [src/types.mts](/src/types.mts) | TypeScript | 62 | 210 | 2 | 274 |
|
|
42
|
-
| [tsconfig.json](/tsconfig.json) | JSON with Comments | 17 | 0 | 1 | 18 |
|
|
43
|
-
| [tsconfig.test.json](/tsconfig.test.json) | JSON | 11 | 1 | 1 | 13 |
|
|
44
|
-
|
|
45
|
-
[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Diff Details
|
|
2
|
-
|
|
3
|
-
Date : 2024-07-02 16:01:47
|
|
4
|
-
|
|
5
|
-
Directory /home/wraiford/ibgib/ibgib/libs/ts-gib
|
|
6
|
-
|
|
7
|
-
Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines
|
|
8
|
-
|
|
9
|
-
[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details
|
|
10
|
-
|
|
11
|
-
## Files
|
|
12
|
-
| filename | language | code | comment | blank | total |
|
|
13
|
-
| :--- | :--- | ---: | ---: | ---: | ---: |
|
|
14
|
-
|
|
15
|
-
[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Diff Summary
|
|
2
|
-
|
|
3
|
-
Date : 2024-07-02 16:01:47
|
|
4
|
-
|
|
5
|
-
Directory /home/wraiford/ibgib/ibgib/libs/ts-gib
|
|
6
|
-
|
|
7
|
-
Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines
|
|
8
|
-
|
|
9
|
-
[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)
|
|
10
|
-
|
|
11
|
-
## Languages
|
|
12
|
-
| language | files | code | comment | blank | total |
|
|
13
|
-
| :--- | ---: | ---: | ---: | ---: | ---: |
|
|
14
|
-
|
|
15
|
-
## Directories
|
|
16
|
-
| path | files | code | comment | blank | total |
|
|
17
|
-
| :--- | ---: | ---: | ---: | ---: | ---: |
|
|
18
|
-
|
|
19
|
-
[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Date : 2024-07-02 16:01:47
|
|
2
|
-
Directory : /home/wraiford/ibgib/ibgib/libs/ts-gib
|
|
3
|
-
Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines
|
|
4
|
-
|
|
5
|
-
Languages
|
|
6
|
-
+----------+------------+------------+------------+------------+------------+
|
|
7
|
-
| language | files | code | comment | blank | total |
|
|
8
|
-
+----------+------------+------------+------------+------------+------------+
|
|
9
|
-
+----------+------------+------------+------------+------------+------------+
|
|
10
|
-
|
|
11
|
-
Directories
|
|
12
|
-
+------+------------+------------+------------+------------+------------+
|
|
13
|
-
| path | files | code | comment | blank | total |
|
|
14
|
-
+------+------------+------------+------------+------------+------------+
|
|
15
|
-
+------+------------+------------+------------+------------+------------+
|
|
16
|
-
|
|
17
|
-
Files
|
|
18
|
-
+----------+----------+------------+------------+------------+------------+
|
|
19
|
-
| filename | language | code | comment | blank | total |
|
|
20
|
-
+----------+----------+------------+------------+------------+------------+
|
|
21
|
-
| Total | | 0 | 0 | 0 | 0 |
|
|
22
|
-
+----------+----------+------------+------------+------------+------------+
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"filename", "language", "JSON", "TypeScript", "Markdown", "JSON with Comments", "comment", "blank", "total"
|
|
2
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/CHANGELOG.md", "Markdown", 0, 0, 164, 0, 0, 28, 192
|
|
3
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/README.md", "Markdown", 0, 0, 429, 0, 0, 118, 547
|
|
4
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/package-lock.json", "JSON", 57, 0, 0, 0, 0, 1, 58
|
|
5
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/package.json", "JSON", 66, 0, 0, 0, 0, 1, 67
|
|
6
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/constants.mts", "TypeScript", 0, 8, 0, 0, 42, 2, 52
|
|
7
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/factory.mts", "TypeScript", 0, 101, 0, 0, 18, 8, 127
|
|
8
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/factory.respec.mts", "TypeScript", 0, 129, 0, 0, 15, 22, 166
|
|
9
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/index.mts", "TypeScript", 0, 5, 0, 0, 0, 1, 6
|
|
10
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/sha256v1.mts", "TypeScript", 0, 110, 0, 0, 30, 6, 146
|
|
11
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/sha256v1.respec.mts", "TypeScript", 0, 180, 0, 0, 31, 21, 232
|
|
12
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/fork.mts", "TypeScript", 0, 73, 0, 0, 19, 14, 106
|
|
13
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/fork.spec.mts", "TypeScript", 0, 275, 0, 0, 86, 53, 414
|
|
14
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/index.mts", "TypeScript", 0, 4, 0, 0, 0, 1, 5
|
|
15
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/mut8.mts", "TypeScript", 0, 139, 0, 0, 80, 21, 240
|
|
16
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/mut8.spec.mts", "TypeScript", 0, 448, 0, 0, 87, 123, 658
|
|
17
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/rel8.mts", "TypeScript", 0, 134, 0, 0, 24, 20, 178
|
|
18
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/rel8.spec.mts", "TypeScript", 0, 380, 0, 0, 99, 79, 558
|
|
19
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/transform-helper.mts", "TypeScript", 0, 153, 0, 0, 90, 22, 265
|
|
20
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/transform-helper.spec.mts", "TypeScript", 0, 28, 0, 0, 11, 8, 47
|
|
21
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/types.mts", "TypeScript", 0, 39, 0, 0, 129, 4, 172
|
|
22
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/v1-helper.mts", "TypeScript", 0, 50, 0, 0, 36, 11, 97
|
|
23
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/validate-helper.mts", "TypeScript", 0, 191, 0, 0, 105, 35, 331
|
|
24
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/validate-helper.respec.mts", "TypeScript", 0, 123, 0, 0, 19, 13, 155
|
|
25
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/helper.mts", "TypeScript", 0, 49, 0, 0, 22, 6, 77
|
|
26
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/helper.respec.mts", "TypeScript", 0, 49, 0, 0, 2, 12, 63
|
|
27
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/index.mts", "TypeScript", 0, 3, 0, 0, 0, 1, 4
|
|
28
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/respec-gib.node.mts", "TypeScript", 0, 119, 0, 0, 53, 28, 200
|
|
29
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/src/types.mts", "TypeScript", 0, 62, 0, 0, 210, 2, 274
|
|
30
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/tsconfig.json", "JSON with Comments", 0, 0, 0, 17, 0, 1, 18
|
|
31
|
-
"/home/wraiford/ibgib/ibgib/libs/ts-gib/tsconfig.test.json", "JSON", 11, 0, 0, 0, 1, 1, 13
|
|
32
|
-
"Total", "-", 134, 2852, 593, 17, 1209, 663, 5468
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/package.json":{"language":"JSON","code":66,"comment":0,"blank":1},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/types.mts":{"language":"TypeScript","code":62,"comment":210,"blank":2},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/types.mts":{"language":"TypeScript","code":39,"comment":129,"blank":4},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/sha256v1.mts":{"language":"TypeScript","code":110,"comment":30,"blank":6},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/v1-helper.mts":{"language":"TypeScript","code":50,"comment":36,"blank":11},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/README.md":{"language":"Markdown","code":429,"comment":0,"blank":118},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/validate-helper.mts":{"language":"TypeScript","code":191,"comment":105,"blank":35},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/helper.respec.mts":{"language":"TypeScript","code":49,"comment":2,"blank":12},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/sha256v1.respec.mts":{"language":"TypeScript","code":180,"comment":31,"blank":21},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/factory.mts":{"language":"TypeScript","code":101,"comment":18,"blank":8},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/mut8.mts":{"language":"TypeScript","code":139,"comment":80,"blank":21},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/constants.mts":{"language":"TypeScript","code":8,"comment":42,"blank":2},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/rel8.mts":{"language":"TypeScript","code":134,"comment":24,"blank":20},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/fork.mts":{"language":"TypeScript","code":73,"comment":19,"blank":14},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/transform-helper.mts":{"language":"TypeScript","code":153,"comment":90,"blank":22},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/validate-helper.respec.mts":{"language":"TypeScript","code":123,"comment":19,"blank":13},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/factory.respec.mts":{"language":"TypeScript","code":129,"comment":15,"blank":22},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/transform-helper.spec.mts":{"language":"TypeScript","code":28,"comment":11,"blank":8},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/index.mts":{"language":"TypeScript","code":4,"comment":0,"blank":1},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/index.mts":{"language":"TypeScript","code":5,"comment":0,"blank":1},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/respec-gib.node.mts":{"language":"TypeScript","code":119,"comment":53,"blank":28},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/helper.mts":{"language":"TypeScript","code":49,"comment":22,"blank":6},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/index.mts":{"language":"TypeScript","code":3,"comment":0,"blank":1},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/rel8.spec.mts":{"language":"TypeScript","code":380,"comment":99,"blank":79},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/fork.spec.mts":{"language":"TypeScript","code":275,"comment":86,"blank":53},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/tsconfig.json":{"language":"JSON with Comments","code":17,"comment":0,"blank":1},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/package-lock.json":{"language":"JSON","code":57,"comment":0,"blank":1},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/mut8.spec.mts":{"language":"TypeScript","code":448,"comment":87,"blank":123},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/tsconfig.test.json":{"language":"JSON","code":11,"comment":1,"blank":1},"file:///home/wraiford/ibgib/ibgib/libs/ts-gib/CHANGELOG.md":{"language":"Markdown","code":164,"comment":0,"blank":28}}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# Summary
|
|
2
|
-
|
|
3
|
-
Date : 2024-07-02 16:01:47
|
|
4
|
-
|
|
5
|
-
Directory /home/wraiford/ibgib/ibgib/libs/ts-gib
|
|
6
|
-
|
|
7
|
-
Total : 30 files, 3596 codes, 1209 comments, 663 blanks, all 5468 lines
|
|
8
|
-
|
|
9
|
-
Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
|
|
10
|
-
|
|
11
|
-
## Languages
|
|
12
|
-
| language | files | code | comment | blank | total |
|
|
13
|
-
| :--- | ---: | ---: | ---: | ---: | ---: |
|
|
14
|
-
| TypeScript | 24 | 2,852 | 1,208 | 513 | 4,573 |
|
|
15
|
-
| Markdown | 2 | 593 | 0 | 146 | 739 |
|
|
16
|
-
| JSON | 3 | 134 | 1 | 3 | 138 |
|
|
17
|
-
| JSON with Comments | 1 | 17 | 0 | 1 | 18 |
|
|
18
|
-
|
|
19
|
-
## Directories
|
|
20
|
-
| path | files | code | comment | blank | total |
|
|
21
|
-
| :--- | ---: | ---: | ---: | ---: | ---: |
|
|
22
|
-
| . | 30 | 3,596 | 1,209 | 663 | 5,468 |
|
|
23
|
-
| . (Files) | 6 | 744 | 1 | 150 | 895 |
|
|
24
|
-
| src | 24 | 2,852 | 1,208 | 513 | 4,573 |
|
|
25
|
-
| src (Files) | 5 | 282 | 287 | 49 | 618 |
|
|
26
|
-
| src/V1 | 19 | 2,570 | 921 | 464 | 3,955 |
|
|
27
|
-
| src/V1 (Files) | 10 | 936 | 425 | 123 | 1,484 |
|
|
28
|
-
| src/V1/transforms | 9 | 1,634 | 496 | 341 | 2,471 |
|
|
29
|
-
|
|
30
|
-
Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
Date : 2024-07-02 16:01:47
|
|
2
|
-
Directory : /home/wraiford/ibgib/ibgib/libs/ts-gib
|
|
3
|
-
Total : 30 files, 3596 codes, 1209 comments, 663 blanks, all 5468 lines
|
|
4
|
-
|
|
5
|
-
Languages
|
|
6
|
-
+--------------------+------------+------------+------------+------------+------------+
|
|
7
|
-
| language | files | code | comment | blank | total |
|
|
8
|
-
+--------------------+------------+------------+------------+------------+------------+
|
|
9
|
-
| TypeScript | 24 | 2,852 | 1,208 | 513 | 4,573 |
|
|
10
|
-
| Markdown | 2 | 593 | 0 | 146 | 739 |
|
|
11
|
-
| JSON | 3 | 134 | 1 | 3 | 138 |
|
|
12
|
-
| JSON with Comments | 1 | 17 | 0 | 1 | 18 |
|
|
13
|
-
+--------------------+------------+------------+------------+------------+------------+
|
|
14
|
-
|
|
15
|
-
Directories
|
|
16
|
-
+------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
|
|
17
|
-
| path | files | code | comment | blank | total |
|
|
18
|
-
+------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
|
|
19
|
-
| . | 30 | 3,596 | 1,209 | 663 | 5,468 |
|
|
20
|
-
| . (Files) | 6 | 744 | 1 | 150 | 895 |
|
|
21
|
-
| src | 24 | 2,852 | 1,208 | 513 | 4,573 |
|
|
22
|
-
| src (Files) | 5 | 282 | 287 | 49 | 618 |
|
|
23
|
-
| src/V1 | 19 | 2,570 | 921 | 464 | 3,955 |
|
|
24
|
-
| src/V1 (Files) | 10 | 936 | 425 | 123 | 1,484 |
|
|
25
|
-
| src/V1/transforms | 9 | 1,634 | 496 | 341 | 2,471 |
|
|
26
|
-
+------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
|
|
27
|
-
|
|
28
|
-
Files
|
|
29
|
-
+------------------------------------------------------------------------------------+--------------------+------------+------------+------------+------------+
|
|
30
|
-
| filename | language | code | comment | blank | total |
|
|
31
|
-
+------------------------------------------------------------------------------------+--------------------+------------+------------+------------+------------+
|
|
32
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/CHANGELOG.md | Markdown | 164 | 0 | 28 | 192 |
|
|
33
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/README.md | Markdown | 429 | 0 | 118 | 547 |
|
|
34
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/package-lock.json | JSON | 57 | 0 | 1 | 58 |
|
|
35
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/package.json | JSON | 66 | 0 | 1 | 67 |
|
|
36
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/constants.mts | TypeScript | 8 | 42 | 2 | 52 |
|
|
37
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/factory.mts | TypeScript | 101 | 18 | 8 | 127 |
|
|
38
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/factory.respec.mts | TypeScript | 129 | 15 | 22 | 166 |
|
|
39
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/index.mts | TypeScript | 5 | 0 | 1 | 6 |
|
|
40
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/sha256v1.mts | TypeScript | 110 | 30 | 6 | 146 |
|
|
41
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/sha256v1.respec.mts | TypeScript | 180 | 31 | 21 | 232 |
|
|
42
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/fork.mts | TypeScript | 73 | 19 | 14 | 106 |
|
|
43
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/fork.spec.mts | TypeScript | 275 | 86 | 53 | 414 |
|
|
44
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/index.mts | TypeScript | 4 | 0 | 1 | 5 |
|
|
45
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/mut8.mts | TypeScript | 139 | 80 | 21 | 240 |
|
|
46
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/mut8.spec.mts | TypeScript | 448 | 87 | 123 | 658 |
|
|
47
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/rel8.mts | TypeScript | 134 | 24 | 20 | 178 |
|
|
48
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/rel8.spec.mts | TypeScript | 380 | 99 | 79 | 558 |
|
|
49
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/transform-helper.mts | TypeScript | 153 | 90 | 22 | 265 |
|
|
50
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/transforms/transform-helper.spec.mts | TypeScript | 28 | 11 | 8 | 47 |
|
|
51
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/types.mts | TypeScript | 39 | 129 | 4 | 172 |
|
|
52
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/v1-helper.mts | TypeScript | 50 | 36 | 11 | 97 |
|
|
53
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/validate-helper.mts | TypeScript | 191 | 105 | 35 | 331 |
|
|
54
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/V1/validate-helper.respec.mts | TypeScript | 123 | 19 | 13 | 155 |
|
|
55
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/helper.mts | TypeScript | 49 | 22 | 6 | 77 |
|
|
56
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/helper.respec.mts | TypeScript | 49 | 2 | 12 | 63 |
|
|
57
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/index.mts | TypeScript | 3 | 0 | 1 | 4 |
|
|
58
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/respec-gib.node.mts | TypeScript | 119 | 53 | 28 | 200 |
|
|
59
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/src/types.mts | TypeScript | 62 | 210 | 2 | 274 |
|
|
60
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/tsconfig.json | JSON with Comments | 17 | 0 | 1 | 18 |
|
|
61
|
-
| /home/wraiford/ibgib/ibgib/libs/ts-gib/tsconfig.test.json | JSON | 11 | 1 | 1 | 13 |
|
|
62
|
-
| Total | | 3,596 | 1,209 | 663 | 5,468 |
|
|
63
|
-
+------------------------------------------------------------------------------------+--------------------+------------+------------+------------+------------+
|