@spunto/build 0.23.0 → 0.24.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spunto/build",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "Spunto's shared Build engine — the devcontainer image protocol and VS Code extension registry clients, with no database, no HTTP framework and no UI.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -85,8 +85,11 @@ export const RUNNER_ENV = "SPUNTO_AGENT_RUNNER"
85
85
  * platform shows ("what the platform ran"): eight kilobytes of base64 there would bury the one line
86
86
  * worth reading. `--model` is appended by the platform like for any harness; `resume` adds the
87
87
  * session the platform read off the stream, passed as `$SPUNTO_TASK_SESSION_ID`.
88
+ *
89
+ * Only the app's id is needed (it names the file): the platform calls this for apps it learns of by
90
+ * their manifest, outside this package (RFC 0057).
88
91
  */
89
- export function runnerCommand(harness: AgentHarness, opts: { resume?: boolean } = {}): string {
92
+ export function runnerCommand(harness: Pick<AgentHarness, "id"> | { id: string }, opts: { resume?: boolean } = {}): string {
90
93
  const file = `"$HOME/.spunto/agents/${harness.id}.mjs"`
91
94
  return [
92
95
  `mkdir -p "$HOME/.spunto/agents" && printf %s "$${RUNNER_ENV}" | base64 -d > ${file} && unset ${RUNNER_ENV} &&`,