@takodotid/circuit 0.19.0 → 0.21.0
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/README.md +2 -2
- package/dist/chunks/index-n4zpd25n.js +936 -0
- package/dist/chunks/{index-dczpxzzm.js → index-v8zgr7wm.js} +33 -14
- package/dist/chunks/{new-7n8qvtjd.js → new-ny89s7y7.js} +4 -6
- package/dist/chunks/server-zapfzhv4.js +244 -0
- package/dist/cli/index.js +855 -803
- package/dist/index.js +20 -21
- package/dist/presets/index.js +20 -21
- package/dist/types/adapters/devices/derive.d.ts +2 -0
- package/dist/types/core/across.d.ts +4 -0
- package/dist/types/core/addr.d.ts +10 -0
- package/dist/types/core/addresses.d.ts +46 -0
- package/dist/types/core/files.d.ts +6 -0
- package/dist/types/core/graph.d.ts +31 -1
- package/dist/types/core/schema-docs.d.ts +16 -0
- package/package.json +7 -7
- package/src/adapters/devices/derive.ts +32 -0
- package/src/adapters/devices/raisecom-ros/index.ts +23 -3
- package/src/adapters/devices/routeros/index.ts +10 -0
- package/src/adapters/devices/vrp/index.ts +10 -1
- package/src/cli/graph.ts +1 -15
- package/src/cli/index.ts +154 -20
- package/src/cli/rename.ts +129 -0
- package/src/core/across.ts +322 -0
- package/src/core/addr.ts +29 -0
- package/src/core/addresses.ts +316 -0
- package/src/core/files.ts +32 -0
- package/src/core/graph.ts +27 -6
- package/src/core/schema-docs.ts +166 -0
- package/src/core/validate.ts +2 -52
- package/src/studio/data.ts +255 -0
- package/src/studio/git.ts +119 -0
- package/src/studio/public/app.js +165 -0
- package/src/studio/public/compare.js +243 -0
- package/src/studio/public/diff.js +97 -0
- package/src/studio/public/dom.js +108 -0
- package/src/studio/public/evaluate.js +648 -0
- package/src/studio/public/export.js +122 -0
- package/src/studio/public/favicon.svg +12 -0
- package/src/studio/public/graph.js +983 -0
- package/src/studio/public/index.html +71 -0
- package/src/studio/public/net.js +128 -0
- package/src/studio/public/special-gothic-latin-ext.woff2 +0 -0
- package/src/studio/public/special-gothic-latin.woff2 +0 -0
- package/src/studio/public/special-gothic-license.txt +93 -0
- package/src/studio/public/style.css +1334 -0
- package/src/studio/public/tables.js +1223 -0
- package/src/studio/public/tools.js +578 -0
- package/src/studio/server.ts +219 -0
- package/templates/project/AGENTS.md +2 -0
- package/dist/chunks/index-fq57hya4.js +0 -20
- package/dist/chunks/studio-femhydvd.js +0 -764
- package/src/cli/studio-page.ts +0 -876
- package/src/cli/studio.ts +0 -126
package/README.md
CHANGED
|
@@ -16,13 +16,13 @@ Documentation: [circuit.tako.id](https://circuit.tako.id)
|
|
|
16
16
|
- **History in git.** Each device's last snapshot is kept in `.circuit/state/`, so the repository's history is the network's history.
|
|
17
17
|
- **Rules of your own.** Checks run on every change, and presets give ready-made filters, BGP policies and checks.
|
|
18
18
|
- **Secrets stay out of the repository.** They come from `.env` or 1Password, and never appear in a plan or a snapshot.
|
|
19
|
-
- **See the network.** `circuit studio
|
|
19
|
+
- **See the network.** Circuit Studio, started with `circuit studio`, draws the cables, VLANs, addresses, BGP sessions, OSPF neighbors and tunnels in your browser, and marks what is broken or differs from the device. Its tables list everything each device holds, for anyone who does not read TypeScript, and it can run on a server for the whole team. `circuit graph` prints the drawing as Mermaid, DOT or JSON.
|
|
20
20
|
- **Keeps the rest in step.** Prefix lists fetched from a registry, your PeeringDB record, devices in LibreNMS, targets for Prometheus, WireGuard client configs, and your BGP communities for a looking glass.
|
|
21
21
|
- **Safe with AI agents.** Every project gets an `AGENTS.md` that tells an agent what it may run, and the last step stays yours.
|
|
22
22
|
|
|
23
23
|
<picture>
|
|
24
24
|
<source media="(prefers-color-scheme: dark)" srcset="docs/public/screenshots/studio-dark.png">
|
|
25
|
-
<img src="docs/public/screenshots/studio-light.png" alt="
|
|
25
|
+
<img src="docs/public/screenshots/studio-light.png" alt="Studio's VLAN graph with devices that differ from their snapshots marked by orange dashed borders, beside the layer details and legend.">
|
|
26
26
|
</picture>
|
|
27
27
|
|
|
28
28
|
## Start
|