@convilyn/sdk-author 0.7.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/CHANGELOG.md +280 -0
- package/LICENSE +201 -0
- package/README.md +310 -0
- package/dist/chunk-ZNZXT5ZP.js +1311 -0
- package/dist/chunk-ZNZXT5ZP.js.map +1 -0
- package/dist/cli.cjs +1391 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.js +471 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +1627 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1158 -0
- package/dist/index.d.ts +1158 -0
- package/dist/index.js +279 -0
- package/dist/index.js.map +1 -0
- package/package.json +84 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@convilyn/sdk-author` are documented here. The format
|
|
4
|
+
follows [Keep a Changelog](https://keepachangelog.com/); this package adheres to
|
|
5
|
+
[Semantic Versioning](https://semver.org/).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.7.0] — 2026-07-09
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **README licence corrected to Apache-2.0** (it claimed MIT; the shipped
|
|
14
|
+
`LICENSE` file, `package.json`, and the Python SDKs are all Apache-2.0).
|
|
15
|
+
`publishConfig.access: public` is now pinned in `package.json` so a manual
|
|
16
|
+
publish of this scoped package cannot accidentally target restricted access.
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- **Hosted Author Runtime ported from the Python SDK.**
|
|
21
|
+
`ConvilynClient` gains `deployHostedRuntime(manifest, {region,
|
|
22
|
+
workflowSpec?})`, `rollbackHostedRuntime(runtimeId)`, and
|
|
23
|
+
`getHostedRuntimeLogs(runtimeId, {since?, limit?})` (accepts both the bare
|
|
24
|
+
list and `{entries}` envelope). The CLI `deploy` is un-gated: `deploy
|
|
25
|
+
--hosted [--region]` provisions the managed runtime (501/503 answer with the
|
|
26
|
+
BYO `push --endpoint-url` fallback hint; without `--hosted` it exits 1
|
|
27
|
+
pointing at `push`), and new `rollback <runtimeId>` / `logs <runtimeId>
|
|
28
|
+
[--since --limit]` commands complete the lifecycle. The old exit-2 hard gate
|
|
29
|
+
is gone.
|
|
30
|
+
- New exported types: `PUBLIC_SCHEMA_VERSION`, `WorkflowBlueprint`,
|
|
31
|
+
`BlueprintAgentConfig`, `BlueprintMcpConfig`, `ExportPayload`,
|
|
32
|
+
`RuntimeStatus`, `DeployHostedRequest`/`DeployHostedResponse`,
|
|
33
|
+
`RollbackResponse`, `RuntimeLogEntry`.
|
|
34
|
+
- **`ConvilynClient` rejects a consumer `ck_` key at construction** with a
|
|
35
|
+
precise `ConvilynAuthorError`, instead of the developer portal answering with
|
|
36
|
+
an opaque 401 later. The Author SDK authenticates with a `cvl_` developer key;
|
|
37
|
+
an empty key (register() mints one) and any non-`ck_` prefix are still
|
|
38
|
+
accepted (forward-compat). Mirror of the consumer SDKs' inverse guard.
|
|
39
|
+
- **`convilyn-author push` is now wired to the Developer Portal.** It was
|
|
40
|
+
previously an operator-gated stub. It now loads a built server + a compiled
|
|
41
|
+
workflow, then submits both through `ConvilynClient` (`submitServer` →
|
|
42
|
+
`submitWorkflow`, threading the new server id into the workflow) — mirroring
|
|
43
|
+
the Python SDK's `ConvilynClient.push`. Requires `--endpoint-url
|
|
44
|
+
<https://...>` (the HTTPS URL where you host the server) and a `cvl_` key in
|
|
45
|
+
`CONVILYN_API_KEY`. New `--workflow-file` accepts a `workflow.spec.json` or a
|
|
46
|
+
built module exporting a `WorkflowSpec`.
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
|
|
50
|
+
- **BREAKING: `WorkflowSpec.compile()` now emits the snake_case
|
|
51
|
+
`WorkflowBlueprint`** (`public_schema_version` / `spec_id` / `version` /
|
|
52
|
+
`keywords` / `agent_config` / `mcp_config`), in cross-SDK parity with the
|
|
53
|
+
Python author SDK — this is the shape the Developer Portal's
|
|
54
|
+
`submit_workflow` accepts, closing the always-422 publish break.
|
|
55
|
+
`WorkflowSpec` gains `specId` (required for `compile()`; constructor option
|
|
56
|
+
or `withSpecId()`) and a semver `version` (default `1.0.0`, `withVersion()`).
|
|
57
|
+
The camelCase user_workflows `ExportPayload` moved to `toExportPayload()` /
|
|
58
|
+
`WorkflowSpec.fromExportPayload()` (rename of `fromWire`); `fromJson()` /
|
|
59
|
+
`load()` shape-sniff and accept both file formats. The exported
|
|
60
|
+
`CompiledWorkflowSpec` type now aliases `WorkflowBlueprint`.
|
|
61
|
+
- **BREAKING: `ConvilynClient` now targets the Developer Portal
|
|
62
|
+
(`/api/v1/developers/*`) with a `cvl_` developer key, not the first-party
|
|
63
|
+
console surfaces.** The previous client called `/user_workflows/*` +
|
|
64
|
+
`/mcp/tools/catalog` — all JWT/session endpoints owned by the web UI — with a
|
|
65
|
+
`CONVILYN_API_KEY` those endpoints reject (auth was structurally broken). It
|
|
66
|
+
now mirrors the Python `convilyn-author` SDK: `register` (mint a `cvl_` key),
|
|
67
|
+
`submitServer` / `listServers` / `serverStatus` / `testServer` /
|
|
68
|
+
`deactivateServer`, and `submitWorkflow` / `listWorkflows` / `workflowStatus`
|
|
69
|
+
/ `testWorkflow` / `deactivateWorkflow`. Removed the first-party methods
|
|
70
|
+
`validate` / `import` / `fork` / `costPreview` / `toolCatalog` (and the gated
|
|
71
|
+
`patch` / `submitManifest`) — validate and cost-preview your work **locally**
|
|
72
|
+
with `runComplianceChecks` / `WorkflowSpec.compile` before submitting; the SDK
|
|
73
|
+
no longer consumes the platform MCP catalog. Removed the `/user_workflows` +
|
|
74
|
+
MCP-catalog wire types; added the snake_case Developer Portal types.
|
|
75
|
+
- **Default platform URL corrected to `https://api.convilyn.corenovus.com`**
|
|
76
|
+
(was the non-serving `api.convilyn.com`), aligning every SDK's zero-config
|
|
77
|
+
default with the live API host.
|
|
78
|
+
|
|
79
|
+
### Removed
|
|
80
|
+
|
|
81
|
+
- **Dead `buildValidateRequest` / `buildCostPreviewRequest` exports** (and the
|
|
82
|
+
`requests.ts` module + its types). They built request bodies for
|
|
83
|
+
`POST /user_workflows/{validate,cost-preview}` — first-party console endpoints
|
|
84
|
+
the client stopped calling in the Developer-Portal rewrite. Validate +
|
|
85
|
+
cost-preview your work locally with `runComplianceChecks` / `WorkflowSpec.compile`.
|
|
86
|
+
|
|
87
|
+
### Security
|
|
88
|
+
|
|
89
|
+
- **10 MB inbound body cap on `POST /mcp`** — the runtime now stops buffering
|
|
90
|
+
and answers `413 PAYLOAD_TOO_LARGE` as soon as the inbound body crosses
|
|
91
|
+
10 MB, *before* signature verification, closing a pre-auth memory-exhaustion
|
|
92
|
+
vector on self-hosted servers. Parity with the Python / Go author runtimes'
|
|
93
|
+
shared cap.
|
|
94
|
+
- **Confirmation-token digests keep `__proto__`-named argument keys.** The
|
|
95
|
+
canonicalizer previously built plain objects, so a `__proto__` /
|
|
96
|
+
`constructor`-named argument key was silently dropped from the digest —
|
|
97
|
+
diverging from the Python reference and letting that one key change between
|
|
98
|
+
confirmation and re-call without a digest mismatch. Canonicalization now
|
|
99
|
+
uses null-prototype accumulators; reserved names survive as ordinary keys.
|
|
100
|
+
- **Fail-closed startup contract (pre-publish hardening).**
|
|
101
|
+
`serve()` now throws `ConvilynStartupError` when no HMAC secret is
|
|
102
|
+
configured and insecure local dev has not been explicitly opted into
|
|
103
|
+
(previously it booted a server that 401'd every `/mcp` call — safe but a
|
|
104
|
+
broken dev loop and divergent from the Python/Go UX). Opt-in is
|
|
105
|
+
`allowInsecure: true` (passed by `convilyn-author dev`) or
|
|
106
|
+
`CONVILYN_DEV_INSECURE=1`; in that mode unsigned `/mcp` requests are served
|
|
107
|
+
with a loud startup warning. A configured secret always wins — the opt-in
|
|
108
|
+
never bypasses verification. New public exports: `ConvilynStartupError`,
|
|
109
|
+
`ENV_DEV_INSECURE`, `devInsecureRequested`.
|
|
110
|
+
|
|
111
|
+
## [0.6.0] — 2026-06-29
|
|
112
|
+
|
|
113
|
+
### Added
|
|
114
|
+
|
|
115
|
+
- **Docs & examples.** Expanded the README with `ConvilynClient`,
|
|
116
|
+
confirmation-token, local-harness (`invokeTool`), and authentication sections,
|
|
117
|
+
and a runnable `examples/quickstart` tool server.
|
|
118
|
+
|
|
119
|
+
### Notes
|
|
120
|
+
|
|
121
|
+
- **npm publish is operator-gated.** The release workflow (OIDC npm Trusted
|
|
122
|
+
Publisher, now the shared `.github/workflows/sdk-publish.yml`) fires only on
|
|
123
|
+
a `sdk-author-ts/v*` tag and is otherwise inert. Publishing requires the
|
|
124
|
+
one-time Trusted-Publisher registration + pushing that release tag — both
|
|
125
|
+
operator actions; this SDK lane does not publish.
|
|
126
|
+
|
|
127
|
+
## [0.5.0] — 2026-06-29
|
|
128
|
+
|
|
129
|
+
### Added
|
|
130
|
+
|
|
131
|
+
- **`ConvilynClient`** (fetch-based) over the platform author endpoints.
|
|
132
|
+
Base = `${platformUrl}/api/v1`; auth = `Authorization: Bearer
|
|
133
|
+
<CONVILYN_API_KEY>`; `fetch` is injectable; no new runtime dependency.
|
|
134
|
+
Defined endpoints:
|
|
135
|
+
- `validate(spec | request)` → `POST /user_workflows/validate`
|
|
136
|
+
- `import(spec)` → `POST /user_workflows/import` (body = `spec.compile()`)
|
|
137
|
+
- `fork({ sourceSpecId, name? })` → `POST /user_workflows/fork`
|
|
138
|
+
- `costPreview(request)` → `POST /user_workflows/cost-preview`
|
|
139
|
+
- `toolCatalog()` → `GET /mcp/tools/catalog`
|
|
140
|
+
- Non-2xx responses throw `ConvilynApiError` (`status`, `body`).
|
|
141
|
+
- **Gated (no contract → no network):** `patch()` (PATCH /user_workflows/{id} is
|
|
142
|
+
prose-only, not a defined operation) and `submitManifest()` (no
|
|
143
|
+
server-registration endpoint exists) throw with a message naming the gap — the
|
|
144
|
+
SDK-side counterpart of the CLI's gated `push`/`deploy`. No path is invented.
|
|
145
|
+
- **`invokeTool(server, name, args, opts?)`** — a local testing harness that
|
|
146
|
+
drives `ToolServer.dispatch` in-process and returns the ToolResult wire
|
|
147
|
+
envelope, so authors can unit-test tools (incl. validation/tool-error paths)
|
|
148
|
+
without an HTTP server.
|
|
149
|
+
- Platform wire types (`UserWorkflow`, `ForkRequest`, `McpToolCatalogResponse`,
|
|
150
|
+
`McpToolCatalogItem`, `McpServer`, `RiskLevel`), mirroring the contracts.
|
|
151
|
+
|
|
152
|
+
## [0.4.0] — 2026-06-29
|
|
153
|
+
|
|
154
|
+
### Added
|
|
155
|
+
|
|
156
|
+
- **Confirmation-handshake token signing** (`mintConfirmationToken` /
|
|
157
|
+
`verifyConfirmationToken`), byte-for-byte compatible with the platform
|
|
158
|
+
gateway and the Python / Go author SDKs (verified by a cross-impl parity test
|
|
159
|
+
pinning a Python-reference-generated golden token):
|
|
160
|
+
- Token wire format `base64url("<expires>:<digest>:<sig>")` (url-safe, padding
|
|
161
|
+
kept); `digest = sha256(canonicalJson(normalizeForDigest(args)))`;
|
|
162
|
+
`sig = hmacSha256("<toolName>|<expires>|<digest>")`.
|
|
163
|
+
- `canonicalJson` matches Python `json.dumps(sort_keys=True,
|
|
164
|
+
separators=(",",":"))` with `ensure_ascii` (code points ≥ 0x80 → `\uXXXX`).
|
|
165
|
+
- `normalizeForDigest` strips volatile presigned-URL params before hashing,
|
|
166
|
+
re-encoding kept params with `quote_plus` semantics, so a re-presigned URL
|
|
167
|
+
still matches the confirmed arguments.
|
|
168
|
+
- `verifyConfirmationToken` strips the `confirmation_token` argument before
|
|
169
|
+
re-digesting, checks expiry, and constant-time-compares digest + signature;
|
|
170
|
+
raises `ConfirmationInvalidError` (reasons `malformed` / `expired` /
|
|
171
|
+
`digest_mismatch` / `signature_mismatch`).
|
|
172
|
+
- `CONFIRMATION_TTL_SECONDS = 300`; `SDKConfig.toolConfirmationSecret` reads
|
|
173
|
+
`CONVILYN_TOOL_CONFIRMATION_SECRET`. `node:crypto` only — no new dependency.
|
|
174
|
+
- This is a **distinct** scheme from the inbound request HMAC (`<timestamp>.<body>`
|
|
175
|
+
in `verifySignature`); the two are not interchangeable. The two-stage
|
|
176
|
+
`needs_confirmation` dispatch flow and `cost_*` envelope fields remain out of
|
|
177
|
+
scope.
|
|
178
|
+
|
|
179
|
+
## [0.3.0] — 2026-06-29
|
|
180
|
+
|
|
181
|
+
### Added
|
|
182
|
+
|
|
183
|
+
- **The `convilyn-author` CLI** (`bin`, built to `dist/cli.cjs` via a new
|
|
184
|
+
tsup `cli` entry; commander-based). Subcommands:
|
|
185
|
+
- `init <name> [--dir]` — scaffold a TypeScript tool-server project
|
|
186
|
+
(`server.ts`, `package.json`, `tsconfig.json`, `.gitignore`, `.env.example`,
|
|
187
|
+
`README.md`); refuses a non-empty target directory.
|
|
188
|
+
- `synth [--file] [--output]` — load the built server module and write its
|
|
189
|
+
`ConvilynManifest` (default `convilyn.manifest.json`).
|
|
190
|
+
- `dev [--file] [--host] [--port]` — start the local JSON-RPC `/mcp` runtime
|
|
191
|
+
(`serve`).
|
|
192
|
+
- `test [--file]` — run the local compliance suite and exit non-zero on any
|
|
193
|
+
failure.
|
|
194
|
+
- `push` / `deploy` — **operator-gated stubs**. The platform
|
|
195
|
+
developer/server-registration API was not yet a published contract, so
|
|
196
|
+
there was no contract to bind them to; they report the gate (exit code 2)
|
|
197
|
+
and make no network calls. Real submission lands with the `ConvilynClient`
|
|
198
|
+
in a later release.
|
|
199
|
+
|
|
200
|
+
The CLI loads the author's server by dynamically importing a **built JS** module
|
|
201
|
+
(default `server.js`) and duck-types the export (the binary bundles its own
|
|
202
|
+
`ToolServer`, so `instanceof` across the install boundary is unreliable). The
|
|
203
|
+
`bin` is intentionally NOT part of the library `exports` map — library
|
|
204
|
+
consumers never pull in `commander`.
|
|
205
|
+
- **`runComplianceChecks(server)`** — a library export producing a
|
|
206
|
+
`ComplianceReport` (metadata, tools-exist, tool-schemas, manifest-synth,
|
|
207
|
+
ref_id pattern, `get_tool_data`). The first producer of the existing
|
|
208
|
+
`ComplianceReport` type; reused by the CLI `test` command and seeds the
|
|
209
|
+
local harness. Author tool handlers are not blindly invoked.
|
|
210
|
+
|
|
211
|
+
## [0.2.0] — 2026-06-29
|
|
212
|
+
|
|
213
|
+
### Added
|
|
214
|
+
|
|
215
|
+
- **`ToolServer` + JSON-RPC `/mcp` runtime.** A TS-authored server is now
|
|
216
|
+
runnable and interchangeable with the Python / Go author SDKs behind the same
|
|
217
|
+
gateway:
|
|
218
|
+
- `defineTool` — declare a tool from a **Zod** schema. The schema is the single
|
|
219
|
+
source of truth: `zod-to-json-schema` derives the manifest `input_schema`
|
|
220
|
+
(`additionalProperties:false`, matching Pydantic), `z.infer` types the handler
|
|
221
|
+
args, and the runtime validates inbound `/mcp` arguments against it. `zod` is a
|
|
222
|
+
peerDependency and is **not** re-exported (`import { z } from 'zod'`).
|
|
223
|
+
- `ToolServer` — tool registry (duplicate-name guard) + a transport-free
|
|
224
|
+
`dispatch()` for `tools/call`; produces the `ConvilynManifest`. Built-in
|
|
225
|
+
`get_tool_data` resolves an offloaded `ref_id` (not listed in the manifest).
|
|
226
|
+
- `serve` — Node `http` runtime: `GET /health`, `GET /manifest`, and
|
|
227
|
+
HMAC-verified `POST /mcp` (signature over the raw body bytes; bad signature →
|
|
228
|
+
`401 INVALID_SIGNATURE`, bad JSON → `400`).
|
|
229
|
+
- The snake_case ToolResult wire envelope (`summary` / `status` /
|
|
230
|
+
`data` / `ref_id` / `validation_errors` / `error` + legacy `success` /
|
|
231
|
+
`error_code` / `error_message` mirrors), with >16 KB `ok` payloads offloaded
|
|
232
|
+
to the `DataStore` as a `ref_id`.
|
|
233
|
+
- `ToolResult.ok` / `.fail` gain an optional trailing `summary` (the original
|
|
234
|
+
shapes are preserved exactly when it is omitted).
|
|
235
|
+
- The two-stage `needs_confirmation` handshake and `cost_micro_u` /
|
|
236
|
+
`cost_breakdown` reporting are intentionally deferred to a follow-up.
|
|
237
|
+
|
|
238
|
+
## [0.1.0] — 2026-06-27
|
|
239
|
+
|
|
240
|
+
### Added
|
|
241
|
+
|
|
242
|
+
- Initial foundation scaffold of the TypeScript Author SDK (a faithful
|
|
243
|
+
port of the Python `convilyn_sdk` and the Go `convilyn-author-go`).
|
|
244
|
+
- HMAC inbound verification + signer (`verifySignature` / `signRequest`) — wire
|
|
245
|
+
format `<timestamp>.<body>`, headers `x-convilyn-signature` / `-timestamp`
|
|
246
|
+
(server-id audit-only), constant-time comparison, 300s replay tolerance, and
|
|
247
|
+
coarse `InvalidSignatureError` reasons. Byte-for-byte compatible with the
|
|
248
|
+
gateway signer and the Python / Go author SDKs (covered by a cross-impl parity
|
|
249
|
+
test).
|
|
250
|
+
- The in-memory data store (`InMemoryDataStore`, `generateRefId` → `td_<12-hex>`,
|
|
251
|
+
`createDataStore`); the production-grade persistent store lands later.
|
|
252
|
+
- `ConvilynManifest` — the compiled tool-server blueprint: camelCase domain →
|
|
253
|
+
snake_case wire (empty lists kept as `[]`), with `toJson` / `save` / `load` /
|
|
254
|
+
`fromJson`.
|
|
255
|
+
- `SDKConfig` (environment-driven, `CONVILYN_*`), the `ToolContext` execution
|
|
256
|
+
context + `ProgressBackend` / `ConsoleProgressBackend`, and the core value
|
|
257
|
+
types (`ToolResult` / `ToolError` / `ToolDataRef` / `ToolSpec` / `ServerSpec` /
|
|
258
|
+
`ComplianceResult` / `ComplianceReport`).
|
|
259
|
+
- Packaging discipline: an exact public-surface allowlist, an internal-token leak
|
|
260
|
+
scan, an `exports`-map-only-`.` assertion, and version ↔ CHANGELOG lockstep.
|
|
261
|
+
tsup ESM + CJS + type-declaration build; vitest ≥ 80% coverage gate.
|
|
262
|
+
- **Workflow authoring** (grounded in the platform's published contracts,
|
|
263
|
+
not a port):
|
|
264
|
+
- `WorkflowSpec` — an immutable fluent builder for the portable authoring
|
|
265
|
+
artifact. `with*` / `add*` / `useTools` return a new spec; `compile()` emits
|
|
266
|
+
the `ExportPayload` **camelCase** shape (name / description / systemPrompt /
|
|
267
|
+
toolPalette / tags / canvasLayout); `compileJson` / `save` / `fromJson` /
|
|
268
|
+
`load` round-trip. Enforces the contract constraints client-side (name ≤80,
|
|
269
|
+
description ≤500, systemPrompt ≤8000, ≤20 tools, ≤8 tags, and rejects the
|
|
270
|
+
`request_user_input` tool).
|
|
271
|
+
- The five `WorkflowPolicies` types (`RetryPolicy` / `TimeoutPolicy` /
|
|
272
|
+
`OutputValidationPolicy` / `HumanReviewPolicy` / `FallbackPolicy`) + a
|
|
273
|
+
range-validating `buildWorkflowPolicies`.
|
|
274
|
+
- Typed request bodies + pure builders for the authoring helper endpoints:
|
|
275
|
+
`buildValidateRequest` and `buildCostPreviewRequest` (the HTTP client lands
|
|
276
|
+
in a later increment).
|
|
277
|
+
|
|
278
|
+
The platform client, docs/examples, and the npm-publish workflow followed in
|
|
279
|
+
the subsequent releases above. The `needs_confirmation` handshake +
|
|
280
|
+
`cost_micro_u` / `cost_breakdown` support remain planned work.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
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) acceptance of support, warranty, indemnity, or other
|
|
168
|
+
liability obligations and/or rights consistent with this License.
|
|
169
|
+
However, in accepting such obligations, You may act only on Your
|
|
170
|
+
own behalf and on Your sole responsibility, not on behalf of any
|
|
171
|
+
other Contributor, and only if You agree to indemnify, defend,
|
|
172
|
+
and hold each Contributor harmless for any liability incurred by,
|
|
173
|
+
or claims asserted against, such Contributor by reason of your
|
|
174
|
+
accepting any 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 CoreNovus contributors
|
|
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
|
|
200
|
+
implied. See the License for the specific language governing
|
|
201
|
+
permissions and limitations under the License.
|