pumuki 6.3.236 → 6.3.237

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/VERSION CHANGED
@@ -1 +1 @@
1
- v6.3.236
1
+ v6.3.237
@@ -1989,6 +1989,11 @@ export const buildPreWriteValidationPanel = (params: {
1989
1989
  }): string => {
1990
1990
  const git = params.aiGate.repo_state.git;
1991
1991
  const receipt = params.aiGate.mcp_receipt;
1992
+ const blockingViolations = params.aiGate.violations.filter((violation) => violation.severity === 'ERROR');
1993
+ const nonBlockingViolations = params.aiGate.violations.filter((violation) => violation.severity !== 'ERROR');
1994
+ const rawSkillsContractStatus = params.aiGate.skills_contract?.status ?? 'n/a';
1995
+ const visibleSkillsContractStatus =
1996
+ rawSkillsContractStatus === 'FAIL' && params.aiGate.allowed ? 'ADVISORY' : rawSkillsContractStatus;
1992
1997
  const lines: string[] = [
1993
1998
  'PRE-FLIGHT CHECK',
1994
1999
  `Stage: ${params.sdd.stage} · SDD: ${params.sdd.decision.code} · AI Gate: ${params.aiGate.status}`,
@@ -1997,9 +2002,9 @@ export const buildPreWriteValidationPanel = (params: {
1997
2002
  `Evidence: kind=${params.aiGate.evidence.kind} age=${params.aiGate.evidence.age_seconds ?? 'n/a'}s max=${params.aiGate.evidence.max_age_seconds}s`,
1998
2003
  `Evidence source: source=${params.aiGate.evidence.source.source} path=${params.aiGate.evidence.source.path} digest=${params.aiGate.evidence.source.digest ?? 'null'} generated_at=${params.aiGate.evidence.source.generated_at ?? 'null'}`,
1999
2004
  `MCP receipt: required=${receipt.required ? 'yes' : 'no'} kind=${receipt.kind} age=${receipt.age_seconds ?? 'n/a'}s max=${receipt.max_age_seconds ?? 'n/a'}s`,
2000
- `Skills contract: enforced=${params.aiGate.skills_contract?.enforced ? 'yes' : 'no'} status=${params.aiGate.skills_contract?.status ?? 'n/a'} platforms=${params.aiGate.skills_contract?.detected_platforms.join(',') ?? 'none'}`,
2005
+ `Skills contract: enforced=${params.aiGate.skills_contract?.enforced ? 'yes' : 'no'} status=${visibleSkillsContractStatus} platforms=${params.aiGate.skills_contract?.detected_platforms.join(',') ?? 'none'}`,
2001
2006
  `Auto-heal: attempted=${params.automation.attempted ? 'yes' : 'no'} actions=${params.automation.actions.length}`,
2002
- `Violations: ${params.aiGate.violations.length}`,
2007
+ `Violations: blocking=${blockingViolations.length} advisory=${nonBlockingViolations.length}`,
2003
2008
  ];
2004
2009
 
2005
2010
  if (params.automation.actions.length > 0) {
@@ -2010,15 +2015,15 @@ export const buildPreWriteValidationPanel = (params: {
2010
2015
  }
2011
2016
  }
2012
2017
 
2013
- if (params.aiGate.violations.length > 0) {
2018
+ if (blockingViolations.length > 0) {
2014
2019
  lines.push('');
2015
2020
  lines.push('Blocking causes:');
2016
- for (const violation of params.aiGate.violations) {
2021
+ for (const violation of blockingViolations) {
2017
2022
  lines.push(`- ${violation.code}: ${violation.message}`);
2018
2023
  }
2019
2024
  lines.push('');
2020
2025
  lines.push('Operational hints:');
2021
- for (const violation of params.aiGate.violations) {
2026
+ for (const violation of blockingViolations) {
2022
2027
  const hint = PRE_WRITE_HINTS_BY_CODE[violation.code];
2023
2028
  if (!hint) {
2024
2029
  continue;
@@ -2027,6 +2032,14 @@ export const buildPreWriteValidationPanel = (params: {
2027
2032
  }
2028
2033
  }
2029
2034
 
2035
+ if (nonBlockingViolations.length > 0) {
2036
+ lines.push('');
2037
+ lines.push('Advisory findings:');
2038
+ for (const violation of nonBlockingViolations) {
2039
+ lines.push(`- ${violation.code}: ${violation.message}`);
2040
+ }
2041
+ }
2042
+
2030
2043
  return renderPreWritePanel(lines);
2031
2044
  };
2032
2045
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pumuki",
3
- "version": "6.3.236",
3
+ "version": "6.3.237",
4
4
  "description": "Enterprise-grade AST Intelligence System with multi-platform support (iOS, Android, Backend, Frontend) and Feature-First + DDD + Clean Architecture enforcement. Includes dynamic violations API for intelligent querying.",
5
5
  "main": "index.js",
6
6
  "bin": {