pinokiod 3.2.92 → 3.2.94

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.
@@ -119,11 +119,14 @@ conda-libmamba-solver=24.7.0`)
119
119
  let cmds = [
120
120
  //"conda clean -y --index-cache",
121
121
  "conda clean -y --all",
122
+ `conda config --file ${this.kernel.path('condarc')} --set remote_connect_timeout_secs 20`,
122
123
  `conda config --file ${this.kernel.path('condarc')} --set remote_read_timeout_secs 300`,
124
+ `conda config --file ${this.kernel.path('condarc')} --set remote_max_retries 6`,
123
125
  // "conda install libsqlite --force-reinstall -y",
124
126
  // `conda config --file ${this.kernel.path('condarc')} --set auto_update_conda False`,
125
127
  "conda install -y conda-libmamba-solver=24.7.0 conda=24.7.1",
126
128
  "conda update -y --all",
129
+ "conda clean -y --all",
127
130
  // "conda update -y conda",
128
131
  // "conda update -y --all",
129
132
  ]
package/kernel/shell.js CHANGED
@@ -110,7 +110,6 @@ class Shell {
110
110
  delete this.env.CUDA_PATH
111
111
  }
112
112
 
113
- this.env.PINOKIO_SHELL_START = Date.now()
114
113
  this.env.CMAKE_OBJECT_PATH_MAX = 1024
115
114
  this.env.PYTORCH_ENABLE_MPS_FALLBACK = 1
116
115
  // this.env.NPM_CONFIG_USERCONFIG = this.kernel.path("user_npmrc")
@@ -454,10 +453,8 @@ class Shell {
454
453
  let delimiter
455
454
  if (this.platform === "win32") {
456
455
  delimiter = " && "; // must use &&. & doesn't necessariliy wait until the curruent command finishes
457
- params.message.push(`echo "--- pinokio shell.run finished: %PINOKIO_SHELL_START% ---"`)
458
456
  } else {
459
457
  delimiter = " ; ";
460
- params.message.push('echo "--- pinokio shell.run finished $PINOKIO_SHELL_START ---"')
461
458
  }
462
459
  return params.message.filter((m) => {
463
460
  return m && !/^\s+$/.test(m)
@@ -844,13 +841,9 @@ ${cleaned}
844
841
  // Decide whether to kill or continue
845
842
  if (this.ready) {
846
843
  // when ready, watch out for the prompt pattern that terminates with [\r\n ]
847
- //let termination_prompt_re = new RegExp(this.prompt_pattern + "[ \r\n]*$", "g")
848
- let termination_prompt_re = new RegExp(".*--- pinokio shell.run finished: [0-9]+ ---.*", "g")
844
+ let termination_prompt_re = new RegExp(this.prompt_pattern + "[ \r\n]*$", "g")
849
845
  let line = cleaned.replaceAll(/[\r\n]/g, "")
850
846
  let test = line.match(termination_prompt_re)
851
- console.log(">> LINE, TEST")
852
- console.log("line", line)
853
- console.log("test", test)
854
847
  if (test) {
855
848
  let cache = cleaned
856
849
  let cached_msg = msg
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.92",
3
+ "version": "3.2.94",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {