Add plain-language status doc and minimal decision store contract
This commit is contained in:
@@ -66,18 +66,27 @@ test('package root export resolves public package surface only', () => {
|
||||
import * as plugin from '@openclaw/plugin-reporting-governance';
|
||||
process.stdout.write(JSON.stringify({
|
||||
packageName: plugin.packageName,
|
||||
artifactKinds: plugin.artifactKinds,
|
||||
hasRunWatchdogChain: typeof plugin.runWatchdogChain,
|
||||
hasPlanDecisionExecution: typeof plugin.planDecisionExecution,
|
||||
hasExecuteGovernanceContract: typeof plugin.executeGovernanceContract,
|
||||
hasExecuteRuntimeIntegratedGovernance: typeof plugin.executeRuntimeIntegratedGovernance,
|
||||
hasCreateDecisionRecordArtifact: typeof plugin.createDecisionRecordArtifact,
|
||||
hasCreateFileDecisionStore: typeof plugin.createFileDecisionStore,
|
||||
}));
|
||||
`);
|
||||
|
||||
assert.equal(result.packageName, '@openclaw/plugin-reporting-governance');
|
||||
assert.deepEqual(result.artifactKinds, {
|
||||
deploymentProfile: 'DeploymentProfileArtifact',
|
||||
decisionRecord: 'DecisionRecordArtifact',
|
||||
});
|
||||
assert.equal(result.hasRunWatchdogChain, 'function');
|
||||
assert.equal(result.hasPlanDecisionExecution, 'function');
|
||||
assert.equal(result.hasExecuteGovernanceContract, 'function');
|
||||
assert.equal(result.hasExecuteRuntimeIntegratedGovernance, 'function');
|
||||
assert.equal(result.hasCreateDecisionRecordArtifact, 'function');
|
||||
assert.equal(result.hasCreateFileDecisionStore, 'function');
|
||||
} finally {
|
||||
fs.rmSync(root, { recursive: true, force: true });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user