@agimon-ai/doompi-edit 0.0.1-alpha.30 → 0.0.1-alpha.36
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/pi/editTool.d.cts +2 -3
- package/dist/adapters/pi/editTool.d.cts.map +1 -1
- package/dist/adapters/pi/editTool.d.mts +2 -3
- package/dist/adapters/pi/editTool.d.mts.map +1 -1
- package/dist/adapters/pi/extension.d.cts +3 -3
- package/dist/adapters/pi/extension.d.cts.map +1 -1
- package/dist/adapters/pi/extension.d.mts +3 -3
- package/dist/adapters/pi/extension.d.mts.map +1 -1
- package/dist/schemas/editTool.d.cts +4 -5
- package/dist/schemas/editTool.d.cts.map +1 -1
- package/dist/schemas/editTool.d.mts +4 -5
- package/dist/schemas/editTool.d.mts.map +1 -1
- package/package.json +16 -16
- package/src/web/{EditToolMessage.tsx → components/EditToolMessage.tsx} +1 -1
- package/src/web/index.ts +1 -1
- /package/src/web/{editToolView.ts → lib/editToolView.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EditParams } from "../../schemas/editTool.cjs";
|
|
2
2
|
import { EditToolDetails, ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
3
3
|
//#region src/adapters/pi/editTool.d.ts
|
|
4
|
-
declare function registerHashlineEditTool(pi: Pick<ExtensionAPI, 'registerTool'>): void;
|
|
5
|
-
declare function executeHashlineEdit(params: EditParams, cwd: string, signal: AbortSignal | undefined): Promise<{
|
|
4
|
+
export declare function registerHashlineEditTool(pi: Pick<ExtensionAPI, 'registerTool'>): void;
|
|
5
|
+
export declare function executeHashlineEdit(params: EditParams, cwd: string, signal: AbortSignal | undefined): Promise<{
|
|
6
6
|
content: [{
|
|
7
7
|
type: 'text';
|
|
8
8
|
text: string;
|
|
@@ -10,5 +10,4 @@ declare function executeHashlineEdit(params: EditParams, cwd: string, signal: Ab
|
|
|
10
10
|
details: EditToolDetails;
|
|
11
11
|
}>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { executeHashlineEdit, registerHashlineEditTool };
|
|
14
13
|
//# sourceMappingURL=editTool.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editTool.d.cts","names":[],"sources":["../../../src/adapters/pi/editTool.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"editTool.d.cts","names":[],"sources":["../../../src/adapters/pi/editTool.ts"],"mappings":";;;wBAsBgB,yBAAyB,IAAI,KAAK;wBA+B5B,oBACpB,QAAQ,YACR,aACA,QAAQ,0BACP;EAAU;IAAY;IAAc;;EAAiB,SAAS"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EditParams } from "../../schemas/editTool.mjs";
|
|
2
2
|
import { EditToolDetails, ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
3
3
|
//#region src/adapters/pi/editTool.d.ts
|
|
4
|
-
declare function registerHashlineEditTool(pi: Pick<ExtensionAPI, 'registerTool'>): void;
|
|
5
|
-
declare function executeHashlineEdit(params: EditParams, cwd: string, signal: AbortSignal | undefined): Promise<{
|
|
4
|
+
export declare function registerHashlineEditTool(pi: Pick<ExtensionAPI, 'registerTool'>): void;
|
|
5
|
+
export declare function executeHashlineEdit(params: EditParams, cwd: string, signal: AbortSignal | undefined): Promise<{
|
|
6
6
|
content: [{
|
|
7
7
|
type: 'text';
|
|
8
8
|
text: string;
|
|
@@ -10,5 +10,4 @@ declare function executeHashlineEdit(params: EditParams, cwd: string, signal: Ab
|
|
|
10
10
|
details: EditToolDetails;
|
|
11
11
|
}>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { executeHashlineEdit, registerHashlineEditTool };
|
|
14
13
|
//# sourceMappingURL=editTool.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editTool.d.mts","names":[],"sources":["../../../src/adapters/pi/editTool.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"editTool.d.mts","names":[],"sources":["../../../src/adapters/pi/editTool.ts"],"mappings":";;;wBAsBgB,yBAAyB,IAAI,KAAK;wBA+B5B,oBACpB,QAAQ,YACR,aACA,QAAQ,0BACP;EAAU;IAAY;IAAc;;EAAiB,SAAS"}
|
|
@@ -2,9 +2,9 @@ import { Context } from "@deepseek-ai/cordis";
|
|
|
2
2
|
import { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
3
3
|
//#region src/adapters/pi/extension.d.ts
|
|
4
4
|
/** Install the hashline edit tool after claiming its shared Pi name. */
|
|
5
|
-
declare function installDoomPiEditRuntime(cordis: Context, pi: ExtensionAPI): void;
|
|
5
|
+
export declare function installDoomPiEditRuntime(cordis: Context, pi: ExtensionAPI): void;
|
|
6
6
|
/** Connect the package's standard Pi entry to DoomPi's shared Cordis host. */
|
|
7
|
-
declare function activateDoomPiEditExtension(pi: ExtensionAPI): Promise<void>;
|
|
7
|
+
export declare function activateDoomPiEditExtension(pi: ExtensionAPI): Promise<void>;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { activateDoomPiEditExtension
|
|
9
|
+
export { activateDoomPiEditExtension as default };
|
|
10
10
|
//# sourceMappingURL=extension.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.d.cts","names":[],"sources":["../../../src/adapters/pi/extension.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"extension.d.cts","names":[],"sources":["../../../src/adapters/pi/extension.ts"],"mappings":";;;;wBAYgB,yBAAyB,QAAQ,SAAS,IAAI;;wBAkBxC,4BAA4B,IAAI,eAAe"}
|
|
@@ -2,9 +2,9 @@ import { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
|
2
2
|
import { Context } from "@deepseek-ai/cordis";
|
|
3
3
|
//#region src/adapters/pi/extension.d.ts
|
|
4
4
|
/** Install the hashline edit tool after claiming its shared Pi name. */
|
|
5
|
-
declare function installDoomPiEditRuntime(cordis: Context, pi: ExtensionAPI): void;
|
|
5
|
+
export declare function installDoomPiEditRuntime(cordis: Context, pi: ExtensionAPI): void;
|
|
6
6
|
/** Connect the package's standard Pi entry to DoomPi's shared Cordis host. */
|
|
7
|
-
declare function activateDoomPiEditExtension(pi: ExtensionAPI): Promise<void>;
|
|
7
|
+
export declare function activateDoomPiEditExtension(pi: ExtensionAPI): Promise<void>;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { activateDoomPiEditExtension
|
|
9
|
+
export { activateDoomPiEditExtension as default };
|
|
10
10
|
//# sourceMappingURL=extension.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.d.mts","names":[],"sources":["../../../src/adapters/pi/extension.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"extension.d.mts","names":[],"sources":["../../../src/adapters/pi/extension.ts"],"mappings":";;;;wBAYgB,yBAAyB,QAAQ,SAAS,IAAI;;wBAkBxC,4BAA4B,IAAI,eAAe"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Static, Type } from "typebox";
|
|
2
2
|
//#region src/schemas/editTool.d.ts
|
|
3
|
-
declare const HashlineRangeSchema: Type.TObject<{
|
|
3
|
+
export declare const HashlineRangeSchema: Type.TObject<{
|
|
4
4
|
from: Type.TString;
|
|
5
5
|
to: Type.TString;
|
|
6
6
|
content: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
7
7
|
}>;
|
|
8
|
-
declare const EditParamsSchema: Type.TObject<{
|
|
8
|
+
export declare const EditParamsSchema: Type.TObject<{
|
|
9
9
|
path: Type.TString;
|
|
10
10
|
hash: Type.TString;
|
|
11
11
|
edits: Type.TArray<Type.TObject<{
|
|
@@ -14,8 +14,7 @@ declare const EditParamsSchema: Type.TObject<{
|
|
|
14
14
|
content: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
15
15
|
}>>;
|
|
16
16
|
}>;
|
|
17
|
-
type HashlineRange = Static<typeof HashlineRangeSchema>;
|
|
18
|
-
type EditParams = Static<typeof EditParamsSchema>;
|
|
17
|
+
export type HashlineRange = Static<typeof HashlineRangeSchema>;
|
|
18
|
+
export type EditParams = Static<typeof EditParamsSchema>;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { EditParams, EditParamsSchema, HashlineRange, HashlineRangeSchema };
|
|
21
20
|
//# sourceMappingURL=editTool.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editTool.d.cts","names":[],"sources":["../../src/schemas/editTool.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"editTool.d.cts","names":[],"sources":["../../src/schemas/editTool.ts"],"mappings":";;qBAEa,qBAAmB,KAAA;;;;;qBAWnB,kBAAgB,KAAA;;;;;;;;;YASjB,gBAAgB,cAAc;YAC9B,aAAa,cAAc"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Static, Type } from "typebox";
|
|
2
2
|
//#region src/schemas/editTool.d.ts
|
|
3
|
-
declare const HashlineRangeSchema: Type.TObject<{
|
|
3
|
+
export declare const HashlineRangeSchema: Type.TObject<{
|
|
4
4
|
from: Type.TString;
|
|
5
5
|
to: Type.TString;
|
|
6
6
|
content: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
7
7
|
}>;
|
|
8
|
-
declare const EditParamsSchema: Type.TObject<{
|
|
8
|
+
export declare const EditParamsSchema: Type.TObject<{
|
|
9
9
|
path: Type.TString;
|
|
10
10
|
hash: Type.TString;
|
|
11
11
|
edits: Type.TArray<Type.TObject<{
|
|
@@ -14,8 +14,7 @@ declare const EditParamsSchema: Type.TObject<{
|
|
|
14
14
|
content: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
15
15
|
}>>;
|
|
16
16
|
}>;
|
|
17
|
-
type HashlineRange = Static<typeof HashlineRangeSchema>;
|
|
18
|
-
type EditParams = Static<typeof EditParamsSchema>;
|
|
17
|
+
export type HashlineRange = Static<typeof HashlineRangeSchema>;
|
|
18
|
+
export type EditParams = Static<typeof EditParamsSchema>;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { EditParams, EditParamsSchema, HashlineRange, HashlineRangeSchema };
|
|
21
20
|
//# sourceMappingURL=editTool.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editTool.d.mts","names":[],"sources":["../../src/schemas/editTool.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"editTool.d.mts","names":[],"sources":["../../src/schemas/editTool.ts"],"mappings":";;qBAEa,qBAAmB,KAAA;;;;;qBAWnB,kBAAgB,KAAA;;;;;;;;;YASjB,gBAAgB,cAAc;YAC9B,aAAa,cAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agimon-ai/doompi-edit",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.36",
|
|
4
4
|
"description": "Snapshot-bound hashline edit tool for Pi and DoomPi.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -49,30 +49,30 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@deepseek-ai/cordis": "4.0.
|
|
53
|
-
"typebox": "1.3.
|
|
54
|
-
"@agimon-ai/doompi-extension-contracts": "0.0.1-alpha.
|
|
55
|
-
"@agimon-ai/doompi-hashline": "0.0.1-alpha.
|
|
56
|
-
"@agimon-ai/doompi-
|
|
57
|
-
"@agimon-ai/doompi-web-
|
|
58
|
-
"@agimon-ai/doompi-
|
|
52
|
+
"@deepseek-ai/cordis": "4.0.2",
|
|
53
|
+
"typebox": "1.3.25",
|
|
54
|
+
"@agimon-ai/doompi-extension-contracts": "0.0.1-alpha.63",
|
|
55
|
+
"@agimon-ai/doompi-hashline": "0.0.1-alpha.34",
|
|
56
|
+
"@agimon-ai/doompi-web-components": "0.0.1-alpha.23",
|
|
57
|
+
"@agimon-ai/doompi-web-contracts": "0.0.1-alpha.26",
|
|
58
|
+
"@agimon-ai/doompi-ui": "0.0.1-alpha.64"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@earendil-works/pi-coding-agent": "0.85.
|
|
62
|
-
"@earendil-works/pi-tui": "0.85.
|
|
61
|
+
"@earendil-works/pi-coding-agent": "0.85.1",
|
|
62
|
+
"@earendil-works/pi-tui": "0.85.1",
|
|
63
63
|
"@tanstack/react-store": "0.11.1",
|
|
64
64
|
"@tanstack/store": "0.11.1",
|
|
65
|
-
"@types/node": "26.4.
|
|
65
|
+
"@types/node": "26.4.1",
|
|
66
66
|
"@types/react": "19.2.18",
|
|
67
|
-
"@vitest/coverage-v8": "
|
|
67
|
+
"@vitest/coverage-v8": "5.0.0",
|
|
68
68
|
"react": "19.2.8",
|
|
69
|
-
"tsdown": "0.
|
|
69
|
+
"tsdown": "0.23.0",
|
|
70
70
|
"typescript": "7.0.2",
|
|
71
|
-
"vitest": "
|
|
71
|
+
"vitest": "5.0.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@earendil-works/pi-coding-agent": "0.85.
|
|
75
|
-
"@earendil-works/pi-tui": "0.85.
|
|
74
|
+
"@earendil-works/pi-coding-agent": "0.85.1",
|
|
75
|
+
"@earendil-works/pi-tui": "0.85.1"
|
|
76
76
|
},
|
|
77
77
|
"peerDependenciesMeta": {
|
|
78
78
|
"@earendil-works/pi-coding-agent": {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
useSyntaxLines,
|
|
11
11
|
} from '@agimon-ai/doompi-web-components';
|
|
12
12
|
import type { ToolMessageRenderProps } from '@agimon-ai/doompi-web-contracts';
|
|
13
|
-
import { type DiffRow, editCallView, editResultView, resultTextLines } from '
|
|
13
|
+
import { type DiffRow, editCallView, editResultView, resultTextLines } from '../lib/editToolView.ts';
|
|
14
14
|
|
|
15
15
|
/** Diff rows shown until the item expands; about what the old scroll box held. */
|
|
16
16
|
const COLLAPSED_ROWS = 24;
|
package/src/web/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineWebPlugin } from '@agimon-ai/doompi-web-contracts';
|
|
2
|
-
import { EditToolMessage } from './EditToolMessage.tsx';
|
|
2
|
+
import { EditToolMessage } from './components/EditToolMessage.tsx';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* This package's cockpit presence: the edit tool's timeline card, the web
|
|
File without changes
|