@orchestrator-claude/definitions 3.43.1 → 3.44.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/agents/adversarial-reviewer.md +35 -29
- package/agents/agentic-architect.md +1 -1
- package/agents/api-extractor.md +1 -1
- package/agents/architecture-mediator.md +1 -1
- package/agents/azure-devops-engineer.md +1 -1
- package/agents/backend-architect.md +1 -1
- package/agents/business-rule-miner.md +1 -1
- package/agents/cicd-platform-engineer.md +1 -1
- package/agents/ciclo-engineer.md +1 -1
- package/agents/code-archaeologist.md +1 -1
- package/agents/contract-architect.md +1 -1
- package/agents/datamodel-architect.md +1 -1
- package/agents/frontend-architect.md +1 -1
- package/agents/frontend-engineer.md +1 -1
- package/agents/harness-architect.md +1 -1
- package/agents/harness-engineer.md +1 -1
- package/agents/implementer.md +1 -1
- package/agents/infra-architect.md +1 -1
- package/agents/legacy-discoverer.md +1 -1
- package/agents/legacy-synthesizer.md +1 -1
- package/agents/methodology-researcher.md +2 -1
- package/agents/operational-artifact-builder.md +1 -1
- package/agents/planner.md +1 -1
- package/agents/presentation-engineer.md +1 -1
- package/agents/python-data-engineer.md +1 -1
- package/agents/researcher.md +1 -1
- package/agents/reviewer.md +1 -1
- package/agents/schema-extractor.md +1 -1
- package/agents/specifier.md +1 -1
- package/agents/task-generator.md +1 -1
- package/hooks/agent-git-guard.mjs +0 -2
- package/hooks/dangling-guard.mjs +18 -3
- package/hooks/gate-guardian.mjs +8617 -273
- package/hooks/gate-guardian.ts +296 -62
- package/hooks/lib/api-client.ts +154 -28
- package/hooks/lib/artifact-gate.ts +518 -0
- package/hooks/lib/artifact-producers.ts +106 -0
- package/hooks/lib/gate-logic.ts +6 -5
- package/hooks/lib/workflow-artifact-client.ts +351 -0
- package/hooks/mailbox-listener.mjs +0 -2
- package/hooks/playwright-output-guard.mjs +0 -2
- package/hooks/post-implement.mjs +18 -3
- package/hooks/pre-agent-dispatch.mjs +18 -3
- package/hooks/security-gate-honest.mjs +0 -2
- package/hooks/session-start.mjs +18 -3
- package/hooks/subagent-start.mjs +18 -3
- package/hooks/subagent-stop.mjs +18 -3
- package/hooks/user-prompt.mjs +18 -3
- package/hooks/verification-before-completion.mjs +0 -2
- package/hooks/workflow-guard.mjs +504 -29
- package/hooks/workflow-guard.ts +370 -27
- package/manifest.json +46 -46
- package/package.json +1 -1
package/hooks/dangling-guard.mjs
CHANGED
|
@@ -6858,8 +6858,15 @@ if ((STATE_DIR_OVERRIDE === void 0 || STATE_DIR_OVERRIDE === "") && PROJECT_ROOT
|
|
|
6858
6858
|
);
|
|
6859
6859
|
}
|
|
6860
6860
|
var API_URL = process.env.ORCHESTRATOR_API_URL || "http://localhost:3001";
|
|
6861
|
-
var
|
|
6862
|
-
var
|
|
6861
|
+
var DEFAULT_AUTH_EMAIL = "system@orchestrator.local";
|
|
6862
|
+
var MISSING_CREDENTIAL_MESSAGE = "no credential configured (ORCHESTRATOR_ADMIN_PASSWORD / ORCHESTRATOR_AUTH_PASSWORD unset or empty) - login not attempted";
|
|
6863
|
+
var missingCredentialLogged = false;
|
|
6864
|
+
function resolveAuthCredentials() {
|
|
6865
|
+
const password = (process.env.ORCHESTRATOR_ADMIN_PASSWORD ?? "").trim() || (process.env.ORCHESTRATOR_AUTH_PASSWORD ?? "").trim();
|
|
6866
|
+
if (!password) return null;
|
|
6867
|
+
const email = process.env.ORCHESTRATOR_ADMIN_EMAIL || process.env.ORCHESTRATOR_AUTH_EMAIL || DEFAULT_AUTH_EMAIL;
|
|
6868
|
+
return { email, password };
|
|
6869
|
+
}
|
|
6863
6870
|
var PROJECT_ID = process.env.ORCHESTRATOR_PROJECT_ID || "";
|
|
6864
6871
|
function resolveHookProjectRoot(cwd) {
|
|
6865
6872
|
return resolveProjectRoot(cwd);
|
|
@@ -6921,6 +6928,14 @@ function getCachedToken() {
|
|
|
6921
6928
|
return null;
|
|
6922
6929
|
}
|
|
6923
6930
|
async function login() {
|
|
6931
|
+
const credentials = resolveAuthCredentials();
|
|
6932
|
+
if (credentials === null) {
|
|
6933
|
+
if (!missingCredentialLogged) {
|
|
6934
|
+
missingCredentialLogged = true;
|
|
6935
|
+
log("API-CLIENT", MISSING_CREDENTIAL_MESSAGE);
|
|
6936
|
+
}
|
|
6937
|
+
return null;
|
|
6938
|
+
}
|
|
6924
6939
|
try {
|
|
6925
6940
|
const resp = await fetch(`${API_URL}/api/v1/auth/login`, {
|
|
6926
6941
|
method: "POST",
|
|
@@ -6928,7 +6943,7 @@ async function login() {
|
|
|
6928
6943
|
"Content-Type": "application/json",
|
|
6929
6944
|
"X-Project-ID": PROJECT_ID
|
|
6930
6945
|
},
|
|
6931
|
-
body: JSON.stringify({ email:
|
|
6946
|
+
body: JSON.stringify({ email: credentials.email, password: credentials.password }),
|
|
6932
6947
|
signal: AbortSignal.timeout(5e3)
|
|
6933
6948
|
});
|
|
6934
6949
|
if (!resp.ok) return null;
|