@jc_stack/ez-library 0.1.0-beta.14 → 0.1.0-beta.15
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/CHANGELOG.md +6 -0
- package/ez-plugin.json +8 -2
- package/package.json +1 -1
- package/scripts/release-check.mjs +12 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.15
|
|
4
|
+
|
|
5
|
+
- Declare the full Library command's external-content, outbound, record-change
|
|
6
|
+
and review exposure contract, and validate command exposure metadata during
|
|
7
|
+
release checks.
|
|
8
|
+
|
|
3
9
|
## 0.1.0-beta.14
|
|
4
10
|
|
|
5
11
|
- Sync existing Git checkouts and normalize text-mirror destinations without
|
package/ez-plugin.json
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"id": "library",
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.15",
|
|
5
5
|
"description": "Dockerized agent library files, QMD retrieval and explicit persistence settings",
|
|
6
6
|
"commands": {
|
|
7
7
|
"library": {
|
|
8
8
|
"executable": "bin/ez-library.mjs",
|
|
9
|
-
"args": []
|
|
9
|
+
"args": [],
|
|
10
|
+
"exposure": {
|
|
11
|
+
"receivesExternalContent": true,
|
|
12
|
+
"sendsExternally": true,
|
|
13
|
+
"changesRecords": true,
|
|
14
|
+
"requiresReview": true
|
|
15
|
+
}
|
|
10
16
|
},
|
|
11
17
|
"library-file": {
|
|
12
18
|
"executable": "bin/ez-library.mjs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jc_stack/ez-library",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.15",
|
|
4
4
|
"publishConfig": { "access": "public", "tag": "latest" },
|
|
5
5
|
"description": "Dockerized agent library files, QMD retrieval and explicit persistence settings",
|
|
6
6
|
"type": "module",
|
|
@@ -6,11 +6,22 @@ import {verifyPublishingSettings} from './publish-settings.mjs';
|
|
|
6
6
|
assert.equal(readFileSync('docker/pnpm-lock.yaml','utf8'),readFileSync('pnpm-lock.yaml','utf8'),'Refresh docker/pnpm-lock.yaml after dependency changes');
|
|
7
7
|
const p=JSON.parse(readFileSync('package.json','utf8'));
|
|
8
8
|
const publishSettings=verifyPublishingSettings(p,readFileSync('.github/workflows/publish-beta.yml','utf8'));
|
|
9
|
+
const manifest=JSON.parse(readFileSync('ez-plugin.json','utf8'));
|
|
10
|
+
const exposureFields=['receivesExternalContent','sendsExternally','changesRecords','requiresReview'].sort();
|
|
11
|
+
const expectedExposure={receivesExternalContent:true,sendsExternally:true,changesRecords:true,requiresReview:true};
|
|
12
|
+
const readOnlyExposure={receivesExternalContent:true,sendsExternally:false,changesRecords:false,requiresReview:false};
|
|
13
|
+
assert.equal(manifest.version,p.version,'package and Ez manifest versions differ');
|
|
14
|
+
for(const [alias,command] of Object.entries(manifest.commands||{})) {
|
|
15
|
+
assert.deepEqual(Object.keys(command.exposure||{}).sort(),exposureFields,`Command ${alias} must declare every exposure field`);
|
|
16
|
+
for(const field of exposureFields) assert.equal(typeof command.exposure[field],'boolean',`Command ${alias} exposure.${field} must be boolean`);
|
|
17
|
+
}
|
|
18
|
+
assert.deepEqual(manifest.commands.library?.exposure,expectedExposure,'library exposure must conservatively describe its broad read/write/sync surface');
|
|
19
|
+
for(const alias of ['library-file','library-query']) assert.deepEqual(manifest.commands[alias]?.exposure,readOnlyExposure,`${alias} must remain read-only`);
|
|
9
20
|
const [pack]=JSON.parse(execFileSync('npm',['pack','--dry-run','--ignore-scripts','--json'],{encoding:'utf8'}));
|
|
10
21
|
const names=pack.files.map(f=>f.path);
|
|
11
22
|
for(const required of ['LICENSE','README.md','SECURITY.md','CONTRIBUTING.md','CHANGELOG.md','THIRD_PARTY_NOTICES.md','Dockerfile','.dockerignore','docker/pnpm-lock.yaml']) assert(names.includes(required),`Missing ${required}`);
|
|
12
23
|
for(const name of names) assert(!/^agent\//.test(name) && !/(^|\/)(node_modules|\.git|\.private|todo\.md|principles\.md|backlog\.md|sprints\.md)(\/|$)|(^|\/)\.env$|\.(tgz|log)$|(^|\/)(qa|plugin-manager-qa|spec-benchmark)\.md$/.test(name),`Private/internal package entry: ${name}`);
|
|
13
24
|
for(const entry of p.files) assert(names.some(name=>name===entry || name.startsWith(entry+'/')),`Declared package entry missing: ${entry}`);
|
|
14
25
|
for(const bin of Object.values(p.bin||{})) assert(names.includes(bin),`Missing binary ${bin}`);
|
|
15
|
-
if(names.includes('ez-plugin.json')) assert.equal(
|
|
26
|
+
if(names.includes('ez-plugin.json')) assert.equal(manifest.version,p.version);
|
|
16
27
|
console.log(JSON.stringify({...publishSettings,files:names,unpackedSize:pack.unpackedSize},null,2));
|