guardian-framework 0.1.59 → 0.1.60
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/dist/cli.js +29 -3
- package/dist/exports.js +2 -2
- package/package.json +1 -1
- package/templates/pi/preflight_report.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2224,7 +2224,7 @@ function calculateTokenStats(targetDir, manifest) {
|
|
|
2224
2224
|
lastCalculatedAt: new Date().toISOString()
|
|
2225
2225
|
};
|
|
2226
2226
|
}
|
|
2227
|
-
var _filename, _dirname, MANIFEST_FILE = "guardian-manifest.json", FRAMEWORK_VERSION = "0.1.
|
|
2227
|
+
var _filename, _dirname, MANIFEST_FILE = "guardian-manifest.json", FRAMEWORK_VERSION = "0.1.60", SCHEMA_VERSION = "0.1";
|
|
2228
2228
|
var init_manifest = __esm(() => {
|
|
2229
2229
|
_filename = fileURLToPath(import.meta.url);
|
|
2230
2230
|
_dirname = path3.dirname(_filename);
|
|
@@ -2303,7 +2303,7 @@ __export(exports_package, {
|
|
|
2303
2303
|
bin: () => bin,
|
|
2304
2304
|
author: () => author
|
|
2305
2305
|
});
|
|
2306
|
-
var name = "guardian-framework", version = "0.1.
|
|
2306
|
+
var name = "guardian-framework", version = "0.1.60", description = "Token-optimized agentic framework scaffolder with pi-first architecture", type = "module", main = "dist/exports.js", exports, types = "dist/exports.d.ts", bin, files, engines, scripts, publishConfig, pi, repository, homepage = "https://github.com/arman-jalili/guardian-framework#readme", bugs, dependencies, devDependencies, keywords, author = "Arman Wolkensteiner-Jalili", license = "MIT", package_default;
|
|
2307
2307
|
var init_package = __esm(() => {
|
|
2308
2308
|
exports = {
|
|
2309
2309
|
".": {
|
|
@@ -10681,6 +10681,7 @@ var HASH_DIR = ".guardian", HASH_EXT = ".sha256";
|
|
|
10681
10681
|
var init_integrity = () => {};
|
|
10682
10682
|
|
|
10683
10683
|
// src/index.ts
|
|
10684
|
+
import { execFileSync } from "child_process";
|
|
10684
10685
|
import { parseArgs } from "util";
|
|
10685
10686
|
|
|
10686
10687
|
// src/commands/domain.ts
|
|
@@ -14208,7 +14209,27 @@ async function runVerify(targetDir = process.cwd()) {
|
|
|
14208
14209
|
|
|
14209
14210
|
// src/index.ts
|
|
14210
14211
|
init_manifest();
|
|
14211
|
-
var VERSION = "0.1.
|
|
14212
|
+
var VERSION = "0.1.60";
|
|
14213
|
+
var PKG_NAME = "guardian-framework";
|
|
14214
|
+
var _newerVersion = null;
|
|
14215
|
+
function checkForUpdateSync() {
|
|
14216
|
+
try {
|
|
14217
|
+
const latest = execFileSync("npm", ["view", PKG_NAME, "version", "--no-workspaces", "--silent"], { timeout: 3000, encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] }).trim();
|
|
14218
|
+
if (latest && latest !== VERSION) {
|
|
14219
|
+
_newerVersion = latest;
|
|
14220
|
+
}
|
|
14221
|
+
} catch {}
|
|
14222
|
+
}
|
|
14223
|
+
function printUpdateNotice() {
|
|
14224
|
+
if (_newerVersion) {
|
|
14225
|
+
console.log(`
|
|
14226
|
+
\u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E` + `
|
|
14227
|
+
\u2502 \u2728 Update available: v${VERSION} \u2192 v${_newerVersion.padEnd(8)} \u2502` + `
|
|
14228
|
+
\u2502 Run \`npm install -g ${PKG_NAME}@latest\` to update. \u2502` + `
|
|
14229
|
+
\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F
|
|
14230
|
+
`);
|
|
14231
|
+
}
|
|
14232
|
+
}
|
|
14212
14233
|
async function runCli() {
|
|
14213
14234
|
const args = parseArgs({
|
|
14214
14235
|
allowPositionals: true,
|
|
@@ -14232,8 +14253,12 @@ async function runCli() {
|
|
|
14232
14253
|
session: { type: "string" }
|
|
14233
14254
|
}
|
|
14234
14255
|
});
|
|
14256
|
+
if (!args.values.version && !args.values.help) {
|
|
14257
|
+
checkForUpdateSync();
|
|
14258
|
+
}
|
|
14235
14259
|
if (args.values.version) {
|
|
14236
14260
|
console.log(`guardian-framework v${VERSION}`);
|
|
14261
|
+
printUpdateNotice();
|
|
14237
14262
|
return;
|
|
14238
14263
|
}
|
|
14239
14264
|
if (args.values.help) {
|
|
@@ -14398,6 +14423,7 @@ async function runCommand(command, args) {
|
|
|
14398
14423
|
console.error(`Unknown command: ${command}`);
|
|
14399
14424
|
console.log("Run 'guardian-framework --help' for usage");
|
|
14400
14425
|
}
|
|
14426
|
+
printUpdateNotice();
|
|
14401
14427
|
}
|
|
14402
14428
|
|
|
14403
14429
|
// src/cli.ts
|
package/dist/exports.js
CHANGED
|
@@ -1919,7 +1919,7 @@ function calculateTokenStats(targetDir, manifest) {
|
|
|
1919
1919
|
lastCalculatedAt: new Date().toISOString()
|
|
1920
1920
|
};
|
|
1921
1921
|
}
|
|
1922
|
-
var _filename, _dirname, MANIFEST_FILE = "guardian-manifest.json", FRAMEWORK_VERSION = "0.1.
|
|
1922
|
+
var _filename, _dirname, MANIFEST_FILE = "guardian-manifest.json", FRAMEWORK_VERSION = "0.1.60", SCHEMA_VERSION = "0.1";
|
|
1923
1923
|
var init_manifest = __esm(() => {
|
|
1924
1924
|
_filename = fileURLToPath(import.meta.url);
|
|
1925
1925
|
_dirname = path.dirname(_filename);
|
|
@@ -1963,7 +1963,7 @@ __export(exports_package, {
|
|
|
1963
1963
|
bin: () => bin,
|
|
1964
1964
|
author: () => author
|
|
1965
1965
|
});
|
|
1966
|
-
var name = "guardian-framework", version = "0.1.
|
|
1966
|
+
var name = "guardian-framework", version = "0.1.60", description = "Token-optimized agentic framework scaffolder with pi-first architecture", type = "module", main = "dist/exports.js", exports, types = "dist/exports.d.ts", bin, files, engines, scripts, publishConfig, pi, repository, homepage = "https://github.com/arman-jalili/guardian-framework#readme", bugs, dependencies, devDependencies, keywords, author = "Arman Wolkensteiner-Jalili", license = "MIT", package_default;
|
|
1967
1967
|
var init_package = __esm(() => {
|
|
1968
1968
|
exports = {
|
|
1969
1969
|
".": {
|
package/package.json
CHANGED