@cydm/pie 0.1.1 → 1.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cydm/pie",
3
- "version": "0.1.1",
3
+ "version": "1.0.0",
4
4
  "description": "Pie AI Agent CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -12,8 +12,9 @@
12
12
  "dev": "tsc -p tsconfig.json --watch --preserveWatchOutput",
13
13
  "start": "node dist/cli.js",
14
14
  "test": "npm run test:offline",
15
- "test:offline": "node --test --import tsx test/hierarchical-command-system.test.ts test/message-queue-unit.test.ts test/mention-file-select.terminal.test.ts test/tool-partial-display.terminal.test.ts test/viewport-position-final.test.ts",
16
- "test:integration": "node --test --import tsx test/cli.test.ts test/file-upload-test.terminal.test.ts test/human-simulation.test.ts test/interactive-integration.test.ts test/pie-cli.terminal.test.ts test/txt-upload-test.terminal.test.ts",
15
+ "test:offline": "node --test --import tsx test/core-services.test.ts test/cli.test.ts test/attachment-resolver.test.ts test/kimi-attachment-extension.test.ts test/document-attachment-extension.test.ts test/auto-compact-overflow.test.ts test/hierarchical-command-system.test.ts test/message-queue-unit.test.ts test/mention-file-select.terminal.test.ts test/tool-partial-display.terminal.test.ts test/viewport-position-final.test.ts",
16
+ "test:kimi-smoke": "node scripts/kimi-attachment-smoke.mjs",
17
+ "test:integration": "node --test --import tsx test/cli.test.ts test/compact-e2e.test.ts test/file-upload-test.terminal.test.ts test/human-simulation.test.ts test/interactive-integration.test.ts test/pie-cli.terminal.test.ts test/txt-upload-test.terminal.test.ts",
17
18
  "test:fixes": "tsx test-fixes.ts",
18
19
  "pack:check": "npm pack --dry-run"
19
20
  },
@@ -1,52 +0,0 @@
1
- import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
-
3
- // builtin/extensions/compact/index.ts
4
- function compactExtension(ctx) {
5
- ctx.log("Compact extension loaded");
6
- ctx.ui.notify("\u{1F5DC}\uFE0F Compact extension loaded", "info");
7
- ctx.registerCommand({
8
- path: ["tools", "compact"],
9
- description: "Auto-summarize and compact conversation history",
10
- handler: async (ctx2, args) => {
11
- const focus = args?.trim();
12
- let prompt = `Please summarize our conversation into a compact form.
13
-
14
- Your task:
15
- 1. Analyze the conversation history:
16
- - What was the original goal or question?
17
- - What decisions were made?
18
- - What code changes or file operations were performed?
19
- - What is the current state?
20
- - Are there any pending tasks or next steps?
21
-
22
- 2. Create a concise summary that captures:
23
- - The essence of what was discussed
24
- - Key technical decisions and their rationale
25
- - Files that were modified or created
26
- - Important code patterns or approaches established
27
- - Any unresolved questions or TODOs
28
-
29
- 3. Format the summary to be:
30
- - Under 500 words
31
- - Well-structured with clear sections
32
- - Technical and specific (include file paths, function names, etc.)
33
- - Useful as context for continuing this work later
34
-
35
- The summary should be detailed enough that another AI assistant could pick up where we left off.`;
36
- if (focus) {
37
- prompt += `
38
-
39
- Special focus: ${focus}
40
- Please pay particular attention to aspects related to "${focus}" in your summary.`;
41
- }
42
- prompt += `
43
-
44
- After providing the summary, I will use it to update the conversation context. The original detailed messages can then be archived.`;
45
- return prompt;
46
- }
47
- });
48
- ctx.log("Compact extension ready");
49
- }
50
- export {
51
- compactExtension as default
52
- };