@yanlinglabs/winter-agent-runtime 0.0.41 → 0.0.43
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/dist/commands/resolver.d.ts +8 -13
- package/dist/context/agent-listing.d.ts +7 -11
- package/dist/context/attachments.d.ts +14 -23
- package/dist/context/dynamic-sections.d.ts +5 -5
- package/dist/context/git-branch-fixture.d.ts +22 -0
- package/dist/context/git-status.d.ts +2 -2
- package/dist/context/memory.d.ts +1 -1
- package/dist/context/output-styles.d.ts +2 -2
- package/dist/context/request-layout.d.ts +16 -17
- package/dist/context/seam.d.ts +7 -6
- package/dist/embedded-worker.js +3 -3
- package/dist/embedded.js +3 -3
- package/dist/engine.d.ts +3 -3
- package/dist/{index-ey5c52j3.js → index-14xkt4jp.js} +2 -2
- package/dist/{index-hdvvezf8.js → index-bh1ve8ws.js} +238 -154
- package/dist/{index-z9yngxj4.js → index-kqc3tdph.js} +964 -826
- package/dist/index.js +1 -1
- package/dist/mcp/lifecycle.d.ts +2 -1
- package/dist/permissions/edit-recognition.d.ts +1 -1
- package/dist/permissions/evaluator.d.ts +19 -30
- package/dist/permissions/file-rules.d.ts +177 -277
- package/dist/permissions/grammar.d.ts +58 -0
- package/dist/permissions/policy-state.d.ts +1 -1
- package/dist/permissions/ruleset.d.ts +1 -1
- package/dist/permissions/shell-structure.d.ts +1 -1
- package/dist/plugins/bundle.d.ts +4 -6
- package/dist/plugins/loader.corpus-fixture.d.ts +26 -0
- package/dist/plugins/loader.d.ts +3 -4
- package/dist/plugins/manifest.d.ts +23 -46
- package/dist/production-wiring.d.ts +1 -1
- package/dist/provider/lean-prompt.d.ts +1 -6
- package/dist/sandbox/profile.d.ts +39 -79
- package/dist/sandbox/spawn.d.ts +5 -6
- package/dist/skills/listing.d.ts +8 -26
- package/dist/skills/store.d.ts +2 -3
- package/dist/store/dialect.d.ts +1 -1
- package/dist/subagents/availability.d.ts +10 -8
- package/dist/subagents/child-handle.d.ts +5 -5
- package/dist/subagents/definitions.d.ts +7 -6
- package/dist/subagents/fork.d.ts +4 -8
- package/dist/subagents/notification-queue.d.ts +30 -38
- package/dist/testing.js +2 -2
- package/dist/tools/descriptors/web-fetch.d.ts +1 -1
- package/dist/tools/descriptors/web-search.d.ts +1 -1
- package/dist/tools/impl/_search-budget.d.ts +1 -1
- package/dist/tools/impl/_web-fetch-net.d.ts +6 -6
- package/dist/tools/impl/_web-search-assembler.d.ts +7 -20
- package/dist/tools/impl/background-task-runtime.d.ts +13 -13
- package/dist/tools/impl/bash.d.ts +3 -3
- package/dist/tools/impl/monitor.d.ts +2 -2
- package/dist/toolsearch/exposure.d.ts +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/web/fetchable-url.d.ts +1 -1
- package/dist/web/preapproved-hosts.d.ts +9 -31
- package/dist/workflows/store.d.ts +23 -31
- package/package.json +4 -4
package/dist/index.js
CHANGED
package/dist/mcp/lifecycle.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ export { validateServerConfig };
|
|
|
79
79
|
* server that under their brand is called `acme`.
|
|
80
80
|
*
|
|
81
81
|
* The parameter defaults to `WINTER_SERVER_NAME`, so every existing caller and fixture keeps today's
|
|
82
|
-
* behaviour
|
|
82
|
+
* behaviour unchanged.
|
|
83
83
|
*/
|
|
84
84
|
export declare function resolveMcpServerSources(sources: readonly McpServerSource[], opts: {
|
|
85
85
|
strictMcpConfig?: boolean;
|
|
@@ -95,6 +95,7 @@ export interface McpDiscoveryCache {
|
|
|
95
95
|
}
|
|
96
96
|
export declare function createInMemoryDiscoveryCache(): McpDiscoveryCache;
|
|
97
97
|
export declare const FIRST_TURN_MCP_WAIT_DEFAULT_MS = 2000;
|
|
98
|
+
/** The first-turn MCP wait's deadline: 2000 ms, or MCP_TIMEOUT when the explicit MCP config asks for the long wait (spec: first-turn-mcp-wait.md). */
|
|
98
99
|
export declare function firstTurnMcpWaitDeadlineMs(opts: {
|
|
99
100
|
strictMcpConfig?: boolean;
|
|
100
101
|
explicitServers?: Readonly<Record<string, unknown>>;
|
|
@@ -25,6 +25,6 @@ export declare function recognizeEditOperation(call: {
|
|
|
25
25
|
* Why a shell command's WRITES cannot be auto-approved, or `undefined`: a process substitution, a
|
|
26
26
|
* command that cannot be parsed, a write target that is a variable/command expansion, a `~user` form
|
|
27
27
|
* or a glob, and `cp`/`mv` with ANY flag (`--target-directory=PATH` hides the destination). The
|
|
28
|
-
* working-directory and `cd` checks that follow
|
|
28
|
+
* working-directory and `cd` checks that follow these are evaluator.ts's (they need the session).
|
|
29
29
|
*/
|
|
30
30
|
export declare function shellWriteConstraint(command: string): string | undefined;
|
|
@@ -82,8 +82,8 @@ export interface EvaluationContext {
|
|
|
82
82
|
cwd: string;
|
|
83
83
|
/**
|
|
84
84
|
* Does this Bash call's `dangerouslyDisableSandbox` actually take it OUT of a sandbox it would
|
|
85
|
-
* otherwise run in? (dist-session fixes, lane C C3 --
|
|
86
|
-
*
|
|
85
|
+
* otherwise run in? (dist-session fixes, lane C C3 -- the call would be sandboxed without the flag
|
|
86
|
+
* and is not sandboxed with it.) False when the session's sandbox
|
|
87
87
|
* is off, when the policy forbids unsandboxed commands (the flag is then ignored), or when the
|
|
88
88
|
* command is an allowed `excludedCommands` entry. Only such a call is an ESCAPE, handled by
|
|
89
89
|
* `resolveSandboxEscape`. Injected because the evaluator cannot see the session's sandbox settings;
|
|
@@ -133,8 +133,8 @@ export interface EvaluationContext {
|
|
|
133
133
|
/**
|
|
134
134
|
* The session's outputs directory (`RuntimeConfig.outputsDir`, exported to the shell as `$OUTDIR`).
|
|
135
135
|
* Two effects, both mirroring what the Bash tool already does with it (a sandbox-writable root):
|
|
136
|
-
* a shell write there is inside the session's writable directories (
|
|
137
|
-
*
|
|
136
|
+
* a shell write there is inside the session's writable directories (sandbox-writable locations count
|
|
137
|
+
* as allowed write locations, as in Claude Code), and, when it sits inside the winter home, the protected floor's winter-home part does not
|
|
138
138
|
* cover it (protected.ts's outputs carve-out). It is NOT a working directory: acceptEdits and the
|
|
139
139
|
* mode allows are unchanged. Absent = no outputs directory.
|
|
140
140
|
*/
|
|
@@ -220,32 +220,21 @@ export declare const NO_SPECIAL_CHECKS: SpecialChecks;
|
|
|
220
220
|
export declare function boundedRoots(ctx: EvaluationContext): string[];
|
|
221
221
|
export declare function extractCandidateWritePaths(call: PermissionCall, ctx: EvaluationContext): string[];
|
|
222
222
|
/**
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
* on. Porting an intentional no-op would just be dead code; omitted, disclosed rather than
|
|
239
|
-
* silently dropped.
|
|
240
|
-
*
|
|
241
|
-
* `FU` (dump byte 11268201: `function FU(t){return lt.test(t)||t.includes("??")&<.test(pt(t))}`,
|
|
242
|
-
* `pt` win32-normalizes only on Windows, else identity) IS ported below, in its macOS-reduced form
|
|
243
|
-
* (`pt` is the identity function here, so `FU` reduces to the single regex test) -- claude calls it
|
|
244
|
-
* unconditionally, not gated to Windows, so this is a straight port, not a judgment call. `lt`'s own
|
|
245
|
-
* literal bytes (re-verified with a fresh byte-slice extraction after an advisor review caught a
|
|
246
|
-
* narrower first draft: the dump's raw bytes are `[` `\` `\` `/` `]`, i.e. a JS source character
|
|
247
|
-
* class holding an ESCAPED backslash plus a forward slash) is `/^[\\/]\?\?[\\/]/` -- EITHER separator
|
|
248
|
-
* at both ends (`\??\`, `\??/`, `/??\`, `/??/`), not `/` alone.
|
|
223
|
+
* Whether a write target's path has a shape that Windows (or a Windows filesystem mounted elsewhere)
|
|
224
|
+
* could resolve to a DIFFERENT file than the text suggests. Such a write always asks, before any
|
|
225
|
+
* other approval logic, and is never classifier- or auto-approvable (stage 3's mandatory-ask
|
|
226
|
+
* reasons). Applied on every OS, as Claude Code does. True when ANY of these holds:
|
|
227
|
+
* - the path starts with a separator (`/` or `\`), then `??`, then a separator (an NT object path:
|
|
228
|
+
* `\??\`, `/??/`, `\??/`, `/??\`);
|
|
229
|
+
* - `~` followed by an ASCII digit appears anywhere (an 8.3 short name such as `PROGRA~1`);
|
|
230
|
+
* - the path starts with `\\?\`, `\\.\`, `//?/` or `//./` (a device or long-path prefix);
|
|
231
|
+
* - a path component -- splitting on both `/` and `\`, and skipping empty components, `.` and `..`
|
|
232
|
+
* -- ends in a `.` or a whitespace character (`\s`): Windows strips those, so `.bashrc.` and
|
|
233
|
+
* `.bashrc ` name `.bashrc` there (this covers a component of three or more dots too);
|
|
234
|
+
* - the WHOLE path ends in `.` plus a reserved device name -- `CON`, `PRN`, `AUX`, `NUL`, `COM1`-`COM9`
|
|
235
|
+
* or `LPT1`-`LPT9`, in any letter case (`notes.CON`). A bare device name (`/w/CON`) is not flagged.
|
|
236
|
+
* Windows-only checks that depend on running on Windows (alternate data streams, drive-relative
|
|
237
|
+
* paths) do not apply on macOS and are not made.
|
|
249
238
|
*/
|
|
250
239
|
export declare function isSuspiciousPath(path: string): boolean;
|
|
251
240
|
export declare const REAL_SPECIAL_CHECKS: SpecialChecks;
|