pinokiod 7.3.1 → 7.3.3
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/kernel/api/github/index.js +444 -0
- package/kernel/api/index.js +199 -11
- package/kernel/api/process/index.js +124 -44
- package/kernel/api/shell_run_template.js +273 -0
- package/kernel/api/uri/index.js +51 -0
- package/kernel/bin/git.js +9 -10
- package/kernel/bin/huggingface.js +1 -1
- package/kernel/bin/zip.js +9 -1
- package/kernel/connect/providers/github/README.md +5 -4
- package/kernel/environment.js +195 -92
- package/kernel/git.js +98 -19
- package/kernel/gitconfig_template +7 -0
- package/kernel/gpu/amd.js +72 -0
- package/kernel/gpu/apple.js +8 -0
- package/kernel/gpu/common.js +12 -0
- package/kernel/gpu/intel.js +47 -0
- package/kernel/gpu/nvidia.js +8 -0
- package/kernel/index.js +11 -1
- package/kernel/managed_skills.js +871 -0
- package/kernel/plugin.js +6 -58
- package/kernel/plugin_sources.js +316 -0
- package/kernel/resource_usage/gpu.js +349 -0
- package/kernel/resource_usage/index.js +322 -0
- package/kernel/resource_usage/macos_footprint.js +197 -0
- package/kernel/resource_usage/preferences.js +92 -0
- package/kernel/resource_usage/process_tree.js +303 -0
- package/kernel/scripts/git/create +4 -4
- package/kernel/scripts/git/fork +7 -8
- package/kernel/shell.js +23 -2
- package/kernel/shells.js +41 -0
- package/kernel/sysinfo.js +62 -9
- package/kernel/util.js +60 -0
- package/package.json +1 -1
- package/server/index.js +984 -156
- package/server/lib/app_log_report.js +543 -0
- package/server/lib/content_validation.js +55 -33
- package/server/lib/launcher_instruction_bootstrap.js +4 -96
- package/server/lib/terminal_session_helpers.js +0 -3
- package/server/public/common.js +77 -31
- package/server/public/create-launcher.js +4 -32
- package/server/public/logs.js +1428 -0
- package/server/public/nav.js +7 -0
- package/server/public/plugin-detail.js +93 -10
- package/server/public/privacy_filter_worker.js +391 -0
- package/server/public/style.css +1104 -154
- package/server/public/task-launcher.js +8 -29
- package/server/public/universal-launcher.css +8 -6
- package/server/public/universal-launcher.js +3 -27
- package/server/routes/apps.js +195 -1
- package/server/views/app.ejs +3041 -717
- package/server/views/autolaunch.ejs +917 -0
- package/server/views/bootstrap.ejs +7 -1
- package/server/views/d.ejs +408 -65
- package/server/views/editor.ejs +85 -19
- package/server/views/index.ejs +661 -111
- package/server/views/init/index.ejs +1 -1
- package/server/views/install.ejs +1 -1
- package/server/views/logs.ejs +164 -86
- package/server/views/net.ejs +7 -1
- package/server/views/partials/d_terminal_column.ejs +2 -2
- package/server/views/partials/d_terminal_options.ejs +0 -8
- package/server/views/partials/fs_status.ejs +47 -0
- package/server/views/partials/home_action_modal.ejs +86 -0
- package/server/views/partials/home_run_menu.ejs +87 -0
- package/server/views/partials/main_sidebar.ejs +2 -0
- package/server/views/partials/menu.ejs +1 -1
- package/server/views/plugin_detail.ejs +19 -4
- package/server/views/plugins.ejs +201 -3
- package/server/views/pre.ejs +1 -1
- package/server/views/pro.ejs +1 -1
- package/server/views/shell.ejs +40 -18
- package/server/views/skills.ejs +506 -0
- package/server/views/terminal.ejs +45 -19
- package/spec/INSTRUCTION_SYNC.md +20 -10
- package/system/plugin/antigravity-cli/antigravity.png +0 -0
- package/system/plugin/antigravity-cli/common.js +155 -0
- package/system/plugin/antigravity-cli/install.js +272 -0
- package/system/plugin/antigravity-cli/pinokio.js +13 -0
- package/system/plugin/antigravity-cli-auto/antigravity.png +0 -0
- package/system/plugin/antigravity-cli-auto/pinokio.js +13 -0
- package/system/plugin/claude/claude.png +0 -0
- package/system/plugin/claude/pinokio.js +47 -0
- package/system/plugin/claude-auto/claude.png +0 -0
- package/system/plugin/claude-auto/pinokio.js +58 -0
- package/system/plugin/claude-desktop/icon.jpeg +0 -0
- package/system/plugin/claude-desktop/pinokio.js +23 -0
- package/system/plugin/codex/openai.webp +0 -0
- package/system/plugin/codex/pinokio.js +42 -0
- package/system/plugin/codex-auto/openai.webp +0 -0
- package/system/plugin/codex-auto/pinokio.js +49 -0
- package/system/plugin/codex-desktop/icon.png +0 -0
- package/system/plugin/codex-desktop/pinokio.js +23 -0
- package/system/plugin/crush/crush.png +0 -0
- package/system/plugin/crush/pinokio.js +15 -0
- package/system/plugin/cursor/cursor.jpeg +0 -0
- package/system/plugin/cursor/pinokio.js +23 -0
- package/system/plugin/qwen/pinokio.js +34 -0
- package/system/plugin/qwen/qwen.png +0 -0
- package/system/plugin/vscode/pinokio.js +20 -0
- package/system/plugin/vscode/vscode.png +0 -0
- package/system/plugin/windsurf/pinokio.js +23 -0
- package/system/plugin/windsurf/windsurf.png +0 -0
- package/test/antigravity-cli-plugin.test.js +185 -0
- package/test/app-api.test.js +239 -0
- package/test/app-log-report.test.js +67 -0
- package/test/environment-cache-preflight.test.js +98 -0
- package/test/git-bin.test.js +59 -0
- package/test/git-defaults.test.js +97 -0
- package/test/github-api.test.js +158 -0
- package/test/github-connection.test.js +117 -0
- package/test/huggingface-bin.test.js +25 -0
- package/test/managed-skills.test.js +351 -0
- package/test/plugin-action-functions.test.js +337 -0
- package/test/plugin-dev-iframe.test.js +17 -0
- package/test/plugin-sources.test.js +203 -0
- package/test/privacy-filter-worker-heuristics.test.js +69 -0
- package/test/process-wait.test.js +169 -0
- package/test/script-api.test.js +97 -0
- package/test/shell-api.test.js +134 -0
- package/test/shell-run-template.test.js +209 -0
- package/test/storage-api.test.js +137 -0
- package/test/uri-api.test.js +100 -0
package/kernel/index.js
CHANGED
|
@@ -56,7 +56,7 @@ const VARS = {
|
|
|
56
56
|
|
|
57
57
|
//const memwatch = require('@airbnb/node-memwatch');
|
|
58
58
|
class Kernel {
|
|
59
|
-
schema = "<=7.
|
|
59
|
+
schema = "<=7.4.0"
|
|
60
60
|
constructor(store) {
|
|
61
61
|
this.fetch = fetch
|
|
62
62
|
|
|
@@ -89,6 +89,7 @@ class Kernel {
|
|
|
89
89
|
this.pinokio_configs = {}
|
|
90
90
|
this.shellpath = shellPath.sync()
|
|
91
91
|
this.favicon = new Favicon()
|
|
92
|
+
this.torch_backend = "cpu"
|
|
92
93
|
this.vram = 0
|
|
93
94
|
this.ram = 0
|
|
94
95
|
this.sysReady = new Promise((resolve) => {
|
|
@@ -385,6 +386,9 @@ class Kernel {
|
|
|
385
386
|
path(...args) {
|
|
386
387
|
return path.resolve(this.homedir, ...args)
|
|
387
388
|
}
|
|
389
|
+
systemPath(...args) {
|
|
390
|
+
return path.resolve(__dirname, "..", "system", ...args)
|
|
391
|
+
}
|
|
388
392
|
exists(...args) {
|
|
389
393
|
if (args) {
|
|
390
394
|
let abspath = this.path(...args)
|
|
@@ -1005,6 +1009,7 @@ class Kernel {
|
|
|
1005
1009
|
args: {},
|
|
1006
1010
|
}
|
|
1007
1011
|
this.procs = {}
|
|
1012
|
+
this.activeProcessWaits = {}
|
|
1008
1013
|
this.template = new Template()
|
|
1009
1014
|
try {
|
|
1010
1015
|
if (this.homedir) {
|
|
@@ -1014,6 +1019,7 @@ class Kernel {
|
|
|
1014
1019
|
system,
|
|
1015
1020
|
platform: this.platform,
|
|
1016
1021
|
arch: this.arch,
|
|
1022
|
+
torch_backend: this.torch_backend,
|
|
1017
1023
|
vram: this.vram,
|
|
1018
1024
|
ram: this.ram,
|
|
1019
1025
|
proxy: (port) => {
|
|
@@ -1051,6 +1057,9 @@ class Kernel {
|
|
|
1051
1057
|
|
|
1052
1058
|
// 2. mkdir all the folders if not already created
|
|
1053
1059
|
await Environment.init_folders(this.homedir, this)
|
|
1060
|
+
await Environment.ensurePinokioCacheDirs(this, {
|
|
1061
|
+
throwOnFailure: true
|
|
1062
|
+
})
|
|
1054
1063
|
|
|
1055
1064
|
// if key.json doesn't exist, create an empty json file
|
|
1056
1065
|
let ee = await this.exists(this.homedir, "key.json")
|
|
@@ -1239,6 +1248,7 @@ class Kernel {
|
|
|
1239
1248
|
this.sysinfo = info
|
|
1240
1249
|
this.gpu = info.gpu
|
|
1241
1250
|
this.gpu_model = info.gpu_model
|
|
1251
|
+
this.torch_backend = info.torch_backend || "cpu"
|
|
1242
1252
|
this.gpus = info.gpus
|
|
1243
1253
|
this.vram = typeof info.vram === "number" ? info.vram : 0
|
|
1244
1254
|
this.ram = typeof info.ram === "number" ? info.ram : 0
|