@h-rig/prompt-plugin 0.0.6-alpha.157 → 0.0.6-alpha.159
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/src/index.js +3 -4
- package/dist/src/plugin.d.ts +0 -8
- package/dist/src/plugin.js +3 -4
- package/dist/src/prompt-context.js +1 -1
- package/package.json +3 -3
package/dist/src/index.js
CHANGED
|
@@ -22,7 +22,7 @@ __export(exports_prompt_context, {
|
|
|
22
22
|
});
|
|
23
23
|
import { existsSync, readFileSync } from "fs";
|
|
24
24
|
import { resolve } from "path";
|
|
25
|
-
import { assertPathInsideRoot, safePathSegment } from "@rig/
|
|
25
|
+
import { assertPathInsideRoot, safePathSegment } from "@rig/core/safe-identifiers";
|
|
26
26
|
function readPriorPrProgressPromptSection(projectRoot, taskId) {
|
|
27
27
|
const safeTaskId = safePathSegment(taskId, { fallback: "task", maxLength: 96 });
|
|
28
28
|
const worktreesRoot = resolve(projectRoot, ".worktrees");
|
|
@@ -54,8 +54,8 @@ var init_prompt_context = () => {};
|
|
|
54
54
|
|
|
55
55
|
// packages/prompt-plugin/src/plugin.ts
|
|
56
56
|
import { definePlugin } from "@rig/core/config";
|
|
57
|
+
import { PRIOR_PROGRESS_PROMPT_CAPABILITY_ID } from "@rig/contracts";
|
|
57
58
|
var PROMPT_PLUGIN_NAME = "@rig/prompt-plugin";
|
|
58
|
-
var PRIOR_PROGRESS_PROMPT_CAPABILITY_ID = "prompt.prior-progress";
|
|
59
59
|
function isPriorProgressPromptInput(input) {
|
|
60
60
|
return typeof input === "object" && input !== null && typeof input.projectRoot === "string" && typeof input.taskId === "string";
|
|
61
61
|
}
|
|
@@ -89,6 +89,5 @@ export {
|
|
|
89
89
|
readPriorPrProgressPromptSection,
|
|
90
90
|
promptPlugin,
|
|
91
91
|
createPromptPlugin,
|
|
92
|
-
PROMPT_PLUGIN_NAME
|
|
93
|
-
PRIOR_PROGRESS_PROMPT_CAPABILITY_ID
|
|
92
|
+
PROMPT_PLUGIN_NAME
|
|
94
93
|
};
|
package/dist/src/plugin.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
export declare const PROMPT_PLUGIN_NAME = "@rig/prompt-plugin";
|
|
2
|
-
/** Capability id: agent prompt assembly — the prior-progress section of what
|
|
3
|
-
* the agent is told for a re-dispatched task. Pure input: { projectRoot, taskId }.
|
|
4
|
-
* Output: the prompt section string, or null when there is no prior progress. */
|
|
5
|
-
export declare const PRIOR_PROGRESS_PROMPT_CAPABILITY_ID = "prompt.prior-progress";
|
|
6
|
-
export type PriorProgressPromptInput = {
|
|
7
|
-
readonly projectRoot: string;
|
|
8
|
-
readonly taskId: string;
|
|
9
|
-
};
|
|
10
2
|
export declare const promptPlugin: import("@rig/core/config").RigPlugin;
|
|
11
3
|
export declare function createPromptPlugin(): import("@rig/core/config").RigPlugin;
|
|
12
4
|
export default promptPlugin;
|
package/dist/src/plugin.js
CHANGED
|
@@ -22,7 +22,7 @@ __export(exports_prompt_context, {
|
|
|
22
22
|
});
|
|
23
23
|
import { existsSync, readFileSync } from "fs";
|
|
24
24
|
import { resolve } from "path";
|
|
25
|
-
import { assertPathInsideRoot, safePathSegment } from "@rig/
|
|
25
|
+
import { assertPathInsideRoot, safePathSegment } from "@rig/core/safe-identifiers";
|
|
26
26
|
function readPriorPrProgressPromptSection(projectRoot, taskId) {
|
|
27
27
|
const safeTaskId = safePathSegment(taskId, { fallback: "task", maxLength: 96 });
|
|
28
28
|
const worktreesRoot = resolve(projectRoot, ".worktrees");
|
|
@@ -54,8 +54,8 @@ var init_prompt_context = () => {};
|
|
|
54
54
|
|
|
55
55
|
// packages/prompt-plugin/src/plugin.ts
|
|
56
56
|
import { definePlugin } from "@rig/core/config";
|
|
57
|
+
import { PRIOR_PROGRESS_PROMPT_CAPABILITY_ID } from "@rig/contracts";
|
|
57
58
|
var PROMPT_PLUGIN_NAME = "@rig/prompt-plugin";
|
|
58
|
-
var PRIOR_PROGRESS_PROMPT_CAPABILITY_ID = "prompt.prior-progress";
|
|
59
59
|
function isPriorProgressPromptInput(input) {
|
|
60
60
|
return typeof input === "object" && input !== null && typeof input.projectRoot === "string" && typeof input.taskId === "string";
|
|
61
61
|
}
|
|
@@ -87,6 +87,5 @@ export {
|
|
|
87
87
|
promptPlugin,
|
|
88
88
|
plugin_default as default,
|
|
89
89
|
createPromptPlugin,
|
|
90
|
-
PROMPT_PLUGIN_NAME
|
|
91
|
-
PRIOR_PROGRESS_PROMPT_CAPABILITY_ID
|
|
90
|
+
PROMPT_PLUGIN_NAME
|
|
92
91
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// packages/prompt-plugin/src/prompt-context.ts
|
|
3
3
|
import { existsSync, readFileSync } from "fs";
|
|
4
4
|
import { resolve } from "path";
|
|
5
|
-
import { assertPathInsideRoot, safePathSegment } from "@rig/
|
|
5
|
+
import { assertPathInsideRoot, safePathSegment } from "@rig/core/safe-identifiers";
|
|
6
6
|
function readPriorPrProgressPromptSection(projectRoot, taskId) {
|
|
7
7
|
const safeTaskId = safePathSegment(taskId, { fallback: "task", maxLength: 96 });
|
|
8
8
|
const worktreesRoot = resolve(projectRoot, ".worktrees");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h-rig/prompt-plugin",
|
|
3
|
-
"version": "0.0.6-alpha.
|
|
3
|
+
"version": "0.0.6-alpha.159",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "First-party agent prompt-assembly capability plugin for Rig.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"module": "./dist/src/index.js",
|
|
26
26
|
"types": "./dist/src/index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@rig/
|
|
29
|
-
"@rig/
|
|
28
|
+
"@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.159",
|
|
29
|
+
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.159"
|
|
30
30
|
}
|
|
31
31
|
}
|