Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions rust/contracts/application-boundary.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,15 +433,20 @@ edits, and launch planning, but must not implement a second JSON merger,
ID generator, or argument parser. Ecosystem-specific
arguments are built by the plugin that declared the run. Opening a project inspects existing files without writing; generation
is an explicit user action. Shared project overrides stay in
`.lithe/run/configurations.json`. Machine-local overrides may live in
`.lithe/run/local.json` or in a host-owned document supplied as
`localDocument`; absolute toolchain paths belong only in that local layer and
are excluded from project visibility and Git by default. Generic runtime
`.lithe/run/configurations.yaml`, and the configurations a plugin launches in
`.lithe/run/plugin/<plugin ID>.toml`, which records the plugin and the versions
it needs. Machine-local overrides live in `.lithe/run/local.yaml` and
`.lithe/run/plugin/<plugin ID>.local.toml`, or in a host-owned document supplied
as `localDocument` for a read. Core returns every edit as hash-checked file
changes that the platform applies. Absolute toolchain paths belong only in the local layer,
which is excluded from project visibility and Git by default. Generic runtime
executables such as Node are selected in `.lithe/toolchains/local.json`; this
machine-local document is also excluded from Git by default. Core discovers
no runnable entries and infers no runtime: generated configurations are the runs
build provider plugins declare, and a runtime binding is one a saved
configuration declares. An automatically discovered runtime
configuration declares. Starting a shell, PowerShell or batch script or a
program is Core's own (the `process.*` providers): the user creates these
configurations through `runConfig.editorForm`, and they run without any plugin. An automatically discovered runtime
path is session-effective: validation and launch share it, but persistence
still requires an explicit user selection.

Expand Down
28 changes: 28 additions & 0 deletions rust/contracts/run-configuration-v2.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,19 @@
}
}
},
"processOptions": {
"description": "Choices of a built-in process run (process.* providers); keys a later release adds are kept.",
"type": "object",
"properties": {
"script": { "type": "string", "minLength": 1, "maxLength": 4096 },
"text": { "type": "string", "minLength": 1, "maxLength": 1048576 },
"program": { "type": "string", "minLength": 1, "maxLength": 4096 },
"interpreter": { "type": "string", "minLength": 1, "maxLength": 4096 },
"interpreterArguments": { "type": "array", "maxItems": 256, "items": { "type": "string" } },
"executionPolicyBypass": { "type": "boolean" }
},
"not": { "required": ["script", "text"] }
},
"configuration": {
"type": "object",
"required": ["id", "provider"],
Expand Down Expand Up @@ -220,6 +233,21 @@
}
}
}
}, {
"if": { "properties": { "provider": { "pattern": "^process\\." } } },
"then": {
"properties": {
"provider": { "enum": ["process.shell", "process.powershell", "process.batch", "process.executable"] },
"execution": { "enum": ["application", "service", "task"] },
"command": false,
"toolchains": { "maxProperties": 0 },
"debug": false,
"members": { "maxItems": 0 },
"extensions": {
"properties": { "process": { "$ref": "#/$defs/processOptions" } }
}
}
}
}]
}
}
Expand Down
Loading
Loading