@vibgrate/cli 2026.618.1 → 2026.623.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/DOCS.md +55 -4
- package/README.md +2 -0
- package/dist/baseline-2B6YIW6Z.js +1 -0
- package/dist/chunk-BHWXSLTQ.js +2 -0
- package/dist/chunk-EK7ODJWE.js +1 -0
- package/dist/chunk-I65B3ZRL.js +78 -0
- package/dist/chunk-MKDRULJ6.js +1 -0
- package/dist/chunk-XTHPCEME.js +2 -0
- package/dist/chunk-YF3NML7I.js +323 -0
- package/dist/cli.js +157 -5017
- package/dist/dist-AP3RH35M.js +1 -0
- package/dist/fs-PXXYZATK-ZP2RBR47.js +1 -0
- package/dist/hcs-wasm/package.json +3 -0
- package/dist/hcs-wasm/vibgrate_hcs_wasm.js +394 -0
- package/dist/hcs-wasm/vibgrate_hcs_wasm_bg.wasm +0 -0
- package/dist/hcs-worker.js +567 -283
- package/dist/index.js +1 -19
- package/dist/semver-TPPMM2NV.js +1 -0
- package/package.json +5 -5
- package/dist/baseline-K2GQA6G5.js +0 -12
- package/dist/chunk-5IXVOEZN.js +0 -1999
- package/dist/chunk-BMLE722B.js +0 -18964
- package/dist/chunk-C7LU6YIL.js +0 -813
- package/dist/chunk-JSBRDJBE.js +0 -30
- package/dist/chunk-LWB7JBWP.js +0 -103
- package/dist/fs-PXXYZATK-EW5LCUA7.js +0 -37
- package/dist/semver-2FJFIYVN.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{U as BANDED_RATES,V as BAND_EDGES,h as BENCHMARK_COHORT_MIN,m as COMPLIANCE_THRESHOLDS,b as DRIFT_COLORS,a as DRIFT_THRESHOLDS,W as FREE_BILLABLE_CAP,q as RISK_SCORE_METHODOLOGY_VERSION,Y as advancedScanHook,J as aggregateSolutionArchitecture,v as analyzeCompliance,u as analyzeComplianceOffline,o as buildComplianceReport,j as buildExecutiveReport,H as buildProjectArchitectureMermaid,n as complianceState,X as computePrice,r as computeRiskScore,f as deltaTone,c as driftBand,e as driftBandLabel,d as driftColor,k as escapeHtml,S as findProjectFavicon,w as formatComplianceMarkdown,g as formatDeltaChip,s as inferProjectPurpose,i as quarterLabel,t as recommendStandards,p as renderComplianceReportHtml,l as renderExecutiveReportHtml,Z as runScan,P as scanApiSurface,K as scanArchitecture,R as scanAssetBranding,D as scanBreakingChangeExposure,B as scanBuildDeploy,L as scanCodeQuality,O as scanDataStores,z as scanDependencyGraph,y as scanDependencyRisk,E as scanFileHotspots,Q as scanOperationalResilience,T as scanOssGovernance,x as scanPlatformMatrix,I as scanProjectArchitecture,N as scanRuntimeConfiguration,F as scanSecurityPosture,G as scanServiceDependencies,A as scanToolingInventory,C as scanTsModernity,M as scanUiPurpose}from'./chunk-YF3NML7I.js';export{fa as CargoCache,ga as ComposerCache,n as DRIFT_SCORE_AMBER_MAX,m as DRIFT_SCORE_GREEN_MAX,h as DRIFT_SCORE_METHODOLOGY_VERSION,ea as GoCache,p as LABEL_BACKGROUND,U as MICRO_BILLING_RATIO,Q as MICRO_MAX_DEPENDENCIES,O as MICRO_MAX_FILES,P as MICRO_MAX_SIZE_BYTES,ba as MavenCache,x as NpmCache,$ as NuGetCache,ha as PubCache,aa as PyPICache,ca as RubyGemsCache,V as SMALL_BILLING_RATIO,T as SMALL_MAX_DEPENDENCIES,R as SMALL_MAX_FILES,S as SMALL_MAX_SIZE_BYTES,W as STANDARD_BILLING_RATIO,o as STATUS_COLOURS,da as SwiftCache,d as ageDaysBetween,f as aggregateLibyears,c as appendExcludePatterns,y as checkRegistryAccess,Z as classificationBillingWeight,X as classifyProject,na as compactUiPurpose,i as computeDriftScore,k as computeProjectId,sa as computeRepoFingerprint,l as computeSolutionId,ta as computeTreeMetadataHash,e as daysToLibyears,ia as detectVcs,q as driftBadgeStatusFromScore,ma as fetchLatestVersion,qa as fetchScanPreflight,r as formatDriftBadgeScore,v as formatMarkdown,u as formatSarif,t as formatText,g as freshnessScoreFromLibyears,j as generateFindings,ka as generateProjectRelationshipMermaid,la as generateSolutionRelationshipMermaid,ja as generateWorkspaceRelationshipMermaid,a as loadConfig,w as loadPackageVersionManifest,Y as normalizeClassification,pa as parseDsn,oa as prepareCompressedUpload,ra as resolveRepositoryName,ua as runCoreScan,I as scanDartProjects,K as scanDockerProjects,A as scanDotnetProjects,J as scanElixirProjects,F as scanGoProjects,L as scanHelmProjects,C as scanJavaProjects,z as scanNodeProjects,H as scanPhpProjects,N as scanPolyglotProjects,B as scanPythonProjects,D as scanRubyProjects,G as scanRustProjects,E as scanSwiftProjects,M as scanTerraformProjects,s as statusColour,_ as summarizeBilling,b as writeDefaultConfig}from'./chunk-I65B3ZRL.js';import'./chunk-MKDRULJ6.js';export{d as FileCache,a as Semaphore,c as compileGlobs,q as ensureDir,i as findFiles,j as findPackageJsonFiles,b as parseExcludePatterns,p as pathExists,e as quickTreeCount,n as readJsonFile,o as readTextFile,r as writeJsonFile,s as writeTextFile}from'./chunk-XTHPCEME.js';import'./chunk-EK7ODJWE.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{d as FileCache,h as bytesInDir,g as countFilesInDir,q as ensureDir,l as findCsprojFiles,i as findFiles,j as findPackageJsonFiles,k as findSolutionFiles,f as normalizeGlobForRipgrep,p as pathExists,e as quickTreeCount,n as readJsonFile,o as readTextFile,m as stripBom,r as writeJsonFile,s as writeTextFile}from'./chunk-XTHPCEME.js';import'./chunk-EK7ODJWE.js';
|
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
/* @ts-self-types="./vibgrate_hcs_wasm.d.ts" */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Derive behavioural facts from JSON array of FactEnvelopes.
|
|
5
|
+
* `options_json`: `{ scanId, applicationId, emittedAt? }`
|
|
6
|
+
* Returns JSON array of output envelopes.
|
|
7
|
+
* @param {string} ir_json
|
|
8
|
+
* @param {string} options_json
|
|
9
|
+
* @returns {string}
|
|
10
|
+
*/
|
|
11
|
+
function derive_behavioural_facts(ir_json, options_json) {
|
|
12
|
+
let deferred4_0;
|
|
13
|
+
let deferred4_1;
|
|
14
|
+
try {
|
|
15
|
+
const ptr0 = passStringToWasm0(ir_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
16
|
+
const len0 = WASM_VECTOR_LEN;
|
|
17
|
+
const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
18
|
+
const len1 = WASM_VECTOR_LEN;
|
|
19
|
+
const ret = wasm.derive_behavioural_facts(ptr0, len0, ptr1, len1);
|
|
20
|
+
var ptr3 = ret[0];
|
|
21
|
+
var len3 = ret[1];
|
|
22
|
+
if (ret[3]) {
|
|
23
|
+
ptr3 = 0; len3 = 0;
|
|
24
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
25
|
+
}
|
|
26
|
+
deferred4_0 = ptr3;
|
|
27
|
+
deferred4_1 = len3;
|
|
28
|
+
return getStringFromWasm0(ptr3, len3);
|
|
29
|
+
} finally {
|
|
30
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.derive_behavioural_facts = derive_behavioural_facts;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Derive behavioural facts from raw NDJSON lines (compressed or plain).
|
|
37
|
+
* `lines_json`: JSON array of NDJSON line strings.
|
|
38
|
+
* @param {string} lines_json
|
|
39
|
+
* @param {string} options_json
|
|
40
|
+
* @returns {string}
|
|
41
|
+
*/
|
|
42
|
+
function derive_behavioural_facts_from_lines(lines_json, options_json) {
|
|
43
|
+
let deferred4_0;
|
|
44
|
+
let deferred4_1;
|
|
45
|
+
try {
|
|
46
|
+
const ptr0 = passStringToWasm0(lines_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
47
|
+
const len0 = WASM_VECTOR_LEN;
|
|
48
|
+
const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
49
|
+
const len1 = WASM_VECTOR_LEN;
|
|
50
|
+
const ret = wasm.derive_behavioural_facts_from_lines(ptr0, len0, ptr1, len1);
|
|
51
|
+
var ptr3 = ret[0];
|
|
52
|
+
var len3 = ret[1];
|
|
53
|
+
if (ret[3]) {
|
|
54
|
+
ptr3 = 0; len3 = 0;
|
|
55
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
56
|
+
}
|
|
57
|
+
deferred4_0 = ptr3;
|
|
58
|
+
deferred4_1 = len3;
|
|
59
|
+
return getStringFromWasm0(ptr3, len3);
|
|
60
|
+
} finally {
|
|
61
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.derive_behavioural_facts_from_lines = derive_behavioural_facts_from_lines;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Extract HCS facts from source text (text languages). `request_json` is an
|
|
68
|
+
* `ExtractRequest`; returns NDJSON of `FactEnvelope` records.
|
|
69
|
+
* @param {string} request_json
|
|
70
|
+
* @returns {string}
|
|
71
|
+
*/
|
|
72
|
+
function extract_facts(request_json) {
|
|
73
|
+
let deferred3_0;
|
|
74
|
+
let deferred3_1;
|
|
75
|
+
try {
|
|
76
|
+
const ptr0 = passStringToWasm0(request_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
77
|
+
const len0 = WASM_VECTOR_LEN;
|
|
78
|
+
const ret = wasm.extract_facts(ptr0, len0);
|
|
79
|
+
var ptr2 = ret[0];
|
|
80
|
+
var len2 = ret[1];
|
|
81
|
+
if (ret[3]) {
|
|
82
|
+
ptr2 = 0; len2 = 0;
|
|
83
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
84
|
+
}
|
|
85
|
+
deferred3_0 = ptr2;
|
|
86
|
+
deferred3_1 = len2;
|
|
87
|
+
return getStringFromWasm0(ptr2, len2);
|
|
88
|
+
} finally {
|
|
89
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.extract_facts = extract_facts;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Extract HCS facts from a host-produced normalized AST (AST languages such as
|
|
96
|
+
* TypeScript/JavaScript). `request_json` is an `AstRequest`; returns NDJSON of
|
|
97
|
+
* `FactEnvelope` records. The host parses with the language compiler and emits
|
|
98
|
+
* the IR; the confidential extraction happens here.
|
|
99
|
+
* @param {string} request_json
|
|
100
|
+
* @returns {string}
|
|
101
|
+
*/
|
|
102
|
+
function extract_facts_from_ast(request_json) {
|
|
103
|
+
let deferred3_0;
|
|
104
|
+
let deferred3_1;
|
|
105
|
+
try {
|
|
106
|
+
const ptr0 = passStringToWasm0(request_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
107
|
+
const len0 = WASM_VECTOR_LEN;
|
|
108
|
+
const ret = wasm.extract_facts_from_ast(ptr0, len0);
|
|
109
|
+
var ptr2 = ret[0];
|
|
110
|
+
var len2 = ret[1];
|
|
111
|
+
if (ret[3]) {
|
|
112
|
+
ptr2 = 0; len2 = 0;
|
|
113
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
114
|
+
}
|
|
115
|
+
deferred3_0 = ptr2;
|
|
116
|
+
deferred3_1 = len2;
|
|
117
|
+
return getStringFromWasm0(ptr2, len2);
|
|
118
|
+
} finally {
|
|
119
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exports.extract_facts_from_ast = extract_facts_from_ast;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* REQ-015 — Build the System Map (`hcs-map/1.0`) from an HCS NDJSON fact stream.
|
|
126
|
+
*
|
|
127
|
+
* `ndjson` — complete NDJSON text from `vibgrate hcs extract`.
|
|
128
|
+
* `options_json` — `{"format":"json|md|mermaid","profile":"integration|migration|governance","generatedAt":"<iso>"}`
|
|
129
|
+
* @param {string} ndjson
|
|
130
|
+
* @param {string} options_json
|
|
131
|
+
* @returns {string}
|
|
132
|
+
*/
|
|
133
|
+
function hcs_build_map(ndjson, options_json) {
|
|
134
|
+
let deferred4_0;
|
|
135
|
+
let deferred4_1;
|
|
136
|
+
try {
|
|
137
|
+
const ptr0 = passStringToWasm0(ndjson, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
138
|
+
const len0 = WASM_VECTOR_LEN;
|
|
139
|
+
const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
140
|
+
const len1 = WASM_VECTOR_LEN;
|
|
141
|
+
const ret = wasm.hcs_build_map(ptr0, len0, ptr1, len1);
|
|
142
|
+
var ptr3 = ret[0];
|
|
143
|
+
var len3 = ret[1];
|
|
144
|
+
if (ret[3]) {
|
|
145
|
+
ptr3 = 0; len3 = 0;
|
|
146
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
147
|
+
}
|
|
148
|
+
deferred4_0 = ptr3;
|
|
149
|
+
deferred4_1 = len3;
|
|
150
|
+
return getStringFromWasm0(ptr3, len3);
|
|
151
|
+
} finally {
|
|
152
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
exports.hcs_build_map = hcs_build_map;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* REQ-017c — Evaluate the continuous governance gate by diffing two fact streams.
|
|
159
|
+
*
|
|
160
|
+
* `before_ndjson` / `after_ndjson` — baseline and current HCS fact streams.
|
|
161
|
+
* `options_json` — `{"format":"json|text|sarif","policy":{...}}`
|
|
162
|
+
* @param {string} before_ndjson
|
|
163
|
+
* @param {string} after_ndjson
|
|
164
|
+
* @param {string} options_json
|
|
165
|
+
* @returns {string}
|
|
166
|
+
*/
|
|
167
|
+
function hcs_evaluate_gate(before_ndjson, after_ndjson, options_json) {
|
|
168
|
+
let deferred5_0;
|
|
169
|
+
let deferred5_1;
|
|
170
|
+
try {
|
|
171
|
+
const ptr0 = passStringToWasm0(before_ndjson, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
172
|
+
const len0 = WASM_VECTOR_LEN;
|
|
173
|
+
const ptr1 = passStringToWasm0(after_ndjson, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
174
|
+
const len1 = WASM_VECTOR_LEN;
|
|
175
|
+
const ptr2 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
176
|
+
const len2 = WASM_VECTOR_LEN;
|
|
177
|
+
const ret = wasm.hcs_evaluate_gate(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
178
|
+
var ptr4 = ret[0];
|
|
179
|
+
var len4 = ret[1];
|
|
180
|
+
if (ret[3]) {
|
|
181
|
+
ptr4 = 0; len4 = 0;
|
|
182
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
183
|
+
}
|
|
184
|
+
deferred5_0 = ptr4;
|
|
185
|
+
deferred5_1 = len4;
|
|
186
|
+
return getStringFromWasm0(ptr4, len4);
|
|
187
|
+
} finally {
|
|
188
|
+
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
exports.hcs_evaluate_gate = hcs_evaluate_gate;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Render HCS NDJSON facts as Markdown, JSON, or HTML.
|
|
195
|
+
*
|
|
196
|
+
* `ndjson` — complete NDJSON text from `vibgrate hcs extract`.
|
|
197
|
+
* `options_json` — JSON object: `{"format":"md|json|html","level":"concise|full","title":"..."}`
|
|
198
|
+
* @param {string} ndjson
|
|
199
|
+
* @param {string} options_json
|
|
200
|
+
* @returns {string}
|
|
201
|
+
*/
|
|
202
|
+
function hcs_render_digest(ndjson, options_json) {
|
|
203
|
+
let deferred4_0;
|
|
204
|
+
let deferred4_1;
|
|
205
|
+
try {
|
|
206
|
+
const ptr0 = passStringToWasm0(ndjson, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
207
|
+
const len0 = WASM_VECTOR_LEN;
|
|
208
|
+
const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
209
|
+
const len1 = WASM_VECTOR_LEN;
|
|
210
|
+
const ret = wasm.hcs_render_digest(ptr0, len0, ptr1, len1);
|
|
211
|
+
var ptr3 = ret[0];
|
|
212
|
+
var len3 = ret[1];
|
|
213
|
+
if (ret[3]) {
|
|
214
|
+
ptr3 = 0; len3 = 0;
|
|
215
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
216
|
+
}
|
|
217
|
+
deferred4_0 = ptr3;
|
|
218
|
+
deferred4_1 = len3;
|
|
219
|
+
return getStringFromWasm0(ptr3, len3);
|
|
220
|
+
} finally {
|
|
221
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
exports.hcs_render_digest = hcs_render_digest;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Engine version (matches the crate version).
|
|
228
|
+
* @returns {string}
|
|
229
|
+
*/
|
|
230
|
+
function hcs_version() {
|
|
231
|
+
let deferred1_0;
|
|
232
|
+
let deferred1_1;
|
|
233
|
+
try {
|
|
234
|
+
const ret = wasm.hcs_version();
|
|
235
|
+
deferred1_0 = ret[0];
|
|
236
|
+
deferred1_1 = ret[1];
|
|
237
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
238
|
+
} finally {
|
|
239
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
exports.hcs_version = hcs_version;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @param {string} source
|
|
246
|
+
* @param {string} _lang
|
|
247
|
+
* @returns {string}
|
|
248
|
+
*/
|
|
249
|
+
function hxl_hash_expr(source, _lang) {
|
|
250
|
+
let deferred4_0;
|
|
251
|
+
let deferred4_1;
|
|
252
|
+
try {
|
|
253
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
254
|
+
const len0 = WASM_VECTOR_LEN;
|
|
255
|
+
const ptr1 = passStringToWasm0(_lang, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
256
|
+
const len1 = WASM_VECTOR_LEN;
|
|
257
|
+
const ret = wasm.hxl_hash_expr(ptr0, len0, ptr1, len1);
|
|
258
|
+
var ptr3 = ret[0];
|
|
259
|
+
var len3 = ret[1];
|
|
260
|
+
if (ret[3]) {
|
|
261
|
+
ptr3 = 0; len3 = 0;
|
|
262
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
263
|
+
}
|
|
264
|
+
deferred4_0 = ptr3;
|
|
265
|
+
deferred4_1 = len3;
|
|
266
|
+
return getStringFromWasm0(ptr3, len3);
|
|
267
|
+
} finally {
|
|
268
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
exports.hxl_hash_expr = hxl_hash_expr;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Languages this WASM slice extracts today.
|
|
275
|
+
* @returns {string}
|
|
276
|
+
*/
|
|
277
|
+
function supported_languages() {
|
|
278
|
+
let deferred1_0;
|
|
279
|
+
let deferred1_1;
|
|
280
|
+
try {
|
|
281
|
+
const ret = wasm.supported_languages();
|
|
282
|
+
deferred1_0 = ret[0];
|
|
283
|
+
deferred1_1 = ret[1];
|
|
284
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
285
|
+
} finally {
|
|
286
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
exports.supported_languages = supported_languages;
|
|
290
|
+
function __wbg_get_imports() {
|
|
291
|
+
const import0 = {
|
|
292
|
+
__proto__: null,
|
|
293
|
+
__wbg_Error_fdd633d4bb5dd76a: function(arg0, arg1) {
|
|
294
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
295
|
+
return ret;
|
|
296
|
+
},
|
|
297
|
+
__wbindgen_init_externref_table: function() {
|
|
298
|
+
const table = wasm.__wbindgen_externrefs;
|
|
299
|
+
const offset = table.grow(4);
|
|
300
|
+
table.set(0, undefined);
|
|
301
|
+
table.set(offset + 0, undefined);
|
|
302
|
+
table.set(offset + 1, null);
|
|
303
|
+
table.set(offset + 2, true);
|
|
304
|
+
table.set(offset + 3, false);
|
|
305
|
+
},
|
|
306
|
+
};
|
|
307
|
+
return {
|
|
308
|
+
__proto__: null,
|
|
309
|
+
"./vibgrate_hcs_wasm_bg.js": import0,
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
function getStringFromWasm0(ptr, len) {
|
|
314
|
+
return decodeText(ptr >>> 0, len);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
let cachedUint8ArrayMemory0 = null;
|
|
318
|
+
function getUint8ArrayMemory0() {
|
|
319
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
320
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
321
|
+
}
|
|
322
|
+
return cachedUint8ArrayMemory0;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
326
|
+
if (realloc === undefined) {
|
|
327
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
328
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
329
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
330
|
+
WASM_VECTOR_LEN = buf.length;
|
|
331
|
+
return ptr;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
let len = arg.length;
|
|
335
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
336
|
+
|
|
337
|
+
const mem = getUint8ArrayMemory0();
|
|
338
|
+
|
|
339
|
+
let offset = 0;
|
|
340
|
+
|
|
341
|
+
for (; offset < len; offset++) {
|
|
342
|
+
const code = arg.charCodeAt(offset);
|
|
343
|
+
if (code > 0x7F) break;
|
|
344
|
+
mem[ptr + offset] = code;
|
|
345
|
+
}
|
|
346
|
+
if (offset !== len) {
|
|
347
|
+
if (offset !== 0) {
|
|
348
|
+
arg = arg.slice(offset);
|
|
349
|
+
}
|
|
350
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
351
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
352
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
353
|
+
|
|
354
|
+
offset += ret.written;
|
|
355
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
WASM_VECTOR_LEN = offset;
|
|
359
|
+
return ptr;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
function takeFromExternrefTable0(idx) {
|
|
363
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
364
|
+
wasm.__externref_table_dealloc(idx);
|
|
365
|
+
return value;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
369
|
+
cachedTextDecoder.decode();
|
|
370
|
+
function decodeText(ptr, len) {
|
|
371
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
const cachedTextEncoder = new TextEncoder();
|
|
375
|
+
|
|
376
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
377
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
378
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
379
|
+
view.set(buf);
|
|
380
|
+
return {
|
|
381
|
+
read: arg.length,
|
|
382
|
+
written: buf.length
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
let WASM_VECTOR_LEN = 0;
|
|
388
|
+
|
|
389
|
+
const wasmPath = `${__dirname}/vibgrate_hcs_wasm_bg.wasm`;
|
|
390
|
+
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
391
|
+
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
392
|
+
let wasmInstance = new WebAssembly.Instance(wasmModule, __wbg_get_imports());
|
|
393
|
+
let wasm = wasmInstance.exports;
|
|
394
|
+
wasm.__wbindgen_start();
|
|
Binary file
|