@aman_asmuei/aman-agent 0.33.1 → 0.33.3
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 +10 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -835,16 +835,16 @@ async function buildContext2(stack, opts) {
|
|
|
835
835
|
if (typeof content !== "string" || !content) continue;
|
|
836
836
|
switch (mem.type) {
|
|
837
837
|
case "pattern":
|
|
838
|
-
conventions.push(content);
|
|
838
|
+
if (!conventions.includes(content)) conventions.push(content);
|
|
839
839
|
break;
|
|
840
840
|
case "decision":
|
|
841
|
-
decisions.push(content);
|
|
841
|
+
if (!decisions.includes(content)) decisions.push(content);
|
|
842
842
|
break;
|
|
843
843
|
case "correction":
|
|
844
|
-
corrections.push(content);
|
|
844
|
+
if (!corrections.includes(content)) corrections.push(content);
|
|
845
845
|
break;
|
|
846
846
|
case "preference":
|
|
847
|
-
preferences.push(content);
|
|
847
|
+
if (!preferences.includes(content)) preferences.push(content);
|
|
848
848
|
break;
|
|
849
849
|
}
|
|
850
850
|
memoriesUsed++;
|
|
@@ -868,7 +868,9 @@ async function buildContext2(stack, opts) {
|
|
|
868
868
|
const categories = await arulesListCategories2(AGENT_SCOPE2);
|
|
869
869
|
for (const cat of categories) {
|
|
870
870
|
for (const ruleText of cat.rules) {
|
|
871
|
-
rules.
|
|
871
|
+
if (typeof ruleText === "string" && ruleText && !rules.includes(ruleText)) {
|
|
872
|
+
rules.push(ruleText);
|
|
873
|
+
}
|
|
872
874
|
}
|
|
873
875
|
}
|
|
874
876
|
} catch {
|
|
@@ -7081,7 +7083,7 @@ function handleReset(action) {
|
|
|
7081
7083
|
function handleUpdate() {
|
|
7082
7084
|
try {
|
|
7083
7085
|
const current = execFileSync3("npm", ["view", "@aman_asmuei/aman-agent", "version"], { encoding: "utf-8" }).trim();
|
|
7084
|
-
const local = true ? "0.33.
|
|
7086
|
+
const local = true ? "0.33.3" : "unknown";
|
|
7085
7087
|
if (current === local) {
|
|
7086
7088
|
return { handled: true, output: `${pc6.green("Up to date")} \u2014 v${local}` };
|
|
7087
7089
|
}
|
|
@@ -10065,7 +10067,7 @@ var Inbox = class {
|
|
|
10065
10067
|
// package.json
|
|
10066
10068
|
var package_default = {
|
|
10067
10069
|
name: "@aman_asmuei/aman-agent",
|
|
10068
|
-
version: "0.33.
|
|
10070
|
+
version: "0.33.3",
|
|
10069
10071
|
description: "Your AI companion, running locally \u2014 powered by the aman ecosystem",
|
|
10070
10072
|
type: "module",
|
|
10071
10073
|
engines: {
|
|
@@ -10432,7 +10434,7 @@ function bootstrapEcosystem() {
|
|
|
10432
10434
|
return true;
|
|
10433
10435
|
}
|
|
10434
10436
|
var program = new Command();
|
|
10435
|
-
program.name("aman-agent").description("Your AI companion, running locally").version("0.33.
|
|
10437
|
+
program.name("aman-agent").description("Your AI companion, running locally").version("0.33.3").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) => {
|
|
10436
10438
|
p4.intro(pc9.bold("aman agent") + pc9.dim(" \u2014 your AI companion"));
|
|
10437
10439
|
let config = loadConfig();
|
|
10438
10440
|
if (!config) {
|