mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-13 08:42:31 +02:00
feat: add read-only Itō compute handoff (#2554)
* feat: add read-only Itō compute handoff * fix(ito): keep handoff portable under CI * test(ito): run npm welcome through Windows shell
This commit is contained in:
parent
a3130f9ebf
commit
7b03a834b3
8 changed files with 830 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ const { spawnSync } = require('child_process');
|
|||
const path = require('path');
|
||||
const { listAvailableLanguages } = require('./lib/install-executor');
|
||||
const { getComputeSponsorCopy } = require('./lib/compute-sponsor');
|
||||
const { createSafeItoEnvironment } = require('./lib/ito-environment');
|
||||
|
||||
const COMMANDS = {
|
||||
install: {
|
||||
|
|
@ -26,6 +27,10 @@ const COMMANDS = {
|
|||
script: 'control-pane.js',
|
||||
description: 'Run the local ECC2 operator control pane',
|
||||
},
|
||||
ito: {
|
||||
script: 'ito.js',
|
||||
description: 'Prepare a read-only sandbox handoff to the Itô compute desk',
|
||||
},
|
||||
'install-plan': {
|
||||
script: 'install-plan.js',
|
||||
description: 'Alias for plan',
|
||||
|
|
@ -86,6 +91,7 @@ const PRIMARY_COMMANDS = [
|
|||
'catalog',
|
||||
'consult',
|
||||
'control-pane',
|
||||
'ito',
|
||||
'list-installed',
|
||||
'doctor',
|
||||
'repair',
|
||||
|
|
@ -132,6 +138,8 @@ Examples:
|
|||
ecc catalog show framework:nextjs
|
||||
ecc consult "security reviews"
|
||||
ecc control-pane --port 8765
|
||||
ecc ito rent --accelerator h100 --count 1 --hours 24
|
||||
ecc --dry-run ito rent --accelerator h100 --count 1 --hours 24 --json
|
||||
ecc list-installed --json
|
||||
ecc doctor --target cursor
|
||||
ecc repair --dry-run
|
||||
|
|
@ -223,7 +231,9 @@ function runCommand(commandName, args) {
|
|||
[path.join(__dirname, command.script), ...args],
|
||||
{
|
||||
cwd: process.cwd(),
|
||||
env: process.env,
|
||||
env: commandName === 'ito'
|
||||
? { ...createSafeItoEnvironment(process.env, { includeControls: true }) }
|
||||
: process.env,
|
||||
encoding: 'utf8',
|
||||
maxBuffer: 10 * 1024 * 1024,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue