sessionlog 0.0.1
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/LICENSE +21 -0
- package/README.md +388 -0
- package/dist/agent/agents/claude-code.d.ts +76 -0
- package/dist/agent/agents/claude-code.d.ts.map +1 -0
- package/dist/agent/agents/claude-code.js +769 -0
- package/dist/agent/agents/claude-code.js.map +1 -0
- package/dist/agent/agents/cursor.d.ts +35 -0
- package/dist/agent/agents/cursor.d.ts.map +1 -0
- package/dist/agent/agents/cursor.js +294 -0
- package/dist/agent/agents/cursor.js.map +1 -0
- package/dist/agent/agents/gemini-cli.d.ts +62 -0
- package/dist/agent/agents/gemini-cli.d.ts.map +1 -0
- package/dist/agent/agents/gemini-cli.js +474 -0
- package/dist/agent/agents/gemini-cli.js.map +1 -0
- package/dist/agent/agents/opencode.d.ts +100 -0
- package/dist/agent/agents/opencode.d.ts.map +1 -0
- package/dist/agent/agents/opencode.js +423 -0
- package/dist/agent/agents/opencode.js.map +1 -0
- package/dist/agent/registry.d.ts +54 -0
- package/dist/agent/registry.d.ts.map +1 -0
- package/dist/agent/registry.js +123 -0
- package/dist/agent/registry.js.map +1 -0
- package/dist/agent/session-types.d.ts +45 -0
- package/dist/agent/session-types.d.ts.map +1 -0
- package/dist/agent/session-types.js +48 -0
- package/dist/agent/session-types.js.map +1 -0
- package/dist/agent/types.d.ts +126 -0
- package/dist/agent/types.d.ts.map +1 -0
- package/dist/agent/types.js +40 -0
- package/dist/agent/types.js.map +1 -0
- package/dist/cli.d.ts +12 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +425 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/clean.d.ts +30 -0
- package/dist/commands/clean.d.ts.map +1 -0
- package/dist/commands/clean.js +98 -0
- package/dist/commands/clean.js.map +1 -0
- package/dist/commands/disable.d.ts +23 -0
- package/dist/commands/disable.d.ts.map +1 -0
- package/dist/commands/disable.js +57 -0
- package/dist/commands/disable.js.map +1 -0
- package/dist/commands/doctor.d.ts +43 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +97 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/enable.d.ts +37 -0
- package/dist/commands/enable.d.ts.map +1 -0
- package/dist/commands/enable.js +133 -0
- package/dist/commands/enable.js.map +1 -0
- package/dist/commands/explain.d.ts +68 -0
- package/dist/commands/explain.d.ts.map +1 -0
- package/dist/commands/explain.js +182 -0
- package/dist/commands/explain.js.map +1 -0
- package/dist/commands/reset.d.ts +23 -0
- package/dist/commands/reset.d.ts.map +1 -0
- package/dist/commands/reset.js +68 -0
- package/dist/commands/reset.js.map +1 -0
- package/dist/commands/resume.d.ts +42 -0
- package/dist/commands/resume.d.ts.map +1 -0
- package/dist/commands/resume.js +133 -0
- package/dist/commands/resume.js.map +1 -0
- package/dist/commands/rewind.d.ts +34 -0
- package/dist/commands/rewind.d.ts.map +1 -0
- package/dist/commands/rewind.js +155 -0
- package/dist/commands/rewind.js.map +1 -0
- package/dist/commands/status.d.ts +51 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +112 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/config.d.ts +40 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +127 -0
- package/dist/config.js.map +1 -0
- package/dist/git-operations.d.ts +191 -0
- package/dist/git-operations.d.ts.map +1 -0
- package/dist/git-operations.js +462 -0
- package/dist/git-operations.js.map +1 -0
- package/dist/hooks/git-hooks.d.ts +22 -0
- package/dist/hooks/git-hooks.d.ts.map +1 -0
- package/dist/hooks/git-hooks.js +139 -0
- package/dist/hooks/git-hooks.js.map +1 -0
- package/dist/hooks/lifecycle.d.ts +21 -0
- package/dist/hooks/lifecycle.d.ts.map +1 -0
- package/dist/hooks/lifecycle.js +179 -0
- package/dist/hooks/lifecycle.js.map +1 -0
- package/dist/index.d.ts +76 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +166 -0
- package/dist/index.js.map +1 -0
- package/dist/security/redaction.d.ts +35 -0
- package/dist/security/redaction.d.ts.map +1 -0
- package/dist/security/redaction.js +239 -0
- package/dist/security/redaction.js.map +1 -0
- package/dist/session/state-machine.d.ts +90 -0
- package/dist/session/state-machine.d.ts.map +1 -0
- package/dist/session/state-machine.js +345 -0
- package/dist/session/state-machine.js.map +1 -0
- package/dist/store/checkpoint-store.d.ts +59 -0
- package/dist/store/checkpoint-store.d.ts.map +1 -0
- package/dist/store/checkpoint-store.js +321 -0
- package/dist/store/checkpoint-store.js.map +1 -0
- package/dist/store/native-store.d.ts +14 -0
- package/dist/store/native-store.d.ts.map +1 -0
- package/dist/store/native-store.js +159 -0
- package/dist/store/native-store.js.map +1 -0
- package/dist/store/provider-types.d.ts +78 -0
- package/dist/store/provider-types.d.ts.map +1 -0
- package/dist/store/provider-types.js +12 -0
- package/dist/store/provider-types.js.map +1 -0
- package/dist/store/session-store.d.ts +36 -0
- package/dist/store/session-store.d.ts.map +1 -0
- package/dist/store/session-store.js +193 -0
- package/dist/store/session-store.js.map +1 -0
- package/dist/strategy/attribution.d.ts +39 -0
- package/dist/strategy/attribution.d.ts.map +1 -0
- package/dist/strategy/attribution.js +225 -0
- package/dist/strategy/attribution.js.map +1 -0
- package/dist/strategy/common.d.ts +57 -0
- package/dist/strategy/common.d.ts.map +1 -0
- package/dist/strategy/common.js +156 -0
- package/dist/strategy/common.js.map +1 -0
- package/dist/strategy/content-overlap.d.ts +33 -0
- package/dist/strategy/content-overlap.d.ts.map +1 -0
- package/dist/strategy/content-overlap.js +176 -0
- package/dist/strategy/content-overlap.js.map +1 -0
- package/dist/strategy/manual-commit.d.ts +36 -0
- package/dist/strategy/manual-commit.d.ts.map +1 -0
- package/dist/strategy/manual-commit.js +717 -0
- package/dist/strategy/manual-commit.js.map +1 -0
- package/dist/strategy/types.d.ts +163 -0
- package/dist/strategy/types.d.ts.map +1 -0
- package/dist/strategy/types.js +48 -0
- package/dist/strategy/types.js.map +1 -0
- package/dist/summarize/claude-generator.d.ts +25 -0
- package/dist/summarize/claude-generator.d.ts.map +1 -0
- package/dist/summarize/claude-generator.js +87 -0
- package/dist/summarize/claude-generator.js.map +1 -0
- package/dist/summarize/summarize.d.ts +52 -0
- package/dist/summarize/summarize.d.ts.map +1 -0
- package/dist/summarize/summarize.js +335 -0
- package/dist/summarize/summarize.js.map +1 -0
- package/dist/types.d.ts +293 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +94 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/chunk-files.d.ts +25 -0
- package/dist/utils/chunk-files.d.ts.map +1 -0
- package/dist/utils/chunk-files.js +47 -0
- package/dist/utils/chunk-files.js.map +1 -0
- package/dist/utils/commit-message.d.ts +11 -0
- package/dist/utils/commit-message.d.ts.map +1 -0
- package/dist/utils/commit-message.js +54 -0
- package/dist/utils/commit-message.js.map +1 -0
- package/dist/utils/detect-agent.d.ts +19 -0
- package/dist/utils/detect-agent.d.ts.map +1 -0
- package/dist/utils/detect-agent.js +34 -0
- package/dist/utils/detect-agent.js.map +1 -0
- package/dist/utils/hook-managers.d.ts +24 -0
- package/dist/utils/hook-managers.d.ts.map +1 -0
- package/dist/utils/hook-managers.js +96 -0
- package/dist/utils/hook-managers.js.map +1 -0
- package/dist/utils/ide-tags.d.ts +12 -0
- package/dist/utils/ide-tags.d.ts.map +1 -0
- package/dist/utils/ide-tags.js +30 -0
- package/dist/utils/ide-tags.js.map +1 -0
- package/dist/utils/paths.d.ts +32 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +55 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/preview-rewind.d.ts +23 -0
- package/dist/utils/preview-rewind.d.ts.map +1 -0
- package/dist/utils/preview-rewind.js +63 -0
- package/dist/utils/preview-rewind.js.map +1 -0
- package/dist/utils/rewind-conflict.d.ts +52 -0
- package/dist/utils/rewind-conflict.d.ts.map +1 -0
- package/dist/utils/rewind-conflict.js +79 -0
- package/dist/utils/rewind-conflict.js.map +1 -0
- package/dist/utils/shadow-branch.d.ts +44 -0
- package/dist/utils/shadow-branch.d.ts.map +1 -0
- package/dist/utils/shadow-branch.js +93 -0
- package/dist/utils/shadow-branch.js.map +1 -0
- package/dist/utils/string-utils.d.ts +24 -0
- package/dist/utils/string-utils.d.ts.map +1 -0
- package/dist/utils/string-utils.js +47 -0
- package/dist/utils/string-utils.js.map +1 -0
- package/dist/utils/todo-extract.d.ts +52 -0
- package/dist/utils/todo-extract.d.ts.map +1 -0
- package/dist/utils/todo-extract.js +167 -0
- package/dist/utils/todo-extract.js.map +1 -0
- package/dist/utils/trailers.d.ts +36 -0
- package/dist/utils/trailers.d.ts.map +1 -0
- package/dist/utils/trailers.js +148 -0
- package/dist/utils/trailers.js.map +1 -0
- package/dist/utils/transcript-parse.d.ts +57 -0
- package/dist/utils/transcript-parse.d.ts.map +1 -0
- package/dist/utils/transcript-parse.js +126 -0
- package/dist/utils/transcript-parse.js.map +1 -0
- package/dist/utils/transcript-timestamp.d.ts +22 -0
- package/dist/utils/transcript-timestamp.d.ts.map +1 -0
- package/dist/utils/transcript-timestamp.js +56 -0
- package/dist/utils/transcript-timestamp.js.map +1 -0
- package/dist/utils/tree-ops.d.ts +47 -0
- package/dist/utils/tree-ops.d.ts.map +1 -0
- package/dist/utils/tree-ops.js +145 -0
- package/dist/utils/tree-ops.js.map +1 -0
- package/dist/utils/tty.d.ts +25 -0
- package/dist/utils/tty.d.ts.map +1 -0
- package/dist/utils/tty.js +70 -0
- package/dist/utils/tty.js.map +1 -0
- package/dist/utils/validation.d.ts +31 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +59 -0
- package/dist/utils/validation.js.map +1 -0
- package/dist/utils/worktree.d.ts +16 -0
- package/dist/utils/worktree.d.ts.map +1 -0
- package/dist/utils/worktree.js +50 -0
- package/dist/utils/worktree.js.map +1 -0
- package/package.json +64 -0
package/dist/types.js
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entire Core Types
|
|
3
|
+
*
|
|
4
|
+
* Core type definitions for the Entire session tracking system.
|
|
5
|
+
* This module is designed with clean boundaries for future extraction
|
|
6
|
+
* into a standalone package.
|
|
7
|
+
*/
|
|
8
|
+
export const AGENT_NAMES = {
|
|
9
|
+
CLAUDE_CODE: 'claude-code',
|
|
10
|
+
CURSOR: 'cursor',
|
|
11
|
+
GEMINI: 'gemini',
|
|
12
|
+
OPENCODE: 'opencode',
|
|
13
|
+
};
|
|
14
|
+
export const AGENT_TYPES = {
|
|
15
|
+
CLAUDE_CODE: 'Claude Code',
|
|
16
|
+
CURSOR: 'Cursor IDE',
|
|
17
|
+
GEMINI: 'Gemini CLI',
|
|
18
|
+
OPENCODE: 'OpenCode',
|
|
19
|
+
UNKNOWN: 'Agent',
|
|
20
|
+
};
|
|
21
|
+
export const DEFAULT_AGENT_NAME = AGENT_NAMES.CLAUDE_CODE;
|
|
22
|
+
// ============================================================================
|
|
23
|
+
// Event Types
|
|
24
|
+
// ============================================================================
|
|
25
|
+
export var EventType;
|
|
26
|
+
(function (EventType) {
|
|
27
|
+
EventType[EventType["SessionStart"] = 1] = "SessionStart";
|
|
28
|
+
EventType[EventType["TurnStart"] = 2] = "TurnStart";
|
|
29
|
+
EventType[EventType["TurnEnd"] = 3] = "TurnEnd";
|
|
30
|
+
EventType[EventType["Compaction"] = 4] = "Compaction";
|
|
31
|
+
EventType[EventType["SessionEnd"] = 5] = "SessionEnd";
|
|
32
|
+
EventType[EventType["SubagentStart"] = 6] = "SubagentStart";
|
|
33
|
+
EventType[EventType["SubagentEnd"] = 7] = "SubagentEnd";
|
|
34
|
+
})(EventType || (EventType = {}));
|
|
35
|
+
export function emptyTokenUsage() {
|
|
36
|
+
return {
|
|
37
|
+
inputTokens: 0,
|
|
38
|
+
cacheCreationTokens: 0,
|
|
39
|
+
cacheReadTokens: 0,
|
|
40
|
+
outputTokens: 0,
|
|
41
|
+
apiCallCount: 0,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function addTokenUsage(a, b) {
|
|
45
|
+
return {
|
|
46
|
+
inputTokens: a.inputTokens + b.inputTokens,
|
|
47
|
+
cacheCreationTokens: a.cacheCreationTokens + b.cacheCreationTokens,
|
|
48
|
+
cacheReadTokens: a.cacheReadTokens + b.cacheReadTokens,
|
|
49
|
+
outputTokens: a.outputTokens + b.outputTokens,
|
|
50
|
+
apiCallCount: a.apiCallCount + b.apiCallCount,
|
|
51
|
+
subagentTokens: a.subagentTokens || b.subagentTokens
|
|
52
|
+
? addTokenUsage(a.subagentTokens ?? emptyTokenUsage(), b.subagentTokens ?? emptyTokenUsage())
|
|
53
|
+
: undefined,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
// ============================================================================
|
|
57
|
+
// Checkpoint Types
|
|
58
|
+
// ============================================================================
|
|
59
|
+
export var CheckpointType;
|
|
60
|
+
(function (CheckpointType) {
|
|
61
|
+
CheckpointType[CheckpointType["Temporary"] = 0] = "Temporary";
|
|
62
|
+
CheckpointType[CheckpointType["Committed"] = 1] = "Committed";
|
|
63
|
+
})(CheckpointType || (CheckpointType = {}));
|
|
64
|
+
export const CHECKPOINT_ID_LENGTH = 12;
|
|
65
|
+
export const CHECKPOINT_ID_PATTERN = /^[0-9a-f]{12}$/;
|
|
66
|
+
export function validateCheckpointID(id) {
|
|
67
|
+
return CHECKPOINT_ID_PATTERN.test(id);
|
|
68
|
+
}
|
|
69
|
+
/** Shard a checkpoint ID for storage: "a3b2c4d5e6f7" → "a3/b2c4d5e6f7" */
|
|
70
|
+
export function checkpointIDPath(id) {
|
|
71
|
+
return `${id.slice(0, 2)}/${id.slice(2)}`;
|
|
72
|
+
}
|
|
73
|
+
export const DEFAULT_SETTINGS = {
|
|
74
|
+
enabled: false,
|
|
75
|
+
strategy: 'manual-commit',
|
|
76
|
+
logLevel: 'warn',
|
|
77
|
+
telemetryEnabled: false,
|
|
78
|
+
summarizationEnabled: false,
|
|
79
|
+
};
|
|
80
|
+
// ============================================================================
|
|
81
|
+
// Constants
|
|
82
|
+
// ============================================================================
|
|
83
|
+
export const ENTIRE_DIR = '.entire';
|
|
84
|
+
export const ENTIRE_TMP_DIR = '.entire/tmp';
|
|
85
|
+
export const ENTIRE_METADATA_DIR = '.entire/metadata';
|
|
86
|
+
export const ENTIRE_SETTINGS_FILE = '.entire/settings.json';
|
|
87
|
+
export const ENTIRE_SETTINGS_LOCAL_FILE = '.entire/settings.local.json';
|
|
88
|
+
export const CHECKPOINTS_BRANCH = 'entire/checkpoints/v1';
|
|
89
|
+
export const SHADOW_BRANCH_PREFIX = 'entire/';
|
|
90
|
+
export const SHADOW_BRANCH_HASH_LENGTH = 7;
|
|
91
|
+
export const SESSION_DIR_NAME = 'entire-sessions';
|
|
92
|
+
export const MAX_CHUNK_SIZE = 50 * 1024 * 1024; // 50MB
|
|
93
|
+
export const STALE_SESSION_DAYS = 7;
|
|
94
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAYH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,WAAW,EAAE,aAA0B;IACvC,MAAM,EAAE,QAAqB;IAC7B,MAAM,EAAE,QAAqB;IAC7B,QAAQ,EAAE,UAAuB;CACzB,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,WAAW,EAAE,aAA0B;IACvC,MAAM,EAAE,YAAyB;IACjC,MAAM,EAAE,YAAyB;IACjC,QAAQ,EAAE,UAAuB;IACjC,OAAO,EAAE,OAAoB;CACrB,CAAC;AAEX,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC,WAAW,CAAC;AA2B1D,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,MAAM,CAAN,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,yDAAgB,CAAA;IACh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
+
* and sorting chunk files. Used for transcript storage when files exceed size limits.
|
|
6
|
+
*
|
|
7
|
+
* Ported from Go: agent/chunking.go
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Returns the filename for a chunk at the given index.
|
|
11
|
+
* Index 0 returns the base filename, index 1+ returns with chunk suffix.
|
|
12
|
+
*/
|
|
13
|
+
export declare function chunkFileName(baseName: string, index: number): string;
|
|
14
|
+
/**
|
|
15
|
+
* Extracts the chunk index from a filename.
|
|
16
|
+
* Returns 0 for the base file (no suffix), or the chunk number for suffixed files.
|
|
17
|
+
* Returns -1 if the filename doesn't match the expected pattern.
|
|
18
|
+
*/
|
|
19
|
+
export declare function parseChunkIndex(filename: string, baseName: string): number;
|
|
20
|
+
/**
|
|
21
|
+
* Sorts chunk filenames in order (base file first, then numbered chunks).
|
|
22
|
+
* Returns a new sorted array; does not modify the input.
|
|
23
|
+
*/
|
|
24
|
+
export declare function sortChunkFiles(files: string[], baseName: string): string[];
|
|
25
|
+
//# sourceMappingURL=chunk-files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk-files.d.ts","sourceRoot":"","sources":["../../src/utils/chunk-files.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH;;;GAGG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAGrE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAU1E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAM1E"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chunk File Naming Utilities
|
|
3
|
+
*
|
|
4
|
+
* Standalone utilities for generating chunk filenames, parsing chunk indices,
|
|
5
|
+
* and sorting chunk files. Used for transcript storage when files exceed size limits.
|
|
6
|
+
*
|
|
7
|
+
* Ported from Go: agent/chunking.go
|
|
8
|
+
*/
|
|
9
|
+
/** Chunk suffix format: ".001", ".002", etc. */
|
|
10
|
+
const CHUNK_SUFFIX_REGEX = /\.(\d{3})$/;
|
|
11
|
+
/**
|
|
12
|
+
* Returns the filename for a chunk at the given index.
|
|
13
|
+
* Index 0 returns the base filename, index 1+ returns with chunk suffix.
|
|
14
|
+
*/
|
|
15
|
+
export function chunkFileName(baseName, index) {
|
|
16
|
+
if (index === 0)
|
|
17
|
+
return baseName;
|
|
18
|
+
return baseName + '.' + String(index).padStart(3, '0');
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Extracts the chunk index from a filename.
|
|
22
|
+
* Returns 0 for the base file (no suffix), or the chunk number for suffixed files.
|
|
23
|
+
* Returns -1 if the filename doesn't match the expected pattern.
|
|
24
|
+
*/
|
|
25
|
+
export function parseChunkIndex(filename, baseName) {
|
|
26
|
+
if (filename === baseName)
|
|
27
|
+
return 0;
|
|
28
|
+
if (!filename.startsWith(baseName + '.'))
|
|
29
|
+
return -1;
|
|
30
|
+
const suffix = filename.slice(baseName.length);
|
|
31
|
+
const match = suffix.match(CHUNK_SUFFIX_REGEX);
|
|
32
|
+
if (!match)
|
|
33
|
+
return -1;
|
|
34
|
+
return parseInt(match[1], 10);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Sorts chunk filenames in order (base file first, then numbered chunks).
|
|
38
|
+
* Returns a new sorted array; does not modify the input.
|
|
39
|
+
*/
|
|
40
|
+
export function sortChunkFiles(files, baseName) {
|
|
41
|
+
return [...files].sort((a, b) => {
|
|
42
|
+
const idxA = parseChunkIndex(a, baseName);
|
|
43
|
+
const idxB = parseChunkIndex(b, baseName);
|
|
44
|
+
return idxA - idxB;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=chunk-files.js.map
|
|
@@ -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I,GAAG,IAAI,CAAC;IACrB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commit Message Generation
|
|
3
|
+
*
|
|
4
|
+
* Generates clean commit messages from user prompts by stripping
|
|
5
|
+
* conversational prefixes, truncating, and capitalizing.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Generate a clean commit message from a user prompt.
|
|
9
|
+
*/
|
|
10
|
+
export declare function generateCommitMessage(originalPrompt: string): string;
|
|
11
|
+
//# sourceMappingURL=commit-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit-message.d.ts","sourceRoot":"","sources":["../../src/utils/commit-message.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA2BH;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CA6BpE"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commit Message Generation
|
|
3
|
+
*
|
|
4
|
+
* Generates clean commit messages from user prompts by stripping
|
|
5
|
+
* conversational prefixes, truncating, and capitalizing.
|
|
6
|
+
*/
|
|
7
|
+
import { truncateRunes, capitalizeFirst, collapseWhitespace } from './string-utils.js';
|
|
8
|
+
const DEFAULT_MESSAGE = 'AI session updates';
|
|
9
|
+
/**
|
|
10
|
+
* Conversational prefixes that should be stripped from commit messages.
|
|
11
|
+
*/
|
|
12
|
+
const conversationalPrefixes = [
|
|
13
|
+
/^can you\s+/i,
|
|
14
|
+
/^could you\s+/i,
|
|
15
|
+
/^would you\s+/i,
|
|
16
|
+
/^please\s+/i,
|
|
17
|
+
/^let's\s+/i,
|
|
18
|
+
/^let us\s+/i,
|
|
19
|
+
/^i want you to\s+/i,
|
|
20
|
+
/^i'd like you to\s+/i,
|
|
21
|
+
/^i need you to\s+/i,
|
|
22
|
+
/^go ahead and\s+/i,
|
|
23
|
+
/^i want to\s+/i,
|
|
24
|
+
/^i'd like to\s+/i,
|
|
25
|
+
/^i need to\s+/i,
|
|
26
|
+
/^help me\s+/i,
|
|
27
|
+
/^help us\s+/i,
|
|
28
|
+
];
|
|
29
|
+
/**
|
|
30
|
+
* Generate a clean commit message from a user prompt.
|
|
31
|
+
*/
|
|
32
|
+
export function generateCommitMessage(originalPrompt) {
|
|
33
|
+
if (!originalPrompt || originalPrompt.trim().length === 0) {
|
|
34
|
+
return DEFAULT_MESSAGE;
|
|
35
|
+
}
|
|
36
|
+
let cleaned = collapseWhitespace(originalPrompt);
|
|
37
|
+
// Strip conversational prefixes
|
|
38
|
+
for (const prefix of conversationalPrefixes) {
|
|
39
|
+
cleaned = cleaned.replace(prefix, '');
|
|
40
|
+
}
|
|
41
|
+
// Remove trailing question mark
|
|
42
|
+
cleaned = cleaned.replace(/\?$/, '');
|
|
43
|
+
// Trim again
|
|
44
|
+
cleaned = cleaned.trim();
|
|
45
|
+
if (cleaned.length === 0) {
|
|
46
|
+
return DEFAULT_MESSAGE;
|
|
47
|
+
}
|
|
48
|
+
// Truncate to 72 characters (rune-safe)
|
|
49
|
+
cleaned = truncateRunes(cleaned, 72, '...');
|
|
50
|
+
// Capitalize first letter
|
|
51
|
+
cleaned = capitalizeFirst(cleaned);
|
|
52
|
+
return cleaned;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=commit-message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit-message.js","sourceRoot":"","sources":["../../src/utils/commit-message.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvF,MAAM,eAAe,GAAG,oBAAoB,CAAC;AAE7C;;GAEG;AACH,MAAM,sBAAsB,GAAG;IAC7B,cAAc;IACd,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,YAAY;IACZ,aAAa;IACb,oBAAoB;IACpB,sBAAsB;IACtB,oBAAoB;IACpB,mBAAmB;IACnB,gBAAgB;IAChB,kBAAkB;IAClB,gBAAgB;IAChB,cAAc;IACd,cAAc;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,cAAsB;IAC1D,IAAI,CAAC,cAAc,IAAI,cAAc,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1D,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,IAAI,OAAO,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC;IAEjD,gCAAgC;IAChC,KAAK,MAAM,MAAM,IAAI,sBAAsB,EAAE,CAAC;QAC5C,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACxC,CAAC;IAED,gCAAgC;IAChC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAErC,aAAa;IACb,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAEzB,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,wCAAwC;IACxC,OAAO,GAAG,aAAa,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IAE5C,0BAA0B;IAC1B,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IAEnC,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Type Detection from Content
|
|
3
|
+
*
|
|
4
|
+
* Auto-detect agent type from transcript content format.
|
|
5
|
+
*
|
|
6
|
+
* Ported from Go: agent/chunking.go
|
|
7
|
+
*/
|
|
8
|
+
import { type AgentType } from '../types.js';
|
|
9
|
+
/**
|
|
10
|
+
* Detect the agent type from transcript content.
|
|
11
|
+
*
|
|
12
|
+
* Returns the Gemini agent type if the content appears to be Gemini JSON format
|
|
13
|
+
* (object with messages array). Returns empty string if detection fails.
|
|
14
|
+
*
|
|
15
|
+
* This is used when the agent type is unknown but we need to chunk/reassemble
|
|
16
|
+
* correctly — Gemini uses JSON format while others use JSONL.
|
|
17
|
+
*/
|
|
18
|
+
export declare function detectAgentTypeFromContent(content: Buffer): AgentType | '';
|
|
19
|
+
//# sourceMappingURL=detect-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect-agent.d.ts","sourceRoot":"","sources":["../../src/utils/detect-agent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAE1D;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,EAAE,CAgB1E"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Type Detection from Content
|
|
3
|
+
*
|
|
4
|
+
* Auto-detect agent type from transcript content format.
|
|
5
|
+
*
|
|
6
|
+
* Ported from Go: agent/chunking.go
|
|
7
|
+
*/
|
|
8
|
+
import { AGENT_TYPES } from '../types.js';
|
|
9
|
+
/**
|
|
10
|
+
* Detect the agent type from transcript content.
|
|
11
|
+
*
|
|
12
|
+
* Returns the Gemini agent type if the content appears to be Gemini JSON format
|
|
13
|
+
* (object with messages array). Returns empty string if detection fails.
|
|
14
|
+
*
|
|
15
|
+
* This is used when the agent type is unknown but we need to chunk/reassemble
|
|
16
|
+
* correctly — Gemini uses JSON format while others use JSONL.
|
|
17
|
+
*/
|
|
18
|
+
export function detectAgentTypeFromContent(content) {
|
|
19
|
+
const trimmed = content.toString('utf-8').trimStart();
|
|
20
|
+
// Gemini JSON starts with { and has a messages array
|
|
21
|
+
if (!trimmed.startsWith('{'))
|
|
22
|
+
return '';
|
|
23
|
+
try {
|
|
24
|
+
const parsed = JSON.parse(trimmed);
|
|
25
|
+
if (Array.isArray(parsed.messages) && parsed.messages.length > 0) {
|
|
26
|
+
return AGENT_TYPES.GEMINI;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
// Not valid JSON
|
|
31
|
+
}
|
|
32
|
+
return '';
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=detect-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect-agent.js","sourceRoot":"","sources":["../../src/utils/detect-agent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAkB,MAAM,aAAa,CAAC;AAE1D;;;;;;;;GAQG;AACH,MAAM,UAAU,0BAA0B,CAAC,OAAe;IACxD,MAAM,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC;IAEtD,qDAAqD;IACrD,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,EAAE,CAAC;IAExC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAA4B,CAAC;QAC9D,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACjE,OAAO,WAAW,CAAC,MAAM,CAAC;QAC5B,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,iBAAiB;IACnB,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook Manager Detection
|
|
3
|
+
*
|
|
4
|
+
* Detects third-party git hook managers (Husky, Lefthook, pre-commit,
|
|
5
|
+
* Overcommit) in a repository and generates conflict warnings.
|
|
6
|
+
*/
|
|
7
|
+
export interface HookManager {
|
|
8
|
+
/** Name of the hook manager (e.g., "Husky", "Lefthook") */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Relative path that triggered detection (e.g., ".husky/") */
|
|
11
|
+
configPath: string;
|
|
12
|
+
/** Whether the tool will overwrite Entire's hooks on reinstall */
|
|
13
|
+
overwritesHooks: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Detect third-party hook managers in a repository.
|
|
17
|
+
* Detection is filesystem-only (stat checks, no file reads).
|
|
18
|
+
*/
|
|
19
|
+
export declare function detectHookManagers(repoRoot: string): HookManager[];
|
|
20
|
+
/**
|
|
21
|
+
* Build a warning string for detected hook managers.
|
|
22
|
+
*/
|
|
23
|
+
export declare function hookManagerWarning(managers: HookManager[], entireExecutable?: string): string;
|
|
24
|
+
//# sourceMappingURL=hook-managers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook-managers.d.ts","sourceRoot":"","sources":["../../src/utils/hook-managers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,MAAM,WAAW,WAAW;IAC1B,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,eAAe,EAAE,OAAO,CAAC;CAC1B;AAMD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,EAAE,CAiClE;AAMD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,WAAW,EAAE,EAAE,gBAAgB,SAAW,GAAG,MAAM,CA4C/F"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook Manager Detection
|
|
3
|
+
*
|
|
4
|
+
* Detects third-party git hook managers (Husky, Lefthook, pre-commit,
|
|
5
|
+
* Overcommit) in a repository and generates conflict warnings.
|
|
6
|
+
*/
|
|
7
|
+
import * as fs from 'node:fs';
|
|
8
|
+
import * as path from 'node:path';
|
|
9
|
+
// ============================================================================
|
|
10
|
+
// Detection
|
|
11
|
+
// ============================================================================
|
|
12
|
+
/**
|
|
13
|
+
* Detect third-party hook managers in a repository.
|
|
14
|
+
* Detection is filesystem-only (stat checks, no file reads).
|
|
15
|
+
*/
|
|
16
|
+
export function detectHookManagers(repoRoot) {
|
|
17
|
+
const checks = [
|
|
18
|
+
{ name: 'Husky', configPath: '.husky/', overwritesHooks: true },
|
|
19
|
+
{ name: 'pre-commit', configPath: '.pre-commit-config.yaml', overwritesHooks: false },
|
|
20
|
+
{ name: 'Overcommit', configPath: '.overcommit.yml', overwritesHooks: false },
|
|
21
|
+
];
|
|
22
|
+
// Lefthook supports {.,}lefthook{,-local}.{yml,yaml,json,toml}
|
|
23
|
+
for (const prefix of ['', '.']) {
|
|
24
|
+
for (const variant of ['', '-local']) {
|
|
25
|
+
for (const ext of ['yml', 'yaml', 'json', 'toml']) {
|
|
26
|
+
const name = `${prefix}lefthook${variant}.${ext}`;
|
|
27
|
+
checks.push({ name: 'Lefthook', configPath: name, overwritesHooks: false });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const seen = new Set();
|
|
32
|
+
const managers = [];
|
|
33
|
+
for (const check of checks) {
|
|
34
|
+
const fullPath = path.join(repoRoot, check.configPath);
|
|
35
|
+
try {
|
|
36
|
+
fs.statSync(fullPath);
|
|
37
|
+
if (seen.has(check.name))
|
|
38
|
+
continue;
|
|
39
|
+
seen.add(check.name);
|
|
40
|
+
managers.push(check);
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
// Not found
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return managers;
|
|
47
|
+
}
|
|
48
|
+
// ============================================================================
|
|
49
|
+
// Warning Generation
|
|
50
|
+
// ============================================================================
|
|
51
|
+
/**
|
|
52
|
+
* Build a warning string for detected hook managers.
|
|
53
|
+
*/
|
|
54
|
+
export function hookManagerWarning(managers, entireExecutable = 'entire') {
|
|
55
|
+
if (managers.length === 0)
|
|
56
|
+
return '';
|
|
57
|
+
const lines = [];
|
|
58
|
+
for (const m of managers) {
|
|
59
|
+
if (m.overwritesHooks) {
|
|
60
|
+
lines.push(`Warning: ${m.name} detected (${m.configPath})`);
|
|
61
|
+
lines.push('');
|
|
62
|
+
lines.push(` ${m.name} may overwrite hooks installed by Entire on npm install.`);
|
|
63
|
+
lines.push(` To make Entire hooks permanent, add these lines to your ${m.name} hook files:`);
|
|
64
|
+
lines.push('');
|
|
65
|
+
const hookDir = m.configPath;
|
|
66
|
+
const hooks = [
|
|
67
|
+
{
|
|
68
|
+
name: 'prepare-commit-msg',
|
|
69
|
+
cmd: `${entireExecutable} hooks git prepare-commit-msg "$1" "$2" 2>/dev/null || true`,
|
|
70
|
+
},
|
|
71
|
+
{ name: 'commit-msg', cmd: `${entireExecutable} hooks git commit-msg "$1" || exit 1` },
|
|
72
|
+
{
|
|
73
|
+
name: 'post-commit',
|
|
74
|
+
cmd: `${entireExecutable} hooks git post-commit 2>/dev/null || true`,
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'pre-push',
|
|
78
|
+
cmd: `${entireExecutable} hooks git pre-push "$@" 2>/dev/null || true`,
|
|
79
|
+
},
|
|
80
|
+
];
|
|
81
|
+
for (const hook of hooks) {
|
|
82
|
+
lines.push(` ${hookDir}${hook.name}:`);
|
|
83
|
+
lines.push(` ${hook.cmd}`);
|
|
84
|
+
lines.push('');
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
lines.push(`Note: ${m.name} detected (${m.configPath})`);
|
|
89
|
+
lines.push('');
|
|
90
|
+
lines.push(` If ${m.name} reinstalls hooks, run 'entire enable' to restore Entire's hooks.`);
|
|
91
|
+
lines.push('');
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return lines.join('\n');
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=hook-managers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h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E,YAAY,EAAE,GAAG,EAAE,GAAG,gBAAgB,sCAAsC,EAAE;gBACtF;oBACE,IAAI,EAAE,aAAa;oBACnB,GAAG,EAAE,GAAG,gBAAgB,4CAA4C;iBACrE;gBACD;oBACE,IAAI,EAAE,UAAU;oBAChB,GAAG,EAAE,GAAG,gBAAgB,8CAA8C;iBACvE;aACF,CAAC;YAEF,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;gBACzB,KAAK,CAAC,IAAI,CAAC,OAAO,OAAO,GAAG,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;gBAC1C,KAAK,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;gBAChC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACjB,CAAC;QACH,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC;YACzD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACf,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,mEAAmE,CAAC,CAAC;YAC9F,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IDE Tag Stripping
|
|
3
|
+
*
|
|
4
|
+
* Removes IDE-injected context tags from prompt text.
|
|
5
|
+
* These tags are added by IDEs (VSCode, Cursor) and system infrastructure
|
|
6
|
+
* and shouldn't appear in user-facing text.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Strip IDE-injected context tags from prompt text.
|
|
10
|
+
*/
|
|
11
|
+
export declare function stripIDEContextTags(text: string): string;
|
|
12
|
+
//# sourceMappingURL=ide-tags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ide-tags.d.ts","sourceRoot":"","sources":["../../src/utils/ide-tags.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAgBH;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMxD"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IDE Tag Stripping
|
|
3
|
+
*
|
|
4
|
+
* Removes IDE-injected context tags from prompt text.
|
|
5
|
+
* These tags are added by IDEs (VSCode, Cursor) and system infrastructure
|
|
6
|
+
* and shouldn't appear in user-facing text.
|
|
7
|
+
*/
|
|
8
|
+
// IDE context tags: <ide_opened_file>...</ide_opened_file>, <ide_selection>...</ide_selection>
|
|
9
|
+
const ideContextTagRegex = /<ide_[^>]*>[\s\S]*?<\/ide_[^>]*>/g;
|
|
10
|
+
// System-injected tags
|
|
11
|
+
const systemTagRegexes = [
|
|
12
|
+
/<local-command-caveat[^>]*>[\s\S]*?<\/local-command-caveat>/g,
|
|
13
|
+
/<system-reminder[^>]*>[\s\S]*?<\/system-reminder>/g,
|
|
14
|
+
/<command-name[^>]*>[\s\S]*?<\/command-name>/g,
|
|
15
|
+
/<command-message[^>]*>[\s\S]*?<\/command-message>/g,
|
|
16
|
+
/<command-args[^>]*>[\s\S]*?<\/command-args>/g,
|
|
17
|
+
/<local-command-stdout[^>]*>[\s\S]*?<\/local-command-stdout>/g,
|
|
18
|
+
/<\/?user_query>/g, // Cursor wraps user text in <user_query> tags; strip tags but keep content
|
|
19
|
+
];
|
|
20
|
+
/**
|
|
21
|
+
* Strip IDE-injected context tags from prompt text.
|
|
22
|
+
*/
|
|
23
|
+
export function stripIDEContextTags(text) {
|
|
24
|
+
let result = text.replace(ideContextTagRegex, '');
|
|
25
|
+
for (const re of systemTagRegexes) {
|
|
26
|
+
result = result.replace(re, '');
|
|
27
|
+
}
|
|
28
|
+
return result.trim();
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=ide-tags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ide-tags.js","sourceRoot":"","sources":["../../src/utils/ide-tags.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,+FAA+F;AAC/F,MAAM,kBAAkB,GAAG,mCAAmC,CAAC;AAE/D,uBAAuB;AACvB,MAAM,gBAAgB,GAAG;IACvB,8DAA8D;IAC9D,oDAAoD;IACpD,8CAA8C;IAC9C,oDAAoD;IACpD,8CAA8C;IAC9C,8DAA8D;IAC9D,kBAAkB,EAAE,2EAA2E;CAChG,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC9C,IAAI,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;IAClD,KAAK,MAAM,EAAE,IAAI,gBAAgB,EAAE,CAAC;QAClC,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAClC,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Path Classification Helpers
|
|
3
|
+
*
|
|
4
|
+
* Utilities for classifying and normalizing paths within the Entire system.
|
|
5
|
+
*
|
|
6
|
+
* Ported from Go: paths/paths.go
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Returns true if the path is part of Entire's infrastructure
|
|
10
|
+
* (i.e., inside the `.entire/` directory).
|
|
11
|
+
*/
|
|
12
|
+
export declare function isInfrastructurePath(filePath: string): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Converts an absolute path to a repository-relative path.
|
|
15
|
+
* Returns empty string if the path is outside the working directory.
|
|
16
|
+
*/
|
|
17
|
+
export declare function toRelativePath(absPath: string, cwd: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Returns the absolute path for a relative path within the repository.
|
|
20
|
+
* If the path is already absolute, it is returned as-is.
|
|
21
|
+
*/
|
|
22
|
+
export declare function absPath(relPath: string, repoRoot: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* Extract the session ID from a transcript file path.
|
|
25
|
+
* Expects paths like `/path/to/<sessionID>.jsonl` or `/path/to/<sessionID>.json`.
|
|
26
|
+
*/
|
|
27
|
+
export declare function extractSessionIDFromPath(transcriptPath: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* Returns the session metadata directory path for a given session ID.
|
|
30
|
+
*/
|
|
31
|
+
export declare function sessionMetadataDir(metadataRoot: string, sessionID: string): string;
|
|
32
|
+
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/utils/paths.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAG9D;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAOnE;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGjE;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAKvE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAElF"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Path Classification Helpers
|
|
3
|
+
*
|
|
4
|
+
* Utilities for classifying and normalizing paths within the Entire system.
|
|
5
|
+
*
|
|
6
|
+
* Ported from Go: paths/paths.go
|
|
7
|
+
*/
|
|
8
|
+
import * as path from 'node:path';
|
|
9
|
+
import { ENTIRE_DIR } from '../types.js';
|
|
10
|
+
/**
|
|
11
|
+
* Returns true if the path is part of Entire's infrastructure
|
|
12
|
+
* (i.e., inside the `.entire/` directory).
|
|
13
|
+
*/
|
|
14
|
+
export function isInfrastructurePath(filePath) {
|
|
15
|
+
const normalized = filePath.replace(/\\/g, '/');
|
|
16
|
+
return normalized === ENTIRE_DIR || normalized.startsWith(ENTIRE_DIR + '/');
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Converts an absolute path to a repository-relative path.
|
|
20
|
+
* Returns empty string if the path is outside the working directory.
|
|
21
|
+
*/
|
|
22
|
+
export function toRelativePath(absPath, cwd) {
|
|
23
|
+
if (!path.isAbsolute(absPath))
|
|
24
|
+
return absPath;
|
|
25
|
+
const relPath = path.relative(cwd, absPath);
|
|
26
|
+
if (relPath.startsWith('..'))
|
|
27
|
+
return '';
|
|
28
|
+
return relPath;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns the absolute path for a relative path within the repository.
|
|
32
|
+
* If the path is already absolute, it is returned as-is.
|
|
33
|
+
*/
|
|
34
|
+
export function absPath(relPath, repoRoot) {
|
|
35
|
+
if (path.isAbsolute(relPath))
|
|
36
|
+
return relPath;
|
|
37
|
+
return path.join(repoRoot, relPath);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Extract the session ID from a transcript file path.
|
|
41
|
+
* Expects paths like `/path/to/<sessionID>.jsonl` or `/path/to/<sessionID>.json`.
|
|
42
|
+
*/
|
|
43
|
+
export function extractSessionIDFromPath(transcriptPath) {
|
|
44
|
+
const base = path.basename(transcriptPath);
|
|
45
|
+
// Remove extension (.jsonl, .json, etc.)
|
|
46
|
+
const dotIndex = base.indexOf('.');
|
|
47
|
+
return dotIndex > 0 ? base.slice(0, dotIndex) : base;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns the session metadata directory path for a given session ID.
|
|
51
|
+
*/
|
|
52
|
+
export function sessionMetadataDir(metadataRoot, sessionID) {
|
|
53
|
+
return path.join(metadataRoot, 'sessions', sessionID);
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/utils/paths.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,QAAgB;IACnD,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAChD,OAAO,UAAU,KAAK,UAAU,IAAI,UAAU,CAAC,UAAU,CAAC,UAAU,GAAG,GAAG,CAAC,CAAC;AAC9E,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,OAAe,EAAE,GAAW;IACzD,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO,OAAO,CAAC;IAE9C,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAC5C,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC;IAExC,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,OAAe,EAAE,QAAgB;IACvD,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO,OAAO,CAAC;IAC7C,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACtC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CAAC,cAAsB;IAC7D,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IAC3C,yCAAyC;IACzC,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACnC,OAAO,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACvD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,YAAoB,EAAE,SAAiB;IACxE,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rewind Preview
|
|
3
|
+
*
|
|
4
|
+
* Preview what files would change when rewinding to a checkpoint.
|
|
5
|
+
* Shows files that would be restored and untracked files that would be deleted.
|
|
6
|
+
*
|
|
7
|
+
* Ported from Go: strategy/manual_commit_rewind.go
|
|
8
|
+
*/
|
|
9
|
+
export interface RewindPreview {
|
|
10
|
+
filesToRestore: string[];
|
|
11
|
+
filesToDelete: string[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Preview what will happen when rewinding to the given commit.
|
|
15
|
+
*
|
|
16
|
+
* Returns the list of files that would be restored from the checkpoint
|
|
17
|
+
* and untracked files that would be deleted.
|
|
18
|
+
*
|
|
19
|
+
* For logs-only rewind points, returns empty arrays since the working
|
|
20
|
+
* directory is not modified.
|
|
21
|
+
*/
|
|
22
|
+
export declare function previewRewind(commitHash: string, isLogsOnly: boolean, preservedUntrackedFiles?: string[], cwd?: string): Promise<RewindPreview>;
|
|
23
|
+
//# sourceMappingURL=preview-rewind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-rewind.d.ts","sourceRoot":"","sources":["../../src/utils/preview-rewind.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,MAAM,WAAW,aAAa;IAC5B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CACjC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,OAAO,EACnB,uBAAuB,CAAC,EAAE,MAAM,EAAE,EAClC,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,aAAa,CAAC,CAgDxB"}
|