function11 1.0.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/.claude/settings.local.json +7 -0
- package/CHANGELOG.md +56 -0
- package/INSTRUCTIONS.md +1123 -0
- package/README.md +366 -0
- package/fn.js +177 -0
- package/fs/bin/host.exec.js +22 -0
- package/fs/bin/ls.js +14 -0
- package/fs/bin/man.js +21 -0
- package/fs/man/ls.md +26 -0
- package/fs/man/man.md +31 -0
- package/fs/proc/self/approve.js +33 -0
- package/fs/proc/self/kill.js +5 -0
- package/fs/proc/self/status.js +8 -0
- package/fs/proc/sys/loglevel.js +15 -0
- package/fs/proc/sys/sessions.js +5 -0
- package/fs/proc/sys/uptime.js +11 -0
- package/package.json +13 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# 1.0.0
|
|
2
|
+
|
|
3
|
+
What's Been Implemented
|
|
4
|
+
|
|
5
|
+
Function11 is now fully operational with all core features from the instructions:
|
|
6
|
+
|
|
7
|
+
Kernel (fn.js)
|
|
8
|
+
|
|
9
|
+
- Long-lived Node.js daemon with session management
|
|
10
|
+
- Per-session namespaces and /proc views
|
|
11
|
+
- Command dispatcher
|
|
12
|
+
- Approval system
|
|
13
|
+
- Interactive shell with readline
|
|
14
|
+
|
|
15
|
+
Commands (/fs/bin/)
|
|
16
|
+
|
|
17
|
+
- ls - List available commands
|
|
18
|
+
- man - Read command documentation
|
|
19
|
+
- host.exec - Example privileged command requiring approval
|
|
20
|
+
|
|
21
|
+
Documentation (/fs/man/)
|
|
22
|
+
|
|
23
|
+
- ls.md - Documentation for ls command
|
|
24
|
+
- man.md - Documentation for man command
|
|
25
|
+
|
|
26
|
+
Control Surfaces (/fs/proc/)
|
|
27
|
+
|
|
28
|
+
Session-scoped (/proc/self/):
|
|
29
|
+
- status - View session state
|
|
30
|
+
- kill - Terminate session
|
|
31
|
+
- approve - Approval gate (read pending, write yes/no)
|
|
32
|
+
|
|
33
|
+
System-wide (/proc/sys/):
|
|
34
|
+
- uptime - Kernel uptime
|
|
35
|
+
- loglevel - Global log level (read/write)
|
|
36
|
+
- sessions - List all active sessions
|
|
37
|
+
|
|
38
|
+
Try It Out
|
|
39
|
+
|
|
40
|
+
./fn.js
|
|
41
|
+
|
|
42
|
+
Then experiment with:
|
|
43
|
+
|
|
44
|
+
fn> ls
|
|
45
|
+
fn> man ls
|
|
46
|
+
fn> cat /proc/self/status
|
|
47
|
+
fn> cat /proc/sys/uptime
|
|
48
|
+
fn> echo debug > /proc/sys/loglevel
|
|
49
|
+
fn> cat /proc/sys/loglevel
|
|
50
|
+
fn> host.exec rm -rf /
|
|
51
|
+
|
|
52
|
+
For the approval demo, open another terminal and approve:
|
|
53
|
+
fn> cat /proc/self/approve
|
|
54
|
+
fn> echo yes > /proc/self/approve
|
|
55
|
+
|
|
56
|
+
This is the seed crystal. Everything is discoverable, inspectable, and honest.
|