@lousy-agents/cli 2.3.1 → 2.3.2
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/cli/copilot-with-citty/biome.template.json +48 -0
- package/cli/copilot-with-citty/gitignore.template +4 -0
- package/cli/copilot-with-citty/package.json +1 -1
- package/cli/copilot-with-citty/src/index.test.ts +7 -0
- package/cli/copilot-with-citty/src/index.ts +10 -0
- package/dist/255.js +1 -1
- package/dist/255.js.map +1 -1
- package/dist/index.js +39 -5
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.js +1 -1
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -1
- package/cli/copilot-with-citty/biome.json +0 -31
package/dist/index.js
CHANGED
|
@@ -11084,7 +11084,7 @@ function box(text, _opts = {}) {
|
|
|
11084
11084
|
|
|
11085
11085
|
|
|
11086
11086
|
|
|
11087
|
-
const dist_r=Object.create(null),dist_i=e=>globalThis.process?.env
|
|
11087
|
+
const dist_r=Object.create(null),dist_i=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?dist_r:globalThis),dist_o=new Proxy(dist_r,{get(e,s){return dist_i()[s]??dist_r[s]},has(e,s){const E=dist_i();return s in E||s in dist_r},set(e,s,E){const B=dist_i(true);return B[s]=E,true},deleteProperty(e,s){if(!s)return false;const E=dist_i(true);return delete E[s],true},ownKeys(){const e=dist_i(true);return Object.keys(e)}}),dist_t=typeof process<"u"&&process.env&&"production"||"",dist_f=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:true}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:true}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:false}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:false}],["VERCEL","VERCEL_ENV",{ci:false}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:false}],["CODESANDBOX","CODESANDBOX_HOST",{ci:false}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:true}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:true}]];function dist_b(){if(globalThis.process?.env)for(const e of dist_f){const s=e[1]||e[0];if(globalThis.process?.env[s])return {name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:false}:{name:"",ci:false}}const dist_l=dist_b();dist_l.name;function n(e){return e?e!=="false":false}const I=globalThis.process?.platform||"",T=n(dist_o.CI)||dist_l.ci!==false,dist_a=n(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),g=n(dist_o.DEBUG),R=dist_t==="test"||n(dist_o.TEST);n(dist_o.MINIMAL)||T||R||!dist_a;const A=/^win/i.test(I);!n(dist_o.NO_COLOR)&&(n(dist_o.FORCE_COLOR)||(dist_a||A)&&dist_o.TERM!=="dumb"||T);const C=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(C?.split(".")[0])||null;const y=globalThis.process||Object.create(null),dist_={versions:{}};new Proxy(y,{get(e,s){if(s==="env")return dist_o;if(s in e)return e[s];if(s in dist_)return dist_[s]}});const dist_c=globalThis.process?.release?.name==="node",O=!!globalThis.Bun||!!globalThis.process?.versions?.bun,D=!!globalThis.Deno,L=!!globalThis.fastly,S=!!globalThis.Netlify,dist_u=!!globalThis.EdgeRuntime,N=globalThis.navigator?.userAgent==="Cloudflare-Workers",dist_F=[[S,"netlify"],[dist_u,"edge-light"],[N,"workerd"],[L,"fastly"],[D,"deno"],[O,"bun"],[dist_c,"node"]];function G(){const e=dist_F.find(s=>s[0]);if(e)return {name:e[1]}}const P=G();P?.name||"";
|
|
11088
11088
|
|
|
11089
11089
|
function dist_ansiRegex({onlyFirst = false} = {}) {
|
|
11090
11090
|
// Valid string terminator sequences are BEL, ESC\, and 0x9c
|
|
@@ -12898,7 +12898,7 @@ const nativeImport = (id) => __webpack_require__(5439)(id);
|
|
|
12898
12898
|
let _transform;
|
|
12899
12899
|
function lazyTransform(...args) {
|
|
12900
12900
|
if (!_transform) {
|
|
12901
|
-
_transform = (0,external_node_module_.createRequire)(
|
|
12901
|
+
_transform = (0,external_node_module_.createRequire)(import.meta.url)("../dist/babel.cjs");
|
|
12902
12902
|
}
|
|
12903
12903
|
return _transform(...args);
|
|
12904
12904
|
}
|
|
@@ -29127,9 +29127,23 @@ core_config(en());
|
|
|
29127
29127
|
|
|
29128
29128
|
|
|
29129
29129
|
|
|
29130
|
-
|
|
29130
|
+
/**
|
|
29131
|
+
* Finds the package root by walking up from a starting directory
|
|
29132
|
+
* until a directory containing package.json is found.
|
|
29133
|
+
*/ function findPackageRoot(startDir) {
|
|
29134
|
+
let dir = startDir;
|
|
29135
|
+
while(!(0,external_node_fs_.existsSync)((0,external_node_path_.join)(dir, "package.json"))){
|
|
29136
|
+
const parent = (0,external_node_path_.dirname)(dir);
|
|
29137
|
+
if (parent === dir) {
|
|
29138
|
+
throw new Error(`Could not find package root from ${startDir}`);
|
|
29139
|
+
}
|
|
29140
|
+
dir = parent;
|
|
29141
|
+
}
|
|
29142
|
+
return dir;
|
|
29143
|
+
}
|
|
29144
|
+
const config_filename = (0,external_node_url_.fileURLToPath)(import.meta.url);
|
|
29131
29145
|
const config_dirname = (0,external_node_path_.dirname)(config_filename);
|
|
29132
|
-
const PROJECT_ROOT = (
|
|
29146
|
+
const PROJECT_ROOT = findPackageRoot(config_dirname);
|
|
29133
29147
|
const WEBAPP_TEMPLATE_DIR = (0,external_node_path_.join)(PROJECT_ROOT, "ui", "copilot-with-react");
|
|
29134
29148
|
const RESTAPI_TEMPLATE_DIR = (0,external_node_path_.join)(PROJECT_ROOT, "api", "copilot-with-fastify");
|
|
29135
29149
|
const CLI_TEMPLATE_DIR = (0,external_node_path_.join)(PROJECT_ROOT, "cli", "copilot-with-citty");
|
|
@@ -29174,7 +29188,12 @@ const CLI_TEMPLATE_DIR = (0,external_node_path_.join)(PROJECT_ROOT, "cli", "copi
|
|
|
29174
29188
|
{
|
|
29175
29189
|
type: "file",
|
|
29176
29190
|
path: "biome.json",
|
|
29177
|
-
content: readCliTemplateFile("biome.json")
|
|
29191
|
+
content: readCliTemplateFile("biome.template.json")
|
|
29192
|
+
},
|
|
29193
|
+
{
|
|
29194
|
+
type: "file",
|
|
29195
|
+
path: ".gitignore",
|
|
29196
|
+
content: readCliTemplateFile("gitignore.template")
|
|
29178
29197
|
},
|
|
29179
29198
|
{
|
|
29180
29199
|
type: "file",
|
|
@@ -29280,6 +29299,21 @@ const CLI_TEMPLATE_DIR = (0,external_node_path_.join)(PROJECT_ROOT, "cli", "copi
|
|
|
29280
29299
|
path: ".vscode/mcp.json",
|
|
29281
29300
|
content: readCliTemplateFile(".vscode/mcp.json")
|
|
29282
29301
|
},
|
|
29302
|
+
// Source code
|
|
29303
|
+
{
|
|
29304
|
+
type: "directory",
|
|
29305
|
+
path: "src"
|
|
29306
|
+
},
|
|
29307
|
+
{
|
|
29308
|
+
type: "file",
|
|
29309
|
+
path: "src/index.ts",
|
|
29310
|
+
content: readCliTemplateFile("src/index.ts")
|
|
29311
|
+
},
|
|
29312
|
+
{
|
|
29313
|
+
type: "file",
|
|
29314
|
+
path: "src/index.test.ts",
|
|
29315
|
+
content: readCliTemplateFile("src/index.test.ts")
|
|
29316
|
+
},
|
|
29283
29317
|
// Devcontainer configuration
|
|
29284
29318
|
{
|
|
29285
29319
|
type: "directory",
|