@teammates/cli 0.6.2 → 0.6.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/adapters/copilot.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
13
13
|
import { join } from "node:path";
|
|
14
14
|
import { approveAll, CopilotClient, } from "@github/copilot-sdk";
|
|
15
|
-
import {
|
|
15
|
+
import { buildTeammatePrompt, DAILY_LOG_BUDGET_TOKENS, queryRecallContext, } from "../adapter.js";
|
|
16
16
|
import { autoCompactForBudget } from "../compact.js";
|
|
17
17
|
import { parseResult } from "./cli-proxy.js";
|
|
18
18
|
// ─── Adapter ─────────────────────────────────────────────────────────
|
package/dist/cli-utils.test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
|
2
|
-
import { buildConversationContext, buildSummarizationPrompt,
|
|
2
|
+
import { buildConversationContext, buildSummarizationPrompt, cleanResponseBody, compressConversationEntries, findAtMention, findSummarizationSplit, formatConversationEntry, IMAGE_EXTS, isImagePath, relativeTime, wrapLine, } from "./cli-utils.js";
|
|
3
3
|
// ── relativeTime ────────────────────────────────────────────────────
|
|
4
4
|
describe("relativeTime", () => {
|
|
5
5
|
beforeEach(() => {
|
|
@@ -398,9 +398,7 @@ describe("compressConversationEntries", () => {
|
|
|
398
398
|
expect(result).toContain("- **stevenic:** Do the thing");
|
|
399
399
|
});
|
|
400
400
|
it("returns plain bullets when no existing summary", () => {
|
|
401
|
-
const entries = [
|
|
402
|
-
{ role: "user", text: "Hello" },
|
|
403
|
-
];
|
|
401
|
+
const entries = [{ role: "user", text: "Hello" }];
|
|
404
402
|
const result = compressConversationEntries(entries, "");
|
|
405
403
|
expect(result).not.toContain("### Compressed");
|
|
406
404
|
expect(result).toBe("- **user:** Hello");
|
package/dist/compact.test.js
CHANGED
|
@@ -2,7 +2,7 @@ import { mkdir, readdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
|
2
2
|
import { tmpdir } from "node:os";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
|
5
|
-
import {
|
|
5
|
+
import { autoCompactForBudget, buildWisdomPrompt, compactDailies, compactEpisodic, compactWeeklies, DAILY_LOG_RETENTION_DAYS, purgeStaleDailies, } from "./compact.js";
|
|
6
6
|
let testDir;
|
|
7
7
|
beforeEach(async () => {
|
|
8
8
|
testDir = join(tmpdir(), `compact-test-${Date.now()}-${Math.random().toString(36).slice(2)}`);
|
|
@@ -446,7 +446,7 @@ describe("compactDailies — partial merge", () => {
|
|
|
446
446
|
// Same date exists as a daily log (shouldn't duplicate)
|
|
447
447
|
await writeFile(join(memDir, "2024-03-05.md"), "# Updated Tuesday");
|
|
448
448
|
await writeFile(join(memDir, "2024-03-06.md"), "# Wednesday");
|
|
449
|
-
const
|
|
449
|
+
const _result = await compactDailies(testDir);
|
|
450
450
|
const content = await readFile(join(weeklyDir, "2024-W10.md"), "utf-8");
|
|
451
451
|
// Should contain the original (from partial), not duplicated
|
|
452
452
|
const tuesdayMatches = content.match(/## 2024-03-05/g);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teammates/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Agent-agnostic CLI for teammates. Routes tasks, manages handoffs, and plugs into any coding agent backend.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@github/copilot-sdk": "^0.1.32",
|
|
37
|
-
"@teammates/consolonia": "
|
|
38
|
-
"@teammates/recall": "
|
|
37
|
+
"@teammates/consolonia": "*",
|
|
38
|
+
"@teammates/recall": "*",
|
|
39
39
|
"chalk": "^5.6.2",
|
|
40
40
|
"ora": "^9.3.0"
|
|
41
41
|
},
|