agent-enderun 1.11.0 → 1.11.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/README.md +4 -4
- package/dist/src/cli/adapters/scaffold.js +5 -1
- package/dist/src/cli/adapters/scaffold.js.map +1 -1
- package/dist/src/cli/commands/orchestrate.d.ts +3 -1
- package/dist/src/cli/commands/orchestrate.js +40 -4
- package/dist/src/cli/commands/orchestrate.js.map +1 -1
- package/dist/src/modules/adapters/definitions.js +1 -1
- package/dist/src/modules/adapters/definitions.js.map +1 -1
- package/dist/src/modules/adapters/shared.js +7 -4
- package/dist/src/modules/adapters/shared.js.map +1 -1
- package/dist/src/modules/agents/definitions.d.ts +1 -1
- package/dist/src/modules/agents/definitions.js +129 -69
- package/dist/src/modules/agents/definitions.js.map +1 -1
- package/dist/src/modules/agents/registry/analyst.js +4 -0
- package/dist/src/modules/agents/registry/analyst.js.map +1 -1
- package/dist/src/modules/agents/registry/devops.js +2 -0
- package/dist/src/modules/agents/registry/devops.js.map +1 -1
- package/dist/src/modules/agents/registry/explorer.js +1 -0
- package/dist/src/modules/agents/registry/explorer.js.map +1 -1
- package/dist/src/modules/agents/registry/git.js +2 -0
- package/dist/src/modules/agents/registry/git.js.map +1 -1
- package/dist/src/modules/agents/registry/manager.js +5 -0
- package/dist/src/modules/agents/registry/manager.js.map +1 -1
- package/dist/src/modules/agents/registry/native.js +4 -0
- package/dist/src/modules/agents/registry/native.js.map +1 -1
- package/dist/src/shared/constants.d.ts +1 -1
- package/dist/src/shared/constants.js +10 -9
- package/dist/src/shared/constants.js.map +1 -1
- package/dist/tests/integration/agent_flow.test.js +2 -2
- package/dist/tests/integration/agent_flow.test.js.map +1 -1
- package/dist/tests/orchestrate.test.js +2 -7
- package/dist/tests/orchestrate.test.js.map +1 -1
- package/package.json +2 -2
- package/src/cli/adapters/scaffold.ts +5 -1
- package/src/cli/commands/orchestrate.ts +41 -4
- package/src/modules/adapters/definitions.ts +1 -1
- package/src/modules/adapters/shared.ts +7 -4
- package/src/modules/agents/definitions.ts +140 -73
- package/src/modules/agents/registry/analyst.ts +4 -0
- package/src/modules/agents/registry/devops.ts +2 -0
- package/src/modules/agents/registry/explorer.ts +1 -0
- package/src/modules/agents/registry/git.ts +2 -0
- package/src/modules/agents/registry/manager.ts +5 -0
- package/src/modules/agents/registry/native.ts +4 -0
- package/src/shared/constants.ts +14 -13
|
@@ -36,5 +36,6 @@ export const explorer: AgentDefinition = {
|
|
|
36
36
|
"DEPENDENCY MAP: Map all file dependencies and surface them to @manager in a structured report.",
|
|
37
37
|
"RECON FIRST: No specialist should act on an unexplored codebase — flag absence of ADP as a phase blocker.",
|
|
38
38
|
],
|
|
39
|
+
knowledgeFiles: ["architecture-standards.md"],
|
|
39
40
|
},
|
|
40
41
|
};
|
|
@@ -15,6 +15,7 @@ export const git: AgentDefinition = {
|
|
|
15
15
|
stateMachine: STATE_MACHINE,
|
|
16
16
|
tools: [
|
|
17
17
|
"run_shell_command",
|
|
18
|
+
"read_file",
|
|
18
19
|
"list_dir",
|
|
19
20
|
"grep_search",
|
|
20
21
|
"read_project_memory",
|
|
@@ -35,5 +36,6 @@ export const git: AgentDefinition = {
|
|
|
35
36
|
"NO FORCE PUSH: Force-pushing to any shared branch is unconditionally forbidden.",
|
|
36
37
|
"GIT FLOW: Strictly follow git-flow branching conventions — feature, hotfix, release naming enforced.",
|
|
37
38
|
],
|
|
39
|
+
knowledgeFiles: ["logging-and-secrets.md"],
|
|
38
40
|
},
|
|
39
41
|
};
|
|
@@ -19,6 +19,9 @@ export const manager: AgentDefinition = {
|
|
|
19
19
|
"read_project_memory",
|
|
20
20
|
"get_memory_insights",
|
|
21
21
|
"update_project_memory",
|
|
22
|
+
"acquire_lock",
|
|
23
|
+
"release_lock",
|
|
24
|
+
"log_agent_action",
|
|
22
25
|
"get_project_gaps",
|
|
23
26
|
"get_project_map",
|
|
24
27
|
"audit_dependencies",
|
|
@@ -49,6 +52,8 @@ export const manager: AgentDefinition = {
|
|
|
49
52
|
"GAP ANALYSIS: Run 'get_project_gaps' after each phase — unfinished logic is a breach of discipline.",
|
|
50
53
|
"SYSTEM OBSERVABILITY: Periodically invoke 'get_system_health' and 'check_active_ports' to verify environment stability.",
|
|
51
54
|
"MEMORY INTEGRITY: Synchronize 'PROJECT_MEMORY.md' after every single turn. Memory drift is treason.",
|
|
55
|
+
"LOCKING PROTOCOL: Always acquire a lock via 'acquire_lock' on 'memory' resource before writing to PROJECT_MEMORY.md. Release immediately after write.",
|
|
52
56
|
],
|
|
57
|
+
knowledgeFiles: ["governance-standards.md"],
|
|
53
58
|
},
|
|
54
59
|
};
|
|
@@ -21,6 +21,8 @@ export const native: AgentDefinition = {
|
|
|
21
21
|
"grep_search",
|
|
22
22
|
"read_project_memory",
|
|
23
23
|
"run_shell_command",
|
|
24
|
+
"send_agent_message",
|
|
25
|
+
"log_agent_action",
|
|
24
26
|
],
|
|
25
27
|
instructions: {
|
|
26
28
|
identity: "Native Integration Engineer and OS-Layer Security Enforcer",
|
|
@@ -35,6 +37,8 @@ export const native: AgentDefinition = {
|
|
|
35
37
|
"SECURITY PARAMOUNT: Handle all OS-layer operations with rigorous input validation.",
|
|
36
38
|
"PLATFORM ISOLATION: Strictly separate platform-specific code from shared business logic.",
|
|
37
39
|
"SYSTEM CALL AUDITING: Validate all native module inputs and log elevated-privilege operations.",
|
|
40
|
+
"ESCALATION PROTOCOL: Any destructive or elevated-privilege operation requires prior @manager approval via send_agent_message.",
|
|
38
41
|
],
|
|
42
|
+
knowledgeFiles: ["security-standards.md", "logging-and-secrets.md"],
|
|
39
43
|
},
|
|
40
44
|
};
|
package/src/shared/constants.ts
CHANGED
|
@@ -134,20 +134,21 @@ export const DEFAULT_MONOREPO_PATHS = {
|
|
|
134
134
|
tests: "tests",
|
|
135
135
|
} as const;
|
|
136
136
|
|
|
137
|
-
/** Cursor rule globs per agent role (monorepo layout). */
|
|
137
|
+
/** Cursor rule globs per agent role (enterprise monorepo layout). */
|
|
138
138
|
export const CURSOR_AGENT_GLOBS: Record<string, string> = {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
analyst:
|
|
150
|
-
|
|
139
|
+
manager: "**/*",
|
|
140
|
+
security: "**/*",
|
|
141
|
+
architect: "**/*",
|
|
142
|
+
backend: `${DEFAULT_MONOREPO_PATHS.backend}/**/*`,
|
|
143
|
+
frontend: `${DEFAULT_MONOREPO_PATHS.frontend}/**/*`,
|
|
144
|
+
mobile: `${DEFAULT_MONOREPO_PATHS.mobile}/**/*`,
|
|
145
|
+
native: "apps/native/**/*",
|
|
146
|
+
database: `${DEFAULT_MONOREPO_PATHS.backend}/src/database/**/*`,
|
|
147
|
+
devops: "{.github,docker,infra,scripts,*.yml,*.yaml,Dockerfile*}",
|
|
148
|
+
quality: "**/*",
|
|
149
|
+
analyst: "{docs,specs,contracts}/**/*",
|
|
150
|
+
explorer: "**/*",
|
|
151
|
+
git: "**/*",
|
|
151
152
|
};
|
|
152
153
|
|
|
153
154
|
// ─── MCP & environment ──────────────────────────────────────────────────────
|