Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"homepage": "https://magpie.apache.org/",
"repository": "https://github.com/apache/magpie",
"license": "Apache-2.0",
"types": "./hooks/types.d.ts",
"skills": "./skills"
}
14 changes: 14 additions & 0 deletions plugins/magpie-release-management/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "magpie-release-management",
"description": "Apache Magpie \u2014 ASF release lifecycle: plan, RC cut/sign, vote, tally, promote, announce, archive, audit.",
"version": "0.9.0.dev202611041445",
"author": {
"name": "Apache Magpie",
"url": "https://magpie.apache.org/"
},
"homepage": "https://magpie.apache.org/",
"repository": "https://github.com/apache/magpie",
"license": "Apache-2.0",
"skills": "./skills",
"hooks": "./hooks/codex-hooks.json"
}
4 changes: 4 additions & 0 deletions plugins/magpie-release-management/hooks/codex-hooks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"description": "Apache Magpie \u2014 no Codex hooks. hooks.json holds Claude Code mods only.",
"hooks": {}
}
7 changes: 7 additions & 0 deletions plugins/magpie-release-management/hooks/hooks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://code.claude.com/schemas/hooks.json",
"description": "Apache Magpie — Claude Code mod for live verification checklist in verify-rc.",
"modules": [
"./verify-rc-pane.ts"
]
}
46 changes: 46 additions & 0 deletions plugins/magpie-release-management/hooks/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

// Self-contained ambient declaration required by strict plugin validation.
// Companion TypeScript runtime definitions live in types.ts. Both type declarations
// must be kept in sync when modifying the state shape.

declare module 'claude-code' {
interface PluginState {
'magpie-release-management': {
verifyRcState: {
rcTag: string;
version: string;
stagingUrl?: string | null;
postTo?: string | null;
overallStatus: 'running' | 'passed' | 'passed-with-warnings' | 'failed';
currentStepId?: string | null;
steps: Array<{
id: string;
label: string;
status: 'pending' | 'running' | 'passed' | 'failed' | 'warning' | 'skipped';
detail?: string | null;
durationMs?: number | null;
}>;
startedAt: number;
completedAt?: number | null;
} | null;
};
}
}
83 changes: 83 additions & 0 deletions plugins/magpie-release-management/hooks/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
// SPDX-License-Identifier: Apache-2.0
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

// Companion ambient declaration lives in types.d.ts for Claude Code mod plugin
// validation. Any property added to VerifyRcState or VerifyRcStep must be
// kept in sync across both files.

export type VerifyStepId =
| 'preflight'
| 'inventory'
| 'signatures'
| 'checksums'
| 'rat-license-headers'
| 'notice-license'
| 'binary-exclusion'
| 'jvm-artefacts'
| 'nexus-staging'
| 'source-tree-integrity'
| 'version-consistency'
| 'reproducibility'
| 'verdict';

export type StepStatus = 'pending' | 'running' | 'passed' | 'failed' | 'warning' | 'skipped';

export type OverallVerifyStatus = 'running' | 'passed' | 'passed-with-warnings' | 'failed';

export interface VerifyRcStep {
id: VerifyStepId;
label: string;
status: StepStatus;
detail?: string | null;
durationMs?: number | null;
}

export interface VerifyRcState {
rcTag: string;
version: string;
stagingUrl?: string | null;
postTo?: string | null;
overallStatus: OverallVerifyStatus;
currentStepId?: VerifyStepId | null;
steps: VerifyRcStep[];
startedAt: number;
completedAt?: number | null;
}

/**
* Returns the canonical 13 verification steps in exact SKILL.md execution order,
* all initialized in 'pending' status.
*/
export function createDefaultVerifySteps(): VerifyRcStep[] {
return [
{ id: 'preflight', label: 'Pre-flight check & config resolution', status: 'pending' },
{ id: 'inventory', label: 'Staged artefacts inventory', status: 'pending' },
{ id: 'signatures', label: 'GPG signatures (KEYS verification)', status: 'pending' },
{ id: 'checksums', label: 'SHA512 & digest checksums', status: 'pending' },
{ id: 'rat-license-headers', label: 'Apache RAT license headers', status: 'pending' },
{ id: 'notice-license', label: 'NOTICE and LICENSE integrity', status: 'pending' },
{ id: 'binary-exclusion', label: 'Prohibited binaries scan', status: 'pending' },
{ id: 'jvm-artefacts', label: 'JVM artefact checks', status: 'pending' },
{ id: 'nexus-staging', label: 'Nexus staging repository', status: 'pending' },
{ id: 'source-tree-integrity', label: 'Source integrity & symlinks', status: 'pending' },
{ id: 'version-consistency', label: 'Version manifest consistency', status: 'pending' },
{ id: 'reproducibility', label: 'Reproducible build verification', status: 'pending' },
{ id: 'verdict', label: 'Final verification verdict', status: 'pending' },
];
}
Loading
Loading