event 988 solution

This commit is contained in:
elffuss-bot
2026-10-03 12:14:54 +00:00
parent b31752cfea
commit cca91d14f3
2 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
diff --git a/package.json b/package.json
index 6c9a3d19031fcd730a2d850fa820af2183b649cd..e11713df989dd4ab441f311f3c862b98a3610851 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "elffuss-engine",
"private": true,
"type": "module",
- "description": "Runtime de inferencia propio (privado). Sin dependencias.",
+ "description": "Elffuss inference runtime for the browser. No dependencies.",
"scripts": {
"check": "for f in js/*.js tests/*.mjs; do node --check \"$f\" || exit 1; done",
"test": "node tests/gguf.mjs",
diff --git a/tests/acceptance/3/CRITERIA.json b/tests/acceptance/3/CRITERIA.json
new file mode 100644
index 0000000000000000000000000000000000000000..e376fc52a77c3669c67f7ccbf0090aa9dc97cd56
--- /dev/null
+++ b/tests/acceptance/3/CRITERIA.json
@@ -0,0 +1,12 @@
+{
+ "schema": "elffuss-t2t/criteria@2",
+ "issue": 3,
+ "criteria": [
+ {
+ "index": 1,
+ "tests": [
+ "tests/acceptance/3/criteria.test.js::criterion 1"
+ ]
+ }
+ ]
+}
diff --git a/tests/acceptance/3/criteria.test.js b/tests/acceptance/3/criteria.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..eec01a7adae3c0025369f04d6395c38b8df2fc2c
--- /dev/null
+++ b/tests/acceptance/3/criteria.test.js
@@ -0,0 +1,16 @@
+import test from 'node:test'
+import assert from 'node:assert/strict'
+import pkg from '../../../package.json' with { type: 'json' }
+
+test('criterion 1', () => {
+ assert.equal(pkg.description, 'Elffuss inference runtime for the browser. No dependencies.')
+ assert.equal(pkg.private, true)
+ assert.equal(Object.keys(pkg.scripts).length, 31)
+ assert.equal(pkg.scripts.test, 'node tests/gguf.mjs')
+ assert.equal(
+ pkg.scripts.check,
+ 'for f in js/*.js tests/*.mjs; do node --check "$f" || exit 1; done'
+ )
+ assert.equal(pkg.scripts['test:e2e'], 'node tests/e2e-claw.mjs')
+ assert.equal(pkg.scripts['perfil:pases'], 'node tests/browser.mjs tests/prefillpases.browser.mjs')
+})

1
events/0000000988.json Normal file
View File

@@ -0,0 +1 @@
{"data":{"cites":[],"envelope":{"delegation":{"identity":"0xdd8075ba73c2173b9f05957b5f1a7561600e5494","nonce":"1791029660","project":"0x0000000000000000000000000000000000000000000000000000000000000000","scopes":1,"sessionX":"0x5c287cf1e73bb8da851464362a1fee9838a9189dea122e44928e7e6656ae8878","sessionY":"0x7ca03dcbddf3fe60d3d92dc964edc8be1441cd2895954c4e89cf153ca0c3ef0e","validFrom":"1791029600","validUntil":"1791202460"},"delegationSignature":"0x4f8bcb08d1ddd5ef4ac15d976b04bfe724f67e602338bf13f08630b491c98eaf0bbd40704a77be863e2ac43a31850ec7676eb1ee80a498745cdce433e83213ee1b","kind":"session","signature":"0xe93081dc707866dd1ed3131b853fac341a10b7a4fff4c2202c1ffc057ca2dd6361dbaea6c7c3aa93dcab117ba03364d501f518e01b8a21c25fa89e97e3186533"},"mainHead":null,"message":{"author":"0xdd8075ba73c2173b9f05957b5f1a7561600e5494","baseCommit":"0xfe25d0eb5567182d8380700537494fdb08f22546","basePartial":"0x0000000000000000000000000000000000000000000000000000000000000000","citesHash":"0x0000000000000000000000000000000000000000000000000000000000000000","issueId":"0xf42f82ffe487fa87c286eb31d60d3c01318181e9a6f69b4a384ec61dd2a1872d","issuedAt":"1791029694","lines":0,"nonce":"1791029694052","patchHash":"0xe14c98866697cea0d826ca8af1ce1f3d591870f0c42fe95ae7459c9f0ac464e0","project":"0x16d6e75341c5f21003a4d9e89b416a545f7335094d7df139fd20942c9b7fb2de","repo":"0xcdbc69be3b19ff85889035ff621aa6ba7b3a165a39624bc7860be5b2e789d8fd"},"pr":"elffuss/engine:item/0xfea2b9a5a52a14a73bfab07f7d7eab5b904b084a3935e03f971456616eb41041"},"eventHash":"0x83d776c9ddee071cd8a09506b3b8f1cf556974eef945d8e2c020147527449b0b","gatewaySignature":"0xbb6dabab5e5e49e95e1f295f57ce08081f658c6f0718255a8ee874e8c704e3323d1d08a0b17416548280d998df1ccf5cbe5dea36ba09c7df1b63cb35b76b6e7f1b","prev":"0x2eac8b8f7b26e7131c01cc220ae5e47cf5718c1e3b1781667c612de5b260d118","seq":988,"ts":1791029694,"type":"solution","v":2}