@skillsregistry/contracts 1.0.1 → 2.0.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/dist/responses.d.ts +53 -53
- package/dist/schemas.test.js +280 -1
- package/dist/schemas.test.js.map +1 -1
- package/dist/upstream.d.ts +472 -16
- package/dist/upstream.d.ts.map +1 -1
- package/dist/upstream.js +201 -0
- package/dist/upstream.js.map +1 -1
- package/package.json +9 -9
- package/LICENSE +0 -201
package/dist/upstream.js
CHANGED
|
@@ -14,6 +14,82 @@
|
|
|
14
14
|
// ══════════════════════════════════════════════════════════════════════════════
|
|
15
15
|
import { z } from 'zod';
|
|
16
16
|
// ──────────────────────────────────────────────────────────────────────────────
|
|
17
|
+
// Search — POST /v1/search (per cortex.md §6.2 SkillsRegistry service binding)
|
|
18
|
+
// ──────────────────────────────────────────────────────────────────────────────
|
|
19
|
+
/**
|
|
20
|
+
* Risk appetite. Domain layer maps to a numeric trust threshold + an
|
|
21
|
+
* allowVulnerable flag; when the caller sets `minTrust` / `allowVulnerable`
|
|
22
|
+
* explicitly, those override the appetite-derived values.
|
|
23
|
+
*/
|
|
24
|
+
export const AppetiteSchema = z.enum([
|
|
25
|
+
'strict',
|
|
26
|
+
'cautious',
|
|
27
|
+
'balanced',
|
|
28
|
+
'adventurous',
|
|
29
|
+
]);
|
|
30
|
+
/**
|
|
31
|
+
* Visibility bands per cortex.md §16.6. Four-band tenant-scope model
|
|
32
|
+
* (schema migration 0035). `private` is a legacy alias kept for pre-v6.3
|
|
33
|
+
* consumers — new writes should prefer `tenant_private`.
|
|
34
|
+
*
|
|
35
|
+
* Enum *values* stay snake_case: they are stored as-is in the Postgres
|
|
36
|
+
* `chk_visibility` CHECK constraint (`@skillsregistry/schema`), so the wire
|
|
37
|
+
* value must match the column value. Only *field names* were flipped to
|
|
38
|
+
* camelCase in v2.0.0.
|
|
39
|
+
*/
|
|
40
|
+
export const SkillVisibilitySchema = z.enum([
|
|
41
|
+
'public',
|
|
42
|
+
'private',
|
|
43
|
+
'tenant_private',
|
|
44
|
+
'tenant_internal',
|
|
45
|
+
'unlisted',
|
|
46
|
+
]);
|
|
47
|
+
/**
|
|
48
|
+
* Search request per cortex.md §6.2:
|
|
49
|
+
*
|
|
50
|
+
* POST /v1/search { query, appetite, minTrust, allowVulnerable, tenantId, limit }
|
|
51
|
+
*
|
|
52
|
+
* Fields beyond the cortex minimum (`tags`, `category`, `runtimeEnv`,
|
|
53
|
+
* `visibility`, `portable`) are the local node's search superset — the
|
|
54
|
+
* mothership treats them as optional filters when set.
|
|
55
|
+
*
|
|
56
|
+
* **v2.0.0 (MAJOR).** Field names flipped snake_case → camelCase to match
|
|
57
|
+
* every current caller (mothership inline schema at `src/routes/search.ts`,
|
|
58
|
+
* Cortex `SkillsRegistryClient.findSkill()`, local-node route surface). The
|
|
59
|
+
* v1.x snake_case shape caught no real consumers — 100% of live wire traffic
|
|
60
|
+
* was already camelCase, so the shared contract was inert. Aligning the
|
|
61
|
+
* contract to observed reality eliminates the silent-drop risk documented as
|
|
62
|
+
* X6 in the mothership repo's CLAUDE.md sibling-spec drift log (2026-07-15).
|
|
63
|
+
* Consumers that spelled the snake form must switch to camelCase in the same
|
|
64
|
+
* bump.
|
|
65
|
+
*/
|
|
66
|
+
export const SearchRequestSchema = z.object({
|
|
67
|
+
/** Free-text query. Required, non-empty. */
|
|
68
|
+
query: z.string().min(1),
|
|
69
|
+
/** Advisory tenant scope. */
|
|
70
|
+
tenantId: z.string().optional(),
|
|
71
|
+
/** Risk appetite → default trust floor + allowVulnerable default. */
|
|
72
|
+
appetite: AppetiteSchema.optional(),
|
|
73
|
+
/**
|
|
74
|
+
* Hard trust-score floor (0..1). Overrides `appetite` when set.
|
|
75
|
+
* Cortex sends this to gate before the confidence tier is even assessed.
|
|
76
|
+
*/
|
|
77
|
+
minTrust: z.number().min(0).max(1).optional(),
|
|
78
|
+
/**
|
|
79
|
+
* Allow skills tagged vulnerable / contains-vulnerable through the filter.
|
|
80
|
+
* Overrides the appetite-derived default when set.
|
|
81
|
+
*/
|
|
82
|
+
allowVulnerable: z.boolean().optional(),
|
|
83
|
+
/** Result cap (1..50). Default 10 at the domain layer. */
|
|
84
|
+
limit: z.number().int().positive().max(50).optional(),
|
|
85
|
+
/** Local-superset filters — mothership treats as optional. */
|
|
86
|
+
tags: z.array(z.string()).optional(),
|
|
87
|
+
category: z.string().optional(),
|
|
88
|
+
runtimeEnv: z.array(z.string()).optional(),
|
|
89
|
+
visibility: SkillVisibilitySchema.optional(),
|
|
90
|
+
portable: z.boolean().optional(),
|
|
91
|
+
});
|
|
92
|
+
// ──────────────────────────────────────────────────────────────────────────────
|
|
17
93
|
// Trust scoring — POST /v1/trust/score
|
|
18
94
|
// ──────────────────────────────────────────────────────────────────────────────
|
|
19
95
|
export const TrustScoreRequestSchema = z.object({
|
|
@@ -59,6 +135,60 @@ export const BudgetResponseSchema = z.object({
|
|
|
59
135
|
// ──────────────────────────────────────────────────────────────────────────────
|
|
60
136
|
// Migration door — POST /v1/publish (local → mothership)
|
|
61
137
|
// ──────────────────────────────────────────────────────────────────────────────
|
|
138
|
+
/**
|
|
139
|
+
* Sandbox contract per `skill-convention.md` v1.3 §9. The runtime (Cortex L3,
|
|
140
|
+
* on any Sandbox-seam adapter — Daytona / Novita / E2B) reads these fields
|
|
141
|
+
* verbatim to provision the execution environment. Applies to any skill with
|
|
142
|
+
* a sandbox surface (`runtime_env` ∈ {vm, agent} today; `api` may declare
|
|
143
|
+
* one if it spawns a subprocess).
|
|
144
|
+
*
|
|
145
|
+
* `image` is the OCI ref — the portability anchor (§9.1). The image family
|
|
146
|
+
* (`skill-base`, `skill-java`, `cognium-scan-base`, `agent-base`) is derived
|
|
147
|
+
* by prefix-matching the ref; not enforced here so the Lane 0 rollout can
|
|
148
|
+
* ship unbuilt images without tripping ingest.
|
|
149
|
+
*
|
|
150
|
+
* `egress` is a default-deny allow-list of hostnames (§9.3). Every host the
|
|
151
|
+
* skill contacts — clone targets, package mirrors, MCP endpoints — must be
|
|
152
|
+
* listed or the sandbox will block the connection.
|
|
153
|
+
*
|
|
154
|
+
* `profile: 'agent'` + `budget_caps` are the agent-runtime extension
|
|
155
|
+
* (§14.2). `budget_caps` are hard caps enforced in-band by the agent skill's
|
|
156
|
+
* wrapper script through llmproxy session metering — the caller cannot rely
|
|
157
|
+
* on Cortex enforcing them at the outer boundary.
|
|
158
|
+
*/
|
|
159
|
+
export const SkillSandboxSchema = z.object({
|
|
160
|
+
/** OCI ref, e.g. `ghcr.io/cognium-labs/skill-base:1.0.0`. */
|
|
161
|
+
image: z.string().min(1),
|
|
162
|
+
/** Memory allocation in MB. Base default 512 (vm) / 2048 (agent). */
|
|
163
|
+
memory_mb: z.number().int().positive(),
|
|
164
|
+
/** vCPU count. Base default 2 (vm) / 4 (agent). */
|
|
165
|
+
cpu: z.number().int().positive(),
|
|
166
|
+
/** Wall-clock ceiling in seconds. Base default 300 (vm) / 7200 (agent). */
|
|
167
|
+
timeout_seconds: z.number().int().positive(),
|
|
168
|
+
/**
|
|
169
|
+
* Default-deny egress allow-list of hostnames. Empty array = no outbound
|
|
170
|
+
* network from the sandbox. Wildcards are NOT interpreted here — the
|
|
171
|
+
* runtime treats each entry as an exact host match.
|
|
172
|
+
*/
|
|
173
|
+
egress: z.array(z.string().min(1)),
|
|
174
|
+
/** Present when `runtime_env: agent`. Signals the agent-runtime shape. */
|
|
175
|
+
profile: z.literal('agent').optional(),
|
|
176
|
+
/**
|
|
177
|
+
* Agent-only hard caps. Enforced in-band by the wrapper script via
|
|
178
|
+
* llmproxy metering (Cortex only enforces the outer wall-clock via
|
|
179
|
+
* provider timeout).
|
|
180
|
+
*/
|
|
181
|
+
budget_caps: z
|
|
182
|
+
.object({
|
|
183
|
+
/** Max spend in USD across all LLM calls this run. */
|
|
184
|
+
max_tokens_usd: z.number().positive().optional(),
|
|
185
|
+
/** Max sub-tool invocations from inside the agent sandbox. */
|
|
186
|
+
max_internal_tool_calls: z.number().int().positive().optional(),
|
|
187
|
+
/** Wall-clock ceiling; usually mirrors top-level `timeout_seconds`. */
|
|
188
|
+
max_wall_seconds: z.number().int().positive().optional(),
|
|
189
|
+
})
|
|
190
|
+
.optional(),
|
|
191
|
+
});
|
|
62
192
|
export const PublishRequestSchema = z.object({
|
|
63
193
|
/** Skill manifest to promote from local to global registry. */
|
|
64
194
|
manifest: z.object({
|
|
@@ -77,6 +207,13 @@ export const PublishRequestSchema = z.object({
|
|
|
77
207
|
source_url: z.string().url().optional(),
|
|
78
208
|
repository_url: z.string().url().optional(),
|
|
79
209
|
mcp_url: z.string().url().optional(),
|
|
210
|
+
/**
|
|
211
|
+
* Sandbox contract per skill-convention v1.3 §9. Required in practice
|
|
212
|
+
* for runtime_env ∈ {vm, agent} (Cortex L3 dispatch reads it directly);
|
|
213
|
+
* kept optional at the schema level so pre-v1.3 rows / api+llm skills
|
|
214
|
+
* don't need to carry it.
|
|
215
|
+
*/
|
|
216
|
+
sandbox: SkillSandboxSchema.optional(),
|
|
80
217
|
}),
|
|
81
218
|
/** Publisher key ID that signs the manifest. Required for A/B tier. */
|
|
82
219
|
publisher_key_id: z.string().optional(),
|
|
@@ -112,6 +249,69 @@ export const TrustScoreSyncResponseSchema = z.object({
|
|
|
112
249
|
*/
|
|
113
250
|
next_cursor: z.string().datetime().optional(),
|
|
114
251
|
});
|
|
252
|
+
// ──────────────────────────────────────────────────────────────────────────────
|
|
253
|
+
// Skill revocation — per cortex.md §12
|
|
254
|
+
// ──────────────────────────────────────────────────────────────────────────────
|
|
255
|
+
//
|
|
256
|
+
// When SkillsRegistry revokes or deprecates a skill it emits an event that
|
|
257
|
+
// consumers (Cortex, local nodes, third-party agents) subscribe to via
|
|
258
|
+
// webhook or a pull cursor at GET /v1/sync/revocations?since=<ISO>. Cortex
|
|
259
|
+
// receives the event, matches affected running workflow instances, and
|
|
260
|
+
// propagates notifications; local nodes should sync `skills.revoked_at` /
|
|
261
|
+
// `revoked_reason` / `remediation_*` / `replacement_skill_id` columns.
|
|
262
|
+
//
|
|
263
|
+
// Wire naming is snake_case for parity with the rest of the upstream API.
|
|
264
|
+
export const SkillRevocationReasonSchema = z.enum([
|
|
265
|
+
'security', // CVE / RCE / secret exfil — highest severity
|
|
266
|
+
'compliance', // license / regulatory
|
|
267
|
+
'policy', // Cognium-side content-safety violation
|
|
268
|
+
'quality', // repeated tool-call failures, malformed I/O
|
|
269
|
+
'author_request', // publisher asked for takedown
|
|
270
|
+
'superseded', // replaced by a newer skill; migration path in remediation_*
|
|
271
|
+
'unknown', // fallback — should never appear in fresh events
|
|
272
|
+
]);
|
|
273
|
+
export const SkillRevocationEventTypeSchema = z.enum([
|
|
274
|
+
'skill.revoked', // hard: mothership blocks new invocations
|
|
275
|
+
'skill.deprecated', // soft: still callable, superseded — surface in UI
|
|
276
|
+
]);
|
|
277
|
+
/**
|
|
278
|
+
* Single revocation / deprecation event. `event_id` is the idempotency key —
|
|
279
|
+
* consumers store the last-seen id per source to dedupe replays.
|
|
280
|
+
*/
|
|
281
|
+
export const SkillRevocationEventSchema = z.object({
|
|
282
|
+
/** Idempotency key. Consumer dedupes on (source, event_id). */
|
|
283
|
+
event_id: z.string().min(1),
|
|
284
|
+
event_type: SkillRevocationEventTypeSchema,
|
|
285
|
+
emitted_at: z.string().datetime(),
|
|
286
|
+
/** Mothership skill UUID. */
|
|
287
|
+
skill_id: z.string().min(1),
|
|
288
|
+
/** Human-readable identifier — helpful in webhook logs. */
|
|
289
|
+
slug: z.string().min(1),
|
|
290
|
+
/** Pinned version at the time of revocation (if the whole line was pulled). */
|
|
291
|
+
version: z.string().optional(),
|
|
292
|
+
reason: SkillRevocationReasonSchema,
|
|
293
|
+
/** Free-form operator-visible detail — never rendered to end users unsanitized. */
|
|
294
|
+
reason_detail: z.string().optional(),
|
|
295
|
+
/** Actionable message consumers can show in remediation UI. */
|
|
296
|
+
remediation_message: z.string().optional(),
|
|
297
|
+
remediation_url: z.string().url().optional(),
|
|
298
|
+
/** Mothership UUID of the replacement skill, if any. */
|
|
299
|
+
replacement_skill_id: z.string().optional(),
|
|
300
|
+
/** Slug of the replacement skill (redundant with id — safer for humans). */
|
|
301
|
+
replacement_slug: z.string().optional(),
|
|
302
|
+
});
|
|
303
|
+
/**
|
|
304
|
+
* Response for `GET /v1/sync/revocations?since=<ISO>`. Mirrors the shape of
|
|
305
|
+
* `TrustScoreSyncResponse` so consumers can share a delta-pull scaffold.
|
|
306
|
+
*/
|
|
307
|
+
export const SkillRevocationSyncResponseSchema = z.object({
|
|
308
|
+
since: z.string().datetime(),
|
|
309
|
+
until: z.string().datetime(),
|
|
310
|
+
count: z.number().int().nonnegative(),
|
|
311
|
+
events: z.array(SkillRevocationEventSchema),
|
|
312
|
+
/** Cursor for pagination. When present, re-request with `since=<next_cursor>`. */
|
|
313
|
+
next_cursor: z.string().datetime().optional(),
|
|
314
|
+
});
|
|
115
315
|
export const UpstreamErrorSchema = z.object({
|
|
116
316
|
error: z.object({
|
|
117
317
|
code: z.enum([
|
|
@@ -124,6 +324,7 @@ export const UpstreamErrorSchema = z.object({
|
|
|
124
324
|
'bad_request',
|
|
125
325
|
'upstream_unavailable',
|
|
126
326
|
'upstream_timeout',
|
|
327
|
+
'sandbox_contract_violated',
|
|
127
328
|
]),
|
|
128
329
|
message: z.string(),
|
|
129
330
|
/** Seconds until the caller may safely retry. Absent for permanent errors. */
|
package/dist/upstream.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upstream.js","sourceRoot":"","sources":["../src/upstream.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,2CAA2C;AAC3C,iFAAiF;AACjF,EAAE;AACF,+EAA+E;AAC/E,oEAAoE;AACpE,4EAA4E;AAC5E,8DAA8D;AAC9D,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,2CAA2C;AAC3C,EAAE;AACF,iFAAiF;AAEjF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,iFAAi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AAC,QAAQ,EAAE;IAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC;IAC3C,kFAAkF;IAClF,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAiDH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;YACX,yBAAyB;YACzB,kBAAkB;YAClB,iBAAiB;YACjB,WAAW;YACX,WAAW;YACX,cAAc;YACd,aAAa;YACb,sBAAsB;YACtB,kBAAkB;YAClB,2BAA2B;SAC5B,CAAC;QACF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,8EAA8E;QAC9E,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACnD,gEAAgE;QAChE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;KACrD,CAAC;IACF,6DAA6D;IAC7D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skillsregistry/contracts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Zod schemas + TypeScript types for the SkillsRegistry public API and the local-node ↔ mothership contract.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Cognium Labs",
|
|
@@ -38,6 +38,12 @@
|
|
|
38
38
|
"LICENSE",
|
|
39
39
|
"NOTICE"
|
|
40
40
|
],
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsc -p tsconfig.json",
|
|
43
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
44
|
+
"test": "vitest run",
|
|
45
|
+
"clean": "rm -rf dist .tsbuildinfo"
|
|
46
|
+
},
|
|
41
47
|
"dependencies": {
|
|
42
48
|
"@hono/zod-openapi": "^0.19.0",
|
|
43
49
|
"zod": "^3.23.0"
|
|
@@ -59,11 +65,5 @@
|
|
|
59
65
|
"zod",
|
|
60
66
|
"openapi",
|
|
61
67
|
"contracts"
|
|
62
|
-
]
|
|
63
|
-
|
|
64
|
-
"build": "tsc -p tsconfig.json",
|
|
65
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
66
|
-
"test": "vitest run",
|
|
67
|
-
"clean": "rm -rf dist .tsbuildinfo"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
68
|
+
]
|
|
69
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for describing the origin of the Work and
|
|
141
|
-
reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may accept and charge a
|
|
167
|
-
fee for accepting support, warranty, indemnity, or other liability
|
|
168
|
-
obligations and/or rights consistent with this License. However, in
|
|
169
|
-
accepting such obligations, You may act only on Your own behalf
|
|
170
|
-
and on Your sole responsibility, not on behalf of any other
|
|
171
|
-
Contributor, and only if You agree to indemnify, defend, and hold
|
|
172
|
-
each Contributor harmless for any liability incurred by, or claims
|
|
173
|
-
asserted against, such Contributor by reason of your accepting any
|
|
174
|
-
such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2026 Cognium Labs
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|