@keystrokehq/cli 0.1.96 → 0.1.97
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/dist-BkceLDkp.mjs +3 -0
- package/dist/{dist-BbKeSmsJ.mjs → dist-CaiTZ-ZO.mjs} +3 -3
- package/dist/{dist-BbKeSmsJ.mjs.map → dist-CaiTZ-ZO.mjs.map} +1 -1
- package/dist/{dist-BChg8kdu.mjs → dist-d4mUS55Z.mjs} +3 -1
- package/dist/dist-d4mUS55Z.mjs.map +1 -0
- package/dist/index.mjs +6 -6
- package/dist/templates/hello-world/src/agents/hello.int.test.ts +7 -4
- package/dist/templates/hello-world/src/agents/hello.ts +1 -1
- package/package.json +1 -1
- package/dist/dist-BChg8kdu.mjs.map +0 -1
- package/dist/dist-CyFwRToz.mjs +0 -3
package/dist/index.mjs
CHANGED
|
@@ -6853,7 +6853,7 @@ function registerBuildCommand(program) {
|
|
|
6853
6853
|
try {
|
|
6854
6854
|
const root = resolveProjectRoot(options.dir);
|
|
6855
6855
|
await ensureSdkCurrent(root);
|
|
6856
|
-
const { buildApp } = await import("./dist-
|
|
6856
|
+
const { buildApp } = await import("./dist-CaiTZ-ZO.mjs");
|
|
6857
6857
|
await buildApp({ root });
|
|
6858
6858
|
process.stdout.write(`Built ${root}\n`);
|
|
6859
6859
|
} catch (error) {
|
|
@@ -6978,7 +6978,7 @@ async function sleep(ms) {
|
|
|
6978
6978
|
}
|
|
6979
6979
|
async function buildDeployArchive(client, root, projectId, filter) {
|
|
6980
6980
|
if (filter?.length) {
|
|
6981
|
-
const { buildFilteredApp } = await import("./dist-
|
|
6981
|
+
const { buildFilteredApp } = await import("./dist-CaiTZ-ZO.mjs");
|
|
6982
6982
|
const filtered = await buildFilteredApp({
|
|
6983
6983
|
root,
|
|
6984
6984
|
filter,
|
|
@@ -7000,7 +7000,7 @@ async function buildDeployArchive(client, root, projectId, filter) {
|
|
|
7000
7000
|
sourceFiles: filtered.sourceFiles
|
|
7001
7001
|
};
|
|
7002
7002
|
}
|
|
7003
|
-
const { buildApp } = await import("./dist-
|
|
7003
|
+
const { buildApp } = await import("./dist-CaiTZ-ZO.mjs");
|
|
7004
7004
|
const { sourceFiles } = await buildApp({
|
|
7005
7005
|
root,
|
|
7006
7006
|
collectSources: true,
|
|
@@ -7122,7 +7122,7 @@ function runtimeChildEnv(parentEnv, overrides) {
|
|
|
7122
7122
|
//#region src/project/bootstrap-run.ts
|
|
7123
7123
|
/** Node args + env for `@keystrokehq/build` bootstrap (shared by start + dev). */
|
|
7124
7124
|
async function resolveBootstrapRun(options) {
|
|
7125
|
-
const { resolveRuntimeBuildArtifact } = await import("./dist-
|
|
7125
|
+
const { resolveRuntimeBuildArtifact } = await import("./dist-CaiTZ-ZO.mjs");
|
|
7126
7126
|
const loader = pathToFileURL(resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/runtime-loader.mjs")).href;
|
|
7127
7127
|
const bootstrap = resolveRuntimeBuildArtifact(options.runtimeNodeModules, "dist/standalone-bootstrap.mjs");
|
|
7128
7128
|
const args = [`--import=${loader}`];
|
|
@@ -7271,7 +7271,7 @@ async function runDev(options) {
|
|
|
7271
7271
|
process.on("SIGINT", shutdown);
|
|
7272
7272
|
process.on("SIGTERM", shutdown);
|
|
7273
7273
|
try {
|
|
7274
|
-
const { watchApp } = await import("./dist-
|
|
7274
|
+
const { watchApp } = await import("./dist-CaiTZ-ZO.mjs");
|
|
7275
7275
|
await watchApp({
|
|
7276
7276
|
root,
|
|
7277
7277
|
clean: false,
|
|
@@ -8313,7 +8313,7 @@ async function runStart(options) {
|
|
|
8313
8313
|
const apiPort = Number(new URL(serverUrl).port || 80);
|
|
8314
8314
|
const runtimeNodeModules = resolveCliRuntimeNodeModules(resolveCliRoot(import.meta.url));
|
|
8315
8315
|
ensureNativeDeps(runtimeNodeModules);
|
|
8316
|
-
const { buildApp } = await import("./dist-
|
|
8316
|
+
const { buildApp } = await import("./dist-CaiTZ-ZO.mjs");
|
|
8317
8317
|
await buildApp({
|
|
8318
8318
|
root,
|
|
8319
8319
|
clean: false
|
|
@@ -2,9 +2,12 @@ import { describe, expect, it } from "vitest";
|
|
|
2
2
|
import hello from "./hello";
|
|
3
3
|
|
|
4
4
|
describe("hello agent", () => {
|
|
5
|
-
it.skipIf(!process.env.
|
|
6
|
-
|
|
5
|
+
it.skipIf(!process.env.AI_GATEWAY_API_KEY && !process.env.OPENAI_API_KEY)(
|
|
6
|
+
"responds to a prompt",
|
|
7
|
+
async () => {
|
|
8
|
+
const result = await hello.prompt({ message: "Say hi in one word." });
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
expect(result.messages.some((message) => message.role === "assistant")).toBe(true);
|
|
11
|
+
},
|
|
12
|
+
);
|
|
10
13
|
});
|