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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const meta = {
|
|
2
|
+
name: "loglevel",
|
|
3
|
+
writable: true
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
let level = "info";
|
|
7
|
+
|
|
8
|
+
export async function read(ctx) {
|
|
9
|
+
ctx.stdout.write(level + "\n");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export async function write(ctx, data) {
|
|
13
|
+
level = data.trim();
|
|
14
|
+
ctx.stdout.write(`loglevel set to ${level}\n`);
|
|
15
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "function11",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "minimalist operating shell and control system designed for human–AI collaboration",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"author": "",
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"type": "module"
|
|
13
|
+
}
|