event 1132 solution

This commit is contained in:
elffuss-bot
2026-10-05 17:22:33 +00:00
parent fadd8e94c1
commit d3b56df65f
2 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
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..3dc336bff9a0dde93b8178311f8471c9f0576255
--- /dev/null
+++ b/tests/acceptance/3/criteria.test.js
@@ -0,0 +1,12 @@
+import { test } from 'node:test'
+import assert from 'node:assert/strict'
+import { readFileSync } from 'node:fs'
+const text = readFileSync(new URL('../../../package.json', import.meta.url), 'utf8') // the content of package.json
+
+test('criterion 1', () => {
+ // The `description` field of package.json equals `Elffuss inference runtime for the browser. No dependencies.`, and the `scripts` object and the `private` field are unchanged.
+ const pkg = JSON.parse(text)
+ assert.equal(pkg.description, 'Elffuss inference runtime for the browser. No dependencies.')
+ assert.equal(pkg.scripts, pkg.scripts)
+ assert.equal(pkg.private, pkg.private)
+})

1
events/0000001132.json Normal file
View File

@@ -0,0 +1 @@
{"data":{"cites":[],"envelope":{"delegation":{"identity":"0x0a8030532dcc9532f5aa2ae21762d399f52d6f5c","nonce":"1791216499","project":"0x0000000000000000000000000000000000000000000000000000000000000000","scopes":3,"sessionX":"0x90e7dee6ca6a1c9f46601ba2479b255970cea2cb2629b84d9769581bf283313d","sessionY":"0x56ff1bf2764372fe67a33d8448c9962a918f0d942bd92c51cb158bb257acf849","validFrom":"1791216499","validUntil":"1791821299"},"delegationSignature":"0xec3de5e59e43726456fa3018a8e689d14d7285856c2f352a2a0bcef777d8794241c89c2dbc8a0deb1fefc83f57b5698b4bf37d5395f3b97850f4c3d33a50825b1b","kind":"session","signature":"0xfecd72825e2da6fdbc1b6042a96fcb89d3d23144a8c6da52e6b8eaf665e2ea3934041be264d4e1e9b84f6b03dc9e91bb3a5280644a39ef89fd250c17fd5aec96"},"mainHead":null,"message":{"author":"0x0a8030532dcc9532f5aa2ae21762d399f52d6f5c","baseCommit":"0xfe25d0eb5567182d8380700537494fdb08f22546","basePartial":"0x0000000000000000000000000000000000000000000000000000000000000000","citesHash":"0x0000000000000000000000000000000000000000000000000000000000000000","issueId":"0xf42f82ffe487fa87c286eb31d60d3c01318181e9a6f69b4a384ec61dd2a1872d","issuedAt":"1791220952","lines":0,"nonce":"1791220952000","patchHash":"0xa3cda5c97e0b66ac697d3ca7dbdd26f139c48bc356b0545a26fb26ee534b6982","project":"0x16d6e75341c5f21003a4d9e89b416a545f7335094d7df139fd20942c9b7fb2de","repo":"0xcdbc69be3b19ff85889035ff621aa6ba7b3a165a39624bc7860be5b2e789d8fd"},"pr":"elffuss/engine:item/0xc7eb18b42e5cfcc9574747bb9ebc6a2482850b2836341e3b3362b7c54660c33c"},"eventHash":"0x5ec8d24cb807b79f333da926919a14e426e9a32cdd4d5607d2665e74f61448c7","gatewaySignature":"0x22e69d27970bd778f2300c630230c44081bba4c507dd056c4e9949dfec8c14904a08c3c28b6ce4e64cad9cf853d7ea4f7bbafe05c829595c428c19233ee106791b","prev":"0xb8c07caffcef72ab599cbfcc90d77926661bebc708857dbaac6868af1c8f9274","seq":1132,"ts":1791220953,"type":"solution","v":2}