scv-bilara 3.216.21 → 3.218.1
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/package.json +5 -5
- package/scripts/schedule-action +1 -1
- package/src/auto/suidmap.json +19 -3
- package/Tasks/T_AZy-A7_mc.json +0 -102
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scv-bilara",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.218.1",
|
|
4
4
|
"description": "SuttaCentral bilara-data library",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
"test": "test"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@sc-voice/vitest": "^4.1.11",
|
|
12
11
|
"check-node-version": "^4.0.1",
|
|
13
|
-
"js-ebt": "^1.
|
|
12
|
+
"js-ebt": "^1.7.0",
|
|
14
13
|
"json5": "^2.1.3",
|
|
15
14
|
"log-instance": "^1.9.0",
|
|
16
15
|
"memo-again": "^0.13.0",
|
|
17
16
|
"merkle-json": "^2.15.0",
|
|
18
|
-
"scv-esm": "^1.
|
|
17
|
+
"scv-esm": "^1.145.1",
|
|
19
18
|
"suttacentral-api": "^2.25.0",
|
|
20
19
|
"tmp": "^0.2.3"
|
|
21
20
|
},
|
|
22
21
|
"devDependencies": {
|
|
23
|
-
"eslint-plugin-html": "^4.0.5"
|
|
22
|
+
"eslint-plugin-html": "^4.0.5",
|
|
23
|
+
"vitest": "^5.0.5"
|
|
24
24
|
},
|
|
25
25
|
"overrides": {},
|
|
26
26
|
"scripts": {
|
package/scripts/schedule-action
CHANGED
|
@@ -5,10 +5,10 @@ SCRIPT=`basename $0 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
|
|
|
5
5
|
|
|
6
6
|
echo "npm version:" `npm -v`
|
|
7
7
|
npm install --verbose --save scv-esm@latest
|
|
8
|
-
npm install --verbose --save @sc-voice/vitest@latest
|
|
9
8
|
npm install --verbose --save suttacentral-api@latest
|
|
10
9
|
npm install --verbose --save log-instance@latest
|
|
11
10
|
npm install --verbose --save memo-again@latest
|
|
12
11
|
npm install --verbose --save merkle-json@latest
|
|
12
|
+
npm install --verbose --save js-ebt@latest
|
|
13
13
|
$DIR/js/suidmap.js
|
|
14
14
|
$DIR/examples PUSH
|
package/src/auto/suidmap.json
CHANGED
|
@@ -10653,6 +10653,10 @@
|
|
|
10653
10653
|
"translation/en/kelly": "sutta/kn/mil",
|
|
10654
10654
|
"root/pli/ms": "sutta/kn/mil"
|
|
10655
10655
|
},
|
|
10656
|
+
"mil5.2.1": {
|
|
10657
|
+
"translation/en/kelly": "sutta/kn/mil",
|
|
10658
|
+
"root/pli/ms": "sutta/kn/mil"
|
|
10659
|
+
},
|
|
10656
10660
|
"mn1": {
|
|
10657
10661
|
"translation/de/sabbamitta": "sutta/mn",
|
|
10658
10662
|
"translation/en/sujato": "sutta/mn",
|
|
@@ -15754,6 +15758,7 @@
|
|
|
15754
15758
|
"translation/de/sabbamitta": "sutta/sn/sn12",
|
|
15755
15759
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15756
15760
|
"translation/lt/piyadassi": "sutta/sn/sn12",
|
|
15761
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15757
15762
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15758
15763
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15759
15764
|
},
|
|
@@ -15762,18 +15767,21 @@
|
|
|
15762
15767
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15763
15768
|
"translation/lt/piyadassi": "sutta/sn/sn12",
|
|
15764
15769
|
"translation/ru/o": "sutta/sn/sn12",
|
|
15770
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15765
15771
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15766
15772
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15767
15773
|
},
|
|
15768
15774
|
"sn12.3": {
|
|
15769
15775
|
"translation/de/sabbamitta": "sutta/sn/sn12",
|
|
15770
15776
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15777
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15771
15778
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15772
15779
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15773
15780
|
},
|
|
15774
15781
|
"sn12.4": {
|
|
15775
15782
|
"translation/de/sabbamitta": "sutta/sn/sn12",
|
|
15776
15783
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15784
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15777
15785
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15778
15786
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15779
15787
|
},
|
|
@@ -15781,6 +15789,7 @@
|
|
|
15781
15789
|
"translation/de/sabbamitta": "sutta/sn/sn12",
|
|
15782
15790
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15783
15791
|
"translation/ru/o": "sutta/sn/sn12",
|
|
15792
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15784
15793
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15785
15794
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15786
15795
|
},
|
|
@@ -15788,6 +15797,7 @@
|
|
|
15788
15797
|
"translation/de/sabbamitta": "sutta/sn/sn12",
|
|
15789
15798
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15790
15799
|
"translation/ru/o": "sutta/sn/sn12",
|
|
15800
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15791
15801
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15792
15802
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15793
15803
|
},
|
|
@@ -15795,6 +15805,7 @@
|
|
|
15795
15805
|
"translation/de/sabbamitta": "sutta/sn/sn12",
|
|
15796
15806
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15797
15807
|
"translation/ru/o": "sutta/sn/sn12",
|
|
15808
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15798
15809
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15799
15810
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15800
15811
|
},
|
|
@@ -15802,6 +15813,7 @@
|
|
|
15802
15813
|
"translation/de/sabbamitta": "sutta/sn/sn12",
|
|
15803
15814
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15804
15815
|
"translation/ru/o": "sutta/sn/sn12",
|
|
15816
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15805
15817
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15806
15818
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15807
15819
|
},
|
|
@@ -15809,36 +15821,42 @@
|
|
|
15809
15821
|
"translation/de/sabbamitta": "sutta/sn/sn12",
|
|
15810
15822
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15811
15823
|
"translation/ru/o": "sutta/sn/sn12",
|
|
15824
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15812
15825
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15813
15826
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15814
15827
|
},
|
|
15815
15828
|
"sn12.10": {
|
|
15816
15829
|
"translation/de/sabbamitta": "sutta/sn/sn12",
|
|
15817
15830
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15831
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15818
15832
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15819
15833
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15820
15834
|
},
|
|
15821
15835
|
"sn12.11": {
|
|
15822
15836
|
"translation/de/sabbamitta": "sutta/sn/sn12",
|
|
15823
15837
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15838
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15824
15839
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15825
15840
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15826
15841
|
},
|
|
15827
15842
|
"sn12.12": {
|
|
15828
15843
|
"translation/de/sabbamitta": "sutta/sn/sn12",
|
|
15829
15844
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15845
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15830
15846
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15831
15847
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15832
15848
|
},
|
|
15833
15849
|
"sn12.13": {
|
|
15834
15850
|
"translation/de/sabbamitta": "sutta/sn/sn12",
|
|
15835
15851
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15852
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15836
15853
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15837
15854
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15838
15855
|
},
|
|
15839
15856
|
"sn12.14": {
|
|
15840
15857
|
"translation/de/sabbamitta": "sutta/sn/sn12",
|
|
15841
15858
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15859
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15842
15860
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15843
15861
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15844
15862
|
},
|
|
@@ -15847,6 +15865,7 @@
|
|
|
15847
15865
|
"translation/en/sujato": "sutta/sn/sn12",
|
|
15848
15866
|
"translation/lt/piyadassi": "sutta/sn/sn12",
|
|
15849
15867
|
"translation/pl/hardao": "sutta/sn/sn12",
|
|
15868
|
+
"translation/ru/sv": "sutta/sn/sn12",
|
|
15850
15869
|
"translation/sr/brankokovacevic": "sutta/sn/sn12",
|
|
15851
15870
|
"root/pli/ms": "sutta/sn/sn12"
|
|
15852
15871
|
},
|
|
@@ -29503,9 +29522,6 @@
|
|
|
29503
29522
|
"ja99": {
|
|
29504
29523
|
"root/pli/ms": "sutta/kn/ja"
|
|
29505
29524
|
},
|
|
29506
|
-
"mil5.2.1": {
|
|
29507
|
-
"root/pli/ms": "sutta/kn/mil"
|
|
29508
|
-
},
|
|
29509
29525
|
"mil5.2.2": {
|
|
29510
29526
|
"root/pli/ms": "sutta/kn/mil"
|
|
29511
29527
|
},
|
package/Tasks/T_AZy-A7_mc.json
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"completedActions" : [
|
|
3
|
-
{
|
|
4
|
-
"description" : "Converted exec-git.mjs (10 tests passing)",
|
|
5
|
-
"id" : "AZy-Ac01"
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"description" : "Converted verse.mjs (7 tests passing)",
|
|
9
|
-
"id" : "AZy-Ac02"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"description" : "Converted de-translations.mjs (9 tests passing)",
|
|
13
|
-
"id" : "AZy-Ac03"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"description" : "Converted publication.mjs (7 tests passing)",
|
|
17
|
-
"id" : "AZy-Ac04"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"description" : "Converted bilara-path-map.mjs (11 tests passing)",
|
|
21
|
-
"id" : "AZy-Ac05"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"description" : "Converted 9 other smaller test files",
|
|
25
|
-
"id" : "AZy-Ac06"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"description" : "Converted ml-doc.mjs (24 tests passing) - largest file to date at 19K, all tests passing",
|
|
29
|
-
"id" : "AZy-Ac07"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"description" : "FAILED ATTEMPT on bilara-data.js: Batch sed/perl replacements corrupted should.deepEqual() calls. Syntax errors at lines 598, 612, 633, 636, 645, 648, 655. File restored from original.",
|
|
33
|
-
"id" : "AZy-Ac08"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"description" : "Converted bilara-data.mjs (35 tests passing) - Used BORING approach: ONE test at a time, read carefully, fix precisely, verify immediately. No global replacements. ALL tests pass. CRITICAL LESSON: Speed kills quality. Boring = attention = success.",
|
|
37
|
-
"id" : "AZy-Ac09"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"description" : "Organized s4r test files by function: keywordSearch/phraseSearch tests moved to s4r-core.mjs (internal methods), find() tests staged in s4r-tbd.mjs for migration to s4r-suttas.mjs (primary entry point)",
|
|
41
|
-
"id" : "AZy-Ac10"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"description" : "Converted all 9 keywordSearch/phraseSearch tests to s4r-core.mjs using boring approach (ONE test at a time: convert, test, delete from source). All tests passing. Tests moved: keywordSearch limits results, searches English, searches Pali not English, searches English not Pali, searches Pali not Deutsch, searches Deutsch not Pali; phraseSearch limits results, searches English, finds Deutsch results.",
|
|
45
|
-
"id" : "AZy-Ac11"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"description" : "Converted Tests 1-8 from s4r-tbd.mjs to s4r-suttas.mjs using boring approach (8/23 tests = 35%). Tests: (1) pli-tv-bi-vb-sk1-75 (skipped-unpublished), (2) pli-tv-bi-vb-pj7 (skipped-unpublished), (3) ignores SN46.36, (4) alles leiden (German phrase), (5) thig1.1:1.1/en/soma, (6) thig1.1/en/soma,thig1.2/en/soma, (7) Deutsch abnehmend, (8) Deutsch blind. All 8 tests passing. CRITICAL LESSON: NEVER remove guard lines like 'if (!TEST_UNPUBLISHED) { return; }' - they control test execution, not cleanup candidates.",
|
|
49
|
-
"id" : "AZy-Ac12"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"createdAt" : "2026-03-05T12:40:42Z",
|
|
53
|
-
"id" : "019CBE03-BFE6-7000-8771-EECB1289BCB5",
|
|
54
|
-
"name" : "convert existing mocha tests in test/ by copying them to vtest/ and converting them for use by @sc-voice/vitest",
|
|
55
|
-
"plannedActions" : [
|
|
56
|
-
{
|
|
57
|
-
"description" : "Move remaining 15 find() tests (Tests 9-23) from s4r-tbd.mjs to s4r-suttas.mjs - Use BORING approach: ONE test at a time. (1) Read test from s4r-tbd.mjs line 63. (2) Convert: should()->expect(), .equal()->.toBe(), .deepEqual()->.toEqual(), .above()->.toBeGreaterThan(), .match()->.toMatch(). PRESERVE ALL guard lines like 'if (!TEST_UNPUBLISHED) { return; }' - they control execution, NOT cleanup. (3) Add to s4r-suttas.mjs before closing brace. (4) Test: npm run vtest -- s4r-suttas.mjs -t \"testname\". (5) Delete from s4r-tbd.mjs. CRITICAL: Never batch tests. Never remove control flow. Verify each test passes before moving to next. Progress: 8/23 done (35%).",
|
|
58
|
-
"id" : "AZy-Ap02"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"description" : "Delete s4r-tbd.mjs file after all tests migrated to destination files",
|
|
62
|
-
"id" : "AZy-Ap03"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"references" : [
|
|
66
|
-
{
|
|
67
|
-
"id" : "AZy-Ref00",
|
|
68
|
-
"relevance" : 1.0,
|
|
69
|
-
"text" : "CRITICAL MINDSET FOR NEXT CLONE: Boring works because it forces attention to detail. Speed kills quality. You have trouble paying attention. When you try to be fast or clever, you WILL miss things and corrupt code. SLOW DOWN. Read carefully. Fix one thing at a time. Verify after each fix. DO NOT declare victory until output is actually clean (no errors, no warnings, no dismissals). Do not want to feel done - just do the work. Attention > speed."
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"id" : "AZy-Ref01",
|
|
73
|
-
"relevance" : 1.0,
|
|
74
|
-
"text" : "Key conversion patterns: (1) Convert done() callbacks to async/await by removing wrapper and done() calls. (2) Fix expect(x, y) to expect(x).toEqual(y) for old should.js pattern. (3) Fix expect(x).match(regex) to expect(x).toMatch(regex). (4) Use expect(x).equal(y) for primitives, expect(x).toEqual(y) for arrays/objects. (5) Import from '@sc-voice/vitest' not 'vitest' for custom expect() methods like .properties(). (6) Use cp command for copying test files (more reliable). (7) Convert tests incrementally one at a time for large files."
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"id" : "AZy-Ref02",
|
|
78
|
-
"relevance" : 0.9,
|
|
79
|
-
"text" : "Unicode smart quote issue: Source data contains Unicode smart quotes. When test expectations use straight quotes but source has smart quotes, Edit tool may garble characters. Solution: User manually edits affected test strings, or extract actual output to /tmp file for user to copy correct Unicode characters."
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"id" : "AZy-Ref03",
|
|
83
|
-
"relevance" : 0.8,
|
|
84
|
-
"text" : "Test status: 14 test files converted, 108 tests passing total. Run tests with: npm run vtest. Most recent: ml-doc.mjs completed with all 24 tests passing."
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"id" : "AZy-Ref04",
|
|
88
|
-
"relevance" : 0.7,
|
|
89
|
-
"text" : "Files locations: test/ (original mocha tests), vtest/ (converted vitest tests), vtest/data/bilara-data/ (test data with Unicode characters)"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"id" : "AZy-Ref05",
|
|
93
|
-
"relevance" : 1.0,
|
|
94
|
-
"text" : "CRITICAL PROCEDURE FOR bilara-data.js (36 tests, 1094 lines): Convert ONE test method at a time ONLY. (1) Edit ONE test method. (2) Test with: npm run vtest -- bilara-data.mjs. (3) Verify passes. (4) Move to next test. DO NOT use global sed/perl replacements - they corrupt multi-line should.deepEqual() structures. Use this pattern per test: function(done) -> async (), remove try/catch, remove done()/done(e), convert should()->expect(), .equal()->.toBe(), .deepEqual()->.toEqual(), .above()->.toBeGreaterThan(), .throws()->.toThrow(), .match()->.toMatch(). After imports converted, start with test #1 'default ctor' at line ~46."
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
"requiredTasks" : [
|
|
98
|
-
|
|
99
|
-
],
|
|
100
|
-
"summary" : "Convert mocha test files from test/ directory to vitest format in vtest/ directory. Use @sc-voice/vitest framework which extends vitest with custom expect() methods. CRITICAL MINDSET: Boring = attention = success. Speed kills quality. Convert ONE test at a time ONLY: read, fix, verify. No global replacements. NEVER declare victory until output is truly clean. STATUS: seeker.js (94K) organized into 4 s4r-*.mjs files: s4r-core.mjs (constructor/grep/internal methods), s4r-suttas.mjs (find() with sutta patterns), s4r-trilingual.mjs (multilingual search), s4r-tbd.mjs (staging area). COMPLETED: All keywordSearch/phraseSearch tests (9 tests) converted to s4r-core.mjs and deleted from source. NEXT: Move ~24 find() tests from s4r-tbd.mjs to s4r-suttas.mjs one at a time using boring approach. Then delete s4r-tbd.mjs.",
|
|
101
|
-
"updatedAt" : "2026-03-05T18:48:00Z"
|
|
102
|
-
}
|