gm-plugkit 2.0.2473 → 2.0.2474

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.
Files changed (2) hide show
  1. package/bootstrap.js +0 -23
  2. package/package.json +1 -1
package/bootstrap.js CHANGED
@@ -564,12 +564,6 @@ function discoverBundledSkillsAndSourcesLocal() {
564
564
  return found;
565
565
  }
566
566
 
567
- // Walks a (decompressed) POSIX tar stream's fixed 512-byte headers, yielding
568
- // each entry's name. `git archive --remote` was tried first and does NOT
569
- // work against GitHub (its git server returns HTTP 422 for upload-archive,
570
- // a documented GitHub limitation) -- codeload.github.com's tarball endpoint
571
- // is the real plain-HTTPS, non-api.github.com path that actually serves
572
- // repo content.
573
567
  function* tarEntryNames(buf) {
574
568
  let offset = 0;
575
569
  while (offset + 512 <= buf.length) {
@@ -596,12 +590,6 @@ async function discoverRemoteSkillNamesViaCodeload(timeoutMs) {
596
590
  return Array.from(names);
597
591
  }
598
592
 
599
- // The GitHub Contents API this normally uses already fails soft (caller
600
- // falls back to bundled local skills), but a fully API-scope-restricted
601
- // environment (a corporate proxy or org policy blocking api.github.com
602
- // specifically) loses fresh remote skill discovery entirely even though
603
- // the same repo is reachable over codeload.github.com's plain-HTTPS
604
- // tarball endpoint -- a different host, no API token or REST surface.
605
593
  async function discoverRemoteSkillNames(timeoutMs) {
606
594
  const url = `https://api.github.com/repos/${SKILL_MD_REMOTE_REPO}/contents/skills?ref=${SKILL_MD_REMOTE_BRANCH}`;
607
595
  try {
@@ -734,11 +722,6 @@ function compareDottedSemverAscending(a, b) {
734
722
  return 0;
735
723
  }
736
724
 
737
- // Fallback when the Releases-list API is unreachable: git ls-remote can
738
- // see every tag over plain git protocol without touching api.github.com,
739
- // but cannot see release ASSETS -- so a tag it finds is verified against
740
- // a HEAD probe on the raw release-download URL for plugkit.wasm before
741
- // being trusted, matching the API path's own hasPlugkitWasm check.
742
725
  async function resolveLatestRemoteVersionViaGit(timeoutMs) {
743
726
  const { execFileSync } = require('child_process');
744
727
  const out = execFileSync('git', ['ls-remote', '--tags', '--refs', 'https://github.com/AnEntrypoint/plugkit-bin.git'], {
@@ -945,12 +928,6 @@ function latestAgentplugRunnerTagViaGitLsRemote() {
945
928
  return tags[tags.length - 1];
946
929
  }
947
930
 
948
- // The sole loader has to exist before startSpoolDaemon can do anything --
949
- // a project that never ran `gm-skill install` (or whose install predates
950
- // agentplug-runner) hit a hard "not installed" failure here even though
951
- // the sha256-verified download this needs is the same one bin/install.js
952
- // already performs. Attempting it inline means a bare `spool` boot recovers
953
- // on its own instead of requiring a separate manual install step first.
954
931
  async function ensureAgentplugRunnerInstalled(destPath) {
955
932
  const assetName = agentplugRunnerAssetName();
956
933
  if (!assetName) return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.2473",
3
+ "version": "2.0.2474",
4
4
  "description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform wasm, verifies SHA256, and launches agentplug-runner (the native wasm host) as the spool watcher daemon.",
5
5
  "main": "index.js",
6
6
  "bin": {