@zaip-ai/cli 5.6.0 → 5.7.0
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/services/adapter-hook-sources.d.ts +1 -0
- package/dist/services/adapter-hook-sources.d.ts.map +1 -1
- package/dist/services/adapter-hook-sources.js +1 -0
- package/dist/services/adapter-hook-sources.js.map +1 -1
- package/dist/services/adapters.d.ts +1 -1
- package/dist/services/adapters.d.ts.map +1 -1
- package/dist/services/adapters.js +3 -2
- package/dist/services/adapters.js.map +1 -1
- package/dist/services/codex-hook-activation.d.ts +1 -1
- package/dist/services/codex-hook-activation.d.ts.map +1 -1
- package/dist/services/codex-hook-activation.js +1 -0
- package/dist/services/codex-hook-activation.js.map +1 -1
- package/dist/services/codex-pre-tool-dependencies.test-support.d.ts.map +1 -1
- package/dist/services/codex-pre-tool-dependencies.test-support.js +2 -0
- package/dist/services/codex-pre-tool-dependencies.test-support.js.map +1 -1
- package/dist/services/codex-pre-tool-hook-template.js +1 -1
- package/dist/services/codex-pre-tool-release-review-template.d.ts +2 -0
- package/dist/services/codex-pre-tool-release-review-template.d.ts.map +1 -0
- package/dist/services/codex-pre-tool-release-review-template.js +98 -0
- package/dist/services/codex-pre-tool-release-review-template.js.map +1 -0
- package/dist/services/codex-pre-tool-support-template.d.ts.map +1 -1
- package/dist/services/codex-pre-tool-support-template.js +12 -30
- package/dist/services/codex-pre-tool-support-template.js.map +1 -1
- package/package.json +1 -1
- package/templates/.agents/README-ENG.md +2 -0
- package/templates/.agents/README.md +2 -0
- package/templates/.agents/config/agents/discovery.json +1 -1
- package/templates/.agents/dashboard/.zaip-managed.json +26 -26
- package/templates/.agents/dashboard/apps/frontend/dist/assets/{DashboardHelpDialog-B5YEOEej.js → DashboardHelpDialog-B4XMYP00.js} +3 -1
- package/templates/.agents/dashboard/apps/frontend/dist/assets/{PricingSettingsDialog--irvqUl5.js → PricingSettingsDialog-DvMV9yit.js} +1 -1
- package/templates/.agents/dashboard/apps/frontend/dist/assets/{ProjectSettingsPage-DxyjL1__.js → ProjectSettingsPage-CFhFcZjW.js} +1 -1
- package/templates/.agents/dashboard/apps/frontend/dist/assets/{TraceabilityWorkspace-BWEEMNV-.js → TraceabilityWorkspace-DkaJNHuG.js} +1 -1
- package/templates/.agents/dashboard/apps/frontend/dist/assets/{dashboard-localization-C45x75cf.js → dashboard-localization-CwQfHYWq.js} +2 -0
- package/templates/.agents/dashboard/apps/frontend/dist/assets/{index-DGUs5bRP.js → index-DB2s40tU.js} +2 -2
- package/templates/.agents/dashboard/apps/frontend/dist/index.html +1 -1
- package/templates/.agents/dashboard/apps/frontend/package.json +1 -1
- package/templates/.agents/dashboard/modules/cost-monitor/package.json +1 -1
- package/templates/.agents/dashboard/modules/operations/package.json +1 -1
- package/templates/.agents/dashboard/modules/traceability/package.json +1 -1
- package/templates/.agents/dashboard/packages/branding/package.json +1 -1
- package/templates/.agents/dashboard/packages/contracts/package.json +1 -1
- package/templates/.agents/dashboard/packages/data-export/package.json +1 -1
- package/templates/.agents/dashboard/packages/local-runtime/package.json +1 -1
- package/templates/.agents/dashboard/packages/ui/package.json +1 -1
- package/templates/.agents/dashboard/tests/e2e/package.json +1 -1
- package/templates/.agents/design/.zaip-managed.json +3 -3
- package/templates/.agents/design/apps/catalog/package.json +1 -1
- package/templates/.agents/design/packages/local-runtime/package.json +1 -1
- package/templates/.agents/requirements/autonomous-assurance.md +1 -1
- package/templates/.agents/requirements/cloud-hostinger-autonomy.md +1 -1
- package/templates/.agents/requirements/comparative-audit.md +1 -1
- package/templates/.agents/requirements/context-engine.md +1 -1
- package/templates/.agents/requirements/cost-observability.md +1 -1
- package/templates/.agents/requirements/dashboard-launch.md +1 -1
- package/templates/.agents/requirements/data-export.md +1 -1
- package/templates/.agents/requirements/design-system.md +1 -1
- package/templates/.agents/requirements/execution-engine.md +1 -1
- package/templates/.agents/requirements/kanban-dashboard.md +1 -1
- package/templates/.agents/requirements/model-orchestration.md +1 -1
- package/templates/.agents/requirements/public-distribution.md +1 -1
- package/templates/.agents/requirements/software-architecture.md +1 -1
- package/templates/.agents/requirements/strategic-improvements.md +1 -1
- package/templates/.agents/requirements/work-lifecycle.md +1 -1
- package/templates/.agents/requirements/zaip-strategic-95.md +1 -1
- package/templates/.agents/runtime/VERSION +1 -1
- package/templates/.agents/runtime/bin/zaip.mjs +116 -38
- package/templates/.agents/runtime/checksums.sha256 +5 -5
- package/templates/.agents/runtime/manifest.json +1 -1
- package/templates/.agents/runtime/provenance.json +4 -4
- package/templates/.agents/runtime/sbom.cdx.json +1 -1
- package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-contract.mjs +2 -2
- package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-publication-intent.test.mjs +16 -0
- package/templates/.agents/skills/zaip-skill-github-deploy/scripts/framework-identity.mjs +30 -0
- package/templates/.agents/skills/zaip-skill-github-deploy/scripts/github-deploy-contract.test.mjs +1 -0
- package/templates/.agents/skills/zaip-skill-github-deploy/scripts/preflight.mjs +5 -12
- package/templates/.agents/skills/zaip-skill-github-deploy/scripts/preflight.test.mjs +12 -1
- package/templates/.agents/zaip-aios/VERSION +1 -1
- package/templates/template-manifest.json +68 -64
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { CODEX_CONVERSATION_LIFECYCLE_HOOK } from "./codex-conversation-lifecycle-hook.js";
|
|
2
2
|
export { CODEX_PRE_TOOL_HOOK } from "./codex-pre-tool-hook-template.js";
|
|
3
3
|
export { CODEX_PRE_TOOL_SUPPORT_HOOK } from "./codex-pre-tool-support-template.js";
|
|
4
|
+
export { CODEX_PRE_TOOL_RELEASE_REVIEW } from "./codex-pre-tool-release-review-template.js";
|
|
4
5
|
export { CODEX_SUBAGENT_LIFECYCLE_HOOK } from "./codex-subagent-hook-template.js";
|
|
5
6
|
export { CODEX_PRE_TOOL_CLOUD_HOOK } from "./codex-pre-tool-cloud-template.js";
|
|
6
7
|
export { CODEX_PRE_TOOL_HOST_CONTEXT_HOOK } from "./codex-pre-tool-host-context-template.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-hook-sources.d.ts","sourceRoot":"","sources":["../../src/services/adapter-hook-sources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC"}
|
|
1
|
+
{"version":3,"file":"adapter-hook-sources.d.ts","sourceRoot":"","sources":["../../src/services/adapter-hook-sources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { CODEX_CONVERSATION_LIFECYCLE_HOOK } from "./codex-conversation-lifecycle-hook.js";
|
|
2
2
|
export { CODEX_PRE_TOOL_HOOK } from "./codex-pre-tool-hook-template.js";
|
|
3
3
|
export { CODEX_PRE_TOOL_SUPPORT_HOOK } from "./codex-pre-tool-support-template.js";
|
|
4
|
+
export { CODEX_PRE_TOOL_RELEASE_REVIEW } from "./codex-pre-tool-release-review-template.js";
|
|
4
5
|
export { CODEX_SUBAGENT_LIFECYCLE_HOOK } from "./codex-subagent-hook-template.js";
|
|
5
6
|
export { CODEX_PRE_TOOL_CLOUD_HOOK } from "./codex-pre-tool-cloud-template.js";
|
|
6
7
|
export { CODEX_PRE_TOOL_HOST_CONTEXT_HOOK } from "./codex-pre-tool-host-context-template.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-hook-sources.js","sourceRoot":"","sources":["../../src/services/adapter-hook-sources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC"}
|
|
1
|
+
{"version":3,"file":"adapter-hook-sources.js","sourceRoot":"","sources":["../../src/services/adapter-hook-sources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PublicAgentCatalog } from "./agent-adapters.js";
|
|
2
2
|
export { isManagedAdapter } from "./managed-adapter.js";
|
|
3
|
-
export declare const ADAPTERS_VERSION = "5.
|
|
3
|
+
export declare const ADAPTERS_VERSION = "5.7.0";
|
|
4
4
|
export interface AdapterFile {
|
|
5
5
|
path: string;
|
|
6
6
|
content: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../../src/services/adapters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../../src/services/adapters.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,KAAK,kBAAkB,EAGxB,MAAM,qBAAqB,CAAC;AAW7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAMxD,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAExC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAuLD,wBAAgB,YAAY,CAC1B,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,SAAS,WAAW,EAAE,CAgGxB;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACzD,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B,CAAC,CAaD;AAED,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EACZ,KAAK,UAAQ,GACZ,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC,CA6B7D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFile } from "node:fs/promises";
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
|
-
import { CODEX_CONVERSATION_LIFECYCLE_HOOK, CODEX_PRE_TOOL_HOOK, CODEX_PRE_TOOL_SUPPORT_HOOK, CODEX_PRE_TOOL_CLOUD_HOOK, CODEX_PRE_TOOL_HOST_CONTEXT_HOOK, CODEX_PRE_TOOL_CLI_CAPTURE_HOOK, CODEX_SUBAGENT_LIFECYCLE_HOOK, } from "./adapter-hook-sources.js";
|
|
3
|
+
import { CODEX_CONVERSATION_LIFECYCLE_HOOK, CODEX_PRE_TOOL_HOOK, CODEX_PRE_TOOL_SUPPORT_HOOK, CODEX_PRE_TOOL_RELEASE_REVIEW, CODEX_PRE_TOOL_CLOUD_HOOK, CODEX_PRE_TOOL_HOST_CONTEXT_HOOK, CODEX_PRE_TOOL_CLI_CAPTURE_HOOK, CODEX_SUBAGENT_LIFECYCLE_HOOK, } from "./adapter-hook-sources.js";
|
|
4
4
|
import { codexAgentConfig, parsePublicAgentCatalog, publicAgentAdapterFiles, } from "./agent-adapters.js";
|
|
5
5
|
import { serializeAgentDiscovery } from "./agent-discovery.js";
|
|
6
6
|
import { isReconciledCodexConfig, reconcileCodexConfig } from "./codex-config-overlay.js";
|
|
@@ -11,7 +11,7 @@ export { isManagedAdapter } from "./managed-adapter.js";
|
|
|
11
11
|
import { CODEX_GITHUB_DEPLOY_RULES, CODEX_SECURITY_RULES } from "./codex-rules.js";
|
|
12
12
|
import { codexWindowsHookCommand } from "./codex-windows-hook-command.js";
|
|
13
13
|
import { applyTransactionalChanges, assertSafeDestination } from "./transactional-files.js";
|
|
14
|
-
export const ADAPTERS_VERSION = "5.
|
|
14
|
+
export const ADAPTERS_VERSION = "5.7.0";
|
|
15
15
|
const ROOT_GUIDANCE = `# ZAIP-AIOS
|
|
16
16
|
|
|
17
17
|
Read \`.agents/config/project.yaml\` first. Apply ZAIP only for literal boolean \`zaip.enabled: true\`, except framework maintenance or \`zaip enable\`. \`AGENTS.md\` is a bootstrap; canonical guidance lives in \`.agents/\`.
|
|
@@ -203,6 +203,7 @@ export function adapterFiles(workspaceRoot, catalog) {
|
|
|
203
203
|
managed(".codex/hooks/zaip-hook-activation.mjs", CODEX_HOOK_ACTIVATION, "codex-hook-activation"),
|
|
204
204
|
managed(".codex/hooks/zaip-pre-tool-use.mjs", CODEX_PRE_TOOL_HOOK, "codex-safety-hook"),
|
|
205
205
|
managed(".codex/hooks/zaip-pre-tool-support.mjs", CODEX_PRE_TOOL_SUPPORT_HOOK, "codex-safety-support"),
|
|
206
|
+
managed(".codex/hooks/zaip-pre-tool-release-review.mjs", CODEX_PRE_TOOL_RELEASE_REVIEW, "codex-safety-release-review"),
|
|
206
207
|
managed(".codex/hooks/zaip-pre-tool-cloud.mjs", CODEX_PRE_TOOL_CLOUD_HOOK, "codex-safety-cloud"),
|
|
207
208
|
managed(".codex/hooks/zaip-pre-tool-host-context.mjs", CODEX_PRE_TOOL_HOST_CONTEXT_HOOK, "codex-safety-host-context"),
|
|
208
209
|
managed(".codex/hooks/zaip-pre-tool-cli-capture.mjs", CODEX_PRE_TOOL_CLI_CAPTURE_HOOK, "codex-safety-cli-capture"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapters.js","sourceRoot":"","sources":["../../src/services/adapters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,iCAAiC,EACjC,mBAAmB,EACnB,2BAA2B,EAC3B,yBAAyB,EACzB,gCAAgC,EAChC,+BAA+B,EAC/B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAEhB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,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AAI,OAAO,KAAK,IAAI,IAAI,yBAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;YAClF,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;IACD,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC;IACjF,MAAM,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IACvD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;AAC1C,CAAC;AAED,KAAK,UAAU,oBAAoB,CAAC,IAAY;IAC9C,MAAM,OAAO,GAAG,uBAAuB,CACrC,MAAM,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,oCAAoC,CAAC,EAAE,MAAM,CAAC,CAC5E,CAAC;IACF,OAAO,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,SAAS,OAAO,CAAC,IAAY,EAAE,IAAY,EAAE,MAAc;IACzD,OAAO,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC;AACpE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const HOOK_ACTIVATION_EVENTS: readonly ["PreToolUse", "SubagentStart", "SubagentStop", "Stop"];
|
|
2
|
-
export declare const HOOK_ACTIVATION_FILES: readonly [".codex/config.toml", ".codex/hooks/zaip-pre-tool-use.mjs", ".codex/hooks/zaip-pre-tool-support.mjs", ".codex/hooks/zaip-pre-tool-cloud.mjs", ".codex/hooks/zaip-pre-tool-host-context.mjs", ".codex/hooks/zaip-pre-tool-cli-capture.mjs", ".codex/hooks/zaip-native-tool-authority.mjs", ".codex/hooks/zaip-subagent-lifecycle.mjs", ".codex/hooks/zaip-conversation-lifecycle.mjs", ".codex/hooks/zaip-hook-activation.mjs"];
|
|
2
|
+
export declare const HOOK_ACTIVATION_FILES: readonly [".codex/config.toml", ".codex/hooks/zaip-pre-tool-use.mjs", ".codex/hooks/zaip-pre-tool-support.mjs", ".codex/hooks/zaip-pre-tool-release-review.mjs", ".codex/hooks/zaip-pre-tool-cloud.mjs", ".codex/hooks/zaip-pre-tool-host-context.mjs", ".codex/hooks/zaip-pre-tool-cli-capture.mjs", ".codex/hooks/zaip-native-tool-authority.mjs", ".codex/hooks/zaip-subagent-lifecycle.mjs", ".codex/hooks/zaip-conversation-lifecycle.mjs", ".codex/hooks/zaip-hook-activation.mjs"];
|
|
3
3
|
export declare const CODEX_HOOK_ACTIVATION: string;
|
|
4
4
|
//# sourceMappingURL=codex-hook-activation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-hook-activation.d.ts","sourceRoot":"","sources":["../../src/services/codex-hook-activation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,YACjC,YAAY,EACZ,eAAe,EACf,cAAc,EACd,MAAM,CACE,CAAC;AACX,eAAO,MAAM,qBAAqB,YAChC,oBAAoB,EACpB,oCAAoC,EACpC,wCAAwC,EACxC,sCAAsC,EACtC,6CAA6C,EAC7C,4CAA4C,EAC5C,6CAA6C,EAC7C,0CAA0C,EAC1C,8CAA8C,EAC9C,uCAAuC,CAC/B,CAAC;AAGX,eAAO,MAAM,qBAAqB,QAiKjC,CAAC"}
|
|
1
|
+
{"version":3,"file":"codex-hook-activation.d.ts","sourceRoot":"","sources":["../../src/services/codex-hook-activation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,YACjC,YAAY,EACZ,eAAe,EACf,cAAc,EACd,MAAM,CACE,CAAC;AACX,eAAO,MAAM,qBAAqB,YAChC,oBAAoB,EACpB,oCAAoC,EACpC,wCAAwC,EACxC,+CAA+C,EAC/C,sCAAsC,EACtC,6CAA6C,EAC7C,4CAA4C,EAC5C,6CAA6C,EAC7C,0CAA0C,EAC1C,8CAA8C,EAC9C,uCAAuC,CAC/B,CAAC;AAGX,eAAO,MAAM,qBAAqB,QAiKjC,CAAC"}
|
|
@@ -8,6 +8,7 @@ export const HOOK_ACTIVATION_FILES = [
|
|
|
8
8
|
".codex/config.toml",
|
|
9
9
|
".codex/hooks/zaip-pre-tool-use.mjs",
|
|
10
10
|
".codex/hooks/zaip-pre-tool-support.mjs",
|
|
11
|
+
".codex/hooks/zaip-pre-tool-release-review.mjs",
|
|
11
12
|
".codex/hooks/zaip-pre-tool-cloud.mjs",
|
|
12
13
|
".codex/hooks/zaip-pre-tool-host-context.mjs",
|
|
13
14
|
".codex/hooks/zaip-pre-tool-cli-capture.mjs",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-hook-activation.js","sourceRoot":"","sources":["../../src/services/codex-hook-activation.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,YAAY;IACZ,eAAe;IACf,cAAc;IACd,MAAM;CACE,CAAC;AACX,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,oBAAoB;IACpB,oCAAoC;IACpC,wCAAwC;IACxC,sCAAsC;IACtC,6CAA6C;IAC7C,4CAA4C;IAC5C,6CAA6C;IAC7C,0CAA0C;IAC1C,8CAA8C;IAC9C,uCAAuC;CAC/B,CAAC;AAEX,+FAA+F;AAC/F,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;gBAI/B,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC;iBACpC,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4JtD,CAAC"}
|
|
1
|
+
{"version":3,"file":"codex-hook-activation.js","sourceRoot":"","sources":["../../src/services/codex-hook-activation.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,YAAY;IACZ,eAAe;IACf,cAAc;IACd,MAAM;CACE,CAAC;AACX,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,oBAAoB;IACpB,oCAAoC;IACpC,wCAAwC;IACxC,+CAA+C;IAC/C,sCAAsC;IACtC,6CAA6C;IAC7C,4CAA4C;IAC5C,6CAA6C;IAC7C,0CAA0C;IAC1C,8CAA8C;IAC9C,uCAAuC;CAC/B,CAAC;AAEX,+FAA+F;AAC/F,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;gBAI/B,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC;iBACpC,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4JtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-pre-tool-dependencies.test-support.d.ts","sourceRoot":"","sources":["../../src/services/codex-pre-tool-dependencies.test-support.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"codex-pre-tool-dependencies.test-support.d.ts","sourceRoot":"","sources":["../../src/services/codex-pre-tool-dependencies.test-support.ts"],"names":[],"mappings":"AAKA,wBAAsB,wBAAwB,CAC5C,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GACtD,OAAO,CAAC,IAAI,CAAC,CAKf"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { CODEX_PRE_TOOL_CLOUD_HOOK } from "./codex-pre-tool-cloud-template.js";
|
|
2
2
|
import { CODEX_PRE_TOOL_HOST_CONTEXT_HOOK } from "./codex-pre-tool-host-context-template.js";
|
|
3
3
|
import { CODEX_PRE_TOOL_CLI_CAPTURE_HOOK } from "./codex-pre-tool-cli-capture-template.js";
|
|
4
|
+
import { CODEX_PRE_TOOL_RELEASE_REVIEW } from "./codex-pre-tool-release-review-template.js";
|
|
4
5
|
export async function writePreToolDependencies(write) {
|
|
5
6
|
await write("zaip-pre-tool-cloud.mjs", CODEX_PRE_TOOL_CLOUD_HOOK);
|
|
6
7
|
await write("zaip-pre-tool-host-context.mjs", CODEX_PRE_TOOL_HOST_CONTEXT_HOOK);
|
|
7
8
|
await write("zaip-pre-tool-cli-capture.mjs", CODEX_PRE_TOOL_CLI_CAPTURE_HOOK);
|
|
9
|
+
await write("zaip-pre-tool-release-review.mjs", CODEX_PRE_TOOL_RELEASE_REVIEW);
|
|
8
10
|
}
|
|
9
11
|
//# sourceMappingURL=codex-pre-tool-dependencies.test-support.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-pre-tool-dependencies.test-support.js","sourceRoot":"","sources":["../../src/services/codex-pre-tool-dependencies.test-support.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"codex-pre-tool-dependencies.test-support.js","sourceRoot":"","sources":["../../src/services/codex-pre-tool-dependencies.test-support.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAE5F,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,KAAuD;IAEvD,MAAM,KAAK,CAAC,yBAAyB,EAAE,yBAAyB,CAAC,CAAC;IAClE,MAAM,KAAK,CAAC,gCAAgC,EAAE,gCAAgC,CAAC,CAAC;IAChF,MAAM,KAAK,CAAC,+BAA+B,EAAE,+BAA+B,CAAC,CAAC;IAC9E,MAAM,KAAK,CAAC,kCAAkC,EAAE,6BAA6B,CAAC,CAAC;AACjF,CAAC"}
|
|
@@ -454,7 +454,7 @@ else {
|
|
|
454
454
|
...await reviewedContextReadPaths(command, credentialReferencePattern, installedRoot), ...await (nativeAuthority?.reviewedValidationRuntimePaths?.(command, tokenizeLiteralCommand, repositoryRoot) ?? []),
|
|
455
455
|
];
|
|
456
456
|
await validateExplicitFilesystemReferences(command, event.cwd, reviewedPaths);
|
|
457
|
-
const policyCommand = executionPolicyCommand(command, event.cwd, repositoryRoot);
|
|
457
|
+
const policyCommand = await executionPolicyCommand(command, event.cwd, repositoryRoot, execute);
|
|
458
458
|
validateInlineExecution(policyCommand, deny);
|
|
459
459
|
if (!isLiteralReadSequence(policyCommand) && !await isCurrentRepositoryRead(policyCommand, repositoryRoot, execute)) {
|
|
460
460
|
await validateGitPublication(policyCommand);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-pre-tool-release-review-template.d.ts","sourceRoot":"","sources":["../../src/services/codex-pre-tool-release-review-template.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,QAgGzC,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export const CODEX_PRE_TOOL_RELEASE_REVIEW = String.raw `import { lstat, readFile, realpath } from "node:fs/promises";
|
|
2
|
+
import { homedir } from "node:os";
|
|
3
|
+
import { isAbsolute, resolve, toNamespacedPath } from "node:path";
|
|
4
|
+
|
|
5
|
+
export const pathIdentity = value => process.platform === "win32" ? toNamespacedPath(resolve(value)).toLowerCase() : resolve(value);
|
|
6
|
+
export function hasTraversalSegment(path) {
|
|
7
|
+
return path.split(/[\\/]/).includes("..");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export async function reviewedReleaseNodeExecutable(value, repositoryRoot) {
|
|
11
|
+
if (typeof value !== "string") return false;
|
|
12
|
+
if (value === "node") return true;
|
|
13
|
+
if (process.platform !== "win32" || !isAbsolute(value)) return false;
|
|
14
|
+
const expected = resolve(homedir(), ".cache/codex-runtimes/codex-primary-runtime/dependencies/node/bin/node.exe");
|
|
15
|
+
const policyPath = resolve(repositoryRoot, ".local/validation-runtime.json");
|
|
16
|
+
const identity = path => resolve(path).replaceAll("/", "\\").toLowerCase();
|
|
17
|
+
try {
|
|
18
|
+
const policyInfo = await lstat(policyPath);
|
|
19
|
+
if (!policyInfo.isFile() || policyInfo.isSymbolicLink() || policyInfo.size > 4096 ||
|
|
20
|
+
identity(await realpath(policyPath)) !== identity(policyPath)) return false;
|
|
21
|
+
const configured = JSON.parse(await readFile(policyPath, "utf8"));
|
|
22
|
+
if (configured?.schema_version !== 1 ||
|
|
23
|
+
Object.keys(configured).sort().join(",") !== "executable,schema_version" ||
|
|
24
|
+
typeof configured.executable !== "string" || !isAbsolute(configured.executable) ||
|
|
25
|
+
identity(value) !== identity(configured.executable) ||
|
|
26
|
+
identity(configured.executable) !== identity(expected)) return false;
|
|
27
|
+
const executableInfo = await lstat(expected);
|
|
28
|
+
return executableInfo.isFile() && !executableInfo.isSymbolicLink() &&
|
|
29
|
+
identity(await realpath(expected)) === identity(expected);
|
|
30
|
+
} catch { return false; }
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function createReleaseReadReview({ shellSyntax, tokenizeLiteralCommand, isLiteralReadSequence }) {
|
|
34
|
+
function inertGhRunLogSearch(command) {
|
|
35
|
+
if (shellSyntax(command).interpolation || shellSyntax(command).redirection) return null;
|
|
36
|
+
const parts = [];
|
|
37
|
+
let start = 0, quote = null;
|
|
38
|
+
for (let index = 0; index < command.length; index++) {
|
|
39
|
+
const character = command[index];
|
|
40
|
+
if (quote !== null) {
|
|
41
|
+
if (character === quote) {
|
|
42
|
+
if (quote === "'" && command[index + 1] === "'" && process.platform === "win32") index++;
|
|
43
|
+
else quote = null;
|
|
44
|
+
}
|
|
45
|
+
} else if (character === "'" || character === '"') quote = character;
|
|
46
|
+
else if (character === "|") { parts.push(command.slice(start, index)); start = index + 1; }
|
|
47
|
+
}
|
|
48
|
+
if (quote !== null) return null;
|
|
49
|
+
parts.push(command.slice(start));
|
|
50
|
+
if (parts.length !== 2 || !/^\s*Select-String\s+-Pattern\s+'(?:[^']|'')*'\s*$/i.test(parts[1])) return null;
|
|
51
|
+
const left = tokenizeLiteralCommand(parts[0]);
|
|
52
|
+
const right = tokenizeLiteralCommand(parts[1]);
|
|
53
|
+
if (!left || !right || right.length !== 3 ||
|
|
54
|
+
!/^(?:gh|gh\.exe)$/i.test(left[0]) || left[1] !== "run" || left[2] !== "view") return null;
|
|
55
|
+
let index = 3;
|
|
56
|
+
if (/^\d+$/.test(left[index] ?? "")) index++;
|
|
57
|
+
let log = false, repository = false;
|
|
58
|
+
for (; index < left.length; index++) {
|
|
59
|
+
if (["--log", "--log-failed"].includes(left[index]) && !log) { log = true; continue; }
|
|
60
|
+
if (left[index] === "--repo" && !repository &&
|
|
61
|
+
/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(left[++index] ?? "")) {
|
|
62
|
+
repository = true; continue;
|
|
63
|
+
}
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
return log && repository ? parts[0] : null;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function boundedGhRunLogRead(tokens) {
|
|
70
|
+
return /^(?:gh|gh\.exe)$/i.test(tokens[0] ?? "") && tokens[1] === "run" && tokens[2] === "view" &&
|
|
71
|
+
((tokens.length === 4 && ["--log", "--log-failed"].includes(tokens[3])) ||
|
|
72
|
+
(tokens.length === 5 && /^\d+$/.test(tokens[3]) && ["--log", "--log-failed"].includes(tokens[4])));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async function isCurrentRepositoryRead(command, repositoryRoot, execute) {
|
|
76
|
+
const tokens = tokenizeLiteralCommand(command);
|
|
77
|
+
if (!tokens || !/^gh(?:\.exe)?$/i.test(tokens[0] ?? "")) return false;
|
|
78
|
+
const rest = [], repositories = [];
|
|
79
|
+
for (let index = 0; index < tokens.length; index++) {
|
|
80
|
+
const token = tokens[index];
|
|
81
|
+
if (token === "--repo" || token === "-R") repositories.push(tokens[++index]);
|
|
82
|
+
else if (token.startsWith("--repo=")) repositories.push(token.slice(7));
|
|
83
|
+
else if (token.startsWith("-R") && token.length > 2) repositories.push(token.slice(2));
|
|
84
|
+
else rest.push(token);
|
|
85
|
+
}
|
|
86
|
+
if (repositories.length !== 1 || !/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(repositories[0] ?? "") ||
|
|
87
|
+
rest.some(token => token.includes("'")) ||
|
|
88
|
+
!(boundedGhRunLogRead(rest) || isLiteralReadSequence(rest.map(token => "'" + token + "'").join(" ")))) return false;
|
|
89
|
+
try {
|
|
90
|
+
const origin = (await execute("git", ["remote", "get-url", "origin"], { cwd: repositoryRoot, encoding: "utf8", windowsHide: true })).stdout.trim();
|
|
91
|
+
const match = /^(?:git@github\.com:|https:\/\/github\.com\/|ssh:\/\/git@github\.com\/)([^/]+\/[^/]+?)\.git$|^(?:git@github\.com:|https:\/\/github\.com\/|ssh:\/\/git@github\.com\/)([^/]+\/[^/]+?)\/?$/.exec(origin);
|
|
92
|
+
return !!match && (match[1] ?? match[2]).toLowerCase() === repositories[0].toLowerCase();
|
|
93
|
+
} catch { return false; }
|
|
94
|
+
}
|
|
95
|
+
return { inertGhRunLogSearch, isCurrentRepositoryRead };
|
|
96
|
+
}
|
|
97
|
+
`;
|
|
98
|
+
//# sourceMappingURL=codex-pre-tool-release-review-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-pre-tool-release-review-template.js","sourceRoot":"","sources":["../../src/services/codex-pre-tool-release-review-template.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgGtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-pre-tool-support-template.d.ts","sourceRoot":"","sources":["../../src/services/codex-pre-tool-support-template.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"codex-pre-tool-support-template.d.ts","sourceRoot":"","sources":["../../src/services/codex-pre-tool-support-template.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,QA0XvC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export const CODEX_PRE_TOOL_SUPPORT_HOOK = String.raw `import { lstat, readFile, realpath } from "node:fs/promises";
|
|
2
|
-
import { dirname, isAbsolute, relative, resolve
|
|
2
|
+
import { dirname, isAbsolute, relative, resolve } from "node:path";
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
4
|
import { createHostContext, createLiteralReadSequence } from "./zaip-pre-tool-host-context.mjs";
|
|
5
5
|
import { createCliTurnCapture } from "./zaip-pre-tool-cli-capture.mjs";
|
|
6
|
+
import { createReleaseReadReview, hasTraversalSegment, pathIdentity, reviewedReleaseNodeExecutable } from "./zaip-pre-tool-release-review.mjs";
|
|
6
7
|
export { readAuthorityRunRecords, checkDestructivePatterns, configuredDeploymentBranches } from "./zaip-native-tool-authority.mjs";
|
|
7
|
-
const pathIdentity = value => process.platform === "win32" ? toNamespacedPath(resolve(value)).toLowerCase() : resolve(value);
|
|
8
8
|
export const inside = (path, root) => {
|
|
9
9
|
const scoped = relative(root, resolve(path));
|
|
10
10
|
return scoped === "" || (!scoped.startsWith("..") && !isAbsolute(scoped));
|
|
@@ -100,6 +100,8 @@ export function requiresShellMutationRun(command, tokens, cwd, repositoryRoot) {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
export const isLiteralReadSequence = createLiteralReadSequence({ shellSyntax, tokenizeLiteralCommand });
|
|
103
|
+
const { inertGhRunLogSearch, isCurrentRepositoryRead } = createReleaseReadReview({ shellSyntax, tokenizeLiteralCommand, isLiteralReadSequence });
|
|
104
|
+
export { isCurrentRepositoryRead };
|
|
103
105
|
function isSedMutation(tokens) {
|
|
104
106
|
const executable = ((tokens[0] ?? "").split(/[\\/]/).pop() ?? "").replace(/\.(?:exe|cmd|bat)$/i, "");
|
|
105
107
|
return /^sed$/i.test(executable) && tokens.slice(1).some((token) =>
|
|
@@ -134,7 +136,7 @@ export function gitInvocation(tokens, deny) {
|
|
|
134
136
|
|
|
135
137
|
export async function reviewedReleasePaths(command, cwd, repositoryRoot, credentialReferencePattern, deny) {
|
|
136
138
|
const tokens = tokenizeLiteralCommand(command);
|
|
137
|
-
if (!tokens || tokens[0]
|
|
139
|
+
if (!tokens || !(await reviewedReleaseNodeExecutable(tokens[0], repositoryRoot)) || ![
|
|
138
140
|
"scripts/local-release-preparation.mjs", "scripts/local-release-deploy.mjs",
|
|
139
141
|
].includes(tokens[1])) return [];
|
|
140
142
|
if (resolve(cwd) !== repositoryRoot) return [];
|
|
@@ -194,7 +196,10 @@ export async function reviewedReleasePaths(command, cwd, repositoryRoot, credent
|
|
|
194
196
|
const candidateRoot = resolve(homedir(), ".codex/release-candidates/zaip-aios");
|
|
195
197
|
const profile = values.get("--profile") ?? "essential";
|
|
196
198
|
const candidateName = new RegExp("^v" + values.get("--version").replace(".", "\\.") + "-" + profile + "-" + values.get("--sha").slice(0, 8) + "-[0-9]{8}$", "i");
|
|
197
|
-
const external =
|
|
199
|
+
const external = [
|
|
200
|
+
...(isAbsolute(tokens[0]) ? [tokens[0]] : []),
|
|
201
|
+
...(releaseRoot !== repositoryRoot ? [repository] : []),
|
|
202
|
+
];
|
|
198
203
|
let selectedCandidate = null;
|
|
199
204
|
let selectedKey = values.get("--key-id") ?? null;
|
|
200
205
|
for (const flag of ["--receipt", "--tarball", "--policy", "--trust-store", "--private-key", "--output-dir", "--notes-file", "--inventory-file"]) {
|
|
@@ -288,10 +293,6 @@ export async function reviewedContextReadPaths(command, credentialPattern, repos
|
|
|
288
293
|
return paths;
|
|
289
294
|
}
|
|
290
295
|
|
|
291
|
-
function hasTraversalSegment(path) {
|
|
292
|
-
return path.split(/[\\/]/).includes("..");
|
|
293
|
-
}
|
|
294
|
-
|
|
295
296
|
export const captureCliTurn = createCliTurnCapture({ inside, tokenizeLiteralCommand });
|
|
296
297
|
|
|
297
298
|
export function validateInlineExecution(command, deny) {
|
|
@@ -328,7 +329,9 @@ export function validateInlineExecution(command, deny) {
|
|
|
328
329
|
|
|
329
330
|
// These CLI values are data, never shell programs. Only one literal invocation of
|
|
330
331
|
// the canonical runtime qualifies; interpolation, pipelines and other scripts do not.
|
|
331
|
-
export function executionPolicyCommand(command, cwd, repositoryRoot) {
|
|
332
|
+
export async function executionPolicyCommand(command, cwd, repositoryRoot, execute) {
|
|
333
|
+
const inertSearch = inertGhRunLogSearch(command);
|
|
334
|
+
if (inertSearch !== null && await isCurrentRepositoryRead(inertSearch, repositoryRoot, execute)) return inertSearch;
|
|
332
335
|
const tokens = tokenizeLiteralCommand(command);
|
|
333
336
|
if (!tokens || !/^(?:.*[\\/])?node(?:\.exe)?$/i.test(tokens[0] ?? "") ||
|
|
334
337
|
resolve(cwd, tokens[1] ?? "") !== resolve(repositoryRoot, ".agents/runtime/bin/zaip.mjs") ||
|
|
@@ -340,27 +343,6 @@ export function executionPolicyCommand(command, cwd, repositoryRoot) {
|
|
|
340
343
|
}
|
|
341
344
|
return result.map(token => JSON.stringify(token)).join(" ");
|
|
342
345
|
}
|
|
343
|
-
|
|
344
|
-
export async function isCurrentRepositoryRead(command, repositoryRoot, execute) {
|
|
345
|
-
const tokens = tokenizeLiteralCommand(command);
|
|
346
|
-
if (!tokens || !/^gh(?:\.exe)?$/i.test(tokens[0] ?? "")) return false;
|
|
347
|
-
const rest = [], repositories = [];
|
|
348
|
-
for (let index = 0; index < tokens.length; index++) {
|
|
349
|
-
const token = tokens[index];
|
|
350
|
-
if (token === "--repo" || token === "-R") repositories.push(tokens[++index]);
|
|
351
|
-
else if (token.startsWith("--repo=")) repositories.push(token.slice(7));
|
|
352
|
-
else if (token.startsWith("-R") && token.length > 2) repositories.push(token.slice(2));
|
|
353
|
-
else rest.push(token);
|
|
354
|
-
}
|
|
355
|
-
if (repositories.length !== 1 || !/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(repositories[0] ?? "") ||
|
|
356
|
-
rest.some(token => token.includes("'")) || !isLiteralReadSequence(rest.map(token => "'" + token + "'").join(" "))) return false;
|
|
357
|
-
try {
|
|
358
|
-
const origin = (await execute("git", ["remote", "get-url", "origin"], { cwd: repositoryRoot, encoding: "utf8", windowsHide: true })).stdout.trim();
|
|
359
|
-
const match = /^(?:git@github\.com:|https:\/\/github\.com\/|ssh:\/\/git@github\.com\/)([^/]+\/[^/]+?)\.git$|^(?:git@github\.com:|https:\/\/github\.com\/|ssh:\/\/git@github\.com\/)([^/]+\/[^/]+?)\/?$/.exec(origin);
|
|
360
|
-
return !!match && (match[1] ?? match[2]).toLowerCase() === repositories[0].toLowerCase();
|
|
361
|
-
} catch { return false; }
|
|
362
|
-
}
|
|
363
|
-
|
|
364
346
|
export function validateHashicorpRead(command, deny) {
|
|
365
347
|
const tokens = tokenizeLiteralCommand(command);
|
|
366
348
|
if (!tokens || !/^(?:curl(?:\.exe)?|Invoke-WebRequest|Invoke-RestMethod|iwr|irm)$/i.test(tokens[0]))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-pre-tool-support-template.js","sourceRoot":"","sources":["../../src/services/codex-pre-tool-support-template.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"codex-pre-tool-support-template.js","sourceRoot":"","sources":["../../src/services/codex-pre-tool-support-template.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0XpD,CAAC"}
|
package/package.json
CHANGED
|
@@ -6,6 +6,8 @@ English | [Português](README.md)
|
|
|
6
6
|
|
|
7
7
|
## Quick overview
|
|
8
8
|
|
|
9
|
+
The [v5.7 guide](https://github.com/zaip-ai/zaip-aios/blob/main/docs/quality/v57-eficiencia-publicacao.md) documents preflight before long-running gates, every test-selection cause, caching by verified static dependencies, and sanitized progress. Hooks recognize the configured Node executable and literal log searches while preserving authority controls.
|
|
10
|
+
|
|
9
11
|
The [v5.6 guide](https://github.com/zaip-ai/zaip-aios/blob/main/docs/quality/v56-publicacao-reproduzivel.md) describes the reproducible release runtime, immutable candidate review, and early impact-based validation. Reused coverage requires proof for the same candidate; functional changes and missing evidence retain the applicable gates.
|
|
10
12
|
|
|
11
13
|
The [v5.5 guide](https://github.com/zaip-ai/zaip-aios/blob/main/docs/quality/v55-eficiencia-operacional.md) describes evidence
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
## Visão rápida
|
|
8
8
|
|
|
9
|
+
O [guia da v5.7](https://github.com/zaip-ai/zaip-aios/blob/main/docs/quality/v57-eficiencia-publicacao.md) documenta o preflight antes dos gates longos, todas as causas da seleção de testes, o cache por dependências estáticas verificadas e o progresso sanitizado. Os hooks reconhecem o Node configurado e pesquisas literais em logs sem dispensar controles de autoridade.
|
|
10
|
+
|
|
9
11
|
O [guia da v5.6](https://github.com/zaip-ai/zaip-aios/blob/main/docs/quality/v56-publicacao-reproduzivel.md) apresenta o runtime reproduzível de publicação, a revisão do candidato imutável e a validação antecipada por impacto. Cobertura reutilizada exige prova do mesmo candidato; alterações funcionais e provas ausentes mantêm os gates aplicáveis.
|
|
10
12
|
|
|
11
13
|
O [guia da v5.5](https://github.com/zaip-ai/zaip-aios/blob/main/docs/quality/v55-eficiencia-operacional.md) descreve as obrigações
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_zaip_managed": "zaip-managed generated-do-not-edit source=agent-discovery version=5.
|
|
2
|
+
"_zaip_managed": "zaip-managed generated-do-not-edit source=agent-discovery version=5.7.0 sha256=3def7a2b43c1a751f8e68754ef94cb107a80b5d26e11f065af2b4cc145fc8897",
|
|
3
3
|
"schema_version": 1,
|
|
4
4
|
"source": {
|
|
5
5
|
"path": ".agents/config/agents/catalog.yaml",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"files": [
|
|
5
5
|
{
|
|
6
6
|
"path": "DATA-DICTIONARY.md",
|
|
@@ -15,28 +15,28 @@
|
|
|
15
15
|
"sha256": "d0366ee0d847fe681de0971a14c80ee3a6af1430c0e9c5eb4f84f14a4b734b82"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
"path": "apps/frontend/dist/assets/DashboardHelpDialog-
|
|
19
|
-
"sha256": "
|
|
18
|
+
"path": "apps/frontend/dist/assets/DashboardHelpDialog-B4XMYP00.js",
|
|
19
|
+
"sha256": "398d15acb212aa40d9c30bece49a30ca4d11e969141e5b23bc10e21856e77b82"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"path": "apps/frontend/dist/assets/DashboardHelpDialog-DRI_XwUf.css",
|
|
23
23
|
"sha256": "95dbb5c26ad73831f36f2a51d5e08ef5eee7ca85190764a3e63bf1e700fbadf8"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
"path": "apps/frontend/dist/assets/PricingSettingsDialog
|
|
27
|
-
"sha256": "
|
|
26
|
+
"path": "apps/frontend/dist/assets/PricingSettingsDialog-DvMV9yit.js",
|
|
27
|
+
"sha256": "83af678b2d9d34bd878c11ccd0807e8a589263403815b8a9aa53c88382d16e1d"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
"path": "apps/frontend/dist/assets/ProjectSettingsPage-
|
|
31
|
-
"sha256": "
|
|
30
|
+
"path": "apps/frontend/dist/assets/ProjectSettingsPage-CFhFcZjW.js",
|
|
31
|
+
"sha256": "e8ec270b89b54c4d88d9841f2b67f0f1b911d2e2ee03d56c1fb75f49850ed0cd"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"path": "apps/frontend/dist/assets/ProjectSettingsPage-
|
|
35
|
-
"sha256": "
|
|
34
|
+
"path": "apps/frontend/dist/assets/ProjectSettingsPage-CQMhvzvJ.css",
|
|
35
|
+
"sha256": "10e875c4e3ab6c252983822e25a85db3d707d903c0fcf39812909fdd1d013f48"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
"path": "apps/frontend/dist/assets/TraceabilityWorkspace-
|
|
39
|
-
"sha256": "
|
|
38
|
+
"path": "apps/frontend/dist/assets/TraceabilityWorkspace-DkaJNHuG.js",
|
|
39
|
+
"sha256": "4f4dc230651f358c9279c6c45b624b4904fd431a5da076c7804caf2142c3f413"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"path": "apps/frontend/dist/assets/TraceabilityWorkspace-DvvavDLY.css",
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
"sha256": "90be9550e3b6719ffc7a029ac35a93a4f14e95263b3996ad6c06dbfc0490f307"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
"path": "apps/frontend/dist/assets/dashboard-localization-
|
|
55
|
-
"sha256": "
|
|
54
|
+
"path": "apps/frontend/dist/assets/dashboard-localization-CwQfHYWq.js",
|
|
55
|
+
"sha256": "4c949cdac87cfec3507308eac9d7ffa11b72a6375cadb437d74051061e694b5a"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"path": "apps/frontend/dist/assets/icons-vendor-CjGGux6h.js",
|
|
59
59
|
"sha256": "0f615bc6eaeb21d12fc0457867d6acbfe9434ebae0ebecea9444262e46b972e9"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
"path": "apps/frontend/dist/assets/index-
|
|
63
|
-
"sha256": "
|
|
62
|
+
"path": "apps/frontend/dist/assets/index-DB2s40tU.js",
|
|
63
|
+
"sha256": "3cf69156017738b9520e93db0129775fecf89c8ed1139fc6df959daf7fc1c860"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"path": "apps/frontend/dist/assets/index-DZhppOIk.css",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
"path": "apps/frontend/dist/index.html",
|
|
95
|
-
"sha256": "
|
|
95
|
+
"sha256": "e63c763258aee77756e8bae671e24cee7b4c9d61c5dde243ce520451d9883dcd"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"path": "apps/frontend/dist/logo_novo_azul.png",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
"path": "apps/frontend/package.json",
|
|
107
|
-
"sha256": "
|
|
107
|
+
"sha256": "431336aa01de6bf01c0e79b8ec665e211e5aaeb1f4a9029f24c0c4586cff5f92"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
"path": "apps/frontend/playwright.dom.config.ts",
|
|
@@ -600,7 +600,7 @@
|
|
|
600
600
|
},
|
|
601
601
|
{
|
|
602
602
|
"path": "modules/cost-monitor/package.json",
|
|
603
|
-
"sha256": "
|
|
603
|
+
"sha256": "5c6cdf54d3367a6b7fbc266226d96ea0400257016fd630555da488c1690b6a6d"
|
|
604
604
|
},
|
|
605
605
|
{
|
|
606
606
|
"path": "modules/cost-monitor/src/agent-groups.test.ts",
|
|
@@ -1012,7 +1012,7 @@
|
|
|
1012
1012
|
},
|
|
1013
1013
|
{
|
|
1014
1014
|
"path": "modules/operations/package.json",
|
|
1015
|
-
"sha256": "
|
|
1015
|
+
"sha256": "c8e0b51940c6bc669c5bd8502cebeb8092d9f458465fe91a391eb12f7ed965d2"
|
|
1016
1016
|
},
|
|
1017
1017
|
{
|
|
1018
1018
|
"path": "modules/operations/src/contracts.ts",
|
|
@@ -1752,7 +1752,7 @@
|
|
|
1752
1752
|
},
|
|
1753
1753
|
{
|
|
1754
1754
|
"path": "modules/traceability/package.json",
|
|
1755
|
-
"sha256": "
|
|
1755
|
+
"sha256": "0dc8a19bbca6313938bfed33bcb37d9eec85abee2baadc67165d58d592477c28"
|
|
1756
1756
|
},
|
|
1757
1757
|
{
|
|
1758
1758
|
"path": "modules/traceability/src/contracts.ts",
|
|
@@ -1824,7 +1824,7 @@
|
|
|
1824
1824
|
},
|
|
1825
1825
|
{
|
|
1826
1826
|
"path": "packages/branding/package.json",
|
|
1827
|
-
"sha256": "
|
|
1827
|
+
"sha256": "31b31853d0855b34762953ee1577ebcab6ba9f1dc7b3e31cc292cf5e516982ec"
|
|
1828
1828
|
},
|
|
1829
1829
|
{
|
|
1830
1830
|
"path": "packages/branding/src/index.ts",
|
|
@@ -1836,7 +1836,7 @@
|
|
|
1836
1836
|
},
|
|
1837
1837
|
{
|
|
1838
1838
|
"path": "packages/contracts/package.json",
|
|
1839
|
-
"sha256": "
|
|
1839
|
+
"sha256": "3c0dfed50f43e20b0fa803a805361eb19430a19c4a0697c3190b7305450d2669"
|
|
1840
1840
|
},
|
|
1841
1841
|
{
|
|
1842
1842
|
"path": "packages/contracts/src/export.ts",
|
|
@@ -1856,7 +1856,7 @@
|
|
|
1856
1856
|
},
|
|
1857
1857
|
{
|
|
1858
1858
|
"path": "packages/data-export/package.json",
|
|
1859
|
-
"sha256": "
|
|
1859
|
+
"sha256": "77effb1a003eb5bd43fe48b72d13b449f6ff9ed5a029236f4e55f0dc5b476a51"
|
|
1860
1860
|
},
|
|
1861
1861
|
{
|
|
1862
1862
|
"path": "packages/data-export/src/index.test.ts",
|
|
@@ -1912,7 +1912,7 @@
|
|
|
1912
1912
|
},
|
|
1913
1913
|
{
|
|
1914
1914
|
"path": "packages/local-runtime/package.json",
|
|
1915
|
-
"sha256": "
|
|
1915
|
+
"sha256": "06c5d57081e95887281d6bdba6189707213aae4d6886fb0af3afce146e9ba1e0"
|
|
1916
1916
|
},
|
|
1917
1917
|
{
|
|
1918
1918
|
"path": "packages/local-runtime/scripts/build-frontend.mjs",
|
|
@@ -2848,7 +2848,7 @@
|
|
|
2848
2848
|
},
|
|
2849
2849
|
{
|
|
2850
2850
|
"path": "packages/ui/package.json",
|
|
2851
|
-
"sha256": "
|
|
2851
|
+
"sha256": "e00b503ecdb09a1c42724aed19f98a0615fb246c0ca9a3d4ca8a8300edb4d974"
|
|
2852
2852
|
},
|
|
2853
2853
|
{
|
|
2854
2854
|
"path": "packages/ui/src/DashboardHeader.test.mjs",
|
|
@@ -2956,7 +2956,7 @@
|
|
|
2956
2956
|
},
|
|
2957
2957
|
{
|
|
2958
2958
|
"path": "tests/e2e/package.json",
|
|
2959
|
-
"sha256": "
|
|
2959
|
+
"sha256": "1402a0923dd5629f86cb86efccdc5b8171d7c4f0903527349649b46bb5a5d76c"
|
|
2960
2960
|
},
|
|
2961
2961
|
{
|
|
2962
2962
|
"path": "tests/e2e/playwright.config.ts",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-Bh1tDfsg.js";import{E as t,w as n}from"./cost-monitor-B0Jwz_rk.js";import{t as r}from"./dashboard-localization-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-Bh1tDfsg.js";import{E as t,w as n}from"./cost-monitor-B0Jwz_rk.js";import{t as r}from"./dashboard-localization-CwQfHYWq.js";var i=`# Primeiros passos
|
|
2
2
|
|
|
3
3
|
1. Leia \`.agents/config/project.yaml\` e \`.agents/rules/core.md\`.
|
|
4
4
|
2. Consulte \`.agents/records/lifecycle/\` para descobrir o estado atual pelos manifests canônicos.
|
|
@@ -2343,6 +2343,8 @@ matriz de performance aprovada apenas porque consultas focadas passaram.
|
|
|
2343
2343
|
|
|
2344
2344
|
## Visão rápida
|
|
2345
2345
|
|
|
2346
|
+
O [guia da v5.7](docs/quality/v57-eficiencia-publicacao.md) documenta o preflight antes dos gates longos, todas as causas da seleção de testes, o cache por dependências estáticas verificadas e o progresso sanitizado. Os hooks reconhecem o Node configurado e pesquisas literais em logs sem dispensar controles de autoridade.
|
|
2347
|
+
|
|
2346
2348
|
O [guia da v5.6](docs/quality/v56-publicacao-reproduzivel.md) apresenta o runtime reproduzível de publicação, a revisão do candidato imutável e a validação antecipada por impacto. Cobertura reutilizada exige prova do mesmo candidato; alterações funcionais e provas ausentes mantêm os gates aplicáveis.
|
|
2347
2349
|
|
|
2348
2350
|
O [guia da v5.5](docs/quality/v55-eficiencia-operacional.md) descreve as obrigações
|