@aman_asmuei/aman-agent 0.33.8 → 0.33.9

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/index.js CHANGED
@@ -1123,10 +1123,18 @@ async function runDev(projectPath, flags = {}, precomputedStack) {
1123
1123
  context: ctx2
1124
1124
  };
1125
1125
  }
1126
- if (!flags.force) {
1126
+ if (!flags.force && !flags.smart) {
1127
1127
  const staleness = checkStaleness(resolved);
1128
1128
  if (staleness.status === "fresh") {
1129
- return { success: true, generated: false, skippedReason: "fresh" };
1129
+ if (staleness.generatedAt) {
1130
+ const ageMs = Date.now() - staleness.generatedAt.getTime();
1131
+ const ONE_HOUR = 60 * 60 * 1e3;
1132
+ if (ageMs < ONE_HOUR) {
1133
+ return { success: true, generated: false, skippedReason: "fresh" };
1134
+ }
1135
+ } else {
1136
+ return { success: true, generated: false, skippedReason: "fresh" };
1137
+ }
1130
1138
  }
1131
1139
  }
1132
1140
  const ctx = await buildContext2(stack, { smart: flags.smart });
@@ -7099,7 +7107,7 @@ function handleReset(action) {
7099
7107
  function handleUpdate() {
7100
7108
  try {
7101
7109
  const current = execFileSync3("npm", ["view", "@aman_asmuei/aman-agent", "version"], { encoding: "utf-8" }).trim();
7102
- const local = true ? "0.33.8" : "unknown";
7110
+ const local = true ? "0.33.9" : "unknown";
7103
7111
  if (current === local) {
7104
7112
  return { handled: true, output: `${pc6.green("Up to date")} \u2014 v${local}` };
7105
7113
  }
@@ -10083,7 +10091,7 @@ var Inbox = class {
10083
10091
  // package.json
10084
10092
  var package_default = {
10085
10093
  name: "@aman_asmuei/aman-agent",
10086
- version: "0.33.8",
10094
+ version: "0.33.9",
10087
10095
  description: "Your AI companion, running locally \u2014 powered by the aman ecosystem",
10088
10096
  type: "module",
10089
10097
  engines: {
@@ -10450,7 +10458,7 @@ function bootstrapEcosystem() {
10450
10458
  return true;
10451
10459
  }
10452
10460
  var program = new Command();
10453
- program.name("aman-agent").description("Your AI companion, running locally").version("0.33.8").option("--model <model>", "Override LLM model").option("--budget <tokens>", "Token budget for system prompt (default: 8000)", parseInt).option("--profile <name>", "Use a specific agent profile (e.g., coder, writer, researcher)").action(async (options) => {
10461
+ program.name("aman-agent").description("Your AI companion, running locally").version("0.33.9").option("--model <model>", "Override LLM model").option("--budget <tokens>", "Token budget for system prompt (default: 8000)", parseInt).option("--profile <name>", "Use a specific agent profile (e.g., coder, writer, researcher)").action(async (options) => {
10454
10462
  p4.intro(pc9.bold("aman agent") + pc9.dim(" \u2014 your AI companion"));
10455
10463
  let config = loadConfig();
10456
10464
  if (!config) {