Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
push:
branches: [main]
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm test
- run: npm run build
- run: npx playwright install --with-deps chromium
- run: npm run smoke
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 zssz-soft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,10 @@ ELŐTT kiértékelve.

## Eredet

A [tetvonal-ng](https://github.com/zssz-soft/tetvonal-ng) repóból kivágva
(2026-09-24), a `tools/perflens-extract.mjs` szerinti hordozható halmaz. Az
ottani `docs/27_teljesitmeny_eszkoz.md` a teljes terv és döntésnapló — a
kódban a `27-es doksi N.N` hivatkozások arra mutatnak. Ami ott maradt: a
sportsbook-adapter, a műszerezett worker belépési pontja, és a füstteszt
alkalmazás-specifikus részei (drift-őr, worker B szint, app-rules).
Egy nagyobb alkalmazás-repóból kivágva (2026-09-24), annak hordozható
részeként. A kódban a `27-es doksi N.N` hivatkozások az ottani tervdokumentum
fejezeteire mutatnak (döntésnapló); ez a dokumentum nem része ennek a repónak.

## Licenc

[MIT](LICENSE)
10 changes: 7 additions & 3 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { cpSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
* dist/extension/ a kiterjesztés — „Kicsomagolt bővítmény betöltése"
* dist/extension-test/ ugyanaz, loopback host-engedéllyel (füstteszt)
*
* App-tudatos módhoz (saját adapterrel) készíts egy belépési pontot a
* `agent/sportsbook.ts` mintájára, és fordítsd azt az `agent/index.ts`
* App-tudatos módhoz (saját adapterrel) készíts egy saját belépési pontot
* (`installAgent({ app })`, lásd README), és fordítsd azt az `agent/index.ts`
* helyett — a mag és a felület változatlan marad.
*
* node build.mjs */
Expand All @@ -35,7 +35,11 @@ await build({
},
});
cpSync('dist/agent.js', `${EXT}/agent.js`);
for (const f of ['manifest.json', 'popup.html', 'panel.html', 'devtools.html']) cpSync(`extension/${f}`, `${EXT}/${f}`);
for (const f of ['popup.html', 'panel.html', 'devtools.html']) cpSync(`extension/${f}`, `${EXT}/${f}`);
// A kiterjesztés verziója a package.json-é — egy forrás, hogy ne csússzon el.
const { version } = JSON.parse(readFileSync('package.json', 'utf-8'));
const manifest = JSON.parse(readFileSync('extension/manifest.json', 'utf-8'));
writeFileSync(`${EXT}/manifest.json`, JSON.stringify({ ...manifest, version }, null, 2));
cpSync('extension/_locales', `${EXT}/_locales`, { recursive: true });

// A füstteszt nem tud a böngésző engedély-párbeszédére kattintani; a valódi
Expand Down
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "PerfLens (dev)",
"description": "__MSG_description__",
"default_locale": "en",
"version": "0.4.0",
"version": "0.6.0",
"minimum_chrome_version": "128",
"permissions": ["storage", "scripting", "activeTab"],
"optional_host_permissions": ["http://*/*", "https://*/*"],
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "perflens",
"version": "0.6.0",
"private": true,
"license": "MIT",
"type": "module",
"description": "PerfLens — böngésző-oldali teljesítmény-elemző: LoAF, INP, worker- és WS-forgalom élőben, szabályokkal. Kiterjesztésként VAGY a lapba ágyazva.",
"scripts": {
Expand Down
11 changes: 5 additions & 6 deletions tools/boundary.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,11 @@ for (const dir of ['core', 'adapters', 'agent', 'dashboard', 'extension', 'worke
for (const f of walk('tools')) for (const spec of importsOf(f)) {
if (target(f, spec).startsWith('extension/')) bad(f, 'a tools/ nem importálhat a kiterjesztésből (4.1)', spec);
}
// 7. a KIVÁGHATÓ halmaz nem tud az alkalmazásról (4.1: „hogy a magot később
// saját repóba/npm-csomagba vágjuk"). A keretrendszer-adapterek (angular,
// stencil) mennek a csomaggal; az alkalmazás-adapter itt marad, és csak a
// belépési pontok tudnak róla: agent/sportsbook.ts, worker/install.ts,
// worker/entry.ts. Ha valaki a generic ügynökbe vagy a magba behúzza az
// app-adaptert, a kivágás csendben elromlik — ezért gépi szabály.
// 7. a HORDOZHATÓ halmaz nem tud az alkalmazásról (4.1). A keretrendszer-
// adapterek (angular) mennek a maggal; az alkalmazás-adapterről csak a
// saját belépési pontod tudhat. Ha valaki a generic ügynökbe vagy a magba
// behúzza az app-adaptert, a hordozhatóság csendben elromlik — ezért gépi
// szabály.
// Ide kerüljön az ALKALMAZÁS-adapter, ha bekötsz egyet (pl. 'adapters/<app>/'):
// a keretrendszer-adapterek (angular) mehetnek a maggal, az app-tudás nem.
const APP_ADAPTERS = [];
Expand Down
Loading