shapewall 0.0.0-stage → 0.2.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/CHANGELOG.md +139 -0
- package/Dockerfile.agent +45 -0
- package/LICENSE +202 -0
- package/NOTICE +12 -0
- package/README.md +651 -2
- package/THIRD_PARTY.md +165 -0
- package/bin/shapewall.js +29 -0
- package/dist/agent/package-lock.json +8384 -0
- package/dist/client/assets/BoardChat-D5SFd8HE.js +28 -0
- package/dist/client/assets/BuzzDialog-HWXBy52W.js +1 -0
- package/dist/client/assets/ChecksPanel-DTdImWoD.js +1 -0
- package/dist/client/assets/History-CEv6b-av.js +1 -0
- package/dist/client/assets/LocalSettings-C4vriEVQ.js +1 -0
- package/dist/client/assets/Management-DCfhcEUY.js +1 -0
- package/dist/client/assets/QuickConnect-DQGgUsl1.js +1 -0
- package/dist/client/assets/ShareDialog-C_plIto0.js +2 -0
- package/dist/client/assets/app-update-dialog-2hPz_N9G.js +1 -0
- package/dist/client/assets/circle-x-BZMPi8Zf.js +1 -0
- package/dist/client/assets/index-ByQRKVit.css +2 -0
- package/dist/client/assets/index-DweQ8Qtu.js +29 -0
- package/dist/client/assets/refresh-cw-CRow0Nbq.js +1 -0
- package/dist/client/assets/runtime-Bft6x_6E.js +4 -0
- package/dist/client/assets/square-A8EnIYLR.js +1 -0
- package/dist/client/assets/tts-dist-DYlBQmwG.js +18 -0
- package/dist/client/assets/tts-en-g2p-BPUtBFGG.js +1 -0
- package/dist/client/assets/tts-ort-wasm-simd-threaded-qh98TCA_.wasm +0 -0
- package/dist/client/assets/tts-ort.wasm.bundle.min-rEkcs_ow.js +12 -0
- package/dist/client/assets/tts-rolldown-runtime-D8NudN84.js +1 -0
- package/dist/client/assets/tts-spacy-en-tokenizer-6SNMl--A.json +1 -0
- package/dist/client/assets/tts-tts.worker-Bzm6aWbv.js +1 -0
- package/dist/client/assets/tts-us_gold-DcjeNMH1.json +92589 -0
- package/dist/client/assets/tts-us_silver-C964mEB5.json +93363 -0
- package/dist/client/assets/ui-CLbws0rx.js +41 -0
- package/dist/client/build-info.json +1 -0
- package/dist/client/favicon.svg +7 -0
- package/dist/client/icons/apple-touch-icon.png +0 -0
- package/dist/client/icons/icon-192.png +0 -0
- package/dist/client/icons/icon-512.png +0 -0
- package/dist/client/icons/maskable-512.png +0 -0
- package/dist/client/index.html +25 -0
- package/dist/client/manifest.webmanifest +15 -0
- package/dist/client/sw.js +53 -0
- package/dist/client/theme-boot.js +27 -0
- package/dist/console/assets/LocalAccountsApp-BQCcmj3x.js +1 -0
- package/dist/console/assets/LocalConsole-Bb2FUDs7.js +1 -0
- package/dist/console/assets/app-update-dialog-DIeYepLZ.js +1 -0
- package/dist/console/assets/console-C7uJLLOn.js +51 -0
- package/dist/console/assets/console-R8IBY3Am.css +2 -0
- package/dist/console/build-info.json +1 -0
- package/dist/console/console.html +21 -0
- package/dist/console/favicon.svg +7 -0
- package/dist/console/icons/apple-touch-icon.png +0 -0
- package/dist/console/icons/icon-192.png +0 -0
- package/dist/console/icons/icon-512.png +0 -0
- package/dist/console/icons/maskable-512.png +0 -0
- package/dist/console/manifest.webmanifest +15 -0
- package/dist/console/theme-boot.js +27 -0
- package/docs/agent-hardening.md +342 -0
- package/docs/agent-recipes.md +187 -0
- package/docs/agent-workflow.md +320 -0
- package/docs/agents.md +894 -0
- package/docs/architecture.md +242 -0
- package/docs/buzz.md +140 -0
- package/docs/capture-warnings.md +57 -0
- package/docs/config.md +489 -0
- package/docs/deployment.md +289 -0
- package/docs/design-system.md +162 -0
- package/docs/github.md +107 -0
- package/docs/hosted.md +764 -0
- package/docs/images/board-overview.png +0 -0
- package/docs/images/journeys.png +0 -0
- package/docs/images/live-comment.png +0 -0
- package/docs/images/phone-comment.png +0 -0
- package/docs/images/phone-overview.png +0 -0
- package/docs/images/variant.png +0 -0
- package/docs/interaction-audits.md +40 -0
- package/docs/journeys.md +137 -0
- package/docs/local-accounts.md +80 -0
- package/docs/notifications.md +237 -0
- package/docs/page-checks.md +69 -0
- package/docs/performance.md +174 -0
- package/docs/starter-agent.md +325 -0
- package/docs/updates.md +87 -0
- package/examples/audits/interaction.audit.json +17 -0
- package/package.json +132 -4
- package/src/accounts/avatar.js +121 -0
- package/src/accounts/local.js +464 -0
- package/src/agent/acp/command.js +204 -0
- package/src/agent/acp/detect.js +75 -0
- package/src/agent/acp/sandbox.js +160 -0
- package/src/agent/agent-health.js +75 -0
- package/src/agent/backends/acp.js +1297 -0
- package/src/agent/backends/index.js +61 -0
- package/src/agent/backends/openai.js +308 -0
- package/src/agent/composer.js +221 -0
- package/src/agent/config.js +338 -0
- package/src/agent/context.js +191 -0
- package/src/agent/control.js +122 -0
- package/src/agent/errors.js +17 -0
- package/src/agent/feedback-loop.js +137 -0
- package/src/agent/manage.js +94 -0
- package/src/agent/next-steps.js +51 -0
- package/src/agent/owner-mcp.js +38 -0
- package/src/agent/plain-text.js +52 -0
- package/src/agent/ratings-core.js +213 -0
- package/src/agent/ratings.js +100 -0
- package/src/agent/reply-text.js +67 -0
- package/src/agent/routes.js +1065 -0
- package/src/agent/run.js +326 -0
- package/src/agent/settings-routes.js +704 -0
- package/src/agent/showable.js +23 -0
- package/src/agent/starter/approvals.js +181 -0
- package/src/agent/starter/build-image.js +90 -0
- package/src/agent/starter/cli.js +163 -0
- package/src/agent/starter/disk.js +53 -0
- package/src/agent/starter/doctor.js +180 -0
- package/src/agent/starter/egress-proxy.js +351 -0
- package/src/agent/starter/gate.js +90 -0
- package/src/agent/starter/loop.js +114 -0
- package/src/agent/starter/model-relay.js +289 -0
- package/src/agent/starter/pause.js +14 -0
- package/src/agent/starter/probe.js +272 -0
- package/src/agent/starter/prompt.js +41 -0
- package/src/agent/starter/push-guard.js +146 -0
- package/src/agent/starter/rpc.js +164 -0
- package/src/agent/starter/runtime.js +287 -0
- package/src/agent/starter/sandbox-main.js +121 -0
- package/src/agent/starter/settings.js +290 -0
- package/src/agent/starter/source.js +69 -0
- package/src/agent/starter/supervisor.js +755 -0
- package/src/agent/starter/sweep.js +46 -0
- package/src/agent/starter/tools.js +524 -0
- package/src/agent/starter/watch.js +84 -0
- package/src/agent/starter/worktree.js +409 -0
- package/src/agent/text-diff.js +210 -0
- package/src/agent/thread-history.js +223 -0
- package/src/agent/threads.js +399 -0
- package/src/agent/tools.js +200 -0
- package/src/agent/turn-changes.js +424 -0
- package/src/agent/undo-state.js +26 -0
- package/src/agent/user-settings.js +308 -0
- package/src/auth/record.js +375 -0
- package/src/broken-links.js +164 -0
- package/src/buzz/client.js +75 -0
- package/src/buzz/config.js +151 -0
- package/src/buzz/environment.js +13 -0
- package/src/buzz/gateway.js +192 -0
- package/src/buzz/routes.js +61 -0
- package/src/buzz/signer-child.js +205 -0
- package/src/buzz/store.js +89 -0
- package/src/buzz/transport.js +60 -0
- package/src/buzz/verify.js +140 -0
- package/src/capture/actions.js +159 -0
- package/src/capture/capture.js +776 -0
- package/src/capture/dom-names.js +189 -0
- package/src/capture/element-map.js +509 -0
- package/src/capture/live.js +827 -0
- package/src/capture/media-scheme.js +317 -0
- package/src/capture/network-summary.js +86 -0
- package/src/capture/pacing.js +34 -0
- package/src/capture/requests.js +167 -0
- package/src/capture/sanitize.js +752 -0
- package/src/checks/accessibility.js +134 -0
- package/src/checks/budgets.js +58 -0
- package/src/checks/cli.js +55 -0
- package/src/checks/comparison.js +113 -0
- package/src/checks/environments.js +32 -0
- package/src/checks/flow-config.js +82 -0
- package/src/checks/flow-origin.js +53 -0
- package/src/checks/flows.js +398 -0
- package/src/checks/lighthouse-auth.js +145 -0
- package/src/checks/lighthouse-findings.js +130 -0
- package/src/checks/lighthouse.js +395 -0
- package/src/checks/robots.js +85 -0
- package/src/checks/routes.js +52 -0
- package/src/checks/run-control.js +259 -0
- package/src/checks/runner.js +724 -0
- package/src/checks/schema.js +133 -0
- package/src/checks/seo-analysis.js +443 -0
- package/src/checks/seo-probe.js +190 -0
- package/src/checks/seo-snapshot.js +99 -0
- package/src/checks/store.js +214 -0
- package/src/checks/transport.js +47 -0
- package/src/cli/args.js +319 -0
- package/src/cli/capture.js +79 -0
- package/src/cli/commands.js +92 -0
- package/src/cli/comments.js +84 -0
- package/src/cli/help.js +243 -0
- package/src/cli/init.js +214 -0
- package/src/cli/misc.js +64 -0
- package/src/cli/notify.js +87 -0
- package/src/cli/open.js +22 -0
- package/src/cli/serve.js +274 -0
- package/src/cli/variant.js +82 -0
- package/src/cli/watch.js +70 -0
- package/src/cli.js +130 -0
- package/src/comment-fields.js +76 -0
- package/src/comments-cli.js +208 -0
- package/src/config-reload.js +100 -0
- package/src/config.js +1061 -0
- package/src/devices-cli.js +21 -0
- package/src/diff.js +95 -0
- package/src/discover.js +284 -0
- package/src/doctor.js +295 -0
- package/src/event-log.js +268 -0
- package/src/events-cli.js +102 -0
- package/src/events.js +113 -0
- package/src/export.js +119 -0
- package/src/feedback.js +246 -0
- package/src/github.js +551 -0
- package/src/hosted/LICENSE.md +105 -0
- package/src/hosted/access-cli.js +78 -0
- package/src/hosted/admin.js +682 -0
- package/src/hosted/agent-approvals.js +163 -0
- package/src/hosted/agent-policy.js +189 -0
- package/src/hosted/app.js +510 -0
- package/src/hosted/auth-routes.js +540 -0
- package/src/hosted/auth.js +536 -0
- package/src/hosted/backup.js +483 -0
- package/src/hosted/board-context.js +35 -0
- package/src/hosted/board-routes.js +486 -0
- package/src/hosted/board-view.js +94 -0
- package/src/hosted/clean-worker.js +24 -0
- package/src/hosted/cleaner.js +89 -0
- package/src/hosted/comments.js +355 -0
- package/src/hosted/console-routes.js +401 -0
- package/src/hosted/cookies.js +18 -0
- package/src/hosted/crypto.js +80 -0
- package/src/hosted/db.js +496 -0
- package/src/hosted/device-routes.js +175 -0
- package/src/hosted/device.js +233 -0
- package/src/hosted/events.js +63 -0
- package/src/hosted/guards.js +172 -0
- package/src/hosted/guest-view.js +65 -0
- package/src/hosted/http.js +39 -0
- package/src/hosted/import.js +300 -0
- package/src/hosted/mail.js +73 -0
- package/src/hosted/mcp-http.js +71 -0
- package/src/hosted/membership.js +114 -0
- package/src/hosted/operator.js +478 -0
- package/src/hosted/ops-cli.js +345 -0
- package/src/hosted/pages.js +146 -0
- package/src/hosted/permissions.js +113 -0
- package/src/hosted/presence.js +372 -0
- package/src/hosted/projects.js +124 -0
- package/src/hosted/public.js +109 -0
- package/src/hosted/push.js +622 -0
- package/src/hosted/quotas.js +115 -0
- package/src/hosted/ratelimit.js +96 -0
- package/src/hosted/rebind.js +316 -0
- package/src/hosted/retention.js +128 -0
- package/src/hosted/server.js +260 -0
- package/src/hosted/setup-link.js +64 -0
- package/src/hosted/setup.js +323 -0
- package/src/hosted/shares.js +444 -0
- package/src/hosted/tailscale.js +204 -0
- package/src/hosted/tenancy.js +301 -0
- package/src/hosted/token-api.js +455 -0
- package/src/hosted/token-events.js +60 -0
- package/src/hosted/tokens.js +57 -0
- package/src/hosted/turnstile.js +49 -0
- package/src/hosted/usercontent.js +154 -0
- package/src/hosted/zip.js +155 -0
- package/src/invocation.js +58 -0
- package/src/journey-paths.js +282 -0
- package/src/journeys.js +189 -0
- package/src/links.js +106 -0
- package/src/local-projects.js +182 -0
- package/src/lock.js +193 -0
- package/src/mcp.js +417 -0
- package/src/mentions.js +151 -0
- package/src/net.js +15 -0
- package/src/notify/config.js +275 -0
- package/src/notify/index.js +301 -0
- package/src/notify/lease.js +73 -0
- package/src/notify/messages.js +212 -0
- package/src/notify/run.js +174 -0
- package/src/pixeldiff.js +49 -0
- package/src/png.js +143 -0
- package/src/reactions.js +111 -0
- package/src/remote/cli.js +133 -0
- package/src/remote/credentials.js +62 -0
- package/src/remote/ids.js +12 -0
- package/src/remote/login.js +155 -0
- package/src/remote/remote-mcp.js +237 -0
- package/src/remote/remote-watch.js +291 -0
- package/src/remote/remote.js +313 -0
- package/src/remote/share-state.js +78 -0
- package/src/remote/share.js +369 -0
- package/src/remote/terminal.js +13 -0
- package/src/serve-state.js +64 -0
- package/src/server/app.js +824 -0
- package/src/server/devices.js +186 -0
- package/src/server/local-console.js +28 -0
- package/src/server/local-user.js +59 -0
- package/src/server/pairing-routes.js +159 -0
- package/src/server/share-routes.js +89 -0
- package/src/server/tailscale.js +97 -0
- package/src/sitemap.js +431 -0
- package/src/store.js +983 -0
- package/src/tokens.js +11 -0
- package/src/update/routes.js +245 -0
- package/src/watch.js +403 -0
- package/src/which.js +58 -0
package/THIRD_PARTY.md
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# Third-party components
|
|
2
|
+
|
|
3
|
+
The optional server-side Buzz bridge verifies BIP-340/Nostr signatures with `@noble/curves` 2.4.0 and its `@noble/hashes` 2.4.0
|
|
4
|
+
dependency (MIT), and decodes NIP-19 keys with `@scure/base` 2.4.0 (MIT). These libraries are runtime npm dependencies, not browser
|
|
5
|
+
bundles. Their licenses ship with their packages. Source: [noble-curves](https://github.com/paulmillr/noble-curves),
|
|
6
|
+
[noble-hashes](https://github.com/paulmillr/noble-hashes), [scure-base](https://github.com/paulmillr/scure-base).
|
|
7
|
+
|
|
8
|
+
Shapewall is Apache 2.0 (with `src/hosted` under FSL 1.1, see `NOTICE`). This file lists third-party code and data that ship inside
|
|
9
|
+
the built board (`dist/client`, and the public demo) beyond the usual npm dependencies, or that the board downloads at run time. Each
|
|
10
|
+
component keeps its own license; none of them is GPL or LGPL.
|
|
11
|
+
|
|
12
|
+
## Natural read-aloud voices (`client/src/chat/tts`, built as `assets/tts-*`)
|
|
13
|
+
|
|
14
|
+
Loaded only when someone turns natural voices on (docs/agents.md, "Natural voices"). Everything runs in the browser.
|
|
15
|
+
|
|
16
|
+
| Component | What it is | License | Shipped or downloaded |
|
|
17
|
+
| ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
|
|
18
|
+
| [Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M) (hexgrad) | The speech model and its voice style files | Apache 2.0 | Downloaded from Hugging Face on first use, never in this repo |
|
|
19
|
+
| [Kokoro-82M-v1.0-ONNX](https://huggingface.co/onnx-community/Kokoro-82M-v1.0-ONNX) | ONNX export of it (8-bit `model_quantized.onnx`, tokenizer) | Apache 2.0 | Downloaded from Hugging Face on first use (pinned revision) |
|
|
20
|
+
| [ONNX Runtime Web](https://github.com/microsoft/onnxruntime) 1.31 | The WebAssembly inference runtime (`ort-wasm-simd-threaded`) | MIT; its own [third-party notices][ort-notices] apply | Bundled |
|
|
21
|
+
| ONNX Runtime Web's JavaScript dependencies | flatbuffers, long / guid-typescript / platform / protobufjs | Apache 2.0 / Apache 2.0, ISC, MIT, BSD-3-Clause | Bundled |
|
|
22
|
+
| [@titan-design/speech-g2p](https://github.com/HJewkes/titan-platform) | A JavaScript port of misaki's US English G2P | MIT | Bundled |
|
|
23
|
+
| [misaki](https://github.com/hexgrad/misaki) 0.9.4 lexicons (`us_gold`, `us_silver`) | Kokoro's own US pronunciation dictionaries | Apache 2.0 | Bundled (inside speech-g2p, byte for byte) |
|
|
24
|
+
| [spaCy](https://github.com/explosion/spaCy) 3.8 tokenizer rules | Word splitting rules (inside speech-g2p) | MIT | Bundled |
|
|
25
|
+
| [compromise](https://github.com/spencermountain/compromise) 14 | Part-of-speech tags (read vs. read) | MIT (and its deps efrt, grad-school, suffix-thumb: MIT) | Bundled |
|
|
26
|
+
| [phonemize](https://github.com/hans00/phonemize) 2 (`phonemize/en-g2p`) | Rules for words not in the lexicon | MIT | Bundled |
|
|
27
|
+
| phonemize's English lexicon | From [ipa-dict](https://github.com/open-dict-data/ipa-dict) `en_US` (from [cmudict-ipa](https://github.com/lingz/cmudict-ipa), from the [CMU Pronouncing Dictionary](https://github.com/cmusphinx/cmudict)), homographs from [g2p_en](https://github.com/Kyubyong/g2p) and misaki | MIT (ipa-dict, cmudict-ipa), BSD-2-Clause style (CMUdict), Apache 2.0 (g2p_en, misaki) | Bundled |
|
|
28
|
+
|
|
29
|
+
Notes:
|
|
30
|
+
|
|
31
|
+
- **Not used:** espeak-ng and the `phonemizer` npm package (which embeds an espeak-ng WebAssembly build, GPL-3.0), and so not
|
|
32
|
+
`kokoro-js`, which depends on it. Shapewall's own wrapper (`client/src/chat/tts/tts.worker.js`) calls ONNX Runtime Web directly
|
|
33
|
+
(transformers.js is not used either).
|
|
34
|
+
- ONNX Runtime's third-party notices include Eigen (MPL 2.0, file-level; its source is public at https://gitlab.com/libeigen/eigen)
|
|
35
|
+
and Mbed TLS (used under Apache 2.0). They cover the whole ONNX Runtime project; the WebAssembly build contains a subset.
|
|
36
|
+
- `@titan-design/speech-g2p` keeps its `NOTICE` (misaki, spaCy) in `node_modules/@titan-design/speech-g2p/NOTICE`.
|
|
37
|
+
- `@titan-design/speech-g2p` is a single-author `0.0.0` package, so it is pinned exactly (`0.0.0`, no range) and locked by
|
|
38
|
+
`package-lock.json`'s integrity hash; it has no install scripts. It is not vendored because its 6 MB of lexicon JSON would then
|
|
39
|
+
live in this repo's history. **Any bump of it (or a change to its lock entry) needs a fresh review** of its code and data before
|
|
40
|
+
it merges, like a new dependency.
|
|
41
|
+
- The model, tokenizer and voice files are pinned to Hugging Face's published sizes and SHA-256s at the pinned revision
|
|
42
|
+
(`client/src/chat/tts/voices.js`) and verified in the browser before they are cached or used; a mismatch is deleted.
|
|
43
|
+
- [number-to-words](https://github.com/marlun78/number-to-words) (MIT) is a dependency of `phonemize`, but the English rules used
|
|
44
|
+
here (`phonemize/en-g2p`) carry their own number reader and never import it, so it is not in the build.
|
|
45
|
+
|
|
46
|
+
[ort-notices]: https://github.com/microsoft/onnxruntime/blob/main/ThirdPartyNotices.txt
|
|
47
|
+
|
|
48
|
+
## Live board presence
|
|
49
|
+
|
|
50
|
+
Yjs 13.6.33 and y-protocols 1.0.7 provide transient awareness state; lib0 is their shared utility dependency. These are MIT-licensed and
|
|
51
|
+
bundled in the board client. The hosted WebSocket transport uses ws 8.22.1 (MIT) on the server. No Yjs document content or hosted
|
|
52
|
+
collaboration service is used. Licences ship with the corresponding npm packages.
|
|
53
|
+
|
|
54
|
+
### Presence dependency notices
|
|
55
|
+
|
|
56
|
+
The following notices are copied from the installed, pinned npm packages.
|
|
57
|
+
|
|
58
|
+
#### ws
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
|
|
62
|
+
Copyright (c) 2013 Arnout Kazemier and contributors
|
|
63
|
+
Copyright (c) 2016 Luigi Pinca and contributors
|
|
64
|
+
|
|
65
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
66
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
67
|
+
the Software without restriction, including without limitation the rights to
|
|
68
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
69
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
70
|
+
subject to the following conditions:
|
|
71
|
+
|
|
72
|
+
The above copyright notice and this permission notice shall be included in all
|
|
73
|
+
copies or substantial portions of the Software.
|
|
74
|
+
|
|
75
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
76
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
77
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
78
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
79
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
80
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
#### yjs
|
|
84
|
+
|
|
85
|
+
```text
|
|
86
|
+
The MIT License (MIT)
|
|
87
|
+
|
|
88
|
+
Copyright (c) 2023
|
|
89
|
+
- Kevin Jahns <kevin.jahns@protonmail.com>.
|
|
90
|
+
- Chair of Computer Science 5 (Databases & Information Systems), RWTH Aachen University, Germany
|
|
91
|
+
|
|
92
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
93
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
94
|
+
in the Software without restriction, including without limitation the rights
|
|
95
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
96
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
97
|
+
furnished to do so, subject to the following conditions:
|
|
98
|
+
|
|
99
|
+
The above copyright notice and this permission notice shall be included in all
|
|
100
|
+
copies or substantial portions of the Software.
|
|
101
|
+
|
|
102
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
103
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
104
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
105
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
106
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
107
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
108
|
+
SOFTWARE.
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
#### y-protocols
|
|
112
|
+
|
|
113
|
+
```text
|
|
114
|
+
The MIT License (MIT)
|
|
115
|
+
|
|
116
|
+
Copyright (c) 2019 Kevin Jahns <kevin.jahns@protonmail.com>.
|
|
117
|
+
|
|
118
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
119
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
120
|
+
in the Software without restriction, including without limitation the rights
|
|
121
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
122
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
123
|
+
furnished to do so, subject to the following conditions:
|
|
124
|
+
|
|
125
|
+
The above copyright notice and this permission notice shall be included in all
|
|
126
|
+
copies or substantial portions of the Software.
|
|
127
|
+
|
|
128
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
129
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
130
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
131
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
132
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
133
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
134
|
+
SOFTWARE.
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
#### lib0
|
|
138
|
+
|
|
139
|
+
```text
|
|
140
|
+
The MIT License (MIT)
|
|
141
|
+
|
|
142
|
+
Copyright (c) 2019 Kevin Jahns <kevin.jahns@protonmail.com>.
|
|
143
|
+
|
|
144
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
145
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
146
|
+
in the Software without restriction, including without limitation the rights
|
|
147
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
148
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
149
|
+
furnished to do so, subject to the following conditions:
|
|
150
|
+
|
|
151
|
+
The above copyright notice and this permission notice shall be included in all
|
|
152
|
+
copies or substantial portions of the Software.
|
|
153
|
+
|
|
154
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
155
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
156
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
157
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
158
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
159
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
160
|
+
SOFTWARE.
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Local accessibility diagnostics
|
|
164
|
+
|
|
165
|
+
The CLI directly depends on [axe-core](https://github.com/dequelabs/axe-core) 4.14.0 under MPL-2.0. Its unmodified engine runs only in explicitly requested local original-page accessibility checks. It is not bundled into the wall or public demo. The installed npm package includes its license and source; Shapewall stores only bounded rule identifiers and counts from its results.
|
package/bin/shapewall.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { main } from '../src/cli.js'
|
|
3
|
+
import { terminalSafe } from '../src/remote/terminal.js'
|
|
4
|
+
import { spawn } from 'node:child_process'
|
|
5
|
+
import { BUZZ_CREDENTIAL_NAMES, withoutBuzzCredentials } from '../src/buzz/environment.js'
|
|
6
|
+
|
|
7
|
+
// Buzz tool shells inherit agent credentials. Re-exec before starting any
|
|
8
|
+
// Shapewall server/gateway so its process environment never contains them.
|
|
9
|
+
if (BUZZ_CREDENTIAL_NAMES.some((name) => process.env[name] !== undefined)) {
|
|
10
|
+
const child = spawn(process.execPath, process.argv.slice(1), { env: withoutBuzzCredentials(process.env), stdio: 'inherit' })
|
|
11
|
+
for (const signal of ['SIGINT', 'SIGTERM']) process.on(signal, () => child.kill(signal))
|
|
12
|
+
child.on('error', () => {
|
|
13
|
+
console.error('shapewall: could not start with a clean environment')
|
|
14
|
+
process.exitCode = 1
|
|
15
|
+
})
|
|
16
|
+
child.on('exit', (code, signal) => {
|
|
17
|
+
process.exitCode = code ?? (signal ? 1 : 0)
|
|
18
|
+
})
|
|
19
|
+
} else
|
|
20
|
+
main().then(
|
|
21
|
+
(code) => {
|
|
22
|
+
// `serve` keeps running (null); everything else exits with its code.
|
|
23
|
+
if (code !== null) process.exitCode = code
|
|
24
|
+
},
|
|
25
|
+
(error) => {
|
|
26
|
+
console.error(`shapewall: ${terminalSafe(error.message)}`)
|
|
27
|
+
process.exitCode = 1
|
|
28
|
+
},
|
|
29
|
+
)
|