@mindstudio-ai/remy 0.1.66 → 0.1.67
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/headless.js +14 -5
- package/dist/index.js +14 -5
- package/package.json +1 -1
package/dist/headless.js
CHANGED
|
@@ -324,11 +324,15 @@ function buildSystemPrompt(onboardingState, viewContext) {
|
|
|
324
324
|
loadSpecFileMetadata(),
|
|
325
325
|
loadProjectFileListing()
|
|
326
326
|
].filter(Boolean).join("\n");
|
|
327
|
-
const now = (/* @__PURE__ */ new Date()).
|
|
327
|
+
const now = (/* @__PURE__ */ new Date()).toLocaleDateString("en-US", {
|
|
328
|
+
month: "long",
|
|
329
|
+
day: "numeric",
|
|
330
|
+
year: "numeric"
|
|
331
|
+
});
|
|
328
332
|
const template = `
|
|
329
333
|
{{static/identity.md}}
|
|
330
334
|
|
|
331
|
-
Current date
|
|
335
|
+
Current date: ${now}
|
|
332
336
|
|
|
333
337
|
<platform_docs>
|
|
334
338
|
<platform>
|
|
@@ -2639,6 +2643,14 @@ async function runSubAgent(config) {
|
|
|
2639
2643
|
const emit2 = (e) => {
|
|
2640
2644
|
onEvent({ ...e, parentToolId });
|
|
2641
2645
|
};
|
|
2646
|
+
const dateStr = (/* @__PURE__ */ new Date()).toLocaleDateString("en-US", {
|
|
2647
|
+
month: "long",
|
|
2648
|
+
day: "numeric",
|
|
2649
|
+
year: "numeric"
|
|
2650
|
+
});
|
|
2651
|
+
const fullSystem = `${system}
|
|
2652
|
+
|
|
2653
|
+
Current date: ${dateStr}`;
|
|
2642
2654
|
let turns = 0;
|
|
2643
2655
|
const run = async () => {
|
|
2644
2656
|
const messages = [
|
|
@@ -2692,9 +2704,6 @@ ${partial}` : "[INTERRUPTED] Agent was interrupted before producing output.",
|
|
|
2692
2704
|
onStatus: (label) => emit2({ type: "status", message: label }),
|
|
2693
2705
|
signal
|
|
2694
2706
|
});
|
|
2695
|
-
const fullSystem = `${system}
|
|
2696
|
-
|
|
2697
|
-
Current date/time: ${(/* @__PURE__ */ new Date()).toISOString().replace("T", " ").replace(/\.\d+Z$/, " UTC")}`;
|
|
2698
2707
|
try {
|
|
2699
2708
|
for await (const event of streamChatWithRetry(
|
|
2700
2709
|
{
|
package/dist/index.js
CHANGED
|
@@ -2370,6 +2370,14 @@ async function runSubAgent(config) {
|
|
|
2370
2370
|
const emit2 = (e) => {
|
|
2371
2371
|
onEvent({ ...e, parentToolId });
|
|
2372
2372
|
};
|
|
2373
|
+
const dateStr = (/* @__PURE__ */ new Date()).toLocaleDateString("en-US", {
|
|
2374
|
+
month: "long",
|
|
2375
|
+
day: "numeric",
|
|
2376
|
+
year: "numeric"
|
|
2377
|
+
});
|
|
2378
|
+
const fullSystem = `${system}
|
|
2379
|
+
|
|
2380
|
+
Current date: ${dateStr}`;
|
|
2373
2381
|
let turns = 0;
|
|
2374
2382
|
const run = async () => {
|
|
2375
2383
|
const messages = [
|
|
@@ -2423,9 +2431,6 @@ ${partial}` : "[INTERRUPTED] Agent was interrupted before producing output.",
|
|
|
2423
2431
|
onStatus: (label) => emit2({ type: "status", message: label }),
|
|
2424
2432
|
signal
|
|
2425
2433
|
});
|
|
2426
|
-
const fullSystem = `${system}
|
|
2427
|
-
|
|
2428
|
-
Current date/time: ${(/* @__PURE__ */ new Date()).toISOString().replace("T", " ").replace(/\.\d+Z$/, " UTC")}`;
|
|
2429
2434
|
try {
|
|
2430
2435
|
for await (const event of streamChatWithRetry(
|
|
2431
2436
|
{
|
|
@@ -5545,11 +5550,15 @@ function buildSystemPrompt(onboardingState, viewContext) {
|
|
|
5545
5550
|
loadSpecFileMetadata(),
|
|
5546
5551
|
loadProjectFileListing()
|
|
5547
5552
|
].filter(Boolean).join("\n");
|
|
5548
|
-
const now = (/* @__PURE__ */ new Date()).
|
|
5553
|
+
const now = (/* @__PURE__ */ new Date()).toLocaleDateString("en-US", {
|
|
5554
|
+
month: "long",
|
|
5555
|
+
day: "numeric",
|
|
5556
|
+
year: "numeric"
|
|
5557
|
+
});
|
|
5549
5558
|
const template = `
|
|
5550
5559
|
{{static/identity.md}}
|
|
5551
5560
|
|
|
5552
|
-
Current date
|
|
5561
|
+
Current date: ${now}
|
|
5553
5562
|
|
|
5554
5563
|
<platform_docs>
|
|
5555
5564
|
<platform>
|