pinokiod 7.1.17 → 7.1.19
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/shell/index.js +3 -0
- package/kernel/bin/bun.js +1 -0
- package/kernel/bin/caddy.js +1 -0
- package/kernel/bin/cli.js +1 -0
- package/kernel/bin/cuda.js +1 -0
- package/kernel/bin/ffmpeg.js +1 -0
- package/kernel/bin/git.js +1 -0
- package/kernel/bin/gxx.js +1 -0
- package/kernel/bin/huggingface.js +1 -0
- package/kernel/bin/index.js +17 -0
- package/kernel/bin/node.js +1 -0
- package/kernel/bin/py.js +1 -0
- package/kernel/bin/safechain.js +589 -0
- package/kernel/bin/setup.js +9 -0
- package/kernel/bin/tmux.js +1 -0
- package/kernel/bin/uv.js +1 -0
- package/kernel/bin/zip.js +1 -0
- package/kernel/shell.js +37 -12
- package/kernel/shells.js +8 -0
- package/package.json +1 -1
- package/prototype/system/SKILL_PINOKIO.md +42 -15
- package/server/index.js +45 -3
- package/server/lib/app_preferences.js +7 -0
- package/server/lib/terminal_session_helpers.js +8 -1
- package/server/lib/terminal_session_registry.js +8 -1
- package/server/public/universal-launcher.css +29 -0
- package/server/public/universal-launcher.js +153 -50
- package/server/views/app.ejs +8 -3
package/kernel/bin/bun.js
CHANGED
package/kernel/bin/caddy.js
CHANGED
|
@@ -6,6 +6,7 @@ const kill = require('kill-sync')
|
|
|
6
6
|
const Util = require('../util')
|
|
7
7
|
|
|
8
8
|
class Caddy {
|
|
9
|
+
description = "Installs Caddy for automatic local HTTPS and network sharing. You may be asked to approve certificate setup."
|
|
9
10
|
cmd() {
|
|
10
11
|
if (this.kernel.platform === "win32") {
|
|
11
12
|
return "caddy=2.9.1"
|
package/kernel/bin/cli.js
CHANGED
package/kernel/bin/cuda.js
CHANGED
|
@@ -3,6 +3,7 @@ const fs = require('fs')
|
|
|
3
3
|
const path = require('path')
|
|
4
4
|
const { glob } = require('glob')
|
|
5
5
|
class Cuda {
|
|
6
|
+
description = "Installs CUDA and cuDNN libraries for NVIDIA GPU workloads."
|
|
6
7
|
async hasNvTargetHeader() {
|
|
7
8
|
const prefix = this.kernel.bin.path("miniconda")
|
|
8
9
|
const patterns = [
|
package/kernel/bin/ffmpeg.js
CHANGED
package/kernel/bin/git.js
CHANGED
|
@@ -5,6 +5,7 @@ const semver = require('semver')
|
|
|
5
5
|
const { rimraf } = require('rimraf')
|
|
6
6
|
const path = require("path")
|
|
7
7
|
class Git {
|
|
8
|
+
description = "Installs Git, Git LFS, and GitHub CLI in the Pinokio environment."
|
|
8
9
|
cmd() {
|
|
9
10
|
if (this.kernel.platform === "darwin") {
|
|
10
11
|
return "git=2.51.0 git-lfs gh=2.82.1"
|
package/kernel/bin/gxx.js
CHANGED
package/kernel/bin/index.js
CHANGED
|
@@ -202,6 +202,23 @@ class Bin {
|
|
|
202
202
|
|
|
203
203
|
return e
|
|
204
204
|
}
|
|
205
|
+
activationCommands(shell, context) {
|
|
206
|
+
const commands = []
|
|
207
|
+
if (!this.mods) {
|
|
208
|
+
return commands
|
|
209
|
+
}
|
|
210
|
+
for (const mod of this.mods) {
|
|
211
|
+
if (mod.mod && typeof mod.mod.activationCommands === "function") {
|
|
212
|
+
const value = mod.mod.activationCommands(shell, context)
|
|
213
|
+
if (Array.isArray(value)) {
|
|
214
|
+
commands.push(...value.filter(Boolean))
|
|
215
|
+
} else if (value) {
|
|
216
|
+
commands.push(value)
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return commands
|
|
221
|
+
}
|
|
205
222
|
async init() {
|
|
206
223
|
this.requirements_cache = {}
|
|
207
224
|
this.mods = []
|
package/kernel/bin/node.js
CHANGED
package/kernel/bin/py.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const fse = require('fs-extra')
|
|
2
2
|
const path = require('path')
|
|
3
3
|
class Py {
|
|
4
|
+
description = "Clones Pinokio's Python helper app and sets up its virtual environment."
|
|
4
5
|
async install(req, ondata) {
|
|
5
6
|
await fse.remove(this.kernel.path('bin/py'))
|
|
6
7
|
await this.kernel.exec({
|