@websublime/nonio 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/NOTICE +129 -0
- package/README.md +10 -2
- package/bin/nonio.js +28 -0
- package/package.json +33 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 websublime
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
nonio
|
|
2
|
+
Copyright (c) 2026 websublime
|
|
3
|
+
|
|
4
|
+
This project is a Rust rewrite inspired by illuminate
|
|
5
|
+
(https://github.com/johnz4021/illuminate), and carries parts of it over.
|
|
6
|
+
Those parts remain under illuminate's MIT license, reproduced below.
|
|
7
|
+
|
|
8
|
+
Carried over from illuminate (read at commit 7a88df6, 2026-11-26):
|
|
9
|
+
|
|
10
|
+
- crates/nonio-core/src/{format,check,edit,base,repo,screens,code}.rs:
|
|
11
|
+
ported from packages/core/src/*.ts (map format, checker, readers).
|
|
12
|
+
- crates/nonio-facts/src/{contract,settle,fetches}.rs: ported from
|
|
13
|
+
packages/facts/src/contracts/facts.ts, settleCalls in
|
|
14
|
+
packages/facts/src/facts/extract.ts, and packages/facts/src/journeys/fetches.ts.
|
|
15
|
+
- crates/nonio-core/tests/*.rs: ported from packages/core/test/*.test.ts.
|
|
16
|
+
- crates/nonio-core/tests/fixtures/care-app, care-app.map.json and
|
|
17
|
+
care-app.journey.json: copied from packages/core/test/fixtures.
|
|
18
|
+
- crates/nonio-core/tests/fixtures/recorded-facts.json: produced by
|
|
19
|
+
illuminate's own extractor (see tools/record-facts).
|
|
20
|
+
- crates/nonio-scan/src/{extract,walk,record,resolve,entries,adapters,tables,
|
|
21
|
+
routes,fallback,hash}.rs: ported from packages/facts/src/facts/*.ts and
|
|
22
|
+
packages/facts/src/imports.ts (TS/JS extraction).
|
|
23
|
+
- crates/nonio-scan/tests/{extract,imports,resolve,tables}.rs: ported from
|
|
24
|
+
packages/facts/test/*.test.ts.
|
|
25
|
+
- crates/nonio-scan/tests/fixtures/alias-repo: copied from
|
|
26
|
+
packages/facts/test/fixtures.
|
|
27
|
+
- tools/compare-facts/dump.ts: calls illuminate's createFactsIndex.
|
|
28
|
+
- crates/nonio-server/src/{bridge,host,request,store}.rs: ported from
|
|
29
|
+
packages/server/src/{bridge,host,store}.ts and requestText/partsOf in
|
|
30
|
+
packages/server/src/channel.ts (host messages and request wording).
|
|
31
|
+
- crates/nonio-server/tests/{bridge,request}.rs: ported from
|
|
32
|
+
packages/server/test/channel.test.ts.
|
|
33
|
+
- crates/nonio-server/src/{prompts,hints,changes,maker,scan}.rs: ported from
|
|
34
|
+
packages/server/src/{prompts,hints,changes,maker}.ts, scanRepoFacts in
|
|
35
|
+
packages/facts/src/scan.ts and diffSymbols in packages/facts/src/facts/diff.ts
|
|
36
|
+
(the prompt text is illuminate's).
|
|
37
|
+
- crates/nonio-server/schemas/*.schema.json: illuminate's output schemas,
|
|
38
|
+
written by packages/server/src/schemas.ts (see tools/record-prompts).
|
|
39
|
+
- crates/nonio-server/tests/fixtures/prompts: illuminate's prompts and head
|
|
40
|
+
start on fixed inputs (see tools/record-prompts).
|
|
41
|
+
- crates/nonio-server/tests/{maker,hints,changes}.rs: ported from
|
|
42
|
+
packages/server/test/{workflows,proposals,journeys,hints,changes}.test.ts.
|
|
43
|
+
- crates/nonio-server/src/{explainer,fixes,reply,ids}.rs: ported from
|
|
44
|
+
packages/server/src/{explainer,fixes,reply}.ts.
|
|
45
|
+
- crates/nonio-server/tests/{explainer,fixes,reply}.rs: ported from
|
|
46
|
+
packages/server/test/{workflows,proposals,reply,changes}.test.ts.
|
|
47
|
+
- crates/nonio-server/src/{server,step}.rs: ported from
|
|
48
|
+
packages/server/src/{server,step,git}.ts.
|
|
49
|
+
- crates/nonio-server/src/screens.rs: ported from
|
|
50
|
+
packages/server/src/screens.ts (the in-page reader script is illuminate's).
|
|
51
|
+
- crates/nonio-server/tests/{server,offers,selection,stop}.rs: ported from
|
|
52
|
+
packages/server/test/{server,offers,selection,stop}.test.ts.
|
|
53
|
+
- crates/nonio-server/tests/screens.rs: ported from
|
|
54
|
+
packages/server/test/screens.test.ts.
|
|
55
|
+
- crates/nonio-server/src/{channel,browser}.rs: ported from
|
|
56
|
+
packages/server/src/{channel,browser}.ts (the MCP channel and its tools,
|
|
57
|
+
renamed nonio_*).
|
|
58
|
+
- crates/nonio-server/tests/channel.rs: ported from
|
|
59
|
+
packages/server/test/channel.test.ts.
|
|
60
|
+
- viewer/: packages/viewer (the web viewer, React Flow + ELK), with its tests,
|
|
61
|
+
renamed for nonio (token header, storage keys, wording); viewer/src/model.d.ts
|
|
62
|
+
was generated from packages/core and packages/server types. The logo is new.
|
|
63
|
+
- crates/nonio-cli/src/main.rs: after packages/server/src/cli.ts and runChannel
|
|
64
|
+
in packages/server/src/channel.ts.
|
|
65
|
+
- crates/nonio-server/examples/preview.rs: after packages/server/scripts/preview.ts.
|
|
66
|
+
- tools/record-prompts/*.ts: call illuminate's prompt and schema modules.
|
|
67
|
+
- plugin/skills/nonio/SKILL.md: adapted from plugin/skills/illuminate/SKILL.md;
|
|
68
|
+
plugin/ and .cursor-plugin/marketplace.json follow the layout of plugin/ and
|
|
69
|
+
.claude-plugin/marketplace.json.
|
|
70
|
+
|
|
71
|
+
The Vue template lowering in crates/nonio-scan/src/vue.rs is ported from
|
|
72
|
+
vue_oxlint_jsx 0.15.0 (vue-oxlint-toolkit,
|
|
73
|
+
https://github.com/liangmiQwQ/vue-oxlint-toolkit), src/parser/{parse,script,
|
|
74
|
+
elements/*}.rs: SFC blocks, template elements, directives, v-for, v-slot and
|
|
75
|
+
v-if lowered to JSX in one oxc Program. That part remains under
|
|
76
|
+
vue-oxlint-toolkit's MIT license, reproduced at the end of this file.
|
|
77
|
+
|
|
78
|
+
-------------------------------------------------------------------------------
|
|
79
|
+
|
|
80
|
+
MIT License
|
|
81
|
+
|
|
82
|
+
Copyright (c) 2026 johnz4021
|
|
83
|
+
|
|
84
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
85
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
86
|
+
in the Software without restriction, including without limitation the rights
|
|
87
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
88
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
89
|
+
furnished to do so, subject to the following conditions:
|
|
90
|
+
|
|
91
|
+
The above copyright notice and this permission notice shall be included in all
|
|
92
|
+
copies or substantial portions of the Software.
|
|
93
|
+
|
|
94
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
95
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
96
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
97
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
98
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
99
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
100
|
+
SOFTWARE.
|
|
101
|
+
|
|
102
|
+
-------------------------------------------------------------------------------
|
|
103
|
+
|
|
104
|
+
vue-oxlint-toolkit (read at vue_oxlint_jsx 0.15.0, 2026-11-27):
|
|
105
|
+
|
|
106
|
+
MIT License
|
|
107
|
+
|
|
108
|
+
Copyright (c) 2026-present, Liang Mi <https://github.com/liangmiQwQ> and contributors
|
|
109
|
+
Copyright (c) 2025, zhiyuanzmj <260480378@qq.com>
|
|
110
|
+
Copyright (c) 2024-2026, VoidZero Inc. & Contributors
|
|
111
|
+
Copyright (c) 2023, Boshen
|
|
112
|
+
|
|
113
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
114
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
115
|
+
in the Software without restriction, including without limitation the rights
|
|
116
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
117
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
118
|
+
furnished to do so, subject to the following conditions:
|
|
119
|
+
|
|
120
|
+
The above copyright notice and this permission notice shall be included in all
|
|
121
|
+
copies or substantial portions of the Software.
|
|
122
|
+
|
|
123
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
124
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
125
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
126
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
127
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
128
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
129
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @websublime/nonio
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
nonio:// draws interactive maps of how your code works, and checks every box and arrow against the code before it is
|
|
4
|
+
shown. Your coding agent starts it as an MCP server:
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
npx -y @websublime/nonio mcp
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
The binary for your platform comes in one of the `@websublime/nonio-<os>-<cpu>` packages, which npm installs as an
|
|
11
|
+
optional dependency. Nothing is downloaded at install or run time. See https://github.com/websublime/nonio.
|
package/bin/nonio.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
const { spawn } = require('node:child_process');
|
|
4
|
+
const path = require('node:path');
|
|
5
|
+
|
|
6
|
+
const pkg = `@websublime/nonio-${process.platform}-${process.arch}`;
|
|
7
|
+
const exe = process.platform === 'win32' ? 'nonio.exe' : 'nonio';
|
|
8
|
+
let bin;
|
|
9
|
+
try {
|
|
10
|
+
bin = path.join(path.dirname(require.resolve(`${pkg}/package.json`)), 'bin', exe);
|
|
11
|
+
} catch {
|
|
12
|
+
console.error(
|
|
13
|
+
`nonio: ${pkg} isn't installed, so there is no nonio binary for this machine (${process.platform} ${process.arch}).\n` +
|
|
14
|
+
'npm installs it with @websublime/nonio unless optional dependencies are turned off (--omit=optional, --no-optional)\n' +
|
|
15
|
+
"or the registry doesn't hold it. Install again with optional dependencies, or ask whoever runs your registry.",
|
|
16
|
+
);
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
const child = spawn(bin, process.argv.slice(2), { stdio: 'inherit', windowsHide: true });
|
|
20
|
+
for (const s of ['SIGINT', 'SIGTERM', 'SIGHUP']) process.on(s, () => child.kill(s));
|
|
21
|
+
child.on('error', (e) => {
|
|
22
|
+
console.error(`nonio: couldn't start ${bin}: ${e.message}`);
|
|
23
|
+
process.exit(1);
|
|
24
|
+
});
|
|
25
|
+
child.on('exit', (code, signal) => {
|
|
26
|
+
if (signal) process.kill(process.pid, signal);
|
|
27
|
+
else process.exit(code ?? 1);
|
|
28
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@websublime/nonio",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"homepage": "https://github.com/websublime/nonio#readme",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/websublime/nonio.git"
|
|
9
|
+
},
|
|
10
|
+
"description": "nonio://: interactive maps of how your code works, checked against the code. `nonio mcp` runs it as an MCP server.",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"mcp",
|
|
13
|
+
"code-map",
|
|
14
|
+
"architecture",
|
|
15
|
+
"diagram"
|
|
16
|
+
],
|
|
17
|
+
"bin": {
|
|
18
|
+
"nonio": "bin/nonio.js"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"bin",
|
|
22
|
+
"LICENSE",
|
|
23
|
+
"NOTICE"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18"
|
|
27
|
+
},
|
|
28
|
+
"optionalDependencies": {
|
|
29
|
+
"@websublime/nonio-darwin-arm64": "0.1.2",
|
|
30
|
+
"@websublime/nonio-darwin-x64": "0.1.2",
|
|
31
|
+
"@websublime/nonio-linux-arm64": "0.1.2",
|
|
32
|
+
"@websublime/nonio-linux-x64": "0.1.2",
|
|
33
|
+
"@websublime/nonio-win32-x64": "0.1.2"
|
|
34
|
+
}
|
|
35
|
+
}
|