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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(chmod:*)"
5
+ ]
6
+ }
7
+ }
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.