rrce-workflow 0.3.23 → 0.3.24
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/agent-core/prompts/orchestrator.md +5 -0
- package/dist/index.js +15 -3
- package/package.json +1 -1
|
@@ -13,6 +13,11 @@ optional-args:
|
|
|
13
13
|
auto-identity:
|
|
14
14
|
user: "$GIT_USER"
|
|
15
15
|
model: "$AGENT_MODEL"
|
|
16
|
+
permission:
|
|
17
|
+
read: allow
|
|
18
|
+
write: allow
|
|
19
|
+
edit: allow
|
|
20
|
+
bash: allow
|
|
16
21
|
---
|
|
17
22
|
|
|
18
23
|
You are the RRCE Phase Coordinator. Guide users through workflow phases with minimal token overhead.
|
package/dist/index.js
CHANGED
|
@@ -576,7 +576,7 @@ var init_detection_service = __esm({
|
|
|
576
576
|
|
|
577
577
|
// src/types/prompt.ts
|
|
578
578
|
import { z } from "zod";
|
|
579
|
-
var PromptArgSchema, AutoIdentitySchema, PromptFrontmatterSchema;
|
|
579
|
+
var PromptArgSchema, AutoIdentitySchema, PermissionSchema, PromptFrontmatterSchema;
|
|
580
580
|
var init_prompt = __esm({
|
|
581
581
|
"src/types/prompt.ts"() {
|
|
582
582
|
"use strict";
|
|
@@ -589,6 +589,13 @@ var init_prompt = __esm({
|
|
|
589
589
|
user: z.string(),
|
|
590
590
|
model: z.string()
|
|
591
591
|
});
|
|
592
|
+
PermissionSchema = z.object({
|
|
593
|
+
read: z.union([z.literal("allow"), z.literal("ask"), z.literal("deny")]).optional(),
|
|
594
|
+
write: z.union([z.literal("allow"), z.literal("ask"), z.literal("deny")]).optional(),
|
|
595
|
+
edit: z.union([z.literal("allow"), z.literal("ask"), z.literal("deny")]).optional(),
|
|
596
|
+
bash: z.union([z.literal("allow"), z.literal("ask"), z.literal("deny")]).optional(),
|
|
597
|
+
webfetch: z.union([z.literal("allow"), z.literal("ask"), z.literal("deny")]).optional()
|
|
598
|
+
}).passthrough();
|
|
592
599
|
PromptFrontmatterSchema = z.object({
|
|
593
600
|
name: z.string(),
|
|
594
601
|
description: z.string(),
|
|
@@ -597,7 +604,8 @@ var init_prompt = __esm({
|
|
|
597
604
|
mode: z.enum(["primary", "subagent"]).optional(),
|
|
598
605
|
"required-args": z.array(PromptArgSchema).optional(),
|
|
599
606
|
"optional-args": z.array(PromptArgSchema).optional(),
|
|
600
|
-
"auto-identity": AutoIdentitySchema.optional()
|
|
607
|
+
"auto-identity": AutoIdentitySchema.optional(),
|
|
608
|
+
permission: PermissionSchema.optional()
|
|
601
609
|
});
|
|
602
610
|
}
|
|
603
611
|
});
|
|
@@ -1177,12 +1185,16 @@ function convertToOpenCodeAgent(prompt, useFileReference = false, promptFilePath
|
|
|
1177
1185
|
tools["webfetch"] = true;
|
|
1178
1186
|
const mode = frontmatter.mode || "subagent";
|
|
1179
1187
|
const invocationHint = mode === "primary" ? "" : " (Invoke via @rrce_*)";
|
|
1180
|
-
|
|
1188
|
+
const agentConfig = {
|
|
1181
1189
|
description: `${frontmatter.description}${invocationHint}`,
|
|
1182
1190
|
mode,
|
|
1183
1191
|
prompt: useFileReference && promptFilePath ? `{file:${promptFilePath}}` : content,
|
|
1184
1192
|
tools
|
|
1185
1193
|
};
|
|
1194
|
+
if (frontmatter.permission) {
|
|
1195
|
+
agentConfig.permission = frontmatter.permission;
|
|
1196
|
+
}
|
|
1197
|
+
return agentConfig;
|
|
1186
1198
|
}
|
|
1187
1199
|
function surgicalUpdateOpenCodeAgents(prompts, mode, dataPath) {
|
|
1188
1200
|
const agentPrompts = prompts.filter((p) => {
|