@evomap/evolver-core 2.0.0 → 2.0.2
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/dist/algo/antiDistill.js +1 -167
- package/dist/algo/bans.js +1 -33
- package/dist/algo/candidateAssembly.js +1 -273
- package/dist/algo/capabilityCandidates.js +1 -146
- package/dist/algo/confidence.js +1 -196
- package/dist/algo/conversationSniffer.js +1 -149
- package/dist/algo/cycleEngine.js +1 -625
- package/dist/algo/cycleFailureClassifier.js +1 -112
- package/dist/algo/epigenetics.js +1 -41
- package/dist/algo/evolutionEvent.js +1 -24
- package/dist/algo/exploration.js +1 -68
- package/dist/algo/geneHealth.js +1 -17
- package/dist/algo/geneIntake.js +1 -128
- package/dist/algo/genePromotion.js +1 -53
- package/dist/algo/geneSelection.js +1 -546
- package/dist/algo/index.js +1 -22
- package/dist/algo/memoryGraph.js +1 -86
- package/dist/algo/mutation.js +1 -22
- package/dist/algo/orchestrator.js +1 -87
- package/dist/algo/publishEligibility.js +1 -52
- package/dist/algo/solidify.js +1 -63
- package/dist/algo/strategyPresets.js +1 -61
- package/dist/algo/ucb1.js +1 -156
- package/dist/benchmark/antiGeneBenchmark.js +1 -252
- package/dist/benchmark/antiGeneImpact.js +1 -34
- package/dist/benchmark/antiGeneRollout.js +1 -269
- package/dist/benchmark/benchmark.js +1 -26
- package/dist/benchmark/evolutionThesisSolver.js +1 -41
- package/dist/benchmark/index.js +1 -7
- package/dist/benchmark/selectionFlatAbstention.js +1 -481
- package/dist/benchmark/thesis.js +1 -150
- package/dist/benchmark/triggerShift.js +1 -106
- package/dist/cycle/cycleTimeline.js +1 -74
- package/dist/cycle/index.js +1 -2
- package/dist/cycle/stateMachine.js +1 -25
- package/dist/hub/agentDirectory.js +1 -104
- package/dist/hub/assetCallLog.js +1 -195
- package/dist/hub/bindings.js +1 -121
- package/dist/hub/capability.js +1 -1
- package/dist/hub/conversationDistiller.js +1 -264
- package/dist/hub/fake.js +1 -70
- package/dist/hub/hubReview.js +1 -106
- package/dist/hub/index.js +1 -11
- package/dist/hub/ingest.js +1 -15
- package/dist/hub/questionGenerator.js +1 -408
- package/dist/hub/reuseDecision.js +1 -127
- package/dist/hub/sanitize.js +1 -322
- package/dist/material/boundary.js +1 -14
- package/dist/material/consumer.js +1 -55
- package/dist/material/emit.js +1 -52
- package/dist/material/factory.js +1 -25
- package/dist/material/index.js +1 -9
- package/dist/material/materialArchive.js +1 -466
- package/dist/material/materialStore.js +1 -69
- package/dist/material/sampling.js +1 -39
- package/dist/material/sources.js +1 -33
- package/dist/material/watermark.js +1 -76
- package/dist/personality/drift.js +1 -106
- package/dist/personality/events.js +1 -37
- package/dist/personality/evolveOps.js +1 -93
- package/dist/personality/index.js +1 -11
- package/dist/personality/mutate.js +1 -39
- package/dist/personality/pivot.js +1 -22
- package/dist/personality/prompt.js +1 -62
- package/dist/personality/riskGate.js +1 -80
- package/dist/personality/schema.js +1 -119
- package/dist/personality/select.js +1 -71
- package/dist/personality/stats.js +1 -82
- package/dist/personality/store.js +1 -92
- package/dist/schema/common.js +1 -17
- package/dist/schema/evolutionGraph.js +1 -187
- package/dist/schema/index.js +1 -6
- package/dist/schema/material.js +1 -50
- package/dist/schema/problem.js +1 -45
- package/dist/schema/proofOfWork.js +1 -9
- package/dist/schema/signal.js +1 -19
- package/dist/signals/curriculum.js +1 -202
- package/dist/signals/cycleHistoryFromEvents.js +1 -105
- package/dist/signals/expand.js +1 -293
- package/dist/signals/extractor.js +1 -82
- package/dist/signals/index.js +1 -8
- package/dist/signals/metaSignals.js +1 -200
- package/dist/signals/signalGate.js +1 -40
- package/dist/signals/taskDomain.js +1 -43
- package/dist/signals/traceSignals.js +1 -123
- package/dist/strategy/constraintAblation.js +1 -2820
- package/dist/strategy/constraintAblationPredicates.js +1 -339
- package/dist/strategy/experiment.js +1 -63
- package/dist/strategy/index.js +1 -3
- package/dist/strategy/strategyPoint.js +1 -23
- package/package.json +1 -1
package/dist/hub/hubReview.js
CHANGED
|
@@ -1,106 +1 @@
|
|
|
1
|
-
// Hub asset review (ported from v1 gep/hubReview.js). When an evolution cycle REUSED a hub asset, this submits
|
|
2
|
-
// a usage-verified review back to the hub after solidify — closing the quality-feedback loop so the hub can
|
|
3
|
-
// rank assets by whether reuse actually paid off (the evolver side of fetch→outcome attribution). Rating is
|
|
4
|
-
// derived from the cycle outcome: success → 4-5, failure → 1-2 (a constraint-violating reuse gets the worst
|
|
5
|
-
// rating, tying into the exec policy gate). Non-blocking: errors never affect solidify. Dedup via an injected
|
|
6
|
-
// history store. The hub POST is an injected ReviewSubmitter seam, so this is transport-agnostic and testable.
|
|
7
|
-
import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from 'node:fs';
|
|
8
|
-
import { dirname } from 'node:path';
|
|
9
|
-
/** Derive a 1-5 rating from the cycle outcome. success→{5 if score≥0.85 else 4}; failure→{1 if constraint-violating else 2}. */
|
|
10
|
-
export function deriveRating(outcome, constraintCheck) {
|
|
11
|
-
if (outcome && outcome.status === 'success') {
|
|
12
|
-
const score = Number(outcome.score) || 0;
|
|
13
|
-
return score >= 0.85 ? 5 : 4;
|
|
14
|
-
}
|
|
15
|
-
const violated = !!constraintCheck && Array.isArray(constraintCheck.violations) && constraintCheck.violations.length > 0;
|
|
16
|
-
return violated ? 1 : 2;
|
|
17
|
-
}
|
|
18
|
-
/** Human-readable review body summarising the reuse outcome (capped 2000 chars). */
|
|
19
|
-
export function buildReviewContent({ outcome, gene, signals, blast, sourceType }) {
|
|
20
|
-
const status = outcome?.status ?? 'unknown';
|
|
21
|
-
const score = outcome && Number.isFinite(Number(outcome.score)) ? Number(outcome.score).toFixed(2) : '?';
|
|
22
|
-
const parts = [`Outcome: ${status} (score: ${score})`, `Reuse mode: ${sourceType ?? 'unknown'}`];
|
|
23
|
-
if (gene?.id)
|
|
24
|
-
parts.push(`Gene: ${gene.id} (${gene.category ?? 'unknown'})`);
|
|
25
|
-
if (Array.isArray(signals) && signals.length > 0)
|
|
26
|
-
parts.push(`Signals: ${signals.slice(0, 6).join(', ')}`);
|
|
27
|
-
if (blast)
|
|
28
|
-
parts.push(`Blast radius: ${blast.files ?? 0} file(s), ${blast.lines ?? 0} line(s)`);
|
|
29
|
-
parts.push(status === 'success'
|
|
30
|
-
? 'The fetched asset was successfully applied and solidified.'
|
|
31
|
-
: 'The fetched asset did not lead to a successful evolution cycle.');
|
|
32
|
-
return parts.join('\n').slice(0, 2000);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Submit a usage-verified review for a reused hub asset. Skips when: not hub-sourced, no asset id, or already
|
|
36
|
-
* reviewed. Never throws — a transport error is logged and swallowed (solidify must not be affected).
|
|
37
|
-
*/
|
|
38
|
-
export async function submitHubReview(deps, params) {
|
|
39
|
-
const { reusedAssetId, sourceType, outcome, gene, signals, blast, constraintCheck, runId = null } = params;
|
|
40
|
-
const now = deps.now ?? (() => Date.now());
|
|
41
|
-
if (!reusedAssetId || typeof reusedAssetId !== 'string')
|
|
42
|
-
return { submitted: false, reason: 'no_reused_asset_id' };
|
|
43
|
-
if (sourceType !== 'reused' && sourceType !== 'reference')
|
|
44
|
-
return { submitted: false, reason: 'not_hub_sourced' };
|
|
45
|
-
if (deps.history?.has(reusedAssetId))
|
|
46
|
-
return { submitted: false, reason: 'already_reviewed' };
|
|
47
|
-
const rating = deriveRating(outcome, constraintCheck);
|
|
48
|
-
const content = buildReviewContent({ outcome, gene, signals, blast, sourceType });
|
|
49
|
-
try {
|
|
50
|
-
const res = await deps.submit(reusedAssetId, { ...(deps.senderId ? { sender_id: deps.senderId } : {}), rating, content });
|
|
51
|
-
if (res.ok) {
|
|
52
|
-
deps.history?.mark(reusedAssetId, { rating, success: true, at: now() });
|
|
53
|
-
deps.assetLog?.append({ run_id: runId, action: 'hub_review_submitted', asset_id: reusedAssetId, extra: { rating, outcome_status: outcome?.status } });
|
|
54
|
-
return { submitted: true, rating, asset_id: reusedAssetId };
|
|
55
|
-
}
|
|
56
|
-
const errCode = res.error ?? `http_${res.status ?? 0}`;
|
|
57
|
-
if (errCode === 'already_reviewed')
|
|
58
|
-
deps.history?.mark(reusedAssetId, { rating, success: false, at: now() });
|
|
59
|
-
deps.assetLog?.append({ run_id: runId, action: 'hub_review_rejected', asset_id: reusedAssetId, extra: { rating, error: errCode } });
|
|
60
|
-
return { submitted: false, reason: errCode, rating };
|
|
61
|
-
}
|
|
62
|
-
catch (err) {
|
|
63
|
-
const reason = err instanceof Error && err.name === 'AbortError' ? 'timeout' : 'fetch_error';
|
|
64
|
-
deps.assetLog?.append({ run_id: runId, action: 'hub_review_failed', asset_id: reusedAssetId, extra: { rating, reason, error: err instanceof Error ? err.message : String(err) } });
|
|
65
|
-
return { submitted: false, reason, rating };
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
const HISTORY_MAX = 500;
|
|
69
|
-
/** File-backed ReviewHistoryStore: a JSON map assetId → {at,rating,success}, capped to the most recent N (atomic write). */
|
|
70
|
-
export class FileReviewHistory {
|
|
71
|
-
path;
|
|
72
|
-
max;
|
|
73
|
-
constructor(path, max = HISTORY_MAX) {
|
|
74
|
-
this.path = path;
|
|
75
|
-
this.max = max;
|
|
76
|
-
}
|
|
77
|
-
load() {
|
|
78
|
-
try {
|
|
79
|
-
if (!existsSync(this.path))
|
|
80
|
-
return {};
|
|
81
|
-
const raw = readFileSync(this.path, 'utf8').trim();
|
|
82
|
-
return raw ? JSON.parse(raw) : {};
|
|
83
|
-
}
|
|
84
|
-
catch {
|
|
85
|
-
return {};
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
has(assetId) { return !!this.load()[assetId]; }
|
|
89
|
-
mark(assetId, rec) {
|
|
90
|
-
try {
|
|
91
|
-
const history = this.load();
|
|
92
|
-
history[assetId] = rec;
|
|
93
|
-
const keys = Object.keys(history);
|
|
94
|
-
if (keys.length > this.max) {
|
|
95
|
-
const oldest = keys.map((k) => ({ k, t: history[k].at || 0 })).sort((a, b) => a.t - b.t).slice(0, keys.length - this.max);
|
|
96
|
-
for (const { k } of oldest)
|
|
97
|
-
delete history[k];
|
|
98
|
-
}
|
|
99
|
-
mkdirSync(dirname(this.path), { recursive: true });
|
|
100
|
-
const tmp = `${this.path}.tmp`;
|
|
101
|
-
writeFileSync(tmp, `${JSON.stringify(history, null, 2)}\n`, 'utf8');
|
|
102
|
-
renameSync(tmp, this.path);
|
|
103
|
-
}
|
|
104
|
-
catch { /* non-fatal */ }
|
|
105
|
-
}
|
|
106
|
-
}
|
|
1
|
+
const _0x56ec46=_0x527b;(function(_0x20ec4e,_0x33dd6c){const _0x591293=_0x527b,_0x87e97=_0x20ec4e();while(!![]){try{const _0x3ebc7b=-parseInt(_0x591293(0xf6,'\x29\x5b\x79\x75'))/(0xd6+0x10df*0x1+-0x46d*0x4)+parseInt(_0x591293(0x162,'\x29\x30\x37\x44'))/(-0x160b+0xc5a+0x9b3)*(parseInt(_0x591293(0x139,'\x51\x43\x32\x39'))/(-0xae4+-0xe4+-0xbcb*-0x1))+parseInt(_0x591293(0x123,'\x70\x69\x74\x6d'))/(0x5*-0x227+-0x8b4*-0x2+-0x1*0x6a1)+parseInt(_0x591293(0x152,'\x34\x21\x33\x74'))/(-0x1e59*0x1+-0x143a+-0x1*-0x3298)+-parseInt(_0x591293(0x16b,'\x5e\x62\x5e\x35'))/(-0x1*-0x4d5+0x1e8d+-0x235c)*(parseInt(_0x591293(0x17c,'\x74\x6a\x37\x56'))/(-0xdf+-0x1*0x124c+-0x1*-0x1332))+parseInt(_0x591293(0x110,'\x35\x33\x57\x69'))/(-0x3a5+0x113b+-0xd8e)*(parseInt(_0x591293(0x17e,'\x35\x36\x25\x78'))/(0x5ba+-0x92e+-0x13*-0x2f))+-parseInt(_0x591293(0x104,'\x35\x33\x57\x69'))/(0x1962+-0x24db+0x1a5*0x7)*(parseInt(_0x591293(0x11e,'\x51\x43\x32\x39'))/(0x2*-0x1d+-0x70d+0x752));if(_0x3ebc7b===_0x33dd6c)break;else _0x87e97['push'](_0x87e97['shift']());}catch(_0x22b8aa){_0x87e97['push'](_0x87e97['shift']());}}}(_0x23be,-0x46fc4+-0xc9*-0x305+0xd*0x140ae));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'\x6e\x6f\x64\x65\x3a\x66\x73';import{dirname}from'\x6e\x6f\x64\x65\x3a\x70\x61\x74\x68';export function deriveRating(_0x24b2dd,_0x4ee8c9){const _0x42a688=_0x527b;if(_0x24b2dd&&_0x24b2dd[_0x42a688(0x15e,'\x74\x6a\x37\x56')]===_0x42a688(0x167,'\x6d\x31\x34\x46')){if('\x75\x7a\x57\x62\x62'!==_0x42a688(0x15a,'\x4f\x48\x4b\x47'))try{if(!_0x39a3cb(this[_0x42a688(0xf7,'\x29\x30\x37\x44')]))return{};const _0x3ec4a7=_0x5f4c16(this[_0x42a688(0x16e,'\x34\x21\x33\x74')],_0x42a688(0x166,'\x49\x39\x55\x40'))[_0x42a688(0x106,'\x4e\x6e\x57\x37')]();return _0x3ec4a7?_0x4e7340[_0x42a688(0x124,'\x70\x72\x5d\x6e')](_0x3ec4a7):{};}catch{return{};}else{const _0x313819=Number(_0x24b2dd[_0x42a688(0x18a,'\x49\x51\x4b\x5d')])||0xb50*-0x1+-0x15e8+0x2138;return _0x313819>=0x1*-0x25ca+0x6e*0x42+0x96e+0.85?0x2*-0x7b0+0x955*0x4+-0x463*0x5:0x21*0x97+-0x1b03+0xf2*0x8;}}const _0x5d8359=!!_0x4ee8c9&&Array[_0x42a688(0x13f,'\x7a\x71\x55\x37')](_0x4ee8c9[_0x42a688(0x14a,'\x33\x74\x41\x45')+'\x6e\x73'])&&_0x4ee8c9[_0x42a688(0xfd,'\x34\x21\x33\x74')+'\x6e\x73'][_0x42a688(0x114,'\x24\x46\x4c\x61')]>-0x1297*-0x1+-0x5a1+0x3*-0x452;return _0x5d8359?-0x319*0x1+-0x100*-0x6+-0x2e6:-0x3*0x4de+-0x1289+0x2125;}function _0x23be(){const _0x5c1e44=['\x57\x36\x71\x38\x43\x71\x70\x63\x55\x38\x6f\x71\x57\x37\x33\x63\x55\x4e\x4e\x64\x53\x53\x6b\x42\x57\x34\x6c\x63\x4c\x47','\x57\x51\x6a\x47\x6c\x31\x37\x64\x50\x38\x6b\x71\x57\x51\x6d','\x75\x61\x4a\x63\x4a\x31\x57','\x57\x51\x56\x63\x56\x61\x37\x64\x50\x61','\x57\x52\x46\x63\x53\x48\x56\x64\x51\x61','\x65\x48\x70\x63\x47\x30\x47','\x57\x34\x52\x64\x47\x6d\x6b\x6e\x70\x6d\x6b\x44\x57\x4f\x6a\x64\x43\x71','\x76\x58\x76\x47\x6d\x4b\x68\x64\x54\x43\x6b\x33\x71\x43\x6f\x62\x57\x51\x50\x48','\x57\x52\x39\x53\x57\x52\x35\x70\x71\x47','\x57\x36\x43\x33\x57\x37\x78\x64\x52\x76\x69\x4a\x41\x47','\x68\x66\x79\x35\x44\x61\x6c\x64\x4c\x61','\x57\x36\x56\x63\x4a\x75\x52\x64\x4c\x38\x6b\x4b\x6f\x53\x6b\x50\x57\x51\x38','\x64\x71\x4a\x63\x47\x31\x4a\x63\x4a\x43\x6b\x6f','\x57\x51\x4a\x63\x51\x72\x56\x64\x55\x63\x39\x30','\x57\x36\x4f\x2b\x57\x50\x50\x6f\x74\x38\x6b\x55\x67\x43\x6b\x42','\x57\x37\x68\x64\x4f\x76\x47\x61\x57\x4f\x4e\x64\x47\x65\x62\x31','\x57\x50\x4e\x63\x4f\x77\x6a\x2b\x75\x38\x6b\x71\x46\x6d\x6f\x46\x57\x51\x64\x63\x4b\x4b\x34','\x46\x53\x6b\x38\x57\x50\x74\x63\x51\x53\x6f\x78','\x6c\x63\x66\x34\x57\x34\x48\x54\x57\x51\x7a\x58','\x7a\x6d\x6f\x50\x57\x34\x2f\x63\x49\x48\x33\x63\x48\x53\x6b\x4d','\x57\x37\x46\x63\x48\x31\x2f\x63\x53\x47','\x57\x4f\x75\x44\x65\x4b\x2f\x64\x4a\x38\x6b\x78\x57\x4f\x71','\x57\x35\x6a\x6b\x57\x4f\x57\x42\x57\x34\x39\x56\x57\x34\x33\x64\x54\x43\x6b\x69\x57\x35\x69','\x46\x32\x4a\x64\x56\x63\x6d\x4c','\x57\x36\x78\x64\x4c\x43\x6f\x5a\x57\x52\x58\x78\x77\x38\x6f\x4a\x57\x50\x53','\x43\x43\x6b\x6a\x57\x4f\x2f\x63\x4f\x76\x4f\x58\x57\x35\x6e\x62\x44\x57\x72\x63','\x57\x37\x5a\x63\x4c\x6d\x6f\x56','\x57\x35\x37\x64\x52\x65\x65','\x57\x51\x44\x56\x6d\x66\x47','\x57\x50\x68\x64\x51\x6d\x6f\x2f\x57\x50\x56\x64\x51\x77\x6d\x48\x6b\x71','\x57\x52\x48\x49\x6c\x76\x74\x64\x4f\x43\x6b\x62\x57\x51\x74\x63\x49\x57','\x57\x35\x4a\x64\x4d\x31\x33\x64\x4f\x5a\x70\x64\x4b\x47','\x57\x4f\x75\x65\x67\x65\x2f\x64\x4a\x57','\x57\x36\x79\x2b\x66\x66\x74\x64\x53\x6d\x6b\x48\x57\x51\x64\x63\x52\x71','\x57\x52\x74\x63\x54\x74\x5a\x63\x4e\x71','\x57\x37\x57\x59\x57\x36\x2f\x64\x55\x4c\x47','\x67\x6d\x6b\x53\x57\x52\x5a\x63\x4b\x47','\x73\x4d\x68\x63\x55\x6d\x6f\x57','\x74\x77\x42\x63\x53\x38\x6f\x57\x57\x36\x6d\x57','\x57\x36\x47\x7a\x46\x65\x61','\x41\x33\x4f\x47\x57\x50\x34\x58\x57\x36\x71\x31\x6b\x5a\x78\x64\x4a\x31\x42\x64\x54\x43\x6b\x38','\x57\x37\x57\x58\x57\x37\x74\x64\x52\x71','\x73\x4b\x56\x64\x4b\x58\x33\x63\x4e\x53\x6b\x59\x74\x75\x68\x64\x52\x30\x61','\x63\x43\x6b\x67\x57\x50\x52\x63\x4b\x47','\x57\x36\x6c\x63\x4c\x58\x2f\x64\x4e\x61\x39\x57\x45\x47','\x6c\x65\x37\x64\x52\x53\x6f\x78\x42\x38\x6f\x67\x62\x67\x38','\x6f\x38\x6f\x53\x57\x36\x50\x71','\x6d\x6d\x6f\x7a\x57\x34\x5a\x64\x55\x71','\x42\x68\x42\x63\x50\x6d\x6f\x55\x57\x36\x39\x4b\x57\x50\x6a\x35','\x57\x36\x46\x63\x4c\x58\x4e\x64\x51\x38\x6b\x57\x57\x37\x6d\x63\x6a\x61','\x57\x34\x57\x41\x61\x62\x64\x63\x49\x57\x30','\x57\x37\x56\x63\x56\x47\x70\x64\x52\x5a\x7a\x49\x61\x71','\x74\x78\x64\x63\x56\x53\x6f\x56\x57\x36\x38','\x68\x43\x6b\x36\x57\x37\x78\x64\x4c\x38\x6f\x72\x7a\x61\x4a\x63\x4b\x47','\x44\x61\x4b\x4a\x6b\x53\x6f\x38','\x57\x37\x38\x52\x57\x37\x78\x64\x53\x71','\x76\x43\x6b\x2b\x57\x4f\x4e\x63\x4b\x53\x6f\x67','\x6e\x6d\x6b\x79\x57\x35\x74\x64\x54\x61\x30\x36\x57\x4f\x7a\x30','\x57\x36\x71\x37\x57\x37\x2f\x64\x51\x47','\x57\x50\x79\x43\x57\x34\x4c\x63','\x63\x43\x6b\x73\x57\x50\x33\x63\x4b\x47','\x57\x37\x4b\x2b\x57\x35\x58\x78\x66\x53\x6f\x77\x72\x30\x69','\x57\x35\x33\x64\x4e\x6d\x6f\x6e\x57\x4f\x78\x64\x4d\x65\x68\x63\x4d\x38\x6f\x67\x57\x50\x6d\x4f\x6f\x38\x6b\x71','\x57\x35\x68\x64\x54\x59\x34\x4b','\x67\x38\x6b\x4b\x57\x36\x33\x64\x56\x53\x6f\x49','\x57\x36\x4e\x63\x4e\x76\x5a\x64\x47\x43\x6b\x4a\x65\x6d\x6b\x5a\x57\x51\x71','\x57\x37\x70\x63\x4d\x75\x61\x76\x68\x61','\x6a\x4a\x57\x62\x57\x36\x70\x63\x54\x6d\x6f\x43','\x57\x35\x31\x37\x57\x51\x70\x63\x4a\x43\x6f\x52','\x57\x51\x66\x4e\x6b\x31\x5a\x64\x51\x43\x6b\x74\x57\x51\x74\x63\x47\x71','\x63\x53\x6b\x77\x57\x4f\x46\x63\x4e\x53\x6b\x70\x64\x6d\x6b\x4e\x61\x57','\x6b\x6d\x6f\x44\x57\x35\x5a\x63\x53\x71\x30\x54\x57\x35\x76\x4c','\x68\x47\x65\x68','\x57\x50\x74\x63\x48\x43\x6b\x70\x57\x34\x46\x63\x4a\x57','\x57\x52\x42\x63\x4e\x4d\x38\x63','\x57\x36\x46\x63\x4d\x30\x52\x64\x47\x43\x6b\x58\x65\x43\x6b\x4a','\x57\x51\x71\x37\x75\x53\x6b\x38\x62\x49\x54\x78\x57\x37\x79','\x6c\x53\x6f\x78\x57\x34\x38','\x42\x38\x6b\x4a\x72\x38\x6f\x2b','\x57\x4f\x4a\x63\x49\x38\x6b\x43\x57\x35\x61','\x57\x52\x34\x32\x57\x50\x35\x6d\x75\x38\x6f\x38\x64\x38\x6f\x75','\x57\x52\x7a\x71\x73\x6d\x6f\x33\x57\x36\x56\x64\x4e\x43\x6f\x78','\x67\x4c\x79\x2b\x6f\x61','\x57\x34\x7a\x59\x57\x51\x37\x64\x4a\x53\x6f\x56\x57\x34\x46\x64\x4c\x4a\x30','\x75\x4d\x52\x64\x53\x43\x6f\x38\x57\x37\x4f\x30\x57\x50\x6e\x2f','\x64\x38\x6b\x4c\x57\x36\x2f\x64\x4b\x43\x6f\x61','\x57\x37\x64\x63\x4d\x43\x6f\x4c\x57\x52\x62\x73\x68\x38\x6f\x30\x57\x51\x53','\x61\x53\x6b\x73\x57\x34\x43','\x57\x51\x6d\x39\x6d\x6d\x6f\x47\x72\x31\x53\x6b\x57\x34\x76\x6a\x57\x35\x4e\x63\x51\x30\x74\x64\x52\x47','\x57\x36\x33\x63\x56\x71\x7a\x59','\x68\x64\x4e\x63\x56\x43\x6b\x51\x57\x37\x46\x64\x48\x61\x52\x64\x47\x67\x57\x71\x57\x4f\x61','\x6e\x31\x4a\x64\x4f\x38\x6f\x36\x45\x61','\x61\x4e\x68\x64\x56\x57\x48\x41\x42\x71','\x57\x4f\x6e\x4d\x69\x72\x64\x64\x52\x53\x6b\x63\x57\x52\x4e\x63\x4a\x71','\x73\x38\x6f\x34\x79\x64\x50\x7a\x57\x36\x31\x30\x57\x35\x74\x63\x4a\x6d\x6b\x7a\x57\x35\x47\x70\x57\x37\x4f','\x6b\x63\x4c\x48\x57\x34\x75','\x57\x52\x66\x4e\x6b\x66\x78\x64\x55\x57','\x57\x51\x76\x52\x69\x4c\x78\x64\x55\x53\x6b\x63\x57\x51\x70\x63\x4a\x71','\x66\x48\x33\x63\x4b\x71','\x6e\x53\x6f\x78\x57\x35\x74\x64\x50\x62\x47\x33\x57\x34\x4c\x55','\x73\x68\x2f\x64\x4c\x43\x6f\x50\x57\x52\x74\x64\x49\x72\x6c\x64\x51\x61','\x66\x57\x2f\x63\x50\x65\x78\x63\x4c\x53\x6b\x75\x74\x33\x75','\x57\x51\x74\x64\x48\x6d\x6b\x4d\x57\x36\x30\x67\x73\x6d\x6b\x38\x57\x52\x2f\x64\x4e\x4b\x53\x62\x57\x34\x4f\x66','\x57\x4f\x33\x63\x56\x6d\x6f\x53\x57\x35\x6c\x64\x54\x68\x65\x52\x6c\x61','\x74\x77\x4e\x63\x50\x65\x42\x64\x55\x73\x52\x63\x49\x64\x6d','\x64\x65\x50\x37\x57\x34\x57','\x73\x4e\x5a\x63\x4c\x38\x6f\x30\x57\x37\x69\x48\x57\x50\x53','\x57\x50\x4b\x4c\x57\x37\x5a\x64\x4e\x43\x6b\x2f\x57\x4f\x33\x63\x4b\x59\x4f\x68\x57\x34\x54\x43\x57\x37\x50\x74','\x57\x35\x47\x73\x62\x58\x64\x64\x4c\x61','\x57\x4f\x5a\x64\x53\x38\x6f\x73\x57\x4f\x64\x64\x4f\x4e\x65\x37\x6b\x47','\x57\x51\x4a\x63\x51\x71\x4a\x64\x50\x74\x72\x47','\x57\x50\x42\x63\x47\x43\x6b\x6c\x57\x35\x33\x63\x4a\x57\x68\x63\x50\x38\x6f\x4e','\x62\x43\x6f\x63\x57\x35\x4a\x63\x4b\x64\x57','\x57\x4f\x37\x64\x53\x38\x6f\x53\x57\x50\x79','\x57\x35\x47\x73\x61\x71\x53','\x73\x38\x6b\x38\x57\x50\x79','\x57\x36\x76\x51\x44\x53\x6b\x57','\x57\x37\x37\x63\x4d\x31\x30','\x74\x68\x4a\x64\x55\x53\x6f\x2f\x57\x51\x2f\x64\x4a\x57','\x57\x34\x5a\x64\x54\x59\x4f','\x65\x75\x44\x68\x6a\x53\x6b\x50\x67\x75\x56\x64\x47\x61','\x68\x38\x6b\x73\x57\x34\x56\x63\x49\x47','\x6c\x53\x6f\x61\x57\x34\x78\x63\x51\x63\x30','\x6b\x66\x37\x64\x4f\x53\x6f\x56\x41\x43\x6f\x6c','\x57\x37\x4e\x63\x4f\x63\x78\x63\x49\x6d\x6b\x75\x57\x35\x7a\x69\x72\x61','\x65\x6d\x6b\x47\x57\x36\x4a\x64\x4c\x38\x6f\x77','\x57\x37\x6d\x44\x43\x76\x53','\x57\x36\x6c\x63\x4c\x30\x52\x64\x48\x53\x6b\x2f\x62\x6d\x6b\x2f','\x65\x48\x4e\x63\x4a\x65\x56\x63\x4a\x6d\x6b\x76','\x57\x51\x70\x64\x47\x53\x6f\x41\x57\x52\x54\x50\x64\x38\x6f\x64\x57\x51\x75','\x57\x36\x54\x4c\x57\x37\x48\x78\x6b\x43\x6b\x6b\x45\x4a\x4f','\x6b\x64\x31\x4d\x57\x34\x75','\x76\x31\x38\x41\x57\x4f\x2f\x64\x56\x4e\x7a\x74','\x57\x36\x37\x63\x4f\x76\x4a\x64\x47\x43\x6b\x4a\x65\x38\x6b\x59\x57\x50\x43','\x62\x66\x7a\x62\x6c\x6d\x6b\x56\x69\x75\x46\x64\x4c\x61','\x57\x51\x2f\x63\x4a\x66\x4f\x79\x57\x34\x33\x64\x49\x53\x6b\x70','\x61\x4b\x6d\x47','\x57\x36\x46\x64\x50\x76\x58\x74\x57\x50\x56\x63\x48\x75\x7a\x33','\x74\x38\x6f\x66\x57\x35\x56\x64\x47\x53\x6f\x74\x73\x6d\x6f\x45\x66\x38\x6f\x76\x73\x6d\x6f\x71\x41\x38\x6f\x4e','\x46\x4e\x70\x64\x52\x4a\x6d\x44\x7a\x76\x30','\x71\x4e\x78\x63\x4f\x61','\x57\x52\x7a\x4d\x57\x52\x42\x63\x51\x61\x39\x4d\x73\x49\x52\x64\x51\x38\x6b\x66\x57\x50\x71\x44','\x57\x35\x42\x63\x4b\x6d\x6f\x35\x57\x52\x61\x6a\x77\x57','\x73\x4c\x47\x63\x57\x50\x78\x64\x56\x4e\x6e\x65','\x57\x37\x4e\x63\x55\x72\x61\x56\x57\x4f\x34\x53','\x76\x53\x6b\x4f\x57\x50\x78\x63\x49\x61','\x57\x36\x5a\x63\x51\x64\x37\x63\x47\x43\x6b\x73\x57\x34\x31\x74\x75\x47','\x65\x75\x50\x39\x57\x34\x38','\x46\x5a\x38\x68\x6e\x47','\x7a\x63\x4f\x6d\x41\x57','\x67\x4b\x6e\x62\x6c\x47','\x57\x50\x52\x63\x56\x58\x78\x64\x56\x49\x35\x63\x78\x43\x6f\x4d','\x57\x4f\x6d\x6f\x57\x34\x35\x6d\x57\x35\x58\x6d\x57\x50\x56\x64\x47\x71','\x57\x52\x4b\x44\x62\x75\x2f\x64\x48\x43\x6b\x6a\x57\x50\x6a\x4f'];_0x23be=function(){return _0x5c1e44;};return _0x23be();}export function buildReviewContent({outcome:_0x461eab,gene:_0x1a8c16,signals:_0x3d587a,blast:_0x3d1677,sourceType:_0x27df39}){const _0x7608ef=_0x527b,_0x95aeef=_0x461eab?.[_0x7608ef(0x15f,'\x35\x36\x25\x78')]??'\x75\x6e\x6b\x6e\x6f\x77\x6e',_0x4a6662=_0x461eab&&Number[_0x7608ef(0x11d,'\x74\x6a\x37\x56')](Number(_0x461eab[_0x7608ef(0x132,'\x78\x77\x59\x5e')]))?Number(_0x461eab[_0x7608ef(0x186,'\x53\x6c\x4a\x5e')])[_0x7608ef(0x122,'\x53\x6c\x4a\x5e')](0x1268+-0x29b*-0x5+-0x1*0x1f6d):'\x3f',_0x21346d=[_0x7608ef(0x151,'\x6d\x31\x34\x46')+'\x20'+_0x95aeef+(_0x7608ef(0x160,'\x4f\x48\x4b\x47')+'\x20')+_0x4a6662+'\x29',_0x7608ef(0x182,'\x53\x6c\x4a\x5e')+_0x7608ef(0x176,'\x57\x47\x4f\x61')+(_0x27df39??_0x7608ef(0x153,'\x34\x21\x33\x74'))];if(_0x1a8c16?.['\x69\x64'])_0x21346d[_0x7608ef(0x17d,'\x42\x48\x28\x71')](_0x7608ef(0x146,'\x51\x43\x32\x39')+_0x1a8c16['\x69\x64']+'\x20\x28'+(_0x1a8c16[_0x7608ef(0x134,'\x33\x74\x41\x45')]??_0x7608ef(0x147,'\x49\x5a\x40\x59'))+'\x29');if(Array[_0x7608ef(0x143,'\x24\x50\x40\x33')](_0x3d587a)&&_0x3d587a[_0x7608ef(0x138,'\x74\x6a\x37\x56')]>0x1b7e+-0x40*0x13+-0x16be)_0x21346d[_0x7608ef(0x189,'\x44\x6c\x23\x5d')]('\x53\x69\x67\x6e\x61\x6c\x73\x3a'+'\x20'+_0x3d587a[_0x7608ef(0x172,'\x6d\x31\x34\x46')](0x2690+-0x1f3b+0x755*-0x1,-0x909*-0x1+-0x9b3*0x1+-0x8*-0x16)[_0x7608ef(0x180,'\x71\x62\x21\x43')]('\x2c\x20'));if(_0x3d1677)_0x21346d[_0x7608ef(0x149,'\x49\x51\x4b\x5d')](_0x7608ef(0x161,'\x43\x5a\x61\x4c')+_0x7608ef(0x184,'\x70\x72\x5d\x6e')+(_0x3d1677[_0x7608ef(0x118,'\x34\x21\x33\x74')]??-0xf84*0x1+-0x3*-0x23b+0x8d3)+('\x20\x66\x69\x6c\x65\x28\x73\x29'+'\x2c\x20')+(_0x3d1677[_0x7608ef(0x135,'\x57\x47\x4f\x61')]??0x26ad+0x11fd+-0x38aa)+_0x7608ef(0x13a,'\x79\x48\x56\x4e'));return _0x21346d[_0x7608ef(0x13b,'\x66\x52\x4f\x73')](_0x95aeef==='\x73\x75\x63\x63\x65\x73\x73'?_0x7608ef(0x115,'\x34\x21\x33\x74')+_0x7608ef(0xff,'\x5e\x62\x5e\x35')+_0x7608ef(0x108,'\x4f\x48\x4b\x47')+_0x7608ef(0xf9,'\x57\x78\x72\x50')+_0x7608ef(0x10c,'\x53\x6c\x4a\x5e')+_0x7608ef(0x183,'\x49\x39\x55\x40')+_0x7608ef(0x170,'\x34\x21\x33\x74')+'\x64\x2e':_0x7608ef(0x141,'\x43\x5a\x61\x4c')+_0x7608ef(0x10b,'\x70\x69\x74\x6d')+_0x7608ef(0x16a,'\x51\x43\x32\x39')+_0x7608ef(0x18b,'\x5e\x62\x5e\x35')+_0x7608ef(0x11f,'\x45\x74\x57\x45')+_0x7608ef(0x150,'\x57\x61\x4b\x34')+_0x7608ef(0x11b,'\x5e\x62\x5e\x35')+_0x7608ef(0x185,'\x35\x36\x25\x78')),_0x21346d['\x6a\x6f\x69\x6e']('\x0a')[_0x7608ef(0xfc,'\x70\x69\x74\x6d')](-0x14bb+0xe25+-0x6*-0x119,-0x1122+0x2290+-0x4cf*0x2);}export async function submitHubReview(_0x568a75,_0x266714){const _0x4ca187=_0x527b,{reusedAssetId:_0x3cb5ed,sourceType:_0x334457,outcome:_0x1f9086,gene:_0x2b12ff,signals:_0x256ea1,blast:_0x4c63cc,constraintCheck:_0x2f3884,runId:runId=null}=_0x266714,_0x284902=_0x568a75[_0x4ca187(0x105,'\x5e\x62\x5e\x35')]??(()=>Date[_0x4ca187(0x144,'\x38\x31\x6b\x74')]());if(!_0x3cb5ed||typeof _0x3cb5ed!==_0x4ca187(0x126,'\x35\x36\x25\x78'))return{'\x73\x75\x62\x6d\x69\x74\x74\x65\x64':![],'\x72\x65\x61\x73\x6f\x6e':_0x4ca187(0x125,'\x45\x74\x57\x45')+_0x4ca187(0x13d,'\x57\x78\x72\x50')+'\x69\x64'};if(_0x334457!=='\x72\x65\x75\x73\x65\x64'&&_0x334457!==_0x4ca187(0x119,'\x34\x21\x33\x74')+'\x65')return{'\x73\x75\x62\x6d\x69\x74\x74\x65\x64':![],'\x72\x65\x61\x73\x6f\x6e':'\x6e\x6f\x74\x5f\x68\x75\x62\x5f'+_0x4ca187(0x109,'\x53\x4c\x43\x4e')};if(_0x568a75[_0x4ca187(0x137,'\x57\x78\x72\x50')]?.[_0x4ca187(0x11a,'\x74\x6a\x37\x56')](_0x3cb5ed))return{'\x73\x75\x62\x6d\x69\x74\x74\x65\x64':![],'\x72\x65\x61\x73\x6f\x6e':_0x4ca187(0x10e,'\x51\x43\x32\x39')+'\x72\x65\x76\x69\x65\x77\x65\x64'};const _0x4162f6=deriveRating(_0x1f9086,_0x2f3884),_0x819e34=buildReviewContent({'\x6f\x75\x74\x63\x6f\x6d\x65':_0x1f9086,'\x67\x65\x6e\x65':_0x2b12ff,'\x73\x69\x67\x6e\x61\x6c\x73':_0x256ea1,'\x62\x6c\x61\x73\x74':_0x4c63cc,'\x73\x6f\x75\x72\x63\x65\x54\x79\x70\x65':_0x334457});try{if(_0x4ca187(0xfa,'\x42\x68\x7a\x36')===_0x4ca187(0x188,'\x53\x63\x6e\x69'))try{const _0x4460aa=this[_0x4ca187(0x157,'\x74\x6a\x37\x56')]();_0x4460aa[_0x5e716e]=_0x420499;const _0x434e0e=_0x5b10ac[_0x4ca187(0x136,'\x5d\x4e\x63\x68')](_0x4460aa);if(_0x434e0e[_0x4ca187(0x133,'\x36\x4f\x4a\x42')]>this['\x6d\x61\x78']){const _0x26a2cc=_0x434e0e[_0x4ca187(0x12b,'\x49\x51\x4b\x5d')](_0xe4271e=>({'\x6b':_0xe4271e,'\x74':_0x4460aa[_0xe4271e]['\x61\x74']||-0x14c9+0x1*0x2495+-0xfcc}))['\x73\x6f\x72\x74']((_0x256226,_0x459e09)=>_0x256226['\x74']-_0x459e09['\x74'])[_0x4ca187(0x175,'\x44\x6c\x23\x5d')](-0x34*-0xf+-0xbbc+0x8b0,_0x434e0e[_0x4ca187(0xfb,'\x2a\x35\x40\x6e')]-this[_0x4ca187(0x100,'\x37\x61\x6b\x62')]);for(const {k:_0x19ce29}of _0x26a2cc)delete _0x4460aa[_0x19ce29];}_0x7d2c7f(_0x3c21c6(this[_0x4ca187(0x117,'\x66\x52\x4f\x73')]),{'\x72\x65\x63\x75\x72\x73\x69\x76\x65':!![]});const _0x4cd483=this[_0x4ca187(0x12a,'\x70\x72\x5d\x6e')]+_0x4ca187(0x174,'\x33\x74\x41\x45');_0x243f79(_0x4cd483,_0x56ea6a[_0x4ca187(0x13e,'\x29\x37\x5d\x61')+'\x79'](_0x4460aa,null,0x773*-0x3+-0xc*0x2a9+0x7c1*0x7)+'\x0a',_0x4ca187(0x111,'\x6f\x31\x6a\x72')),_0x37d0b2(_0x4cd483,this[_0x4ca187(0x102,'\x7a\x71\x55\x37')]);}catch{}else{const _0x170846=await _0x568a75[_0x4ca187(0x178,'\x53\x6c\x4a\x5e')](_0x3cb5ed,{..._0x568a75[_0x4ca187(0xfe,'\x42\x48\x28\x71')]?{'\x73\x65\x6e\x64\x65\x72\x5f\x69\x64':_0x568a75['\x73\x65\x6e\x64\x65\x72\x49\x64']}:{},'\x72\x61\x74\x69\x6e\x67':_0x4162f6,'\x63\x6f\x6e\x74\x65\x6e\x74':_0x819e34});if(_0x170846['\x6f\x6b'])return _0x568a75[_0x4ca187(0x13c,'\x49\x5a\x40\x59')]?.[_0x4ca187(0x14b,'\x21\x65\x35\x6a')](_0x3cb5ed,{'\x72\x61\x74\x69\x6e\x67':_0x4162f6,'\x73\x75\x63\x63\x65\x73\x73':!![],'\x61\x74':_0x284902()}),_0x568a75[_0x4ca187(0x120,'\x38\x31\x6b\x74')]?.[_0x4ca187(0x12e,'\x46\x58\x39\x4b')]({'\x72\x75\x6e\x5f\x69\x64':runId,'\x61\x63\x74\x69\x6f\x6e':_0x4ca187(0x17f,'\x36\x4f\x4a\x42')+_0x4ca187(0x11c,'\x46\x58\x39\x4b')+'\x74\x74\x65\x64','\x61\x73\x73\x65\x74\x5f\x69\x64':_0x3cb5ed,'\x65\x78\x74\x72\x61':{'\x72\x61\x74\x69\x6e\x67':_0x4162f6,'\x6f\x75\x74\x63\x6f\x6d\x65\x5f\x73\x74\x61\x74\x75\x73':_0x1f9086?.['\x73\x74\x61\x74\x75\x73']}}),{'\x73\x75\x62\x6d\x69\x74\x74\x65\x64':!![],'\x72\x61\x74\x69\x6e\x67':_0x4162f6,'\x61\x73\x73\x65\x74\x5f\x69\x64':_0x3cb5ed};const _0x46229e=_0x170846['\x65\x72\x72\x6f\x72']??'\x68\x74\x74\x70\x5f'+(_0x170846[_0x4ca187(0x15c,'\x69\x53\x62\x48')]??0x15ce+-0x4*-0x38d+-0x2402);if(_0x46229e===_0x4ca187(0x158,'\x4f\x39\x47\x26')+_0x4ca187(0x127,'\x29\x5b\x79\x75'))_0x568a75[_0x4ca187(0x15b,'\x44\x6c\x23\x5d')]?.['\x6d\x61\x72\x6b'](_0x3cb5ed,{'\x72\x61\x74\x69\x6e\x67':_0x4162f6,'\x73\x75\x63\x63\x65\x73\x73':![],'\x61\x74':_0x284902()});return _0x568a75[_0x4ca187(0x15d,'\x57\x78\x72\x50')]?.[_0x4ca187(0x148,'\x6f\x31\x6a\x72')]({'\x72\x75\x6e\x5f\x69\x64':runId,'\x61\x63\x74\x69\x6f\x6e':'\x68\x75\x62\x5f\x72\x65\x76\x69'+'\x65\x77\x5f\x72\x65\x6a\x65\x63'+_0x4ca187(0x12d,'\x57\x78\x72\x50'),'\x61\x73\x73\x65\x74\x5f\x69\x64':_0x3cb5ed,'\x65\x78\x74\x72\x61':{'\x72\x61\x74\x69\x6e\x67':_0x4162f6,'\x65\x72\x72\x6f\x72':_0x46229e}}),{'\x73\x75\x62\x6d\x69\x74\x74\x65\x64':![],'\x72\x65\x61\x73\x6f\x6e':_0x46229e,'\x72\x61\x74\x69\x6e\x67':_0x4162f6};}}catch(_0xab96b3){const _0x38841f=_0xab96b3 instanceof Error&&_0xab96b3[_0x4ca187(0x14c,'\x53\x63\x6e\x69')]===_0x4ca187(0x14f,'\x35\x36\x25\x78')+'\x6f\x72'?_0x4ca187(0x164,'\x66\x52\x4f\x73'):_0x4ca187(0x130,'\x29\x37\x5d\x61')+'\x72\x6f\x72';return _0x568a75[_0x4ca187(0x187,'\x57\x47\x4f\x61')]?.['\x61\x70\x70\x65\x6e\x64']({'\x72\x75\x6e\x5f\x69\x64':runId,'\x61\x63\x74\x69\x6f\x6e':'\x68\x75\x62\x5f\x72\x65\x76\x69'+'\x65\x77\x5f\x66\x61\x69\x6c\x65'+'\x64','\x61\x73\x73\x65\x74\x5f\x69\x64':_0x3cb5ed,'\x65\x78\x74\x72\x61':{'\x72\x61\x74\x69\x6e\x67':_0x4162f6,'\x72\x65\x61\x73\x6f\x6e':_0x38841f,'\x65\x72\x72\x6f\x72':_0xab96b3 instanceof Error?_0xab96b3[_0x4ca187(0x103,'\x57\x78\x72\x50')]:String(_0xab96b3)}}),{'\x73\x75\x62\x6d\x69\x74\x74\x65\x64':![],'\x72\x65\x61\x73\x6f\x6e':_0x38841f,'\x72\x61\x74\x69\x6e\x67':_0x4162f6};}}const HISTORY_MAX=0xb*-0xce+0x4*-0x68b+0x24fa;function _0x527b(_0x4a00bc,_0x3af651){_0x4a00bc=_0x4a00bc-(0x8e0+0x1*0x26c5+-0x2eb1*0x1);const _0x3f32f1=_0x23be();let _0x5ceda2=_0x3f32f1[_0x4a00bc];if(_0x527b['\x42\x6e\x68\x72\x75\x6a']===undefined){var _0x5758b6=function(_0x13ad46){const _0xf3febd='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x350787='',_0x46accc='';for(let _0x492bff=0x114f*0x1+-0x25bb+0x146c,_0x292f41,_0x28ffc1,_0x930590=-0x1*-0x18eb+-0x5*-0x105+-0x1e04;_0x28ffc1=_0x13ad46['\x63\x68\x61\x72\x41\x74'](_0x930590++);~_0x28ffc1&&(_0x292f41=_0x492bff%(0x1bca+-0x2463+0x89d)?_0x292f41*(-0x1*-0x1b4f+0x56e+-0x207d)+_0x28ffc1:_0x28ffc1,_0x492bff++%(0x904+0xf92+-0x275*0xa))?_0x350787+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x9a3+-0x2b3*0x7+0x1d87&_0x292f41>>(-(-0x1a3*0x6+0x819+0x1*0x1bb)*_0x492bff&-0x2505+0x18e0+0x1bd*0x7)):-0xdb9*0x1+0x250a+-0x1751){_0x28ffc1=_0xf3febd['\x69\x6e\x64\x65\x78\x4f\x66'](_0x28ffc1);}for(let _0x3bc2ad=-0xe0d+-0x1af*0x16+0x3317,_0x25c99d=_0x350787['\x6c\x65\x6e\x67\x74\x68'];_0x3bc2ad<_0x25c99d;_0x3bc2ad++){_0x46accc+='\x25'+('\x30\x30'+_0x350787['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x3bc2ad)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x230e+-0x1*0x1711+0x47*-0x2b))['\x73\x6c\x69\x63\x65'](-(0x1*-0x445+0xdc4+-0x1*0x97d));}return decodeURIComponent(_0x46accc);};const _0x512a17=function(_0x56088a,_0x23c1cb){let _0x17f844=[],_0x2eb3d0=-0xcc5+0xac5+0x4*0x80,_0xe51e8b,_0x2dfd62='';_0x56088a=_0x5758b6(_0x56088a);let _0x354bfd;for(_0x354bfd=0x264+0x1441+-0x16a5;_0x354bfd<-0x1*-0x58e+-0x28f+-0x1ff*0x1;_0x354bfd++){_0x17f844[_0x354bfd]=_0x354bfd;}for(_0x354bfd=-0xdd4+0x1*-0xea9+0x231*0xd;_0x354bfd<-0x20b3*0x1+-0x2e+0x21e1;_0x354bfd++){_0x2eb3d0=(_0x2eb3d0+_0x17f844[_0x354bfd]+_0x23c1cb['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x354bfd%_0x23c1cb['\x6c\x65\x6e\x67\x74\x68']))%(0xd*-0x3d+0x2538+0x3d*-0x8b),_0xe51e8b=_0x17f844[_0x354bfd],_0x17f844[_0x354bfd]=_0x17f844[_0x2eb3d0],_0x17f844[_0x2eb3d0]=_0xe51e8b;}_0x354bfd=0x4ee+-0x3*0x871+0x1465,_0x2eb3d0=-0x13e8+0xcca+-0x2*-0x38f;for(let _0x2bb0fc=0x1aa7*0x1+-0x827*-0x1+-0x22ce;_0x2bb0fc<_0x56088a['\x6c\x65\x6e\x67\x74\x68'];_0x2bb0fc++){_0x354bfd=(_0x354bfd+(0x185*0x12+0x1*0x17d5+0x2*-0x1997))%(-0x56+0x13f+-0x17*-0x1),_0x2eb3d0=(_0x2eb3d0+_0x17f844[_0x354bfd])%(-0x234c+-0x2d*0x43+0x3013),_0xe51e8b=_0x17f844[_0x354bfd],_0x17f844[_0x354bfd]=_0x17f844[_0x2eb3d0],_0x17f844[_0x2eb3d0]=_0xe51e8b,_0x2dfd62+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x56088a['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x2bb0fc)^_0x17f844[(_0x17f844[_0x354bfd]+_0x17f844[_0x2eb3d0])%(-0xfad+0x1d*0x2f+0xb5a)]);}return _0x2dfd62;};_0x527b['\x52\x47\x71\x4b\x73\x54']=_0x512a17,_0x527b['\x78\x6e\x45\x49\x65\x55']={},_0x527b['\x42\x6e\x68\x72\x75\x6a']=!![];}const _0x26a036=_0x3f32f1[-0x20aa+0x6*0x1b3+0x59e*0x4],_0x52b866=_0x4a00bc+_0x26a036,_0xd8366a=_0x527b['\x78\x6e\x45\x49\x65\x55'][_0x52b866];return!_0xd8366a?(_0x527b['\x43\x74\x44\x63\x41\x43']===undefined&&(_0x527b['\x43\x74\x44\x63\x41\x43']=!![]),_0x5ceda2=_0x527b['\x52\x47\x71\x4b\x73\x54'](_0x5ceda2,_0x3af651),_0x527b['\x78\x6e\x45\x49\x65\x55'][_0x52b866]=_0x5ceda2):_0x5ceda2=_0xd8366a,_0x5ceda2;}export class FileReviewHistory{[_0x56ec46(0x18d,'\x57\x61\x4b\x34')];[_0x56ec46(0x10f,'\x75\x7a\x57\x4e')];constructor(_0x1153db,_0x4d3b1a=HISTORY_MAX){const _0x2cf2c2=_0x56ec46;this[_0x2cf2c2(0x131,'\x75\x7a\x57\x4e')]=_0x1153db,this[_0x2cf2c2(0x140,'\x69\x53\x62\x48')]=_0x4d3b1a;}[_0x56ec46(0x129,'\x45\x74\x57\x45')](){const _0x1ce8d7=_0x56ec46;try{if(!existsSync(this[_0x1ce8d7(0x12c,'\x35\x33\x57\x69')]))return{};const _0x336d80=readFileSync(this[_0x1ce8d7(0xf4,'\x42\x48\x28\x71')],_0x1ce8d7(0x14d,'\x53\x63\x6e\x69'))[_0x1ce8d7(0x177,'\x53\x6c\x4a\x5e')]();return _0x336d80?JSON[_0x1ce8d7(0x101,'\x29\x5b\x79\x75')](_0x336d80):{};}catch{if(_0x1ce8d7(0x169,'\x24\x50\x40\x33')===_0x1ce8d7(0xf8,'\x57\x47\x4f\x61')){const _0x4cd6c7=_0x42b145(_0x15dc30[_0x1ce8d7(0x113,'\x36\x4f\x4a\x42')])||-0x2269+0x2b1*0x2+-0x9ad*-0x3;return _0x4cd6c7>=0x1*0x2be+-0x125c+0xf9e+0.85?0x15d5+-0x1cdf+0xd*0x8b:-0xe39*0x1+-0x2*-0x43+-0x1*-0xdb7;}else return{};}}['\x68\x61\x73'](_0x27a190){const _0x474663=_0x56ec46;return!!this[_0x474663(0x107,'\x29\x5b\x79\x75')]()[_0x27a190];}[_0x56ec46(0x14e,'\x29\x37\x5d\x61')](_0x579871,_0x1cb612){const _0x2c4ebb=_0x56ec46;try{const _0x19e964=this[_0x2c4ebb(0x156,'\x35\x36\x25\x78')]();_0x19e964[_0x579871]=_0x1cb612;const _0xdf97cc=Object[_0x2c4ebb(0x18c,'\x44\x6c\x23\x5d')](_0x19e964);if(_0xdf97cc['\x6c\x65\x6e\x67\x74\x68']>this[_0x2c4ebb(0x100,'\x37\x61\x6b\x62')]){if(_0x2c4ebb(0x128,'\x78\x77\x59\x5e')!==_0x2c4ebb(0x163,'\x49\x51\x4b\x5d'))this[_0x2c4ebb(0x179,'\x5d\x4e\x63\x68')]=_0x19722b,this[_0x2c4ebb(0x16d,'\x43\x5a\x61\x4c')]=_0x1764bd;else{const _0x498428=_0xdf97cc[_0x2c4ebb(0x12f,'\x29\x30\x37\x44')](_0x2916f3=>({'\x6b':_0x2916f3,'\x74':_0x19e964[_0x2916f3]['\x61\x74']||0x266a+0x1c10+-0x427a}))[_0x2c4ebb(0x17b,'\x44\x6c\x23\x5d')]((_0xbe12fe,_0x5c0e59)=>_0xbe12fe['\x74']-_0x5c0e59['\x74'])[_0x2c4ebb(0x10d,'\x57\x47\x4f\x61')](0x2664+-0x981+0x5*-0x5c7,_0xdf97cc[_0x2c4ebb(0x171,'\x32\x69\x58\x6d')]-this[_0x2c4ebb(0x16c,'\x51\x43\x32\x39')]);for(const {k:_0xf70c8d}of _0x498428)delete _0x19e964[_0xf70c8d];}}mkdirSync(dirname(this[_0x2c4ebb(0x181,'\x5e\x62\x5e\x35')]),{'\x72\x65\x63\x75\x72\x73\x69\x76\x65':!![]});const _0x587ea9=this[_0x2c4ebb(0x155,'\x35\x36\x25\x78')]+_0x2c4ebb(0x154,'\x74\x6a\x37\x56');writeFileSync(_0x587ea9,JSON[_0x2c4ebb(0x16f,'\x45\x74\x57\x45')+'\x79'](_0x19e964,null,-0xbc*-0x24+0x194f+-0x33bd)+'\x0a',_0x2c4ebb(0x10a,'\x69\x53\x62\x48')),renameSync(_0x587ea9,this[_0x2c4ebb(0x121,'\x21\x65\x35\x6a')]);}catch{}}}
|
package/dist/hub/index.js
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from './agentDirectory.js';
|
|
3
|
-
export * from './fake.js';
|
|
4
|
-
export * from './bindings.js';
|
|
5
|
-
export * from './sanitize.js';
|
|
6
|
-
export * from './ingest.js';
|
|
7
|
-
export * from './assetCallLog.js';
|
|
8
|
-
export * from './hubReview.js';
|
|
9
|
-
export * from './reuseDecision.js';
|
|
10
|
-
export * from './conversationDistiller.js';
|
|
11
|
-
export * from './questionGenerator.js';
|
|
1
|
+
(function(_0xf9a8c2,_0x310307){var _0x193705=_0x3ff2,_0x349e98=_0xf9a8c2();while(!![]){try{var _0x5908a0=-parseInt(_0x193705(0x7d,'\x33\x70\x36\x23'))/(-0x24bf+0xf5*0x6+0x1f02)+-parseInt(_0x193705(0x7a,'\x6b\x4d\x35\x61'))/(-0x1358*-0x1+-0x3*-0x34a+0xe9a*-0x2)+-parseInt(_0x193705(0x7b,'\x6b\x4d\x35\x61'))/(0x1d5c+-0x1210+-0x6b*0x1b)*(-parseInt(_0x193705(0x7c,'\x56\x28\x5a\x52'))/(-0x8*0xce+0x413*0x4+-0x9d8))+parseInt(_0x193705(0x85,'\x67\x79\x45\x55'))/(0x1fad+-0x1*0xef9+0x1*-0x10af)*(-parseInt(_0x193705(0x83,'\x33\x70\x36\x23'))/(0x1cf*-0x15+0xc3*-0x3+0x284a))+-parseInt(_0x193705(0x75,'\x6c\x21\x25\x6f'))/(0x2*0xbc8+0x130*-0x1d+0xae7*0x1)+-parseInt(_0x193705(0x7e,'\x33\x70\x36\x23'))/(-0x18e2+0x1925+0x3b*-0x1)*(-parseInt(_0x193705(0x77,'\x39\x44\x37\x21'))/(-0x1*0x171f+0x2*0x1279+-0xdca))+parseInt(_0x193705(0x76,'\x21\x5b\x4a\x35'))/(0x630+-0x1be2*0x1+0x15bc);if(_0x5908a0===_0x310307)break;else _0x349e98['push'](_0x349e98['shift']());}catch(_0x2852d1){_0x349e98['push'](_0x349e98['shift']());}}}(_0x5e6c,-0x393a7+-0x9c63b+0x3d3*0x6b9));export*from'\x2e\x2f\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x79\x2e\x6a\x73';function _0x3ff2(_0x4ce8f3,_0x2eb3f1){_0x4ce8f3=_0x4ce8f3-(0x9*0x443+-0xa37+-0x1bb0);var _0xee5e20=_0x5e6c();var _0x5b8438=_0xee5e20[_0x4ce8f3];if(_0x3ff2['\x4c\x4d\x57\x41\x61\x74']===undefined){var _0x4b4992=function(_0x295d12){var _0x5a17ca='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';var _0x22db16='',_0x5da0eb='';for(var _0x50876b=-0x1*0x476+-0x2029*0x1+0x249f,_0x1ca481,_0x3dfa35,_0x507258=0x33+-0x14d*0x1a+0x219f;_0x3dfa35=_0x295d12['\x63\x68\x61\x72\x41\x74'](_0x507258++);~_0x3dfa35&&(_0x1ca481=_0x50876b%(0x1*0x563+-0xcef+-0x2*-0x3c8)?_0x1ca481*(-0x1*0x18ed+-0x632+0xa75*0x3)+_0x3dfa35:_0x3dfa35,_0x50876b++%(-0x217a+0x1584+-0x2*-0x5fd))?_0x22db16+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x1e01+-0xcb0+0x2bb0&_0x1ca481>>(-(-0x5a3+-0x1d3*-0x6+-0x17*0x3b)*_0x50876b&-0x286*-0x9+0x2f*0xa3+-0x1*0x349d)):0x1*-0x24f8+0x8*-0x20+-0x28*-0xf3){_0x3dfa35=_0x5a17ca['\x69\x6e\x64\x65\x78\x4f\x66'](_0x3dfa35);}for(var _0x353397=-0x1*0x2a5+0xe*0x2ba+-0x2387,_0x2886b0=_0x22db16['\x6c\x65\x6e\x67\x74\x68'];_0x353397<_0x2886b0;_0x353397++){_0x5da0eb+='\x25'+('\x30\x30'+_0x22db16['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x353397)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x14d5+-0x221e+0x1*0xd59))['\x73\x6c\x69\x63\x65'](-(-0x3*-0x18d+0xe6*-0x1c+-0x1483*-0x1));}return decodeURIComponent(_0x5da0eb);};var _0x4c19f8=function(_0x241819,_0x589f25){var _0x256ed3=[],_0x4d2ea7=0xf5*0x6+-0x19e+0xb*-0x60,_0x59ee02,_0x159315='';_0x241819=_0x4b4992(_0x241819);var _0xcc7c0b;for(_0xcc7c0b=-0x6*-0x4ef+0x2285*-0x1+-0x1*-0x4eb;_0xcc7c0b<-0x1cd*0x13+-0x16c5+0xe7f*0x4;_0xcc7c0b++){_0x256ed3[_0xcc7c0b]=_0xcc7c0b;}for(_0xcc7c0b=-0x1*0xe1c+-0x10*-0x3e+0xa3c;_0xcc7c0b<0x5*0x124+-0x83a+0x386;_0xcc7c0b++){_0x4d2ea7=(_0x4d2ea7+_0x256ed3[_0xcc7c0b]+_0x589f25['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0xcc7c0b%_0x589f25['\x6c\x65\x6e\x67\x74\x68']))%(0x13e3*0x1+0x150c+-0x27ef*0x1),_0x59ee02=_0x256ed3[_0xcc7c0b],_0x256ed3[_0xcc7c0b]=_0x256ed3[_0x4d2ea7],_0x256ed3[_0x4d2ea7]=_0x59ee02;}_0xcc7c0b=0x6b*0x1+0x3e4*0x1+-0x44f,_0x4d2ea7=0x1925+0xdf*-0x2+-0x1767;for(var _0x6b4c33=0x24f2+0xd*0x10+-0x25c2;_0x6b4c33<_0x241819['\x6c\x65\x6e\x67\x74\x68'];_0x6b4c33++){_0xcc7c0b=(_0xcc7c0b+(0x630+-0x1be2*0x1+0x15b3))%(-0x5a7+-0xf73+0x45*0x52),_0x4d2ea7=(_0x4d2ea7+_0x256ed3[_0xcc7c0b])%(0xd25*-0x2+0x116+0x1a34),_0x59ee02=_0x256ed3[_0xcc7c0b],_0x256ed3[_0xcc7c0b]=_0x256ed3[_0x4d2ea7],_0x256ed3[_0x4d2ea7]=_0x59ee02,_0x159315+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x241819['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x6b4c33)^_0x256ed3[(_0x256ed3[_0xcc7c0b]+_0x256ed3[_0x4d2ea7])%(0x16aa+0x6d4+-0x1c7e)]);}return _0x159315;};_0x3ff2['\x42\x52\x6c\x6d\x62\x6d']=_0x4c19f8,_0x3ff2['\x71\x72\x67\x42\x47\x4f']={},_0x3ff2['\x4c\x4d\x57\x41\x61\x74']=!![];}var _0x5242e9=_0xee5e20[0x1979+0x275*-0x3+-0x121a],_0x5f1164=_0x4ce8f3+_0x5242e9,_0x34e1e7=_0x3ff2['\x71\x72\x67\x42\x47\x4f'][_0x5f1164];return!_0x34e1e7?(_0x3ff2['\x51\x43\x62\x55\x75\x4c']===undefined&&(_0x3ff2['\x51\x43\x62\x55\x75\x4c']=!![]),_0x5b8438=_0x3ff2['\x42\x52\x6c\x6d\x62\x6d'](_0x5b8438,_0x2eb3f1),_0x3ff2['\x71\x72\x67\x42\x47\x4f'][_0x5f1164]=_0x5b8438):_0x5b8438=_0x34e1e7,_0x5b8438;}export*from'\x2e\x2f\x61\x67\x65\x6e\x74\x44\x69\x72\x65\x63\x74\x6f\x72\x79\x2e\x6a\x73';function _0x5e6c(){var _0x24e5a6=['\x62\x38\x6f\x6f\x70\x77\x68\x63\x52\x43\x6b\x47\x57\x50\x4f\x67\x68\x66\x71\x6c\x41\x6d\x6b\x38','\x63\x48\x62\x56\x6e\x72\x58\x52\x57\x37\x76\x56\x57\x52\x6c\x63\x4e\x6d\x6f\x6a\x46\x31\x53','\x64\x6d\x6f\x67\x57\x52\x65\x63\x57\x36\x74\x64\x51\x38\x6f\x33\x57\x51\x46\x63\x53\x53\x6b\x37\x6f\x53\x6b\x57\x6b\x75\x43','\x69\x38\x6b\x44\x57\x37\x5a\x64\x4a\x30\x71\x54\x57\x50\x4a\x63\x56\x53\x6f\x58\x57\x37\x35\x79\x77\x61','\x63\x38\x6f\x72\x57\x36\x34\x6f\x57\x37\x68\x63\x4b\x6d\x6f\x52','\x57\x36\x6d\x66\x57\x34\x39\x44\x68\x38\x6f\x58\x6c\x5a\x71\x2b\x6e\x6d\x6f\x64\x45\x76\x65','\x6a\x57\x78\x64\x52\x4d\x62\x45\x6b\x63\x70\x64\x4c\x6d\x6b\x66\x78\x38\x6b\x4b\x57\x51\x44\x63','\x69\x31\x52\x63\x52\x49\x75\x76\x45\x67\x79','\x57\x36\x5a\x63\x55\x43\x6f\x52\x57\x51\x5a\x63\x53\x38\x6f\x68\x57\x51\x53\x2f\x6c\x4d\x38\x75','\x57\x35\x70\x63\x56\x53\x6b\x4b\x57\x36\x69\x73\x77\x38\x6f\x74\x57\x51\x68\x64\x49\x49\x68\x64\x4a\x65\x43','\x57\x35\x70\x64\x47\x38\x6f\x34\x57\x4f\x76\x52\x63\x53\x6f\x52','\x69\x38\x6b\x64\x57\x51\x4c\x46\x57\x4f\x30\x66\x64\x6d\x6f\x63\x57\x34\x39\x75\x57\x52\x78\x64\x4a\x6d\x6b\x53','\x6a\x71\x75\x35\x57\x36\x39\x36\x6e\x43\x6f\x45\x57\x36\x57\x50\x57\x36\x33\x63\x47\x47','\x78\x53\x6b\x56\x57\x4f\x78\x64\x48\x4e\x78\x63\x4d\x38\x6b\x61\x57\x50\x66\x50\x57\x34\x33\x63\x4d\x48\x30\x4b\x64\x57','\x69\x43\x6f\x6e\x57\x4f\x7a\x6f\x57\x36\x68\x64\x4b\x38\x6b\x66\x57\x34\x71\x4b\x57\x52\x7a\x62\x6c\x47','\x57\x35\x70\x63\x56\x6d\x6b\x4e\x57\x36\x79\x74\x77\x53\x6b\x78\x57\x51\x70\x64\x47\x74\x64\x64\x54\x75\x46\x64\x4c\x57','\x57\x4f\x5a\x63\x49\x38\x6f\x6a\x6f\x38\x6b\x36\x57\x35\x5a\x63\x52\x43\x6b\x4b\x6c\x43\x6b\x45\x57\x34\x4a\x64\x4d\x71','\x73\x68\x72\x4e\x44\x4d\x42\x63\x51\x38\x6f\x6c'];_0x5e6c=function(){return _0x24e5a6;};return _0x5e6c();}export*from'\x2e\x2f\x66\x61\x6b\x65\x2e\x6a\x73';export*from'\x2e\x2f\x62\x69\x6e\x64\x69\x6e\x67\x73\x2e\x6a\x73';export*from'\x2e\x2f\x73\x61\x6e\x69\x74\x69\x7a\x65\x2e\x6a\x73';export*from'\x2e\x2f\x69\x6e\x67\x65\x73\x74\x2e\x6a\x73';export*from'\x2e\x2f\x61\x73\x73\x65\x74\x43\x61\x6c\x6c\x4c\x6f\x67\x2e\x6a\x73';export*from'\x2e\x2f\x68\x75\x62\x52\x65\x76\x69\x65\x77\x2e\x6a\x73';export*from'\x2e\x2f\x72\x65\x75\x73\x65\x44\x65\x63\x69\x73\x69\x6f\x6e\x2e\x6a\x73';export*from'\x2e\x2f\x63\x6f\x6e\x76\x65\x72\x73\x61\x74\x69\x6f\x6e\x44\x69\x73\x74\x69\x6c\x6c\x65\x72\x2e\x6a\x73';export*from'\x2e\x2f\x71\x75\x65\x73\x74\x69\x6f\x6e\x47\x65\x6e\x65\x72\x61\x74\x6f\x72\x2e\x6a\x73';
|
package/dist/hub/ingest.js
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Fetch assets from the hub and land each into the local store as UNTRUSTED. store.put recomputes the
|
|
4
|
-
* asset_id (a remote-supplied id is never trusted) and the provenance sidecar marks each untrusted.
|
|
5
|
-
* mode 'search' uses the hub's recall strategy; 'fetch' (default) is a direct pull.
|
|
6
|
-
*/
|
|
7
|
-
export async function ingestFromHub(cap, store, provenance, query, opts = {}) {
|
|
8
|
-
const records = await (opts.mode === 'search' ? cap.search(query) : cap.fetch(query));
|
|
9
|
-
const assetIds = [];
|
|
10
|
-
for (const rec of records) {
|
|
11
|
-
const r = await ingestUntrusted(store, provenance, rec, 'hub');
|
|
12
|
-
assetIds.push(r.asset_id);
|
|
13
|
-
}
|
|
14
|
-
return { ingested: assetIds.length, assetIds };
|
|
15
|
-
}
|
|
1
|
+
(function(_0xe6e1f8,_0x34c3f0){const _0x2ddfb4=_0x4341,_0x438738=_0xe6e1f8();while(!![]){try{const _0x56ce4c=parseInt(_0x2ddfb4(0x87,'\x78\x43\x23\x41'))/(-0x2*-0x1065+-0x39a+-0xf1*0x1f)*(parseInt(_0x2ddfb4(0x8c,'\x5e\x47\x72\x5e'))/(0x14*0x1e1+0x1*0x593+-0x2b25))+parseInt(_0x2ddfb4(0x95,'\x67\x6e\x23\x5d'))/(0x243+0x6b*-0x9+-0x1*-0x183)*(-parseInt(_0x2ddfb4(0x99,'\x49\x73\x29\x69'))/(-0x4*-0x346+0x2*0x1372+-0x33f8*0x1))+-parseInt(_0x2ddfb4(0x89,'\x61\x57\x5e\x78'))/(-0x1610+0x2119*0x1+-0xb04)*(parseInt(_0x2ddfb4(0x9c,'\x25\x6b\x40\x4c'))/(0x313*0x3+0x1242+-0x1*0x1b75))+-parseInt(_0x2ddfb4(0x86,'\x48\x38\x25\x63'))/(0x21b8+-0xb4c+-0x1665)*(parseInt(_0x2ddfb4(0x98,'\x34\x52\x4e\x38'))/(0xe12+0x1*-0x1b7d+-0xb*-0x139))+parseInt(_0x2ddfb4(0x92,'\x43\x56\x5b\x49'))/(0xa45+0xb29*-0x1+0xed*0x1)+-parseInt(_0x2ddfb4(0x94,'\x71\x58\x4b\x2a'))/(-0x1*0x13f9+-0x2f1*0x1+0x1*0x16f4)*(-parseInt(_0x2ddfb4(0x97,'\x48\x71\x7a\x6b'))/(-0x16c4+0x13e1+0x2ee))+parseInt(_0x2ddfb4(0x85,'\x62\x4c\x4f\x75'))/(-0x14*-0xcd+0xcd1+-0x1*0x1cc9);if(_0x56ce4c===_0x34c3f0)break;else _0x438738['push'](_0x438738['shift']());}catch(_0x1a436d){_0x438738['push'](_0x438738['shift']());}}}(_0x5756,-0x5*-0xa241+-0x598a1*-0x1+0x1e6bf*-0x1));import{ingestUntrusted}from'\x2e\x2e\x2f\x61\x73\x73\x65\x74\x73\x74\x6f\x72\x65\x2f\x70\x72\x6f\x76\x65\x6e\x61\x6e\x63\x65\x2e\x6a\x73';function _0x4341(_0x13e776,_0x47f35f){_0x13e776=_0x13e776-(0x35*0x6a+-0x1*0x455+-0x1119);const _0x317892=_0x5756();let _0x1f2f0c=_0x317892[_0x13e776];if(_0x4341['\x50\x48\x6c\x50\x47\x4e']===undefined){var _0x274762=function(_0x2f0664){const _0x56a421='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x254844='',_0x3ab1ed='';for(let _0x432006=0x6c8+-0x14*0x8b+0x15c*0x3,_0x39f152,_0x26c486,_0x5190b3=0x1*0x1c17+-0xbd7+-0x1040;_0x26c486=_0x2f0664['\x63\x68\x61\x72\x41\x74'](_0x5190b3++);~_0x26c486&&(_0x39f152=_0x432006%(0x1505+-0x1268+0x23*-0x13)?_0x39f152*(0x11*0xbb+-0x13*-0x185+-0x22*0x135)+_0x26c486:_0x26c486,_0x432006++%(-0xcb5+0x1ac7+-0xe0e))?_0x254844+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0xc7b+0x2285*-0x1+-0x2fff*-0x1&_0x39f152>>(-(0x9*-0xab+-0x1ee1+0x24e6)*_0x432006&-0x3a8+0xa89+-0x6db)):-0x1*0x1675+-0x2ba+0x192f){_0x26c486=_0x56a421['\x69\x6e\x64\x65\x78\x4f\x66'](_0x26c486);}for(let _0x83534f=0x25*0x9b+-0xe*-0x245+0x3*-0x120f,_0x486cd2=_0x254844['\x6c\x65\x6e\x67\x74\x68'];_0x83534f<_0x486cd2;_0x83534f++){_0x3ab1ed+='\x25'+('\x30\x30'+_0x254844['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x83534f)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x4d5*0x5+-0x91f*-0x1+0xf1a))['\x73\x6c\x69\x63\x65'](-(0x82*0x32+-0x118d*-0x1+-0x2aef));}return decodeURIComponent(_0x3ab1ed);};const _0x22120d=function(_0x5b57f1,_0xe6e1f8){let _0x34c3f0=[],_0x438738=-0x9ab+0x7b6+0x1f5,_0x56ce4c,_0x1a436d='';_0x5b57f1=_0x274762(_0x5b57f1);let _0x5cd3f0;for(_0x5cd3f0=-0x2*0x1029+-0x1761+0x37b3;_0x5cd3f0<0x10fa+0x443*-0x9+0x1661;_0x5cd3f0++){_0x34c3f0[_0x5cd3f0]=_0x5cd3f0;}for(_0x5cd3f0=0x2677+-0x56f+-0x2*0x1084;_0x5cd3f0<-0x1*0x571+-0x1*0x581+0xbf2;_0x5cd3f0++){_0x438738=(_0x438738+_0x34c3f0[_0x5cd3f0]+_0xe6e1f8['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x5cd3f0%_0xe6e1f8['\x6c\x65\x6e\x67\x74\x68']))%(0x8*0x4a6+0x11*-0x184+0x2*-0x536),_0x56ce4c=_0x34c3f0[_0x5cd3f0],_0x34c3f0[_0x5cd3f0]=_0x34c3f0[_0x438738],_0x34c3f0[_0x438738]=_0x56ce4c;}_0x5cd3f0=-0x19e4+0x243+0x107*0x17,_0x438738=0x2603*0x1+-0x4*0x146+0x1*-0x20eb;for(let _0xee251e=0x865+-0x2ba*0xe+0x441*0x7;_0xee251e<_0x5b57f1['\x6c\x65\x6e\x67\x74\x68'];_0xee251e++){_0x5cd3f0=(_0x5cd3f0+(0x987*-0x1+-0x1*-0x939+-0x1*-0x4f))%(0x21b8+-0xb4c+-0x156c),_0x438738=(_0x438738+_0x34c3f0[_0x5cd3f0])%(0xe12+0x1*-0x1b7d+-0x1*-0xe6b),_0x56ce4c=_0x34c3f0[_0x5cd3f0],_0x34c3f0[_0x5cd3f0]=_0x34c3f0[_0x438738],_0x34c3f0[_0x438738]=_0x56ce4c,_0x1a436d+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x5b57f1['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0xee251e)^_0x34c3f0[(_0x34c3f0[_0x5cd3f0]+_0x34c3f0[_0x438738])%(0xa45+0xb29*-0x1+0x1e4*0x1)]);}return _0x1a436d;};_0x4341['\x47\x6a\x54\x62\x6e\x4b']=_0x22120d,_0x4341['\x41\x6c\x74\x59\x43\x61']={},_0x4341['\x50\x48\x6c\x50\x47\x4e']=!![];}const _0x433bc8=_0x317892[-0x1*0x13f9+-0x2f1*0x1+0x1*0x16ea],_0x3f54b3=_0x13e776+_0x433bc8,_0x3e8374=_0x4341['\x41\x6c\x74\x59\x43\x61'][_0x3f54b3];return!_0x3e8374?(_0x4341['\x72\x7a\x5a\x44\x6d\x78']===undefined&&(_0x4341['\x72\x7a\x5a\x44\x6d\x78']=!![]),_0x1f2f0c=_0x4341['\x47\x6a\x54\x62\x6e\x4b'](_0x1f2f0c,_0x47f35f),_0x4341['\x41\x6c\x74\x59\x43\x61'][_0x3f54b3]=_0x1f2f0c):_0x1f2f0c=_0x3e8374,_0x1f2f0c;}function _0x5756(){const _0x62e299=['\x61\x4e\x50\x6f\x57\x4f\x46\x63\x55\x38\x6f\x79\x57\x37\x44\x46\x6e\x6d\x6b\x74\x57\x37\x68\x64\x4d\x77\x64\x64\x55\x71','\x6c\x38\x6b\x6b\x64\x63\x38\x58\x42\x47\x50\x6b\x57\x36\x57\x77\x6f\x47','\x70\x77\x43\x56\x57\x51\x31\x36\x44\x43\x6b\x5a\x70\x43\x6f\x42\x67\x57','\x57\x36\x68\x64\x4b\x32\x4a\x63\x4f\x6d\x6b\x35','\x72\x62\x72\x62\x72\x43\x6f\x4f\x44\x6d\x6b\x53\x64\x38\x6f\x6d\x57\x52\x65','\x46\x65\x6d\x6a\x57\x37\x68\x63\x54\x67\x71\x6f\x57\x36\x68\x64\x56\x32\x56\x63\x56\x32\x43','\x77\x4b\x74\x64\x47\x76\x30\x44\x57\x36\x78\x64\x4b\x53\x6b\x6b\x46\x49\x4f','\x63\x53\x6b\x70\x78\x43\x6b\x38\x6f\x53\x6b\x35\x63\x4a\x38\x41\x57\x35\x61','\x79\x31\x2f\x64\x4d\x61','\x6e\x53\x6f\x49\x67\x32\x74\x64\x54\x59\x58\x39\x57\x37\x78\x63\x55\x53\x6b\x41','\x57\x34\x62\x44\x57\x52\x6d\x42\x57\x4f\x35\x79','\x57\x34\x33\x64\x4f\x75\x4e\x63\x56\x38\x6f\x72\x57\x4f\x71\x44\x6b\x53\x6f\x35\x74\x73\x43','\x57\x4f\x78\x64\x4d\x43\x6b\x48\x57\x34\x70\x64\x55\x32\x35\x32\x66\x76\x64\x63\x55\x6d\x6b\x4c\x57\x52\x58\x6a\x66\x71','\x57\x36\x4b\x48\x45\x77\x58\x67\x74\x73\x78\x64\x55\x4b\x75','\x6c\x4b\x39\x66\x57\x51\x52\x64\x54\x53\x6b\x59\x57\x4f\x34\x72\x57\x4f\x44\x4b','\x79\x64\x33\x63\x4f\x6d\x6f\x6f','\x71\x78\x2f\x64\x56\x38\x6f\x2b\x57\x51\x78\x63\x4e\x6d\x6f\x68\x65\x32\x70\x64\x4a\x71','\x46\x30\x71\x6c\x57\x37\x4e\x64\x53\x74\x61\x59\x57\x36\x42\x64\x49\x77\x53','\x57\x34\x37\x64\x52\x43\x6b\x2f\x57\x52\x65\x79\x57\x37\x52\x64\x47\x53\x6b\x46\x57\x37\x65','\x77\x73\x30\x56\x71\x33\x68\x64\x47\x57\x6d\x72\x57\x50\x61','\x7a\x30\x2f\x64\x4c\x68\x39\x38\x57\x52\x4f','\x57\x34\x52\x64\x53\x77\x43\x38\x6d\x64\x4b\x43\x79\x78\x65\x6a','\x44\x53\x6b\x65\x7a\x53\x6b\x72\x68\x59\x56\x63\x51\x32\x6c\x64\x49\x6d\x6b\x6e\x57\x52\x42\x63\x4b\x61','\x57\x51\x65\x4d\x6e\x53\x6f\x32\x57\x50\x64\x64\x48\x53\x6f\x58\x67\x57\x78\x64\x50\x71','\x71\x53\x6f\x37\x57\x51\x37\x64\x4c\x57\x53\x57\x77\x6d\x6b\x34\x57\x51\x34','\x63\x38\x6b\x63\x77\x43\x6b\x58\x7a\x38\x6f\x66\x41\x5a\x38\x36\x57\x36\x61\x6d\x72\x47\x53'];_0x5756=function(){return _0x62e299;};return _0x5756();}export async function ingestFromHub(_0x446a2b,_0x1bc69c,_0x4b5e1a,_0x58fcb9,_0x51f912={}){const _0x264505=_0x4341,_0x213d1b=await(_0x51f912[_0x264505(0x88,'\x67\x23\x77\x67')]==='\x73\x65\x61\x72\x63\x68'?_0x446a2b[_0x264505(0x9d,'\x37\x26\x35\x52')](_0x58fcb9):_0x446a2b[_0x264505(0x96,'\x78\x59\x56\x36')](_0x58fcb9)),_0x3056ac=[];for(const _0x314c1f of _0x213d1b){const _0x151f58=await ingestUntrusted(_0x1bc69c,_0x4b5e1a,_0x314c1f,_0x264505(0x9b,'\x5b\x52\x36\x56'));_0x3056ac['\x70\x75\x73\x68'](_0x151f58['\x61\x73\x73\x65\x74\x5f\x69\x64']);}return{'\x69\x6e\x67\x65\x73\x74\x65\x64':_0x3056ac[_0x264505(0x8d,'\x5b\x52\x36\x56')],'\x61\x73\x73\x65\x74\x49\x64\x73':_0x3056ac};}
|