Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@agentuity/cli

Package Overview
Dependencies
Maintainers
2
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentuity/cli - npm Package Compare versions

Comparing version
0.0.21
to
0.0.22
+1
-1
dist/cmd/project/download.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../../src/cmd/project/download.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAKhD,UAAU,eAAe;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;CACf;AAED,UAAU,YAAY;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CACf;AAsBD,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAsH9E;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAgCvE"}
{"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../../src/cmd/project/download.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAKhD,UAAU,eAAe;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;CACf;AAED,UAAU,YAAY;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CACf;AAsBD,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAyH9E;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAgCvE"}
{
"name": "@agentuity/cli",
"version": "0.0.21",
"version": "0.0.22",
"type": "module",

@@ -5,0 +5,0 @@ "main": "./src/index.ts",

@@ -128,6 +128,24 @@ import { join, resolve } from 'node:path';

// Track which entries we've mapped so we don't ignore them later
// Note: tar-fs calls map BEFORE ignore (despite what docs say)
const mappedEntries = new Set<string>();
const extractor = extract(extractDir, {
// ignore callback: called BEFORE map, receives original tar entry name in header.name
// map callback: called FIRST, allows modifying the entry before extraction
// We strip the prefix so files are extracted to the root of extractDir
map: (header: Headers) => {
const originalName = header.name;
if (header.name.startsWith(prefix) && header.name.length > prefix.length) {
// This is a file/dir we want to extract - strip the prefix
header.name = header.name.substring(prefix.length);
mappedEntries.add(header.name); // Track that we mapped this
logger.debug('[extract] MAP:', originalName, '->', header.name);
logger.debug('[extract] EXTRACT:', originalName);
extractedCount++;
}
return header;
},
// ignore callback: called AFTER map, receives the MAPPED name
// Return true to skip the entry, false to extract it
ignore: (_name: string, header?: Headers) => {
ignore: (name: string, header?: Headers) => {
if (!header) {

@@ -138,27 +156,12 @@ ignoredCount++;

// Skip entries that don't start with our prefix
// Also skip the exact prefix directory itself (empty name after substring)
const shouldIgnore =
!header.name.startsWith(prefix) || header.name.length === prefix.length;
if (shouldIgnore) {
logger.debug('[extract] IGNORE:', header.name);
ignoredCount++;
} else {
logger.debug('[extract] EXTRACT:', header.name);
extractedCount++;
// If we already mapped this entry, don't ignore it
if (mappedEntries.has(header.name)) {
return false;
}
return shouldIgnore;
// Otherwise, ignore it
logger.debug('[extract] IGNORE:', header.name);
ignoredCount++;
return true;
},
// map callback: called AFTER ignore, allows modifying the entry before extraction
// We strip the prefix so files are extracted to the root of extractDir
map: (header: Headers) => {
if (header.name.startsWith(prefix)) {
const originalName = header.name;
header.name = header.name.substring(prefix.length);
logger.debug('[extract] MAP:', originalName, '->', header.name);
}
return header;
},
});

@@ -165,0 +168,0 @@