@code-partner/codepipe 0.1.128-dev.25.gdf270fe → 0.1.128

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/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- var ce="0.1.128-dev.25.gdf270fe",me="https://hub.dev.codepipe.dev";var ge=2,Dc=1;function fr(t){return typeof t!="number"||!Number.isFinite(t)?!1:t>=Dc&&t<=ge}var xe=".devpipe-context.yaml",$n=[{version:1,summary:"ADR section: adr/ scaffold (README, template, derived INDEX) + the format-version stamp itself",addedPaths:["adr/README.md","adr/0000-template.md","adr/INDEX.md",xe]}];function mr(t=1){return`# CodePipe Context Repo format version.
2
+ var ce="0.1.128",me="https://hub.codepipe.dev";var ge=2,Dc=1;function fr(t){return typeof t!="number"||!Number.isFinite(t)?!1:t>=Dc&&t<=ge}var xe=".devpipe-context.yaml",$n=[{version:1,summary:"ADR section: adr/ scaffold (README, template, derived INDEX) + the format-version stamp itself",addedPaths:["adr/README.md","adr/0000-template.md","adr/INDEX.md",xe]}];function mr(t=1){return`# CodePipe Context Repo format version.
3
3
  # Bumped by the scaffold / the format-migration PR \u2014 do not edit by hand.
4
4
  template_version: ${t}
5
5
  `}function xn(t){if(!t)return 0;let e=/^\s*template_version:\s*(\d+)\s*$/m.exec(t),r=e?parseInt(e[1]??"",10):NaN;return Number.isFinite(r)&&r>=0?r:0}function vn(t,e=$n){let r=[];for(let o of e)if(!(o.version<=t))for(let n of o.addedPaths)r.includes(n)||r.push(n);return r}function Sn(t,e=$n){return e.filter(r=>r.version>t)}function gr(){return{inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,totalCostUsd:0,model:"",numTurns:0,durationMs:0}}var ze=/^[a-z][a-z0-9-]{1,30}$/,Bc="-codepipe-ctx";function ve(t){return`${t}${Bc}`}var Bt={github:"github.com",gitlab:"gitlab.com",bitbucket:"bitbucket.org"};function ut(t){let e=t.match(/^git@([^:/]+):/);if(e)return e[1]??null;let r=t.match(/^ssh:\/\/(?:[^@/]+@)?([^/:]+)/);if(r)return r[1]??null;let o=t.match(/^https?:\/\/(?:[^@/]+@)?([^/:]+)/);return o?o[1]??null:null}var Je="x-bitbucket-api-token-auth";function hr(t){switch(t){case Bt.gitlab:return"oauth2";case Bt.bitbucket:return"x-token-auth";default:return"x-access-token"}}var Cn=20;function O(t){return process.env[`CODEPIPE_${t}`]??process.env[`DEVPIPE_${t}`]}import{Command as rm}from"commander";import{homedir as En}from"node:os";import{mkdirSync as zc,readFileSync as Jc,writeFileSync as Xc,existsSync as go}from"node:fs";import{dirname as An,join as br,resolve as Qc}from"node:path";import{fileURLToPath as Zc}from"node:url";import{existsSync as wr,readFileSync as Tn,readdirSync as Mc,writeFileSync as Hc}from"node:fs";import{dirname as Fc,join as je}from"node:path";import{parse as Kc}from"yaml";import{existsSync as Rn,renameSync as Gc}from"node:fs";function Xe(t,e,r=o=>console.error(o)){if(Rn(e)||!Rn(t))return!1;try{return Gc(t,e),r(`migrated ${t} \u2192 ${e} (DevPipe \u2192 CodePipe)`),!0}catch(o){return r(`failed to migrate ${t} \u2192 ${e}: ${o instanceof Error?o.message:String(o)} \u2014 continuing with the legacy path untouched`),!1}}var he=".codepipe",mo=".devpipe";function Wc(t=process.cwd()){let e=t;for(;;){if(wr(je(e,he,"project.yaml")))return e;if(wr(je(e,mo,"project.yaml")))return Xe(je(e,mo),je(e,he))&&Yc(e),e;let r=Fc(e);if(r===e)return null;e=r}}function qc(t){let e=je(t,he);return wr(e)?e:je(t,mo)}function Yc(t){let e=je(t,".gitignore");if(!wr(e))return;let r=Tn(e,"utf-8"),o=r.split(/\r?\n/).map(n=>{let i=n.trim();return i===".devpipe"||i===".devpipe/"||i==="/.devpipe"||i==="/.devpipe/"?n.replace(".devpipe",".codepipe"):n}).join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-partner/codepipe",
3
- "version": "0.1.128-dev.25.gdf270fe",
3
+ "version": "0.1.128",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {