@techis/ai-contracts 0.0.0-stage → 0.3.0-rc.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/LICENSE +122 -0
- package/README.md +28 -3
- package/THIRD_PARTY_NOTICES +34 -0
- package/dist/availability.d.ts +21 -0
- package/dist/availability.d.ts.map +1 -0
- package/dist/availability.js +2 -0
- package/dist/availability.js.map +1 -0
- package/dist/catalog-adoption.d.ts +20 -0
- package/dist/catalog-adoption.d.ts.map +1 -0
- package/dist/catalog-adoption.js +76 -0
- package/dist/catalog-adoption.js.map +1 -0
- package/dist/catalog-composition.d.ts +10 -0
- package/dist/catalog-composition.d.ts.map +1 -0
- package/dist/catalog-composition.js +58 -0
- package/dist/catalog-composition.js.map +1 -0
- package/dist/catalog-delivery.d.ts +47 -0
- package/dist/catalog-delivery.d.ts.map +1 -0
- package/dist/catalog-delivery.js +83 -0
- package/dist/catalog-delivery.js.map +1 -0
- package/dist/catalog-package-data.d.ts +8 -0
- package/dist/catalog-package-data.d.ts.map +1 -0
- package/dist/catalog-package-data.js +2640 -0
- package/dist/catalog-package-data.js.map +1 -0
- package/dist/compatibility.d.ts +68 -0
- package/dist/compatibility.d.ts.map +1 -0
- package/dist/compatibility.js +207 -0
- package/dist/compatibility.js.map +1 -0
- package/dist/configuration-bundle.d.ts +201 -0
- package/dist/configuration-bundle.d.ts.map +1 -0
- package/dist/configuration-bundle.js +619 -0
- package/dist/configuration-bundle.js.map +1 -0
- package/dist/entities.d.ts +619 -0
- package/dist/entities.d.ts.map +1 -0
- package/dist/entities.js +2 -0
- package/dist/entities.js.map +1 -0
- package/dist/fixtures.d.ts +25 -0
- package/dist/fixtures.d.ts.map +1 -0
- package/dist/fixtures.js +546 -0
- package/dist/fixtures.js.map +1 -0
- package/dist/hash.d.ts +8 -0
- package/dist/hash.d.ts.map +1 -0
- package/dist/hash.js +13 -0
- package/dist/hash.js.map +1 -0
- package/dist/host-qualification.d.ts +90 -0
- package/dist/host-qualification.d.ts.map +1 -0
- package/dist/host-qualification.js +65 -0
- package/dist/host-qualification.js.map +1 -0
- package/dist/icc-catalog.d.ts +31 -0
- package/dist/icc-catalog.d.ts.map +1 -0
- package/dist/icc-catalog.js +321 -0
- package/dist/icc-catalog.js.map +1 -0
- package/dist/icc-csf-profiles.d.ts +28 -0
- package/dist/icc-csf-profiles.d.ts.map +1 -0
- package/dist/icc-csf-profiles.js +394 -0
- package/dist/icc-csf-profiles.js.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/model-maintenance.d.ts +216 -0
- package/dist/model-maintenance.d.ts.map +1 -0
- package/dist/model-maintenance.js +387 -0
- package/dist/model-maintenance.js.map +1 -0
- package/dist/model-package-data.d.ts +3 -0
- package/dist/model-package-data.d.ts.map +1 -0
- package/dist/model-package-data.js +867 -0
- package/dist/model-package-data.js.map +1 -0
- package/dist/persona-inventory.d.ts +143 -0
- package/dist/persona-inventory.d.ts.map +1 -0
- package/dist/persona-inventory.js +56 -0
- package/dist/persona-inventory.js.map +1 -0
- package/dist/profile-identity.d.ts +27 -0
- package/dist/profile-identity.d.ts.map +1 -0
- package/dist/profile-identity.js +30 -0
- package/dist/profile-identity.js.map +1 -0
- package/dist/reasoning-validation.d.ts +9 -0
- package/dist/reasoning-validation.d.ts.map +1 -0
- package/dist/reasoning-validation.js +79 -0
- package/dist/reasoning-validation.js.map +1 -0
- package/dist/reasoning.d.ts +55 -0
- package/dist/reasoning.d.ts.map +1 -0
- package/dist/reasoning.js +13 -0
- package/dist/reasoning.js.map +1 -0
- package/dist/receipt.d.ts +16 -0
- package/dist/receipt.d.ts.map +1 -0
- package/dist/receipt.js +18 -0
- package/dist/receipt.js.map +1 -0
- package/dist/schemas/adoption-change-set.schema.json +91 -0
- package/dist/schemas/bundle.d.ts +124 -0
- package/dist/schemas/bundle.d.ts.map +1 -0
- package/dist/schemas/bundle.js +84 -0
- package/dist/schemas/bundle.js.map +1 -0
- package/dist/schemas/catalog-release.schema.json +110 -0
- package/dist/schemas/catalog-review-input.schema.json +179 -0
- package/dist/schemas/catalog-review-output.schema.json +259 -0
- package/dist/schemas/catalog-review-output.v2.schema.json +251 -0
- package/dist/schemas/catalog-review-record.schema.json +391 -0
- package/dist/schemas/client-persona-inventory.schema.json +107 -0
- package/dist/schemas/common.schema.json +324 -0
- package/dist/schemas/config.d.ts +1106 -0
- package/dist/schemas/config.d.ts.map +1 -0
- package/dist/schemas/config.js +496 -0
- package/dist/schemas/config.js.map +1 -0
- package/dist/schemas/configuration-bundle-manifest.schema.json +143 -0
- package/dist/schemas/configuration-manifest.schema.json +109 -0
- package/dist/schemas/connection.schema.json +49 -0
- package/dist/schemas/core.d.ts +1333 -0
- package/dist/schemas/core.d.ts.map +1 -0
- package/dist/schemas/core.js +341 -0
- package/dist/schemas/core.js.map +1 -0
- package/dist/schemas/desktop-configuration-revision.schema.json +146 -0
- package/dist/schemas/execution-profile-revision.schema.json +235 -0
- package/dist/schemas/execution-receipt.schema.json +431 -0
- package/dist/schemas/host-adapter-qualification.schema.json +161 -0
- package/dist/schemas/host-qualification-policy.schema.json +50 -0
- package/dist/schemas/index.d.ts +11 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +34 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/inventory.d.ts +170 -0
- package/dist/schemas/inventory.d.ts.map +1 -0
- package/dist/schemas/inventory.js +87 -0
- package/dist/schemas/inventory.js.map +1 -0
- package/dist/schemas/model-definition.schema.json +429 -0
- package/dist/schemas/model-package-release.schema.json +594 -0
- package/dist/schemas/model-upgrade-advisory.schema.json +191 -0
- package/dist/schemas/operation-contract-document.schema.json +153 -0
- package/dist/schemas/persona-assignments.schema.json +125 -0
- package/dist/schemas/persona-registry-overlay.schema.json +93 -0
- package/dist/schemas/persona-source-document.schema.json +86 -0
- package/dist/schemas/persona-specification.schema.json +122 -0
- package/dist/schemas/price-revision.schema.json +299 -0
- package/dist/schemas/profile-assessment.schema.json +288 -0
- package/dist/schemas/scoped.d.ts +424 -0
- package/dist/schemas/scoped.d.ts.map +1 -0
- package/dist/schemas/scoped.js +203 -0
- package/dist/schemas/scoped.js.map +1 -0
- package/dist/schemas/usage-aggregate-query.schema.json +86 -0
- package/dist/schemas/usage-page.schema.json +22 -0
- package/dist/schemas/usage-query.schema.json +77 -0
- package/dist/schemas/usage-summary.schema.json +468 -0
- package/dist/schemas/usage.d.ts +527 -0
- package/dist/schemas/usage.d.ts.map +1 -0
- package/dist/schemas/usage.js +142 -0
- package/dist/schemas/usage.js.map +1 -0
- package/dist/scoped-configuration.d.ts +208 -0
- package/dist/scoped-configuration.d.ts.map +1 -0
- package/dist/scoped-configuration.js +425 -0
- package/dist/scoped-configuration.js.map +1 -0
- package/dist/scripts/emit-schemas.d.ts +2 -0
- package/dist/scripts/emit-schemas.d.ts.map +1 -0
- package/dist/scripts/emit-schemas.js +24 -0
- package/dist/scripts/emit-schemas.js.map +1 -0
- package/dist/scripts/verify-bundle.d.ts +3 -0
- package/dist/scripts/verify-bundle.d.ts.map +1 -0
- package/dist/scripts/verify-bundle.js +59 -0
- package/dist/scripts/verify-bundle.js.map +1 -0
- package/dist/validation.d.ts +11 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/validation.js +41 -0
- package/dist/validation.js.map +1 -0
- package/package.json +33 -6
- package/third-party-licenses/ajv-formats@3.0.1/LICENSE +21 -0
- package/third-party-licenses/ajv@8.20.0/LICENSE +22 -0
- package/third-party-licenses/fast-deep-equal@3.1.3/LICENSE +21 -0
- package/third-party-licenses/fast-uri@3.1.7/LICENSE +30 -0
- package/third-party-licenses/json-schema-traverse@1.0.0/LICENSE +21 -0
- package/third-party-licenses/require-from-string@2.0.2/license +21 -0
- package/third-party-licenses/typescript@5.9.3/LICENSE.txt +55 -0
- package/third-party-licenses/typescript@5.9.3/ThirdPartyNoticeText.txt +193 -0
- package/third-party-licenses.json +102 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# TECHIS Developer Integration License
|
|
2
|
+
|
|
3
|
+
Copyright (c) **2026 TECH-IS INC.** All rights reserved except as expressly granted below.
|
|
4
|
+
|
|
5
|
+
## 1. Parties, scope and acceptance
|
|
6
|
+
|
|
7
|
+
TECH-IS INC. ("TECHIS"), Ontario, Canada, offers this licence to each person or entity exercising its permissions
|
|
8
|
+
("you"). If you act for an entity, you must have authority to bind it. By exercising permissions under this licence,
|
|
9
|
+
you accept its terms. If you do not accept them, this licence grants you no permission to use or distribute the Software.
|
|
10
|
+
|
|
11
|
+
"Software" means only TECHIS-owned material supplied in `@techis/ai-runtime` and `@techis/ai-contracts`, including
|
|
12
|
+
their TECHIS-owned documentation and package-carried catalog data. This licence does not cover Studio, management,
|
|
13
|
+
management-api, advisor, usage, config-ui or unrelated tools. Additional TECHIS packages are not automatically covered.
|
|
14
|
+
"Integrated Application" means your application that incorporates the Software to provide its application functionality,
|
|
15
|
+
rather than offering the Software itself as a standalone package or substitute. Third-party material is governed by section 6.
|
|
16
|
+
|
|
17
|
+
## 2. Ownership and free integration rights
|
|
18
|
+
|
|
19
|
+
TECHIS retains ownership of the Software and its existing intellectual property. You retain ownership of your independently
|
|
20
|
+
created applications and original additions. Integration transfers neither party's underlying ownership to the other.
|
|
21
|
+
|
|
22
|
+
Subject to this licence, TECHIS grants you a worldwide, non-exclusive, royalty-free right to download, install, inspect,
|
|
23
|
+
execute and copy the Software as reasonably necessary to develop, test and operate Integrated Applications, commercially
|
|
24
|
+
or otherwise. No package-use fee or royalty is payable to TECHIS under this grant. Provider inference, API, hosting and
|
|
25
|
+
other external services are separate and may have their own charges and terms; no provider account or service access is granted.
|
|
26
|
+
|
|
27
|
+
The rights for each version you lawfully acquire continue indefinitely unless terminated under section 8. TECHIS may
|
|
28
|
+
offer future versions under different terms; doing so does not retroactively change this licence for previously acquired versions.
|
|
29
|
+
|
|
30
|
+
## 3. Distribution within applications
|
|
31
|
+
|
|
32
|
+
You may distribute copies reasonably necessary to run your Integrated Application, including copies embedded in browser
|
|
33
|
+
JavaScript bundles. You may charge for your application. Make this licence and the Software's copyright, ownership and
|
|
34
|
+
required third-party notices accessible with distributed copies, for example in accompanying files or an application notices view.
|
|
35
|
+
Do not remove those notices from retained source or package files.
|
|
36
|
+
|
|
37
|
+
Each recipient receives directly from TECHIS, subject to this licence, the limited right to install, copy and execute those
|
|
38
|
+
copies as necessary to use the Integrated Application. Recipients may make necessary backup copies. This direct grant does
|
|
39
|
+
not authorize standalone redistribution or further development except where that recipient independently complies with the
|
|
40
|
+
developer permissions in this licence. You may not purport to grant broader rights in TECHIS material or impose terms that
|
|
41
|
+
remove the recipient's direct rights under this licence. Your own application may have separate terms.
|
|
42
|
+
|
|
43
|
+
## 4. Integration and bug-fix changes
|
|
44
|
+
|
|
45
|
+
You may modify the Software for integration or to correct defects. Identify changed files or, where bundling removes file
|
|
46
|
+
boundaries, provide an accessible record identifying the changes. Retain original notices and do not represent that TECHIS
|
|
47
|
+
authored, approved or supports your modifications. You own your original additions, subject to TECHIS's rights in its underlying
|
|
48
|
+
work; no assignment of your intellectual property to TECHIS is required. Distribute modified Software only within the permissions
|
|
49
|
+
of section 3, with the same required notices and without limiting rights in underlying TECHIS material granted by this licence.
|
|
50
|
+
|
|
51
|
+
## 5. Standalone distribution and registry operations
|
|
52
|
+
|
|
53
|
+
Separate written permission from TECHIS is required to republish, relicense or resell the Software as a standalone product,
|
|
54
|
+
including a modified substitute. The application distribution allowed by section 3 is not standalone resale.
|
|
55
|
+
|
|
56
|
+
This restriction does not prohibit npm's hosting and distribution of TECHIS-authorized packages, ordinary package-manager
|
|
57
|
+
installation and caching, or internal build mirrors reasonably necessary for permitted integration. To the extent of its rights,
|
|
58
|
+
TECHIS permits the registry and its service providers to make and deliver the copies necessary for that authorized hosting and
|
|
59
|
+
distribution. This clause does not authorize unrelated public republication or override third-party rights.
|
|
60
|
+
|
|
61
|
+
## 6. Third-party material and external services
|
|
62
|
+
|
|
63
|
+
Third-party software, data and other material remain subject to their own applicable licences and notices. Those independent
|
|
64
|
+
permissions are not restricted by this licence. Preserve their required attribution, copyright and licence notices, including
|
|
65
|
+
when required in redistributed browser bundles. Consult the supplied THIRD_PARTY_NOTICES and accompanying third-party licence
|
|
66
|
+
files. This licence grants no rights in provider brands, accounts or services and makes no promise that a model will remain available.
|
|
67
|
+
|
|
68
|
+
## 7. Patents and branding
|
|
69
|
+
|
|
70
|
+
To the extent TECHIS controls the necessary rights, TECHIS grants a worldwide, non-exclusive, royalty-free licence under patent
|
|
71
|
+
claims necessarily infringed by permitted use of the Software as supplied by TECHIS, solely to exercise the permissions in this
|
|
72
|
+
licence. No grant extends to claims infringed only because of your modifications or combinations with other products. This grant
|
|
73
|
+
does not represent that TECHIS owns any patent or grant third-party patent rights, and includes no assurance of non-infringement.
|
|
74
|
+
|
|
75
|
+
No TECHIS trademark or endorsement rights are granted beyond accurate identification and attribution of the Software. No support,
|
|
76
|
+
service or provider entitlement arises by implication. Rights not expressly granted remain reserved, subject to mandatory law.
|
|
77
|
+
|
|
78
|
+
## 8. Material breach and termination
|
|
79
|
+
|
|
80
|
+
TECHIS may terminate your rights for a material breach that you do not cure within 30 days after receiving written notice
|
|
81
|
+
identifying the breach. Until termination, the other conditions of this licence continue to apply. Following termination,
|
|
82
|
+
stop new use and distribution and remove copies you retain, except archival copies required by law, which may not be used
|
|
83
|
+
for further development or operation.
|
|
84
|
+
|
|
85
|
+
Termination of a developer's rights does not terminate the direct rights of compliant recipients in copies already lawfully
|
|
86
|
+
delivered to them. Those recipients may continue using their Integrated Applications under section 3. Their own material breach
|
|
87
|
+
is separately subject to this section's notice and cure process. Sections addressing ownership, restrictions, third-party rights,
|
|
88
|
+
disclaimers, liability and disputes survive termination to the extent relevant; lawful recipient rights remain as stated above.
|
|
89
|
+
|
|
90
|
+
## 9. Warranty and support
|
|
91
|
+
|
|
92
|
+
To the fullest extent permitted by applicable law, the Software is provided "as is" and "as available", without express,
|
|
93
|
+
implied or statutory warranties, including merchantability, fitness for a particular purpose and non-infringement. TECHIS does
|
|
94
|
+
not promise uninterrupted or error-free operation, continued provider availability, updates or support. You are responsible for
|
|
95
|
+
evaluating suitability for your application. Nothing in this licence excludes a warranty or right that applicable law does not
|
|
96
|
+
permit to be excluded.
|
|
97
|
+
|
|
98
|
+
## 10. Liability
|
|
99
|
+
|
|
100
|
+
To the fullest extent permitted by applicable law, TECHIS is not liable for indirect, incidental, special or consequential
|
|
101
|
+
losses, or lost profits, arising from or relating to the Software or this licence. TECHIS's aggregate liability for direct
|
|
102
|
+
claims arising from or relating to this free Software or this licence will not exceed **CAD 100**, regardless of the theory
|
|
103
|
+
of liability and even if advised of the possibility of loss. These exclusions and limits do not apply to liability that
|
|
104
|
+
applicable law prohibits excluding or limiting. This section does not reduce mandatory rights.
|
|
105
|
+
|
|
106
|
+
## 11. Governing law and disputes
|
|
107
|
+
|
|
108
|
+
This licence is governed by Ontario law and the federal laws of Canada applicable there, subject to mandatory protections
|
|
109
|
+
that cannot be displaced by agreement. Disputes are to be brought in courts of competent jurisdiction in Ontario, except
|
|
110
|
+
where mandatory law requires another forum. No arbitration requirement is imposed.
|
|
111
|
+
|
|
112
|
+
## 12. Notices, permissions and administration
|
|
113
|
+
|
|
114
|
+
Send permission requests and legal notices to TECHIS at **arinze@techinceptions.com**. Written electronic
|
|
115
|
+
communications are permitted. A breach notice must identify the material breach; its cure period begins on receipt,
|
|
116
|
+
not merely on attempted delivery. For notices to you, TECHIS may use contact details you have supplied. This clause does not
|
|
117
|
+
replace any legally required method for service of court documents. No postal address is specified by this licence.
|
|
118
|
+
|
|
119
|
+
Any additional permission or change to this licence for an acquired version requires written authorization from TECHIS.
|
|
120
|
+
Failure to enforce a term on one occasion does not itself waive that term. If a provision cannot lawfully be enforced,
|
|
121
|
+
the remainder continues to the extent it can operate consistently with applicable law. This licence states the permissions
|
|
122
|
+
for the covered TECHIS material; separate third-party licences and separate written agreements retain their own scope.
|
package/README.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# @techis/ai-contracts
|
|
2
|
+
|
|
3
|
+
Release 0.3.0-rc.15. Registry installation is available after this version is published.
|
|
4
|
+
|
|
5
|
+
Versioned TECHIS domain contracts, TypeScript declarations, JSON schema validation and the reviewed packaged model/catalog delivery. This is the required dependency of `@techis/ai-runtime`; both versions must match.
|
|
6
|
+
|
|
7
|
+
Ordinary execution consumers install runtime. If your application imports contracts APIs directly, declare the matching version explicitly after publication:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install @techis/ai-runtime@0.3.0-rc.15 @techis/ai-contracts@0.3.0-rc.15
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The package includes catalog history, a pinned trust anchor and exact published profile offers. `getPackagedCatalogDeliveries()` returns the chain; `verifyCatalogDelivery()` checks its contract and integrity. Catalog checking and compatibility/composition helpers do not activate profiles or rewrite a consumer's selection. Runtime's `getInstalledCatalogDelivery()` additionally checks the installed pair's version.
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import { getPackagedCatalogDeliveries, verifyCatalogDelivery } from '@techis/ai-contracts';
|
|
17
|
+
|
|
18
|
+
const chain = getPackagedCatalogDeliveries().map(verifyCatalogDelivery);
|
|
19
|
+
console.log(chain.at(-1).deliveryHash);
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
This example is local and makes no provider call. A hash proves integrity relative to a trusted input; it is not independent publisher authentication or a guarantee of live model access or workload fitness.
|
|
23
|
+
|
|
24
|
+
The npm dependencies ajv and ajv-formats and their dependencies retain their own licences. See
|
|
25
|
+
[THIRD_PARTY_NOTICES](THIRD_PARTY_NOTICES) and the accompanying full upstream texts. TECH-IS INC.'s
|
|
26
|
+
[TECHIS Developer Integration License](LICENSE) covers only TECHIS-owned material and permits free commercial
|
|
27
|
+
integration subject to its terms. Provider/API charges remain separate. Legal and permission enquiries:
|
|
28
|
+
arinze@techinceptions.com.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
THIRD-PARTY NOTICES
|
|
2
|
+
|
|
3
|
+
The TECHIS Developer Integration License covers only TECHIS-owned material in runtime/contracts. Third-party rights remain independent. These archives do not bundle the dependency implementations. The following full upstream licence texts are included for the locked dependency versions and downstream bundling. Semver ranges can resolve other versions; preserve the notices for the versions actually distributed. TypeScript is a compiler reference only, not a runtime dependency or TECHIS-owned code.
|
|
4
|
+
|
|
5
|
+
ajv@8.20.0 - MIT
|
|
6
|
+
external npm dependency; not bundled in the runtime/contracts archives
|
|
7
|
+
third-party-licenses/ajv@8.20.0/LICENSE
|
|
8
|
+
|
|
9
|
+
fast-deep-equal@3.1.3 - MIT
|
|
10
|
+
external npm dependency; not bundled in the runtime/contracts archives
|
|
11
|
+
third-party-licenses/fast-deep-equal@3.1.3/LICENSE
|
|
12
|
+
|
|
13
|
+
fast-uri@3.1.7 - BSD-3-Clause
|
|
14
|
+
external npm dependency; not bundled in the runtime/contracts archives
|
|
15
|
+
third-party-licenses/fast-uri@3.1.7/LICENSE
|
|
16
|
+
|
|
17
|
+
json-schema-traverse@1.0.0 - MIT
|
|
18
|
+
external npm dependency; not bundled in the runtime/contracts archives
|
|
19
|
+
third-party-licenses/json-schema-traverse@1.0.0/LICENSE
|
|
20
|
+
|
|
21
|
+
require-from-string@2.0.2 - MIT
|
|
22
|
+
external npm dependency; not bundled in the runtime/contracts archives
|
|
23
|
+
third-party-licenses/require-from-string@2.0.2/license
|
|
24
|
+
|
|
25
|
+
ajv-formats@3.0.1 - MIT
|
|
26
|
+
external npm dependency; not bundled in the runtime/contracts archives
|
|
27
|
+
third-party-licenses/ajv-formats@3.0.1/LICENSE
|
|
28
|
+
|
|
29
|
+
typescript@5.9.3 - Apache-2.0
|
|
30
|
+
compiler reference only; not shipped
|
|
31
|
+
third-party-licenses/typescript@5.9.3/LICENSE.txt
|
|
32
|
+
third-party-licenses/typescript@5.9.3/ThirdPartyNoticeText.txt
|
|
33
|
+
|
|
34
|
+
See third-party-licenses.json for exact notice hashes and scope.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ExecutionProfileRevision } from "./entities.js";
|
|
2
|
+
export interface ApplicationRegistration {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ApprovedProfile {
|
|
7
|
+
profileId: string;
|
|
8
|
+
revision: string;
|
|
9
|
+
}
|
|
10
|
+
/** Application-wide options; these do not change any environment's assignments. */
|
|
11
|
+
export interface ProfileAvailability {
|
|
12
|
+
applicationId: string;
|
|
13
|
+
revision?: string;
|
|
14
|
+
profiles: ApprovedProfile[];
|
|
15
|
+
updatedBy?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface SelectableProfiles {
|
|
18
|
+
availability: ProfileAvailability;
|
|
19
|
+
profiles: ExecutionProfileRevision[];
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=availability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"availability.d.ts","sourceRoot":"","sources":["../src/availability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAE9D,MAAM,WAAW,uBAAuB;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,mFAAmF;AACnF,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,mBAAmB,CAAC;IAClC,QAAQ,EAAE,wBAAwB,EAAE,CAAC;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"availability.js","sourceRoot":"","sources":["../src/availability.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type InstalledAdapterInfo } from "./compatibility.js";
|
|
2
|
+
import type { OperationRequirementV2, ScopedConfigurationSnapshotV2, DesktopConfigurationRevisionV2, AdoptionDependencyDiffV2 } from "./scoped-configuration.js";
|
|
3
|
+
import type { CatalogRelease } from "./entities.js";
|
|
4
|
+
import type { CatalogCompositionProof } from "./catalog-composition.js";
|
|
5
|
+
/** Checks the complete resulting pins, including unchanged bindings and every adopted workspace. No selection is changed. */
|
|
6
|
+
export declare function evaluateScopedCatalogAdoptionV2(input: {
|
|
7
|
+
snapshot: ScopedConfigurationSnapshotV2;
|
|
8
|
+
installedAdapters: Record<string, InstalledAdapterInfo>;
|
|
9
|
+
/** Trusted immutable documents from the same publication lineage, indexed by their exact catalog revision. */
|
|
10
|
+
minimumCatalogs?: Record<string, CatalogRelease>;
|
|
11
|
+
catalogCompositions?: CatalogCompositionProof[];
|
|
12
|
+
/** Consumer-owned inheritance or wildcard rules; the default is the operation's exact binding. */
|
|
13
|
+
resolveOperationBindings?: (operation: OperationRequirementV2) => string[];
|
|
14
|
+
}): {
|
|
15
|
+
compatible: boolean;
|
|
16
|
+
validationReasons: string[];
|
|
17
|
+
};
|
|
18
|
+
/** Review the full exact-reference changes, including removals and desktop-wide catalog impact. */
|
|
19
|
+
export declare function diffDesktopConfigurationV2(base: DesktopConfigurationRevisionV2 | null, next: DesktopConfigurationRevisionV2): AdoptionDependencyDiffV2[];
|
|
20
|
+
//# sourceMappingURL=catalog-adoption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-adoption.d.ts","sourceRoot":"","sources":["../src/catalog-adoption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,KAAK,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,8BAA8B,EACjG,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAExE,6HAA6H;AAC7H,wBAAgB,+BAA+B,CAAC,KAAK,EAAE;IACrD,QAAQ,EAAE,6BAA6B,CAAC;IACxC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IACxD,8GAA8G;IAC9G,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACjD,mBAAmB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAChD,kGAAkG;IAClG,wBAAwB,CAAC,EAAE,CAAC,SAAS,EAAE,sBAAsB,KAAK,MAAM,EAAE,CAAC;CAC5E,GAAG;IAAE,UAAU,EAAE,OAAO,CAAC;IAAC,iBAAiB,EAAE,MAAM,EAAE,CAAA;CAAE,CAyCvD;AAED,mGAAmG;AACnG,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,8BAA8B,GAAG,IAAI,EACpF,IAAI,EAAE,8BAA8B,GAAG,wBAAwB,EAAE,CA2BlE"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { evaluateProfileCompatibility } from "./compatibility.js";
|
|
2
|
+
import { hashDocumentV2, validateScopedConfigurationSnapshotV2 } from "./scoped-configuration.js";
|
|
3
|
+
/** Checks the complete resulting pins, including unchanged bindings and every adopted workspace. No selection is changed. */
|
|
4
|
+
export function evaluateScopedCatalogAdoptionV2(input) {
|
|
5
|
+
const reasons = [];
|
|
6
|
+
const { snapshot } = input;
|
|
7
|
+
try {
|
|
8
|
+
validateScopedConfigurationSnapshotV2(snapshot, snapshot.scope);
|
|
9
|
+
const prices = new Set(snapshot.catalog.prices.map(price => price.priceRevisionId));
|
|
10
|
+
for (const model of snapshot.catalog.models) {
|
|
11
|
+
if (model.activePriceRevisionId && !prices.has(model.activePriceRevisionId)) {
|
|
12
|
+
reasons.push(`Model ${model.catalogId} references missing price ${model.activePriceRevisionId}.`);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
const check = (binding, operation) => {
|
|
16
|
+
const ref = snapshot.desktopRevision.bindings[binding];
|
|
17
|
+
const profile = ref && snapshot.profiles[ref.profileId];
|
|
18
|
+
if (!profile) {
|
|
19
|
+
reasons.push(`Operation ${operation?.operationId ?? "(binding)"} has no profile binding ${binding}.`);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const result = evaluateProfileCompatibility({ profile, catalog: snapshot.catalog, installedAdapters: input.installedAdapters,
|
|
23
|
+
catalogCompositions: input.catalogCompositions,
|
|
24
|
+
minimumCatalog: profile.catalogCompatibility?.minCatalogRevision ?
|
|
25
|
+
input.minimumCatalogs?.[profile.catalogCompatibility.minCatalogRevision] : undefined,
|
|
26
|
+
adapterRequirements: snapshot.adapterRequirements, requestingApplicationId: snapshot.scope.applicationId, operation });
|
|
27
|
+
reasons.push(...result.reasons.map(reason => `${binding}${operation ? ` / ${operation.operationId}` : ""}: ${reason.message}`));
|
|
28
|
+
};
|
|
29
|
+
for (const binding of Object.keys(snapshot.desktopRevision.bindings))
|
|
30
|
+
check(binding);
|
|
31
|
+
for (const workspaceId of Object.keys(snapshot.desktopRevision.workspaces)) {
|
|
32
|
+
validateScopedConfigurationSnapshotV2({ ...snapshot, scope: { ...snapshot.scope, workspaceId } }, { ...snapshot.scope, workspaceId });
|
|
33
|
+
const workspace = snapshot.workspaces[workspaceId];
|
|
34
|
+
for (const operation of workspace.operationContract.operations) {
|
|
35
|
+
const bindings = input.resolveOperationBindings?.(operation) ?? [operation.bindingId];
|
|
36
|
+
for (const binding of bindings) {
|
|
37
|
+
const parent = binding.includes(":") ? binding.slice(0, binding.indexOf(":")) : binding;
|
|
38
|
+
if (!workspace.personaSources[binding] && !workspace.personaSources[parent]) {
|
|
39
|
+
reasons.push(`Workspace ${workspaceId} operation ${operation.operationId} has no persona source for ${binding}.`);
|
|
40
|
+
}
|
|
41
|
+
check(binding, operation);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
reasons.push(error instanceof Error ? error.message : String(error));
|
|
48
|
+
}
|
|
49
|
+
return { compatible: reasons.length === 0, validationReasons: [...new Set(reasons)] };
|
|
50
|
+
}
|
|
51
|
+
/** Review the full exact-reference changes, including removals and desktop-wide catalog impact. */
|
|
52
|
+
export function diffDesktopConfigurationV2(base, next) {
|
|
53
|
+
const diff = [];
|
|
54
|
+
const add = (kind, key, binding, before, after, from, to) => {
|
|
55
|
+
const identity = (value) => value === undefined ? null : hashDocumentV2(value);
|
|
56
|
+
if (identity(before) !== identity(after))
|
|
57
|
+
diff.push({ kind, key, binding, from, to });
|
|
58
|
+
};
|
|
59
|
+
add("catalog", "catalog", "", base?.catalog, next.catalog, base?.catalog.revision ?? null, next.catalog.revision);
|
|
60
|
+
for (const binding of new Set([...Object.keys(base?.bindings ?? {}), ...Object.keys(next.bindings)])) {
|
|
61
|
+
const before = base?.bindings[binding], after = next.bindings[binding];
|
|
62
|
+
add("binding", binding, binding, before, after, before ? `${before.profileId}@${before.revision}` : null, after ? `${after.profileId}@${after.revision}` : null);
|
|
63
|
+
}
|
|
64
|
+
for (const key of new Set([...Object.keys(base?.connections ?? {}), ...Object.keys(next.connections)])) {
|
|
65
|
+
add("connection", key, "", base?.connections[key], next.connections[key], base?.connections[key]?.revision ?? null, next.connections[key]?.revision ?? null);
|
|
66
|
+
}
|
|
67
|
+
for (const workspace of new Set([...Object.keys(base?.workspaces ?? {}), ...Object.keys(next.workspaces)])) {
|
|
68
|
+
const before = base?.workspaces[workspace], after = next.workspaces[workspace];
|
|
69
|
+
for (const binding of new Set([...Object.keys(before?.personaSources ?? {}), ...Object.keys(after?.personaSources ?? {})])) {
|
|
70
|
+
add("persona-source", workspace, binding, before?.personaSources[binding], after?.personaSources[binding], before?.personaSources[binding]?.revision ?? null, after?.personaSources[binding]?.revision ?? null);
|
|
71
|
+
}
|
|
72
|
+
add("operation-contract", workspace, "", before?.operationContract, after?.operationContract, before?.operationContract?.revision ?? null, after?.operationContract?.revision ?? null);
|
|
73
|
+
}
|
|
74
|
+
return diff.sort((a, b) => `${a.kind}:${a.key}:${a.binding}`.localeCompare(`${b.kind}:${b.key}:${b.binding}`));
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=catalog-adoption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-adoption.js","sourceRoot":"","sources":["../src/catalog-adoption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAA6B,MAAM,oBAAoB,CAAC;AAG7F,OAAO,EAAE,cAAc,EAAE,qCAAqC,EAAE,MAAM,2BAA2B,CAAC;AAIlG,6HAA6H;AAC7H,MAAM,UAAU,+BAA+B,CAAC,KAQ/C;IACC,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,IAAI,CAAC;QACH,qCAAqC,CAAC,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;QACpF,KAAK,MAAM,KAAK,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YAC5C,IAAI,KAAK,CAAC,qBAAqB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,qBAAqB,CAAC,EAAE,CAAC;gBAC5E,OAAO,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,SAAS,6BAA6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
|
+
}
|
|
6
|
+
/** Proves exact retained ancestry even for historical catalogs with no sequence. Every derived byte is recomputed. */
|
|
7
|
+
export declare function hasVerifiedCatalogAncestor(catalog: CatalogRelease, minimum: CatalogRelease, proofs: CatalogCompositionProof[]): boolean;
|
|
8
|
+
/** A consumer composite is a new explicit document, never a rewrite of either source's catalog. No last-value-wins merging. */
|
|
9
|
+
export declare function composeCatalogForAdoption(retained: CatalogRelease, incoming: CatalogRelease): CatalogRelease;
|
|
10
|
+
//# sourceMappingURL=catalog-composition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-composition.d.ts","sourceRoot":"","sources":["../src/catalog-composition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAIpD,MAAM,WAAW,uBAAuB;IAAG,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,EAAE,cAAc,CAAA;CAAE;AAE3F,sHAAsH;AACtH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAevI;AACD,+HAA+H;AAC/H,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,GAAG,cAAc,CAwB5G"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { assertValidEntity } from "./validation.js";
|
|
2
|
+
import { canonicalJsonV2, hashDocumentV2 } from "./scoped-configuration.js";
|
|
3
|
+
const same = (a, b) => canonicalJsonV2(a) === canonicalJsonV2(b);
|
|
4
|
+
/** Proves exact retained ancestry even for historical catalogs with no sequence. Every derived byte is recomputed. */
|
|
5
|
+
export function hasVerifiedCatalogAncestor(catalog, minimum, proofs) {
|
|
6
|
+
const required = hashDocumentV2(minimum), visited = new Set();
|
|
7
|
+
let current = catalog;
|
|
8
|
+
for (let count = 0; count <= proofs.length; count++) {
|
|
9
|
+
const hash = hashDocumentV2(current);
|
|
10
|
+
if (hash === required)
|
|
11
|
+
return true;
|
|
12
|
+
if (visited.has(hash))
|
|
13
|
+
return false;
|
|
14
|
+
visited.add(hash);
|
|
15
|
+
const proof = proofs.find(value => {
|
|
16
|
+
try {
|
|
17
|
+
return hashDocumentV2(composeCatalogForAdoption(value.base, value.incoming)) === hash;
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
if (!proof)
|
|
24
|
+
return false;
|
|
25
|
+
current = proof.base;
|
|
26
|
+
}
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
/** A consumer composite is a new explicit document, never a rewrite of either source's catalog. No last-value-wins merging. */
|
|
30
|
+
export function composeCatalogForAdoption(retained, incoming) {
|
|
31
|
+
assertValidEntity("catalog-release", retained);
|
|
32
|
+
assertValidEntity("catalog-release", incoming);
|
|
33
|
+
const merge = (left, right, key) => {
|
|
34
|
+
const result = new Map(left.map(x => [key(x), x]));
|
|
35
|
+
if (result.size !== left.length || new Set(right.map(key)).size !== right.length)
|
|
36
|
+
throw new Error("Duplicate catalog identity.");
|
|
37
|
+
for (const value of right) {
|
|
38
|
+
const previous = result.get(key(value));
|
|
39
|
+
if (previous && !same(previous, value))
|
|
40
|
+
throw new Error(`Conflicting catalog definition: ${key(value)}. Review catalog migration explicitly.`);
|
|
41
|
+
result.set(key(value), value);
|
|
42
|
+
}
|
|
43
|
+
return [...result.values()];
|
|
44
|
+
};
|
|
45
|
+
const models = merge(retained.models, incoming.models, m => m.catalogId);
|
|
46
|
+
const prices = merge(retained.prices, incoming.prices, p => p.priceRevisionId);
|
|
47
|
+
if (same(models, retained.models) && same(prices, retained.prices))
|
|
48
|
+
return structuredClone(retained);
|
|
49
|
+
const hash = hashDocumentV2({ retained: hashDocumentV2(retained), incoming: hashDocumentV2(incoming) });
|
|
50
|
+
const catalog = { schemaVersion: Math.max(retained.schemaVersion, incoming.schemaVersion),
|
|
51
|
+
catalogRevision: `composite-${hash}`, publishedAt: incoming.publishedAt, models, prices,
|
|
52
|
+
...(retained.releaseSequence ? { releaseSequence: retained.releaseSequence + 1 } : {}),
|
|
53
|
+
notes: `Explicit composite of ${retained.catalogRevision} (${hashDocumentV2(retained)}) and ${incoming.catalogRevision} (${hashDocumentV2(incoming)}).` };
|
|
54
|
+
// This is a descendant of the consumer's retained catalog, bound to its exact hash. Never use the incoming publisher's sequence.
|
|
55
|
+
assertValidEntity("catalog-release", catalog);
|
|
56
|
+
return catalog;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=catalog-composition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-composition.js","sourceRoot":"","sources":["../src/catalog-composition.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC5E,MAAM,IAAI,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,eAAe,CAAC,CAAC,CAAC,CAAC;AAGnF,sHAAsH;AACtH,MAAM,UAAU,0BAA0B,CAAC,OAAuB,EAAE,OAAuB,EAAE,MAAiC;IAC5H,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IACtE,IAAI,OAAO,GAAG,OAAO,CAAC;IACtB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACpD,MAAM,IAAI,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;QACrC,IAAI,IAAI,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC;QACnC,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,OAAO,K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E,CAAC,CAAC,CAAC,EAAE,CAAC;QACtF,KAAK,EAAE,yBAAyB,QAAQ,CAAC,eAAe,KAAK,cAAc,CAAC,QAAQ,CAAC,SAAS,QAAQ,CAAC,eAAe,KAAK,cAAc,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC5J,iIAAiI;IACjI,iBAAiB,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAC9C,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { CatalogRelease, ExecutionProfileRevision } from "./entities.js";
|
|
2
|
+
import { profileIdentityConfiguration } from "./profile-identity.js";
|
|
3
|
+
import { type ModelPackageRelease } from "./model-maintenance.js";
|
|
4
|
+
export interface PublishedProfileOffer {
|
|
5
|
+
name: string;
|
|
6
|
+
profile: ExecutionProfileRevision;
|
|
7
|
+
sha256: string;
|
|
8
|
+
}
|
|
9
|
+
/** Public, immutable distribution unit. Catalog review does not claim to evaluate profile workload quality. */
|
|
10
|
+
export interface CatalogDelivery {
|
|
11
|
+
schemaVersion: 1;
|
|
12
|
+
kind: "techis-catalog-delivery";
|
|
13
|
+
sourceId: string;
|
|
14
|
+
sequence: number;
|
|
15
|
+
parentHash: string | null;
|
|
16
|
+
compatibleRuntime: string;
|
|
17
|
+
publishedBy: string;
|
|
18
|
+
publishedAt: string;
|
|
19
|
+
release: ModelPackageRelease;
|
|
20
|
+
profiles: PublishedProfileOffer[];
|
|
21
|
+
deliveryHash: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function catalogDeliveryIdentity(value: CatalogDelivery): string;
|
|
24
|
+
export declare function createCatalogDelivery(input: Omit<CatalogDelivery, "schemaVersion" | "kind" | "deliveryHash">): CatalogDelivery;
|
|
25
|
+
export declare function verifyCatalogDelivery(value: unknown): CatalogDelivery;
|
|
26
|
+
/** New producers never reuse a legacy name-only ID for different core configuration. Historical references remain untouched. */
|
|
27
|
+
export declare function generatedProfileId(namespace: string, profile: Parameters<typeof profileIdentityConfiguration>[0]): string;
|
|
28
|
+
export type CatalogEntryChange = "new" | "unchanged" | "absent" | "description" | "policy" | "facts";
|
|
29
|
+
export interface CatalogComparisonEntry {
|
|
30
|
+
kind: "profile" | "model";
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
change: CatalogEntryChange;
|
|
34
|
+
beforeHash: string | null;
|
|
35
|
+
afterHash: string | null;
|
|
36
|
+
beforeRevision: string | null;
|
|
37
|
+
afterRevision: string | null;
|
|
38
|
+
providerRetired: boolean;
|
|
39
|
+
/** Offer withdrawal does not imply provider retirement or revoke retained references. */
|
|
40
|
+
withdrawn: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare function compareCatalogDelivery(base: {
|
|
43
|
+
catalog: CatalogRelease;
|
|
44
|
+
profiles: PublishedProfileOffer[];
|
|
45
|
+
}, next: CatalogDelivery): CatalogComparisonEntry[];
|
|
46
|
+
export { composeCatalogForAdoption } from "./catalog-composition.js";
|
|
47
|
+
//# sourceMappingURL=catalog-delivery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-delivery.d.ts","sourceRoot":"","sources":["../src/catalog-delivery.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAG9E,OAAO,EAAiC,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAEpG,OAAO,EAA6B,KAAK,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7F,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,wBAAwB,CAAC;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,+GAA+G;AAC/G,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,CAAC,CAAC;IACjB,IAAI,EAAE,yBAAyB,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,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c,CAAC;IAAC,QAAQ,EAAE,qBAAqB,EAAE,CAAA;CAAE,EAAE,IAAI,EAAE,eAAe,4BAqBjI;AAED,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { evaluateProfileCompatibility } from "./compatibility.js";
|
|
2
|
+
import { assertValidEntity } from "./validation.js";
|
|
3
|
+
import { canonicalJsonV2, hashDocumentV2 } from "./scoped-configuration.js";
|
|
4
|
+
import { assertStableProfileIdentities, profileIdentityConfiguration } from "./profile-identity.js";
|
|
5
|
+
import { containsSecretShapedMaterial } from "./configuration-bundle.js";
|
|
6
|
+
import { verifyModelPackageRelease } from "./model-maintenance.js";
|
|
7
|
+
export function catalogDeliveryIdentity(value) {
|
|
8
|
+
const { deliveryHash: _ignored, ...body } = value;
|
|
9
|
+
return hashDocumentV2(body);
|
|
10
|
+
}
|
|
11
|
+
export function createCatalogDelivery(input) {
|
|
12
|
+
const value = { ...structuredClone(input), schemaVersion: 1, kind: "techis-catalog-delivery", deliveryHash: "" };
|
|
13
|
+
value.deliveryHash = catalogDeliveryIdentity(value);
|
|
14
|
+
return verifyCatalogDelivery(value);
|
|
15
|
+
}
|
|
16
|
+
export function verifyCatalogDelivery(value) {
|
|
17
|
+
const d = value;
|
|
18
|
+
if (!d || d.schemaVersion !== 1 || d.kind !== "techis-catalog-delivery" || typeof d.sourceId !== "string" || !/^[a-z0-9][a-z0-9.-]{0,99}$/.test(d.sourceId)
|
|
19
|
+
|| !Number.isSafeInteger(d.sequence) || d.sequence < 1 || (d.parentHash !== null && !/^[a-f0-9]{64}$/.test(d.parentHash))
|
|
20
|
+
|| (d.sequence === 1) !== (d.parentHash === null) || !d.compatibleRuntime || !d.publishedBy
|
|
21
|
+
|| !Number.isFinite(Date.parse(d.publishedAt)) || !Array.isArray(d.profiles) || d.profiles.length > 1000
|
|
22
|
+
|| d.deliveryHash !== catalogDeliveryIdentity(d) || containsSecretShapedMaterial(d))
|
|
23
|
+
throw new Error("Invalid catalog delivery.");
|
|
24
|
+
verifyModelPackageRelease(d.release);
|
|
25
|
+
const safeId = (value) => /^[a-zA-Z0-9][a-zA-Z0-9._-]{0,179}$/.test(value) && value !== "." && value !== "..";
|
|
26
|
+
if (!safeId(d.release.catalog.catalogRevision) || !safeId(d.release.baseCatalog.catalogRevision))
|
|
27
|
+
throw new Error("Unsafe catalog revision.");
|
|
28
|
+
if (Date.parse(d.publishedAt) < Date.parse(d.release.builtAt))
|
|
29
|
+
throw new Error("Delivery predates its reviewed release.");
|
|
30
|
+
const ids = new Set();
|
|
31
|
+
for (const offer of d.profiles) {
|
|
32
|
+
assertValidEntity("execution-profile-revision", offer.profile);
|
|
33
|
+
const p = offer.profile;
|
|
34
|
+
if (!offer.name?.trim() || !safeId(p.profileId) || !safeId(p.revision) || p.status !== "published" || p.visibility !== "shared" || p.owner.applicationId !== "shared"
|
|
35
|
+
|| !p.publishedBy || !p.publishedAt || Date.parse(p.publishedAt) > Date.parse(d.publishedAt)
|
|
36
|
+
|| ids.has(p.profileId) || offer.sha256 !== hashDocumentV2(p))
|
|
37
|
+
throw new Error("Invalid or duplicate published profile offer.");
|
|
38
|
+
const compatibility = evaluateProfileCompatibility({ profile: p, catalog: d.release.catalog,
|
|
39
|
+
installedAdapters: Object.fromEntries(d.release.catalog.models.map(m => [m.adapterId, { version: d.release.packageVersion }])) });
|
|
40
|
+
if (!compatibility.compatible)
|
|
41
|
+
throw new Error("Incompatible published offer: " + compatibility.reasons.map(r => r.message).join("; "));
|
|
42
|
+
ids.add(p.profileId);
|
|
43
|
+
for (const slot of [p.primary, ...p.fallbacks]) {
|
|
44
|
+
if (!d.release.catalog.models.some(m => m.catalogId === slot.catalogId))
|
|
45
|
+
throw new Error("Offered model is absent from reviewed catalog.");
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
assertStableProfileIdentities(d.profiles.map(o => o.profile));
|
|
49
|
+
return structuredClone(d);
|
|
50
|
+
}
|
|
51
|
+
/** New producers never reuse a legacy name-only ID for different core configuration. Historical references remain untouched. */
|
|
52
|
+
export function generatedProfileId(namespace, profile) {
|
|
53
|
+
const prefix = namespace.replace(/[^a-zA-Z0-9._-]/g, "-").slice(0, 100) || "profile";
|
|
54
|
+
return `${prefix}-${hashDocumentV2(profileIdentityConfiguration(profile))}`;
|
|
55
|
+
}
|
|
56
|
+
const same = (a, b) => canonicalJsonV2(a) === canonicalJsonV2(b);
|
|
57
|
+
function behavior(p) {
|
|
58
|
+
const { purpose: _purpose, revision: _revision, basedOnRevision: _base, createdAt: _created, publishedBy: _by, publishedAt: _at, ...rest } = p;
|
|
59
|
+
return rest;
|
|
60
|
+
}
|
|
61
|
+
export function compareCatalogDelivery(base, next) {
|
|
62
|
+
verifyCatalogDelivery(next);
|
|
63
|
+
assertStableProfileIdentities([...base.profiles, ...next.profiles].map(o => o.profile));
|
|
64
|
+
const entries = [];
|
|
65
|
+
for (const id of new Set([...base.profiles, ...next.profiles].map(o => o.profile.profileId))) {
|
|
66
|
+
const a = base.profiles.find(o => o.profile.profileId === id), b = next.profiles.find(o => o.profile.profileId === id);
|
|
67
|
+
const change = !a ? "new" : !b ? "absent" : !same(behavior(a.profile), behavior(b.profile)) ? "policy"
|
|
68
|
+
: a.name !== b.name || a.profile.purpose !== b.profile.purpose ? "description" : "unchanged";
|
|
69
|
+
entries.push({ kind: "profile", id, name: (b ?? a).name, change, beforeHash: a?.sha256 ?? null, afterHash: b?.sha256 ?? null,
|
|
70
|
+
beforeRevision: a?.profile.revision ?? null, afterRevision: b?.profile.revision ?? null, withdrawn: !b,
|
|
71
|
+
providerRetired: !!b && [b.profile.primary, ...b.profile.fallbacks].some(s => next.release.catalog.models.find(m => m.catalogId === s.catalogId)?.lifecycle.status === "retired") });
|
|
72
|
+
}
|
|
73
|
+
for (const id of new Set([...base.catalog.models, ...next.release.catalog.models].map(m => m.catalogId))) {
|
|
74
|
+
const a = base.catalog.models.find(m => m.catalogId === id), b = next.release.catalog.models.find(m => m.catalogId === id);
|
|
75
|
+
entries.push({ kind: "model", id, name: (b ?? a).displayName,
|
|
76
|
+
change: !a ? "new" : !b ? "absent" : same(a, b) ? "unchanged" : "facts", beforeHash: a ? hashDocumentV2(a) : null,
|
|
77
|
+
afterHash: b ? hashDocumentV2(b) : null, beforeRevision: a ? base.catalog.catalogRevision : null,
|
|
78
|
+
afterRevision: b ? next.release.catalog.catalogRevision : null, withdrawn: !b, providerRetired: (b ?? a)?.lifecycle.status === "retired" });
|
|
79
|
+
}
|
|
80
|
+
return entries.sort((a, b) => `${a.kind}:${a.id}`.localeCompare(`${b.kind}:${b.id}`));
|
|
81
|
+
}
|
|
82
|
+
export { composeCatalogForAdoption } from "./catalog-composition.js";
|
|
83
|
+
//# sourceMappingURL=catalog-delivery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-delivery.js","sourceRoot":"","sources":["../src/catalog-delivery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACpG,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAA4B,MAAM,wBAAwB,CAAC;AAuB7F,MAAM,UAAU,uBAAuB,CAAC,KAAsB;IAC5D,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAClD,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,KAAuE;IAC3G,MAAM,KAAK,GAAoB,EAAE,GAAG,eAAe,CAAC,KAAK,CAAC,EAA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AAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI;YAChG,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC,CAAC;IAChJ,CAAC;IACD,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AACxF,CAAC;AAED,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type CatalogDelivery } from "./catalog-delivery.js";
|
|
2
|
+
export declare const PACKAGED_CATALOG_TRUST: {
|
|
3
|
+
sourceId: string;
|
|
4
|
+
initialDeliveryHash: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function getPackagedCatalogDelivery(): CatalogDelivery;
|
|
7
|
+
export declare function getPackagedCatalogDeliveries(): CatalogDelivery[];
|
|
8
|
+
//# sourceMappingURL=catalog-package-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-package-data.d.ts","sourceRoot":"","sources":["../src/catalog-package-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAEpF,eAAO,MAAM,sBAAsB;;;CAAwH,CAAC;AAqvE5J,wBAAgB,0BAA0B,IAAI,eAAe,CAoVlB;AAC3C,wBAAgB,4BAA4B,IAAI,eAAe,EAAE,CAAkF"}
|