@karmaniverous/stan-cli 0.11.1 → 0.11.3

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 CHANGED
@@ -138,10 +138,10 @@ See [CLI Usage & Examples](https://docs.karmanivero.us/stan/documents/CLI_Usage_
138
138
 
139
139
  - [API reference](https://docs.karmanivero.us/stan)
140
140
  - Guides:
141
- - [Getting Started](https://docs.karmanivero.us/stan/documents/Getting_Started.html) — Install the CLI, initialize a repo, attach archives in chat, and use the bootloader with TypingMind (GPT‑5, High reasoning, 128k tokens).
141
+ - [Getting Started](https://docs.karmanivero.us/stan/documents/Getting_Started.html) — Install the CLI, initialize a repo, and attach archives in chat. Recommended chat setup: import the STAN GPT agent into TypingMind (bootloader included; requires GPT‑5 access) via [this link](https://www.typingmind.com/characters/c-01K5X5RVA4N1DWBQWWJBYDNX2W).
142
142
  - [The STAN Loop](https://docs.karmanivero.us/stan/documents/The_STAN_Loop.html) — How Build & Snapshot → Share & Baseline → Discuss & Patch work together.
143
143
  - [CLI Usage & Examples](https://docs.karmanivero.us/stan/documents/CLI_Usage___Examples.html) — Common flags and invocation patterns, including `-p`, `-P`, `-S`, `-A`, and `-c`.
144
- - [Migration — Namespaced Configuration](https://docs.karmanivero.us/stan/documents/Migration.html) — Upgrade legacy configs using `stan init` (backs up `.bak`; supports `--dry-run`).
144
+ - [Migration — Namespaced Configuration](https://docs.karmanivero.us/stan/documents/Migration.html) — Upgrade legacy configs using `stan init` (backs up `.bak`; supports `--dry-run`).
145
145
  - [Stan Configuration](https://docs.karmanivero.us/stan/documents/Stan_Configuration.html) — All config keys, includes/excludes semantics, and phase‑scoped CLI defaults.
146
146
  - [Patch Workflow & Diagnostics](https://docs.karmanivero.us/stan/documents/Patch_Workflow___Diagnostics.html) — Unified diff policy, diagnostics envelopes, and assistant expectations.
147
147
  - [Archives & Snapshots](https://docs.karmanivero.us/stan/documents/Archives___Snapshots.html) — What goes into `archive.tar`/`archive.diff.tar`, combine mode, and snapshot history. Additional references:
@@ -0,0 +1 @@
1
+ "use strict";var t=require("node:fs/promises"),e=require("node:path");const s=1048576;exports.classifyForArchive=async(n,r)=>{const a=[],i=[],o=[];await Promise.all(r.map(async r=>{const c=r.replace(/\\/g,"/"),l=e.resolve(n,r);let h=0;try{h=(await t.stat(l)).size}catch{return}let u,p=!1;try{p=await(async e=>{try{const s=await t.open(e,"r");try{const t=Buffer.allocUnsafe(8192),{bytesRead:e}=await s.read(t,0,t.length,0);for(let s=0;s<e;s+=1)if(0===t[s])return!0;return!1}finally{await s.close().catch(()=>{})}}catch{return!1}})(l)}catch{p=!1}if(p)i.push({path:c,size:h});else{a.push(c);try{(h<=s||h<5*s)&&(u=(t=>{const e=t.replace(/\r\n/g,"\n");return 0===e.length?0:e.split("\n").length})(await t.readFile(l,"utf8")))}catch{}(h>s||"number"==typeof u&&u>3e3)&&o.push({path:c,size:h,loc:u})}}));const c=[];if(i.length>0){c.push(`Binary files excluded from archive (${i.length.toString()}):`);for(const t of i)c.push(` - ${t.path} (${t.size.toString()} bytes)`);c.push("")}if(o.length>0){c.push(`Large text files (included; consider excludes if unwanted) (${o.length.toString()}):`);for(const t of o){const e=[` - ${t.path}`,`(${t.size.toString()} bytes)`];"number"==typeof t.loc&&e.push(`${t.loc.toString()} LOC`),c.push(e.join(" "))}c.push(""),c.push(`Thresholds: size > ${s.toString()} bytes or LOC > ${3e3.toString()}`)}0===c.length&&c.push("No archive warnings.");const l=c.join("\n")+(c.length?"\n":"");return{textFiles:a,excludedBinaries:i,largeText:o,warningsBody:l}};