vigthoria-cli 1.13.30 → 1.13.31

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.
@@ -18,7 +18,13 @@ const TRIVIAL_HTML_PAGE = /\b(hello\s*world|simple\s+(?:html|web|page|site)|html
18
18
  /** User explicitly grants write permission after an analysis or confirmation gate. */
19
19
  const WRITE_PERMISSION_GRANT = /\b(?:hereby\s+confirm|i\s+confirm|confirm(?:ed)?\s+that|give\s+(?:you|permission)|granting\s+permission|allow\s+(?:you|me\s+to)|you\s+(?:may|can|have\s+permission\s+to)|permission\s+to|authorized?\s+to|approve(?:d)?\s+(?:the\s+)?(?:changes?|writes?|edits?)|go\s+ahead\s+and(?:\s+write|\s+apply|\s+make|\s+do)?|do\s+all\s+the\s+changes|apply\s+(?:the\s+)?(?:changes?|fixes?|fix)|proceed\s+with\s+(?:the\s+)?(?:changes?|fixes?|implementation|writes?)|make\s+(?:the\s+)?changes|please\s+write)\b/i;
20
20
  /** Fix/correct/repair syntax or errors — write path without requiring artifact nouns. */
21
- const FIX_CORRECT_INTENT = /\b(correct|fix|repair|resolve|patch|address|remedy)\b[\s\S]{0,48}\b(syntax|errors?|bugs?|issues?|defects?|mistakes?|typos?)\b|\b(syntax|errors?|bugs?|issues?|defects?)\b[\s\S]{0,48}\b(correct|fix|repair|resolve|patch)\b/i;
21
+ // Natural bug reports often describe the failing interaction before ending
22
+ // with a short "please fix it" sentence. Keep enough sentence-local context
23
+ // to connect that action to the defect instead of promoting an existing-file
24
+ // repair to a greenfield web build merely because `index.html` was named.
25
+ // Comprehensive redesign/overhaul intent is checked first by
26
+ // inferAgentTaskType, so this wider repair window does not downgrade it.
27
+ const FIX_CORRECT_INTENT = /\b(correct|fix|repair|resolve|patch|address|remedy)\b[\s\S]{0,160}\b(syntax|errors?|bugs?|issues?|defects?|mistakes?|typos?)\b|\b(syntax|errors?|bugs?|issues?|defects?)\b[\s\S]{0,160}\b(correct|fix|repair|resolve|patch)\b/i;
22
28
  /** Read-only audit: check/review/find issues without an paired fix/implement verb nearby. */
23
29
  const READ_ONLY_CHECK = /\b(check|verify|audit|inspect|review|investigate|look\s+for|find|scan|validate|examine)\b[\s\S]{0,60}\b(syntax|errors?|bugs?|issues?|missing|gaps?|functionality)\b/i;
24
30
  /** Strip CLI-appended platform / mode shaping so it cannot flip quality profiles. */
package/install.ps1 CHANGED
@@ -5,14 +5,17 @@
5
5
  $ErrorActionPreference = "Stop"
6
6
 
7
7
  # Configuration
8
- $CLI_VERSION = "1.13.30"
8
+ $CLI_VERSION = "1.13.31"
9
9
  $INSTALL_DIR = "$env:USERPROFILE\.vigthoria"
10
10
  $NPM_PACKAGE = "vigthoria-cli"
11
11
  $MANIFEST_URL = "https://extension.vigthoria.io/downloads/manifest.json"
12
12
  $HOSTED_TARBALL_URL = "https://extension.vigthoria.io/downloads/vigthoria-cli-$CLI_VERSION.tgz"
13
- $HOSTED_TARBALL_SHA256 = "1d125d37edb459a02ef3f38c0e8515622f3c6ea128199dbb1641d107c80020b9"
14
- $RELEASE_RESOLVER = Join-Path $PSScriptRoot "scripts\release\resolve-release-manifest.mjs"
15
- $RELEASE_INSTALLER = Join-Path $PSScriptRoot "scripts\release\install-release.mjs"
13
+ # Packaged installs resolve the signed manifest. The standalone hosted script
14
+ # is pinned after packing to the immutable archive digest; a pipe-to-iex copy
15
+ # has no PSScriptRoot and safely falls back to the exact npm package.
16
+ $HOSTED_TARBALL_SHA256 = ""
17
+ $RELEASE_RESOLVER = if ($PSScriptRoot) { Join-Path $PSScriptRoot "scripts\release\resolve-release-manifest.mjs" } else { "" }
18
+ $RELEASE_INSTALLER = if ($PSScriptRoot) { Join-Path $PSScriptRoot "scripts\release\install-release.mjs" } else { "" }
16
19
 
17
20
  function Assert-TrustedReleaseUrl([string]$Value) {
18
21
  $allowed = @(
package/install.sh CHANGED
@@ -26,11 +26,15 @@ else
26
26
  fi
27
27
 
28
28
  # Configuration
29
- CLI_VERSION="1.13.30"
29
+ CLI_VERSION="1.13.31"
30
30
  INSTALL_DIR="$HOME/.vigthoria"
31
31
  MANIFEST_URL="${VIGTHORIA_UPDATE_MANIFEST_URL:-https://extension.vigthoria.io/downloads/manifest.json}"
32
32
  HOSTED_TARBALL_URL="https://extension.vigthoria.io/downloads/vigthoria-cli-${CLI_VERSION}.tgz"
33
- HOSTED_TARBALL_SHA256="1d125d37edb459a02ef3f38c0e8515622f3c6ea128199dbb1641d107c80020b9"
33
+ # The packaged installer resolves the signed manifest. The independently
34
+ # hosted installer is rendered after packing with this release's exact digest.
35
+ # An empty package fallback uses the exact npm version instead of trusting an
36
+ # unsigned or circularly self-referential checksum.
37
+ HOSTED_TARBALL_SHA256=""
34
38
  INSTALLER_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" 2>/dev/null && pwd || true)"
35
39
  RELEASE_RESOLVER="$INSTALLER_ROOT/scripts/release/resolve-release-manifest.mjs"
36
40
  RELEASE_INSTALLER="$INSTALLER_ROOT/scripts/release/install-release.mjs"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vigthoria-cli",
3
- "version": "1.13.30",
3
+ "version": "1.13.31",
4
4
  "description": "Vigthoria Coder CLI - AI-powered terminal coding assistant",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",