@opencode_weave/weave 0.6.2 → 0.6.4
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/README.md +5 -0
- package/dist/agents/agent-builder.d.ts +14 -0
- package/dist/agents/builtin-agents.d.ts +16 -0
- package/dist/agents/custom-agent-factory.d.ts +24 -0
- package/dist/agents/dynamic-prompt-builder.d.ts +6 -0
- package/dist/agents/index.d.ts +6 -2
- package/dist/agents/loom/index.d.ts +9 -0
- package/dist/agents/loom/prompt-composer.d.ts +35 -0
- package/dist/agents/model-resolution.d.ts +9 -1
- package/dist/agents/prompt-loader.d.ts +9 -0
- package/dist/agents/prompt-utils.d.ts +2 -0
- package/dist/agents/tapestry/index.d.ts +7 -0
- package/dist/agents/tapestry/prompt-composer.d.ts +24 -0
- package/dist/config/schema.d.ts +112 -0
- package/dist/create-managers.d.ts +3 -0
- package/dist/features/analytics/fingerprint.d.ts +33 -0
- package/dist/features/analytics/index.d.ts +22 -0
- package/dist/features/analytics/session-tracker.d.ts +48 -0
- package/dist/features/analytics/storage.d.ts +28 -0
- package/dist/features/analytics/suggestions.d.ts +10 -0
- package/dist/features/analytics/types.d.ts +106 -0
- package/dist/features/work-state/types.d.ts +4 -0
- package/dist/hooks/create-hooks.d.ts +2 -0
- package/dist/hooks/work-continuation.d.ts +9 -0
- package/dist/index.js +1110 -148
- package/dist/plugin/plugin-interface.d.ts +2 -0
- package/dist/shared/agent-display-names.d.ts +11 -0
- package/dist/shared/index.d.ts +2 -1
- package/dist/shared/version.d.ts +5 -0
- package/package.json +1 -1
|
@@ -17,6 +17,10 @@ export interface WorkState {
|
|
|
17
17
|
start_sha?: string;
|
|
18
18
|
/** Whether work has been paused by a user interrupt; continuation is suppressed while true */
|
|
19
19
|
paused?: boolean;
|
|
20
|
+
/** The `completed` count from getPlanProgress() at the time of the last continuation prompt */
|
|
21
|
+
continuation_completed_snapshot?: number;
|
|
22
|
+
/** How many consecutive continuations have fired without progress changing */
|
|
23
|
+
stale_continuation_count?: number;
|
|
20
24
|
}
|
|
21
25
|
/**
|
|
22
26
|
* Progress snapshot from counting checkboxes in a plan file.
|
|
@@ -10,6 +10,7 @@ export declare function createHooks(args: {
|
|
|
10
10
|
pluginConfig: WeaveConfig;
|
|
11
11
|
isHookEnabled: (hookName: string) => boolean;
|
|
12
12
|
directory: string;
|
|
13
|
+
analyticsEnabled?: boolean;
|
|
13
14
|
}): {
|
|
14
15
|
checkContextWindow: ((state: Parameters<typeof checkContextWindow>[0]) => import("./context-window-monitor").ContextWindowCheckResult) | null;
|
|
15
16
|
writeGuard: {
|
|
@@ -29,4 +30,5 @@ export declare function createHooks(args: {
|
|
|
29
30
|
startWork: ((promptText: string, sessionId: string) => import("./start-work-hook").StartWorkResult) | null;
|
|
30
31
|
workContinuation: ((sessionId: string) => import("./work-continuation").ContinuationResult) | null;
|
|
31
32
|
verificationReminder: typeof buildVerificationReminder | null;
|
|
33
|
+
analyticsEnabled: boolean;
|
|
32
34
|
};
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
* Work continuation hook: checks if there's an active plan with remaining tasks
|
|
3
3
|
* and returns a continuation prompt to keep the executor going.
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* Marker embedded in continuation prompts so that `chat.message` can distinguish
|
|
7
|
+
* continuation-injected messages from user-initiated messages.
|
|
8
|
+
* When a user message arrives WITHOUT this marker (and is not a /start-work command),
|
|
9
|
+
* the plugin auto-pauses work to prevent the infinite continuation loop.
|
|
10
|
+
*/
|
|
11
|
+
export declare const CONTINUATION_MARKER = "<!-- weave:continuation -->";
|
|
12
|
+
/** Maximum consecutive continuations without progress before auto-pausing */
|
|
13
|
+
export declare const MAX_STALE_CONTINUATIONS = 3;
|
|
5
14
|
export interface ContinuationInput {
|
|
6
15
|
sessionId: string;
|
|
7
16
|
directory: string;
|