@ycodium-ai/plugin-api 0.2.4351 → 0.2.4368
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/README.md +33 -1
- package/dist/dataPorts.gen.d.ts +8 -3
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/executor.d.ts +1 -0
- package/dist/executor.d.ts.map +1 -1
- package/dist/executor.js.map +1 -1
- package/dist/executorCard.d.ts +5 -2
- package/dist/executorCard.d.ts.map +1 -1
- package/dist/executorCard.js.map +1 -1
- package/dist/process-socket.d.ts +12 -20
- package/dist/process-socket.d.ts.map +1 -1
- package/dist/runtimes.d.ts +1 -1
- package/dist/runtimes.d.ts.map +1 -1
- package/dist/version.d.ts +3 -3
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -237,6 +237,19 @@ plugin depends on it.
|
|
|
237
237
|
|
|
238
238
|
## Permissions
|
|
239
239
|
|
|
240
|
+
Both `ctx.process` and executor `host.process.spawn` accept bare program names or absolute paths.
|
|
241
|
+
Exact lowercase `node` / `python` select Ycodium's managed runtime and its required environment; a missing
|
|
242
|
+
runtime fails without falling back to PATH. Other bare names, including `Node`, `node.exe` and `python3`,
|
|
243
|
+
use the machine's PATH. Windows resolution accepts executable extensions and ignores filename case.
|
|
244
|
+
Relative paths containing either separator are rejected. For a packaged executable, pass
|
|
245
|
+
`path.join(ctx.paths.pluginDir, "bin/helper")`; for downloaded programs, build from `ctx.paths.dataDir`.
|
|
246
|
+
|
|
247
|
+
Ordinary plugins declare `process.spawn.programs` as bare names, `./` paths inside the plugin,
|
|
248
|
+
`data:<relative path>`, or `config:<key>`. These prefixes describe allowed locations; calls pass the absolute
|
|
249
|
+
path or a declared `{ key }`. Bare names match verbatim, paths match normalized declaration paths.
|
|
250
|
+
`host:*` aliases are unsupported in declarations and calls. Executor plugins retain their existing
|
|
251
|
+
executor permission boundary. All resolution runs on the plugin's machine, including remote connections.
|
|
252
|
+
|
|
240
253
|
`ctx.process.spawn` accepts `jobPolicy: "strict" | "allowExplicitBreakaway" | "none"`
|
|
241
254
|
(Windows only, default `strict`). Explicit breakaway retains Job ownership for ordinary
|
|
242
255
|
descendants and permits only children created with `CREATE_BREAKAWAY_FROM_JOB` to leave;
|
|
@@ -360,6 +373,19 @@ npm search keywords:ycodium-plugin
|
|
|
360
373
|
Ycodium's plugin settings search the same way, so a published package with that keyword
|
|
361
374
|
shows up there without anyone registering it.
|
|
362
375
|
|
|
376
|
+
## Executor program paths
|
|
377
|
+
|
|
378
|
+
An executor card can let the host find its CLI by declaring a bare `commandName` and a
|
|
379
|
+
`configSchema` property with `control: "executable-path"`. The property key is up to the plugin.
|
|
380
|
+
Its value must be a non-empty absolute path on the target machine. Adding a provider detects the
|
|
381
|
+
command on that machine and fills the first such field in form order; installing from the add
|
|
382
|
+
dialog fills that same field after a successful installation. A card without this control gets no
|
|
383
|
+
automatic detection or post-install fill. On the edit form, each executable-path field's lookup
|
|
384
|
+
button writes back to that field.
|
|
385
|
+
|
|
386
|
+
Install-and-add also needs an executable installation declaration: `install: { kind: "npm" }` with
|
|
387
|
+
`npmPackage`, or a `vendorScript` installation. A download page alone does not provide it.
|
|
388
|
+
|
|
363
389
|
## Auxiliary executor operations
|
|
364
390
|
|
|
365
391
|
Forward the host's abort signal through every auxiliary operation, including
|
|
@@ -488,7 +514,13 @@ republish.
|
|
|
488
514
|
|
|
489
515
|
<!-- plugin-api-versions:start (generated by scripts/gen-plugin-api-version.ts from packages/plugin-api/version-history.json; edit that file) -->
|
|
490
516
|
|
|
491
|
-
The current API is **
|
|
517
|
+
The current API is **112**. This Ycodium loads plugins declaring 111 through 112.
|
|
518
|
+
|
|
519
|
+
API 112 adds optional requestSummary to member runtime reports
|
|
520
|
+
|
|
521
|
+
API 111 adds the machine action `runtime.diagnostics` and its optional `minutes` input to the machine task data ports, so a plugin can ask a machine to collect its recent server log and connection status
|
|
522
|
+
|
|
523
|
+
API 111 uses managed Node and Python for exact `node` / `python` program names in both plugin process APIs, including their required environment; rejects relative program arguments and removes `host:*` aliases. Keep `./`, `data:` and `config:` in permission declarations, and pass absolute paths when launching packaged programs.
|
|
492
524
|
|
|
493
525
|
API 110 adds the `process-exit` failure category (the agent process exited after the session was established; `transport` now means only the network channel to the provider) and types the `runtime.error` payload as `ExecutorRuntimeErrorPayload`: one user-facing sentence in `message`, optional `failureCategory`, `detail` and `class`. Adds `lastStderrLines(redacted, maxChars)` to `@ycodium-ai/plugin-api/process-stdin` for putting the end of a redacted stderr excerpt into such a message: it starts at a whole line when one fits, and a single over-long line is cut without splitting a surrogate pair or a redaction marker.
|
|
494
526
|
|
package/dist/dataPorts.gen.d.ts
CHANGED
|
@@ -934,6 +934,7 @@ type Objects_167 = {
|
|
|
934
934
|
readonly "memberId": string;
|
|
935
935
|
readonly "status": "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle";
|
|
936
936
|
readonly "lastAction"?: string;
|
|
937
|
+
readonly "requestSummary"?: string;
|
|
937
938
|
readonly "threadId": string;
|
|
938
939
|
readonly "environmentId": string;
|
|
939
940
|
readonly "online": boolean;
|
|
@@ -1227,7 +1228,7 @@ type AccountMachineDiscoveryStatus = {
|
|
|
1227
1228
|
};
|
|
1228
1229
|
type Objects_12 = {
|
|
1229
1230
|
readonly "actionId": string;
|
|
1230
|
-
readonly "kind": "install" | "detect" | "sign-in" | "update" | "uninstall" | "health-check" | "restart" | "upgrade" | "command" | "project-task";
|
|
1231
|
+
readonly "kind": "install" | "detect" | "sign-in" | "update" | "uninstall" | "health-check" | "restart" | "upgrade" | "command" | "diagnostics" | "project-task";
|
|
1231
1232
|
readonly "driver"?: string;
|
|
1232
1233
|
readonly "displayName"?: string;
|
|
1233
1234
|
readonly "description"?: string;
|
|
@@ -1242,6 +1243,7 @@ type Objects_145 = {
|
|
|
1242
1243
|
readonly "args"?: Arrays_2;
|
|
1243
1244
|
readonly "cwd"?: string;
|
|
1244
1245
|
readonly "timeoutSeconds"?: number;
|
|
1246
|
+
readonly "minutes"?: number;
|
|
1245
1247
|
};
|
|
1246
1248
|
type Arrays_4 = ReadonlyArray<Objects_19>;
|
|
1247
1249
|
type Arrays_5 = ReadonlyArray<Objects_19>;
|
|
@@ -3059,6 +3061,7 @@ export type MachineSettingsMachineTasksApproveInput = {
|
|
|
3059
3061
|
readonly "args"?: Arrays_2;
|
|
3060
3062
|
readonly "cwd"?: string;
|
|
3061
3063
|
readonly "timeoutSeconds"?: number;
|
|
3064
|
+
readonly "minutes"?: number;
|
|
3062
3065
|
};
|
|
3063
3066
|
readonly "rememberProject"?: boolean;
|
|
3064
3067
|
};
|
|
@@ -5300,7 +5303,7 @@ export type PluginsNotificationsListOutput = {
|
|
|
5300
5303
|
readonly "pluginId"?: string | undefined;
|
|
5301
5304
|
readonly "fallbackName"?: string | undefined;
|
|
5302
5305
|
readonly "failure": {
|
|
5303
|
-
readonly "kind": "npmTooOld" | "npmMissing" | "gitMissing" | "fileLocked" | "accessDenied" | "fsUnavailable" | "network" | "registryAuth" | "packageNotFound" | "buildScript" | "activation" | "missingDisplayName" | "plugin";
|
|
5306
|
+
readonly "kind": "npmTooOld" | "npmMissing" | "gitMissing" | "fileLocked" | "accessDenied" | "fsUnavailable" | "network" | "registryAuth" | "packageNotFound" | "buildScript" | "activation" | "missingDisplayName" | "unsupportedProcessProgram" | "plugin";
|
|
5304
5307
|
readonly "summary": string;
|
|
5305
5308
|
};
|
|
5306
5309
|
}>;
|
|
@@ -6031,6 +6034,7 @@ export type WorkRemoteAgentPendingGetOutput = {
|
|
|
6031
6034
|
readonly "args"?: Arrays_2;
|
|
6032
6035
|
readonly "cwd"?: string;
|
|
6033
6036
|
readonly "timeoutSeconds"?: number;
|
|
6037
|
+
readonly "minutes"?: number;
|
|
6034
6038
|
};
|
|
6035
6039
|
readonly "status": "queued" | "running";
|
|
6036
6040
|
readonly "autoApproved"?: true;
|
|
@@ -6741,6 +6745,7 @@ export type WorkMachineTasksCreateInput = {
|
|
|
6741
6745
|
readonly "args"?: Arrays_2;
|
|
6742
6746
|
readonly "cwd"?: string;
|
|
6743
6747
|
readonly "timeoutSeconds"?: number;
|
|
6748
|
+
readonly "minutes"?: number;
|
|
6744
6749
|
};
|
|
6745
6750
|
readonly "title"?: string;
|
|
6746
6751
|
readonly "approval"?: string;
|
|
@@ -7480,7 +7485,7 @@ export type ProjectsMachinesListEncodedOutput = {
|
|
|
7480
7485
|
readonly "wireProtocolVersion"?: number;
|
|
7481
7486
|
readonly "actions"?: ReadonlyArray<{
|
|
7482
7487
|
readonly "actionId": string;
|
|
7483
|
-
readonly "kind": "install" | "detect" | "sign-in" | "update" | "uninstall" | "health-check" | "restart" | "upgrade" | "command" | "project-task";
|
|
7488
|
+
readonly "kind": "install" | "detect" | "sign-in" | "update" | "uninstall" | "health-check" | "restart" | "upgrade" | "command" | "diagnostics" | "project-task";
|
|
7484
7489
|
readonly "driver"?: string;
|
|
7485
7490
|
readonly "displayName"?: string;
|
|
7486
7491
|
readonly "description"?: string;
|