@elizaos/cli 1.5.8-alpha.8 → 1.5.8-alpha.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/commands/publish/actions/npm-publish.d.ts.map +1 -1
- package/dist/commands/scenario/src/ConversationEvaluators.d.ts +1 -1
- package/dist/commands/scenario/src/ConversationEvaluators.d.ts.map +1 -1
- package/dist/commands/scenario/src/TrajectoryReconstructor.d.ts.map +1 -1
- package/dist/index.js +18 -9
- package/dist/index.js.map +9 -9
- package/dist/templates/plugin-quick-starter/package.json +2 -2
- package/dist/templates/plugin-starter/package.json +2 -2
- package/dist/templates/project-starter/package.json +6 -6
- package/dist/templates/project-tee-starter/package.json +4 -4
- package/dist/utils/publisher.d.ts +1 -0
- package/dist/utils/publisher.d.ts.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/package.json +7 -7
- package/templates/plugin-quick-starter/package.json +2 -2
- package/templates/plugin-starter/package.json +2 -2
- package/templates/project-starter/package.json +6 -6
- package/templates/project-tee-starter/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"npm-publish.d.ts","sourceRoot":"","sources":["../../../../src/commands/publish/actions/npm-publish.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC;;GAEG;AACH,wBAAsB,YAAY,CAChC,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"npm-publish.d.ts","sourceRoot":"","sources":["../../../../src/commands/publish/actions/npm-publish.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC;;GAEG;AACH,wBAAsB,YAAY,CAChC,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC,CAuCf"}
|
|
@@ -6,7 +6,7 @@ import { Evaluation as EvaluationSchema } from './schema';
|
|
|
6
6
|
* Evaluates conversation length against specified criteria
|
|
7
7
|
*/
|
|
8
8
|
export declare class ConversationLengthEvaluator implements Evaluator {
|
|
9
|
-
evaluate(params: EvaluationSchema, runResult: ExecutionResult
|
|
9
|
+
evaluate(params: EvaluationSchema, runResult: ExecutionResult): Promise<EvaluationResult>;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Evaluates conversation flow patterns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationEvaluators.d.ts","sourceRoot":"","sources":["../../../../src/commands/scenario/src/ConversationEvaluators.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAa,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE1D;;GAEG;AACH,qBAAa,2BAA4B,YAAW,SAAS;IACnD,QAAQ,CACV,MAAM,EAAE,gBAAgB,EACxB,SAAS,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"ConversationEvaluators.d.ts","sourceRoot":"","sources":["../../../../src/commands/scenario/src/ConversationEvaluators.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAa,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE1D;;GAEG;AACH,qBAAa,2BAA4B,YAAW,SAAS;IACnD,QAAQ,CACV,MAAM,EAAE,gBAAgB,EACxB,SAAS,EAAE,eAAe,GAC3B,OAAO,CAAC,gBAAgB,CAAC;CAsD/B;AAED;;GAEG;AACH,qBAAa,yBAA0B,YAAW,SAAS;IACjD,QAAQ,CACV,MAAM,EAAE,gBAAgB,EACxB,SAAS,EAAE,eAAe,EAC1B,OAAO,EAAE,YAAY,GACtB,OAAO,CAAC,gBAAgB,CAAC;YAiCd,aAAa;CAyC9B;AAED;;GAEG;AACH,qBAAa,yBAA0B,YAAW,SAAS;IACjD,QAAQ,CACV,MAAM,EAAE,gBAAgB,EACxB,SAAS,EAAE,eAAe,EAC1B,OAAO,EAAE,YAAY,GACtB,OAAO,CAAC,gBAAgB,CAAC;IA8B5B,OAAO,CAAC,eAAe;YAoBT,gBAAgB;YA8BhB,YAAY;CA+B7B;AAED;;GAEG;AACH,qBAAa,yBAA0B,YAAW,SAAS;IACjD,QAAQ,CACV,MAAM,EAAE,gBAAgB,EACxB,SAAS,EAAE,eAAe,EAC1B,OAAO,EAAE,YAAY,GACtB,OAAO,CAAC,gBAAgB,CAAC;IAgC5B,OAAO,CAAC,sBAAsB;YAKhB,mBAAmB;YAoCnB,iBAAiB;CAsClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrajectoryReconstructor.d.ts","sourceRoot":"","sources":["../../../../src/commands/scenario/src/TrajectoryReconstructor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,uDAAuD;IACvD,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAC;IAE3C,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAC;IAElB,iCAAiC;IACjC,OAAO,EACL,MAAM,GACN;QACA,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KACjC,GACC,GAAG,CAAC;CACP;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,uBAAuB;IAClC,OAAO,CAAC,OAAO,CAAe;gBAElB,OAAO,EAAE,YAAY;IAIjC;;OAEG;IACG,qBAAqB,CACzB,MAAM,EAAE,IAAI,EACZ,YAAY,GAAE,MAAc,GAC3B,OAAO,CAAC,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"TrajectoryReconstructor.d.ts","sourceRoot":"","sources":["../../../../src/commands/scenario/src/TrajectoryReconstructor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,uDAAuD;IACvD,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAC;IAE3C,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAC;IAElB,iCAAiC;IACjC,OAAO,EACL,MAAM,GACN;QACA,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KACjC,GACC,GAAG,CAAC;CACP;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,uBAAuB;IAClC,OAAO,CAAC,OAAO,CAAe;gBAElB,OAAO,EAAE,YAAY;IAIjC;;OAEG;IACG,qBAAqB,CACzB,MAAM,EAAE,IAAI,EACZ,YAAY,GAAE,MAAc,GAC3B,OAAO,CAAC,uBAAuB,CAAC;IAgPnC;;OAEG;IACG,mBAAmB,CAAC,MAAM,EAAE,IAAI,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;CAoDnE"}
|
package/dist/index.js
CHANGED
|
@@ -4688,7 +4688,7 @@ __export(exports_version, {
|
|
|
4688
4688
|
BUILD_TIME: () => BUILD_TIME,
|
|
4689
4689
|
BUILD_ENV: () => BUILD_ENV
|
|
4690
4690
|
});
|
|
4691
|
-
var CLI_VERSION = "1.5.8-alpha.
|
|
4691
|
+
var CLI_VERSION = "1.5.8-alpha.9", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-09-06T13:32:56.748Z", BUILD_ENV = "production", version_default;
|
|
4692
4692
|
var init_version = __esm(() => {
|
|
4693
4693
|
version_default = {
|
|
4694
4694
|
version: CLI_VERSION,
|
|
@@ -15416,7 +15416,7 @@ async function publishToGitHub(cwd, packageJson, username, skipRegistry = false,
|
|
|
15416
15416
|
}
|
|
15417
15417
|
}
|
|
15418
15418
|
const packageName = packageJson.name.replace(/^@[^/]+\//, "");
|
|
15419
|
-
const registryPackageName = packageJson.name;
|
|
15419
|
+
const registryPackageName = packageJson.npmPackage || packageJson.name;
|
|
15420
15420
|
if (!isTest) {
|
|
15421
15421
|
try {
|
|
15422
15422
|
const indexContent = await getFileContent(token, username, registryRepo, "index.json");
|
|
@@ -263000,7 +263000,6 @@ class TrajectoryReconstructor {
|
|
|
263000
263000
|
console.log(` Content Keys: ${Object.keys(content || {}).join(", ")}`);
|
|
263001
263001
|
console.log(` Full Content: ${JSON.stringify(content, null, 2)}`);
|
|
263002
263002
|
const isAgentMessage = content?.type === "agent" || content?.thought && content?.actions;
|
|
263003
|
-
const isUserMessage = content?.type === "user" || content?.source === "scenario_message";
|
|
263004
263003
|
if (isAgentMessage && content?.thought) {
|
|
263005
263004
|
const thoughtStep = {
|
|
263006
263005
|
type: "thought",
|
|
@@ -263108,7 +263107,7 @@ class UserSimulator {
|
|
|
263108
263107
|
return this.generateFallbackResponse(latestAgentResponse, context2);
|
|
263109
263108
|
}
|
|
263110
263109
|
}
|
|
263111
|
-
buildSimulationPrompt(history, agentResponse,
|
|
263110
|
+
buildSimulationPrompt(history, agentResponse, _context) {
|
|
263112
263111
|
const { persona, objective, style, constraints, emotional_state, knowledge_level } = this.config;
|
|
263113
263112
|
let prompt = `Roleplay as a user with this profile:
|
|
263114
263113
|
Persona: ${persona}
|
|
@@ -263151,7 +263150,7 @@ Respond as the user (20-100 words, natural conversation):`;
|
|
|
263151
263150
|
cleaned = cleaned.replace(/\s+/g, " ").trim();
|
|
263152
263151
|
return cleaned;
|
|
263153
263152
|
}
|
|
263154
|
-
generateFallbackResponse(
|
|
263153
|
+
generateFallbackResponse(_agentResponse, context2) {
|
|
263155
263154
|
const { persona, objective } = this.config;
|
|
263156
263155
|
if (persona.toLowerCase().includes("frustrated") || persona.toLowerCase().includes("angry")) {
|
|
263157
263156
|
return "I'm still not getting the help I need. Can you please provide a clearer solution?";
|
|
@@ -263180,7 +263179,7 @@ var init_UserSimulator = () => {};
|
|
|
263180
263179
|
import { ModelType as ModelType2 } from "@elizaos/core";
|
|
263181
263180
|
|
|
263182
263181
|
class ConversationLengthEvaluator {
|
|
263183
|
-
async evaluate(params, runResult
|
|
263182
|
+
async evaluate(params, runResult) {
|
|
263184
263183
|
const metadata2 = runResult.conversationMetadata;
|
|
263185
263184
|
if (!metadata2) {
|
|
263186
263185
|
return {
|
|
@@ -264385,7 +264384,7 @@ class ConversationManager {
|
|
|
264385
264384
|
throw originalError;
|
|
264386
264385
|
}
|
|
264387
264386
|
}
|
|
264388
|
-
async executeTurn(userInput, turnNumber,
|
|
264387
|
+
async executeTurn(userInput, turnNumber, _config, _previousTurns) {
|
|
264389
264388
|
const turnStartTime = Date.now();
|
|
264390
264389
|
if (!this.conversationChannelId) {
|
|
264391
264390
|
throw new Error("No conversation channel available for turn execution");
|
|
@@ -282979,7 +282978,17 @@ import path40 from "path";
|
|
|
282979
282978
|
async function publishToNpm2(cwd, packageJson, npmUsername) {
|
|
282980
282979
|
console.info(`Publishing as npm user: ${npmUsername}`);
|
|
282981
282980
|
if (!packageJson.npmPackage || packageJson.npmPackage === "${NPM_PACKAGE}") {
|
|
282982
|
-
packageJson.
|
|
282981
|
+
if (!packageJson.name || packageJson.name.trim() === "") {
|
|
282982
|
+
throw new Error("Invalid package.json: name field is required for scoping");
|
|
282983
|
+
}
|
|
282984
|
+
if (packageJson.name.startsWith("@")) {
|
|
282985
|
+
throw new Error("Package name is already scoped - this should not happen with current templates");
|
|
282986
|
+
}
|
|
282987
|
+
if (!npmUsername || npmUsername.trim() === "") {
|
|
282988
|
+
throw new Error("npm username is required for package scoping");
|
|
282989
|
+
}
|
|
282990
|
+
const unscopedName = packageJson.name.startsWith("@") ? packageJson.name.split("/").slice(1).join("/") : packageJson.name;
|
|
282991
|
+
packageJson.npmPackage = `@${npmUsername}/${unscopedName}`;
|
|
282983
282992
|
console.info(`Set npmPackage to: ${packageJson.npmPackage}`);
|
|
282984
282993
|
const packageJsonPath = path40.join(cwd, "package.json");
|
|
282985
282994
|
await fs19.writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2), "utf-8");
|
|
@@ -298740,5 +298749,5 @@ main2().catch((error2) => {
|
|
|
298740
298749
|
process.exit(1);
|
|
298741
298750
|
});
|
|
298742
298751
|
|
|
298743
|
-
//# debugId=
|
|
298752
|
+
//# debugId=B3836080EC52536964756E2164756E21
|
|
298744
298753
|
//# sourceMappingURL=index.js.map
|