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.
@@ -123,6 +123,9 @@ class Shell {
123
123
  }
124
124
  }
125
125
  */
126
+ if (!req.params) {
127
+ req.params = {}
128
+ }
126
129
  if (req.params) {
127
130
  req.params.$parent = req.parent
128
131
  }
package/kernel/bin/bun.js CHANGED
@@ -4,6 +4,7 @@ const Util = require("../util")
4
4
  const BUN_VERSION = "1.3.11"
5
5
 
6
6
  class Bun {
7
+ description = "Installs Bun, a fast JavaScript runtime and package manager."
7
8
  cmd() {
8
9
  return `bun@${BUN_VERSION}`
9
10
  }
@@ -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
@@ -2,6 +2,7 @@ const path = require('path')
2
2
  const semver = require('semver')
3
3
  const Util = require('../util')
4
4
  class CLI {
5
+ description = "Installs pterm, the Pinokio terminal CLI."
5
6
  version = ">=0.0.25"
6
7
  async install(req, ondata) {
7
8
  await this.kernel.exec({
@@ -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 = [
@@ -3,6 +3,7 @@ const fetch = require('cross-fetch')
3
3
  const { rimraf } = require('rimraf')
4
4
  const decompress = require('decompress');
5
5
  class Ffmpeg {
6
+ description = "Installs FFmpeg for audio and video processing."
6
7
  cmd() {
7
8
  return "ffmpeg=7.0.2"
8
9
  }
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
@@ -1,4 +1,5 @@
1
1
  class GXX {
2
+ description = "Installs the GNU C++ compiler toolchain for Linux builds."
2
3
  cmd() {
3
4
  if (this.kernel.platform === "linux") {
4
5
  return "'gxx<12'"
@@ -1,5 +1,6 @@
1
1
  const semver = require('semver')
2
2
  class Huggingface {
3
+ description = "Installs huggingface_hub for downloading models and assets from Hugging Face."
3
4
  cmd() {
4
5
  //return 'huggingface_hub "hf-xet!=1.1.10"'
5
6
  return 'huggingface_hub=1.0.1'
@@ -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 = []
@@ -5,6 +5,7 @@ const decompress = require('decompress');
5
5
  const NODE_VERSION = "22.21.1"
6
6
 
7
7
  class Node {
8
+ description = "Installs Node.js and pnpm in the Pinokio environment."
8
9
  cmd() {
9
10
  return `nodejs=${NODE_VERSION} pnpm`
10
11
  }
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({