Skip to content

chore(deps-dev): bump globals from 16.1.0 to 17.6.0 - #1

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/globals-17.6.0
Closed

chore(deps-dev): bump globals from 16.1.0 to 17.6.0#1
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/globals-17.6.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 13, 2026

Copy link
Copy Markdown

Bumps globals from 16.1.0 to 17.6.0.

Release notes

Sourced from globals's releases.

v17.6.0

  • Update globals (2026-05-01) (#343) 00a4dd9

sindresorhus/globals@v17.5.0...v17.6.0

v17.5.0

  • Update globals (2026-04-12) (#342) 5d84602

sindresorhus/globals@v17.4.0...v17.5.0

v17.4.0

  • Update globals (2026-03-01) (#338) d43a051

sindresorhus/globals@v17.3.0...v17.4.0

v17.3.0

  • Update globals (2026-02-01) (#336) 295fba9

sindresorhus/globals@v17.2.0...v17.3.0

v17.2.0

  • jasmine: Add throwUnless and throwUnlessAsync globals (#335) 97f23a7

sindresorhus/globals@v17.1.0...v17.2.0

v17.1.0

  • Add webpack and rspack globals (#333) 65cae73

sindresorhus/globals@v17.0.0...v17.1.0

v17.0.0

Breaking

  • Split audioWorklet environment from browser (#320) 7bc293e

Improvements

  • Update globals (#329) ebe1063

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 13, 2026
Bumps [globals](https://github.com/sindresorhus/globals) from 16.1.0 to 17.6.0.
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](sindresorhus/globals@v16.1.0...v17.6.0)

---
updated-dependencies:
- dependency-name: globals
  dependency-version: 17.6.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/globals-17.6.0 branch from 733c857 to 72751bd Compare May 16, 2026 09:47
alsterg added a commit that referenced this pull request May 22, 2026
Added Gap #1 describing the parser-level pattern → query fallback
in NativeToolCallParser.ts, explaining why models confabulate
'pattern' (cross-tool name collision with sed/find_files) and
how the fix works without schema pollution. Renumbered existing
gaps #2#7 to #3#8.

chore(release): bump version to 0.22.27
alsterg added a commit that referenced this pull request May 24, 2026
…apply stats

Bumps shofer extension to 0.24.1.

Prompt clarifications (apply_diff, sed):
  - apply_diff: explain that :start_line: is a hint (the engine searches
    around it within a buffer window) and that all related edits should
    be batched into a single call as multiple SEARCH/REPLACE blocks.
    Document the default fuzzy threshold (1.0 / exact match, matching
    MultiSearchReplaceDiffStrategy) and the requirement to escape
    content lines that look like diff markers (=======, <<<<<<<, >>>>>>>)
    with a leading backslash.
  - sed: warn that `.` matches any character (the #1 cause of unexpected
    replacements, e.g. matching `/`) and document the correct escape
    `\.` / `[.]`. Document that `\n` in the JSON-encoded replacement is
    decoded to a real newline before `String.replace` runs (the prior
    draft incorrectly claimed the opposite).
  - native_tools.md: mirror both pitfalls as user-facing callouts.

apply_diff block-level reporting:
  - ApplyDiffTool now computes `totalBlocks` / `appliedBlocks` /
    `failedBlocks` once and surfaces them to the model via an opaque
    `extra` channel on DiffViewProvider.pushToolWriteResult. The model
    receives a `diff_stats` struct in the JSON response and a concise
    "N/M blocks applied" summary plus a remediation hint when any block
    failed ("use read_file to verify the current file state and
    re-apply the failed blocks"). Replaces the older absolute-path
    `partFailHint` which duplicated the same advice with worse wording.

DiffViewProvider refactor:
  - pushToolWriteResult is shared by 9 write tools (apply_diff, sed,
    edit, edit_file, write_to_file, insert_edit, search_replace,
    apply_patch, ...). The previous attempt at adding block stats
    leaked the apply_diff SEARCH/REPLACE format (regex on
    `<<<<<<< SEARCH`, knowledge of failParts) into this shared helper.
    Replaced with a generic `extra?: { summary?, hint?, stats? }`
    parameter; the provider stays format-agnostic and the strategy
    parsing lives where it belongs (ApplyDiffTool). Backward-compatible
    with all existing 3-arg call sites.
alsterg added a commit that referenced this pull request May 25, 2026
…omeView hotfix #2)

Hotfix #1 (08cb900) relocated `syncExperimentContextKeys` out of
`src/shared/experiments.ts` but missed a second offender: `src/shared/
modes.ts` carried `import * as vscode from "vscode"` at line 1, used
only by `getAllModesWithPrompts(context: vscode.ExtensionContext)`.

`src/shared/modes.ts` is imported by the webview bundle through the
`@shofer/shared/modes` alias (see `ExtensionStateContext.tsx`,
`SkillsSettings.tsx`, `CreateSkillDialog.tsx`), so the static `vscode`
import crashes the webview at module load with:

    Uncaught TypeError: Failed to resolve module specifier "vscode"

…leaving WelcomeView (and every other view) blank with no host-side
error. The same pattern bit `vsCodeSelectorUtils.ts`, which used the
value form `import { LanguageModelChatSelector } from "vscode"` for a
symbol that is only ever used as a type.

Fixes:

- Move `getAllModesWithPrompts` inline into its only caller,
  `src/core/prompts/sections/modes.ts` (host-only), with a comment
  pointing at the Shared Module Isolation Rule in AGENTS.md.
- Drop the `vscode` import from `src/shared/modes.ts`.
- Convert `vsCodeSelectorUtils.ts` + its spec to `import type` so the
  symbol is erased at compile time and never appears in the bundle.

Bumps to 0.26.12.
alsterg added a commit that referenced this pull request May 25, 2026
#3)

Hotfixes #1 (08cb900) and #2 (09d3858) purged the static `vscode`
import from `src/shared/experiments.ts` and `src/shared/modes.ts`
respectively. But `src/shared/modes.ts` still re-exported
`getFullModeDetails`, which transitively imported
`addCustomInstructions` from `src/core/prompts/sections/custom-
instructions.ts` — and that module imports `fs/promises`, `path`, and
`os`. The webview bundler cannot resolve Node built-ins any more than
it can resolve `vscode`, so the webview chunk still carried a stale
`shared/modes.ts` source-content reference to a host-only module and
the bundle still crashed at load time with `Uncaught TypeError: Failed
to resolve module specifier "vscode"` — surfaced this time from the
chain modes.ts → custom-instructions.ts.

(The reason the symptom looked identical even though the *direct*
offender had moved: the cached webview build under
`src/webview-ui/build/` was being replayed by turbo because edits to
`src/shared/*` did not invalidate the webview package's per-package
input hash. Fixed in the superproject by f537a95 which wires
`--no-cache` to wipe turbo/vite/tsbuildinfo caches for extension
builds. With that flag in hand a clean rebuild confirmed the bundle no
longer contains `import "vscode"`.)

Fix: move `getFullModeDetails` (the only remaining host-coupled symbol
in `src/shared/modes.ts`) into the new host-only module
`src/core/modes/getFullModeDetails.ts`, alongside its host-only spec
under `src/core/modes/__tests__/getFullModeDetails.test.ts`. Drop the
`addCustomInstructions` import from `src/shared/modes.ts`, and strip
the now-stale `getFullModeDetails` cases out of the webview-side
`src/shared/__tests__/modes.spec.ts`. Update the single host caller in
`src/core/environment/getEnvironmentDetails.ts` to import from the new
location.

Per the "Shared Module Isolation Rule" in AGENTS.md, files under
`src/shared/` MUST NOT statically import host-only modules — that
includes anything reaching `vscode`, `fs/promises`, `path`, `os`, or
host services. This commit closes the last such offender in modes.ts.

Bumps version to 0.26.14.
@alsterg alsterg closed this May 28, 2026
@alsterg
alsterg deleted the dependabot/npm_and_yarn/globals-17.6.0 branch May 28, 2026 14:43
@dependabot @github

dependabot Bot commented on behalf of github May 28, 2026

Copy link
Copy Markdown
Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

alsterg added a commit that referenced this pull request Jun 10, 2026
…se, clean token set, route diagnostics

✅ #1 (bare-bullet glued case): Changed REASONING_PREAMBLE_RE from
/^•\s*response\s*/i to /^•\s*(?:response\s*)?/i so a lone • prefix (glued
to real content like '•Okay…') is stripped. Updated UI guard in
ReasoningBlock.tsx to match.

✅ Fixed cleanReasoningChunk empty/whitespace handling: the empty check was
gated on cleaned !== text, so ''/'   ' (unchanged by stripping) returned
as-is. Now checks cleaned.trim().length === 0 independently.

✅ #5 (token set reconciliation): Removed 'answer'/'Answer' from
LEGACY_ATOMIC_TOKENS — a model's genuine first reasoning chunk could be the
word 'answer'. Added 'response' which was already expected by the test.
Updated tests to match.

✅ #7 (diagnostics): Removed the bare getOutputChannel() call from deepseek.ts.
Both providers now pass diagnosticLog through cleanReasoningChunk's util
param using lazy dynamic import (Circular-Import Lazy Logger Rule). Added
diagnostic logging to the OpenRouter reasoning_details path.

Tests: 28/28 passing (including the previously-failing 6 assertions).
alsterg added a commit that referenced this pull request Jun 12, 2026
…sks fixes

- Mark Known gap #1 (async messages to resumable-but-unloaded peers)
  as fixed in v1.0.86 — both sync and async modes now rehydrate.
- Update 'Target task has no active instance' section with the
  rehydration flow, sync busy fail-fast, and Form A/B routing.
- Update peers scope description to reflect ManagedTask.rootTaskId
  usage (terminal tasks included, no async history lookups).
alsterg added a commit that referenced this pull request Jun 13, 2026
Gap #1 claimed uuidv7 while gap #5 (and MessageQueueService: addMessage
line 43, prependMessage line 69, both uuidv4()) say uuidv4. Corrected the
self-contradiction.
alsterg added a commit that referenced this pull request Jul 7, 2026
…urface)

Add plugin-sandbox.ts: createPluginSandbox wraps a full HostBridge into the
restricted PluginHost. fs access is scoped to permissions.filesystem (resolved
against plugin root + workspace, traversal blocked); fetch is scoped to
permissions.network origins; notifier/env pass through. Out-of-scope access is
denied (throw + shown/logged warning). Capability wrapper only — no VM/worker
isolation (owner decision #1). Export warnPlugin from plugin-manager for reuse.
alsterg added a commit that referenced this pull request Jul 7, 2026
…ry render

The parsedRagSearch and parsedGitSearch useMemo hooks in ChatRow run
unconditionally on every message render (React rules-of-hooks). They
called raw JSON.parse(message.text), but message.text is only JSON for
rag_search_result/git_search_result say types — for every other message
(tool results, completion text, status strings) it's a plain string, so
the parse threw and logged console.error on every render, flooding the
console.

Replace the raw JSON.parse + console.error with safeJsonParse<T>(),
which is already imported and used 15+ times elsewhere in the same file.
It returns undefined on failure instead of throwing; the render cases
already handle undefined via optional chaining.

Fixes #1 in todos/shofer-ui-known-bugs.md.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant