@tryvitris/website-admin-contracts 1.4.0 → 1.5.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/LICENSE +21 -21
- package/README.md +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/maintenance.d.ts +47 -0
- package/dist/maintenance.js +9 -0
- package/package.json +10 -1
- package/vitris-release.json +6 -6
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Vitris contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Vitris contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
# Website Admin Contracts
|
|
2
2
|
|
|
3
3
|
Validated installation manifests, roles, permissions and module contracts for `@tryvitris/website-admin-harness`. Node.js 24+. MIT licensed.
|
|
4
|
+
|
|
5
|
+
The maintenance contract exports the stable admin package family and typed installed/locked/published-version reports and preparation plans. Its policy is prepare-and-test under existing publication permissions. It does not execute updates or create schedules; use the runtime maintenance CLI and its agent guide.
|
package/dist/index.d.ts
CHANGED
|
@@ -214,3 +214,4 @@ export declare const workQueueModule: ModuleDefinition;
|
|
|
214
214
|
export declare function isLoopback(origin: string): boolean;
|
|
215
215
|
export declare function parseManifest(value: unknown): AdminManifest;
|
|
216
216
|
export declare function validateModules(manifest: AdminManifest, modules: ModuleDefinition[]): void;
|
|
217
|
+
export * from './maintenance.js';
|
package/dist/index.js
CHANGED
|
@@ -166,6 +166,7 @@ function validateModules(manifest, modules) {
|
|
|
166
166
|
}
|
|
167
167
|
for (const enabled of manifest.modules) if (!ids.has(enabled)) throw new Error(`Module ${enabled} is not installed`);
|
|
168
168
|
}
|
|
169
|
+
export * from "./maintenance.js";
|
|
169
170
|
export {
|
|
170
171
|
analyticsBreakdownKeys,
|
|
171
172
|
analyticsMetricKeys,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** Package maintenance is an agent workflow; this contract grants no deployment authority. */
|
|
2
|
+
export declare const maintenanceVersion = 1;
|
|
3
|
+
export declare const adminMaintenancePackages: readonly ["@tryvitris/website-admin-harness", "@tryvitris/website-admin-contracts", "@tryvitris/create-website-admin-harness"];
|
|
4
|
+
export declare const maintenancePackages: readonly ["@tryvitris/website-admin-harness", "@tryvitris/website-admin-contracts", "@tryvitris/create-website-admin-harness", "@tryvitris/website-harness"];
|
|
5
|
+
export type MaintenancePackage = typeof maintenancePackages[number];
|
|
6
|
+
export type MaintenanceStatus = 'not-declared' | 'current' | 'update-available' | 'ahead' | 'unmanaged' | 'drift' | 'unavailable';
|
|
7
|
+
export interface MaintenanceRelease {
|
|
8
|
+
name: MaintenancePackage;
|
|
9
|
+
version: string;
|
|
10
|
+
integrity: string;
|
|
11
|
+
tarball: string;
|
|
12
|
+
}
|
|
13
|
+
export interface MaintenanceEntry {
|
|
14
|
+
name: MaintenancePackage;
|
|
15
|
+
declared: string | null;
|
|
16
|
+
installed: string | null;
|
|
17
|
+
locked: string | null;
|
|
18
|
+
status: MaintenanceStatus;
|
|
19
|
+
change: 'none' | 'patch' | 'minor' | 'major' | 'unknown';
|
|
20
|
+
latest: MaintenanceRelease | null;
|
|
21
|
+
}
|
|
22
|
+
export interface MaintenanceReport {
|
|
23
|
+
schemaVersion: 1;
|
|
24
|
+
checkedAt: string;
|
|
25
|
+
policy: 'prepare-and-test';
|
|
26
|
+
adminRelease: {
|
|
27
|
+
version: string | null;
|
|
28
|
+
complete: boolean;
|
|
29
|
+
};
|
|
30
|
+
packages: MaintenanceEntry[];
|
|
31
|
+
baseline: Record<string, string>;
|
|
32
|
+
deployment: 'not-checked';
|
|
33
|
+
}
|
|
34
|
+
export interface MaintenancePlan {
|
|
35
|
+
schemaVersion: 1;
|
|
36
|
+
policy: 'prepare-and-test';
|
|
37
|
+
baseline: Record<string, string>;
|
|
38
|
+
ready: boolean;
|
|
39
|
+
held: MaintenancePackage[];
|
|
40
|
+
updates: MaintenanceRelease[];
|
|
41
|
+
install: {
|
|
42
|
+
command: 'npm';
|
|
43
|
+
args: string[];
|
|
44
|
+
} | null;
|
|
45
|
+
requiredChecks: string[];
|
|
46
|
+
deployment: 'follow-existing-permissions';
|
|
47
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// packages/contracts/src/maintenance.ts
|
|
2
|
+
var maintenanceVersion = 1;
|
|
3
|
+
var adminMaintenancePackages = ["@tryvitris/website-admin-harness", "@tryvitris/website-admin-contracts", "@tryvitris/create-website-admin-harness"];
|
|
4
|
+
var maintenancePackages = ["@tryvitris/website-admin-harness", "@tryvitris/website-admin-contracts", "@tryvitris/create-website-admin-harness", "@tryvitris/website-harness"];
|
|
5
|
+
export {
|
|
6
|
+
adminMaintenancePackages,
|
|
7
|
+
maintenancePackages,
|
|
8
|
+
maintenanceVersion
|
|
9
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryvitris/website-admin-contracts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Validated installation and module contracts for Cloudflare business admin apps",
|
|
@@ -33,5 +33,14 @@
|
|
|
33
33
|
"homepage": "https://github.com/jackperrotta/website-admin-harness#readme",
|
|
34
34
|
"bugs": {
|
|
35
35
|
"url": "https://github.com/jackperrotta/website-admin-harness/issues"
|
|
36
|
+
},
|
|
37
|
+
"vitris": {
|
|
38
|
+
"maintenance": {
|
|
39
|
+
"version": 1,
|
|
40
|
+
"policy": "prepare-and-test",
|
|
41
|
+
"stableChannel": "latest",
|
|
42
|
+
"command": "vitris-admin updates check --dir . --json",
|
|
43
|
+
"schedule": "reuse-existing-daily-care"
|
|
44
|
+
}
|
|
36
45
|
}
|
|
37
46
|
}
|
package/vitris-release.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@tryvitris/website-admin-contracts",
|
|
4
|
-
"version": "1.
|
|
5
|
-
"title": "
|
|
4
|
+
"version": "1.5.0",
|
|
5
|
+
"title": "Typed agent maintenance reports and plans",
|
|
6
6
|
"notesScope": "package",
|
|
7
7
|
"notes": [
|
|
8
|
-
"Adds
|
|
8
|
+
"Adds the shared package-family, status, release identity and prepare-and-test plan contract used by the admin and website daily maintenance tooling."
|
|
9
9
|
],
|
|
10
10
|
"repository": "https://github.com/jackperrotta/website-admin-harness",
|
|
11
11
|
"readmePath": "packages/contracts/README.md",
|
|
12
|
-
"ref": "v1.
|
|
13
|
-
"documentation": "# Website Admin Contracts\r\n\r\nValidated installation manifests, roles, permissions and module contracts for `@tryvitris/website-admin-harness`. Node.js 24+. MIT licensed.\r\n",
|
|
14
|
-
"documentationSha256": "
|
|
12
|
+
"ref": "v1.5.0",
|
|
13
|
+
"documentation": "# Website Admin Contracts\r\n\r\nValidated installation manifests, roles, permissions and module contracts for `@tryvitris/website-admin-harness`. Node.js 24+. MIT licensed.\r\n\r\nThe maintenance contract exports the stable admin package family and typed installed/locked/published-version reports and preparation plans. Its policy is prepare-and-test under existing publication permissions. It does not execute updates or create schedules; use the runtime maintenance CLI and its agent guide.\r\n",
|
|
14
|
+
"documentationSha256": "53077ee5624185df808524801143734e7d9786aab747834e83a8603de06a1ee8"
|
|
15
15
|
}
|