@jigging/jig 0.1.0-alpha.1 → 0.1.0-alpha.11

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/README.md CHANGED
@@ -5,17 +5,17 @@ has one finite command surface:
5
5
 
6
6
  ```text
7
7
  jig init --bare <directory>
8
- jig check [project] [--yes]
9
- jig run <flow:path|binding:id> [--input JSON]
8
+ jig review [project] [--yes]
9
+ jig run <flow:path|binding:id> [--input JSON] [--timeout DURATION]
10
10
  ```
11
11
 
12
- There is no `jig setup`. `check` and `run` transparently acquire the rootless
12
+ There is no `jig setup`. `review` and `run` transparently acquire the rootless
13
13
  authority they need or fail closed.
14
14
 
15
15
  ## Install
16
16
 
17
17
  ```console
18
- npm install --global @jigging/jig@0.1.0-alpha.1
18
+ npm install --global @jigging/jig@0.1.0-alpha.10
19
19
  ```
20
20
 
21
21
  Installing Jig also installs `@oven/bun-linux-x64-baseline@1.3.3` as an exact
@@ -33,22 +33,34 @@ independently validated; Jig fails closed when a required capability is absent.
33
33
  The alpha requires:
34
34
 
35
35
  - Linux x86_64 with glibc 2.17 or newer and an SSE4.2-capable baseline CPU;
36
- - Bubblewrap 0.12 or newer at `/usr/bin/bwrap`;
37
- - GNU `readlink -f` at `/usr/bin/readlink` or `/bin/readlink`;
36
+ - Bubblewrap 0.12 or newer and GNU `readlink -f`, located as described below;
38
37
  - cgroup v2 with delegated `cpu`, `memory`, and `pids` controllers;
39
38
  - a systemd user manager with transient delegated scopes; and
40
39
  - unprivileged user, mount, PID, network, IPC, UTS, and cgroup namespaces.
41
40
 
42
41
  The glibc and SSE4.2 floors come from the selected Bun baseline runtime.
43
42
 
43
+ Host tools are resolved through `/usr/bin`, `/bin`, or the NixOS system profile
44
+ `/run/current-system/sw/bin`, never ambient `PATH`. An operator may select
45
+ Bubblewrap using an absolute `JIG_BWRAP_PATH`, including a shell-local Nix
46
+ dependency. It receives the same validation and never falls back on failure.
47
+ On NixOS, enable
48
+ `programs.nix-ld.enable` for the unmodified npm runtime. Jig uses the real glibc
49
+ loader at the system-managed `share/nix-ld/lib/ld.so` link, mounting only that
50
+ loader and its required libraries into Runs. It does not mount nix-ld or the
51
+ whole Nix store. NixOS path support is included in this source candidate;
52
+ independent NixOS host conformance is not yet established.
53
+
44
54
  Jig commands do not use `sudo`, download runtimes, or expose host control to
45
55
  Flow code. Runtime installation is handled once by npm with the Jig package.
46
56
 
47
- Flow Runs are fixed at 30 seconds, 256 MiB aggregate memory, 48 aggregate
48
- PIDs, and 50% of one CPU. Project evaluation is fixed at 3 seconds, 256 MiB,
49
- 64 PIDs, and 50% CPU. Locked dependency preparation is fixed at 60 seconds,
50
- 512 MiB, 64 PIDs, and one CPU. See the repository
51
- [`SECURITY.md`](https://github.com/jigmd/jig/blob/main/SECURITY.md) for the
57
+ Flow Runs default to 30 seconds. `jig run --timeout DURATION` accepts a
58
+ positive integer followed by `ms`, `s`, `m`, or `h`, up to 24 hours. Flow
59
+ execution scopes remain fixed at 256 MiB aggregate memory, 48 aggregate PIDs,
60
+ and 50% of one CPU. Project evaluation is fixed at 3 seconds, 256 MiB, 64
61
+ PIDs, and 50% CPU. Locked dependency preparation is fixed at 60 seconds, 512
62
+ MiB, 64 PIDs, and one CPU. See the repository
63
+ [`SECURITY.md`](https://github.com/jiggy/jig/blob/main/SECURITY.md) for the
52
64
  threat boundary and private reporting channel.
53
65
 
54
66
  ## Use
@@ -62,26 +74,30 @@ Place packages under `flows/<name>/`. Each package has exact-case `FLOW.md`
62
74
  and, for this alpha, one `flow.ts`. The generated `jig.ts`
63
75
  explicitly discovers `./flows` and `./bindings`.
64
76
 
65
- The paired `@jigging/flow@0.1.0-alpha.1` package provides the small Run/1
77
+ The paired `@jigging/flow@0.1.0-alpha.6` package provides the small Run/1
66
78
  authoring API. Declare it exactly in the Flow's `package.json`, generate a text
67
- `bun.lock` with Bun 1.3.3 and `bun install --lockfile-only`, then serve one
79
+ `bun.lock` with Bun 1.3.3 and `bun install --lockfile-only`, then handle one
68
80
  finite Run:
69
81
 
70
82
  ```ts
71
- import { serve } from "@jigging/flow";
83
+ import { handle } from "@jigging/flow";
72
84
 
73
- await serve(async (run) => ({
85
+ await handle(async (run) => ({
74
86
  outcome: "done",
75
87
  output: { received: run.input },
76
88
  }));
77
89
  ```
78
90
 
79
91
  ```console
80
- jig check
92
+ jig review
81
93
  jig run flow:flows/example --input '{}'
82
94
  ```
83
95
 
84
- `jig check` shows the complete proposed project change, including exact
96
+ For a longer Run, add a bounded duration such as `--timeout 2m`. The timeout
97
+ starts when Jig accepts the root Run. Project acquisition happens before it;
98
+ mandatory fencing and cleanup may finish afterward.
99
+
100
+ `jig review` shows the complete proposed project change, including exact
85
101
  current and proposed Package/1 content digests, and asks for approval. It is
86
102
  not a source-file diff; inspect editable source with your normal tools. When
87
103
  standard input and output are both terminals, Jig prompts for approval.
@@ -94,31 +110,88 @@ evidence changes. Package digests appear once in the package section;
94
110
  host-specific evidence remains private.
95
111
 
96
112
  For ordinary dependencies, place `package.json` and text `bun.lock` beside
97
- `flow.ts`; do not include `node_modules`. `jig check` prepares the frozen
98
- production dependency tree inside the same rootless envelope, using the fixed
99
- Bun runtime, the default npm registry, and no lifecycle scripts. Unsupported
100
- or unlocked sources fail before admission.
113
+ `flow.ts`; do not include `node_modules`. `bun install --lockfile-only` is the
114
+ author-side lock-generation step: it creates no project-local `node_modules`,
115
+ but may use the network and Bun's author-side cache. On the first `jig review`
116
+ after those inputs change, Jig fetches the frozen production artifacts and
117
+ materializes a private execution snapshot in a contained trusted preparation
118
+ process, using the fixed Bun runtime, the default npm registry, and no
119
+ lifecycle scripts. It reuses the Run containment and ownership mechanism but
120
+ deliberately has registry network access. A declined review may therefore have
121
+ materialized inert evidence without granting authority. Unsupported or
122
+ unlocked sources fail before admission.
123
+
124
+ Unreleased code can remain ordinary readable files inside the Flow package and
125
+ be imported relatively. Code shared from elsewhere must be copied or bundled
126
+ into the finished package before `jig review`; Jig does not follow symlinks or
127
+ resolve `file:`, `workspace:`, or Git dependencies and does not own that build
128
+ step.
129
+
130
+ A dependency-free package needs no `bun.lock`; omit it rather than preserving
131
+ an empty or stale lock. Optional package schemas are FLOW Schema/1 files and
132
+ must begin with the exact root declaration
133
+ `"$schema": "https://flow.jig.md/schemas/schema-1.json"`.
101
134
 
102
135
  The admitted Run uses only the retained prepared bytes. It has no network,
103
136
  ambient `PATH`, package installation, or lifecycle scripts. Packages with no
104
137
  runtime dependencies continue to run directly, and already bundled
105
- package-local code remains valid. An unchanged `jig check` reuses the admitted
138
+ package-local code remains valid. An unchanged `jig review` reuses the admitted
106
139
  prepared tree only while its source and host evidence still match.
107
140
 
108
- Bindings use an explicit target:
141
+ Bindings use an explicit target. A declaration may also give its package exact
142
+ child-Flow slots:
143
+
144
+ ```ts
145
+ import { defineBinding } from "@jigging/jig";
146
+
147
+ export default defineBinding({
148
+ package: "./flows/reviewer",
149
+ slots: { research: "flow:flows/research" },
150
+ });
151
+ ```
109
152
 
110
153
  ```console
111
154
  jig run binding:reviewer --input '{}'
112
155
  ```
113
156
 
114
- Jig never guesses an unprefixed target.
157
+ `slots` is optional and omission normalizes to `{}`. It maps at most 256
158
+ LocalName keys to explicit `flow:<path>` or `binding:<id>` targets in the same
159
+ admitted generation. Slots belong to the Binding; a direct `flow:` Run has none.
160
+ Selected child Bindings must have no child slots of their own.
161
+
162
+ Each `flow/call` carries JSON/1 input into a fresh child context and returns a
163
+ complete JSON/1 Run result. The child receives its selected target's admitted
164
+ settings and Agent capability, empty attachments, no inherited slots, and a
165
+ deadline no later than its parent. It selects its own package-local Skills per
166
+ Agent call; providers and credentials remain host choices. Run/1 controls
167
+ operation identity, duplicate joins, conflicting reuse, cancellation, and
168
+ uncertainty; Jig does not replay uncertain dispatch automatically. There is no
169
+ separate child history, administration, scheduler, catalogue, or resolver. Jig
170
+ also never guesses an unprefixed target.
171
+
172
+ Each Run context admits one active operation; a child Flow can own one Agent
173
+ operation while its parent awaits it. Excess distinct concurrent calls receive
174
+ `RESOURCE_EXHAUSTED`, while sequential calls remain available. Cancellation and
175
+ cleanup cover the specialist and its locally owned Agent worker.
176
+
177
+ One experimental [Agent Run capability](https://jig.md/spec/agent-run) is
178
+ available through ordinary Run/1 `effect/call`. The host may use the official
179
+ OpenAI JavaScript SDK against an operator-selected OpenAI-compatible endpoint,
180
+ or run native Codex, Claude Code, or Pi through one private ACP mechanism.
181
+ Direct API configuration uses `OPENAI_API_KEY` and `OPENAI_MODEL`; optional
182
+ `OPENAI_BASE_URL` and `OPENAI_API` select the HTTPS endpoint and either the
183
+ `responses` (default) or `chat-completions` wire shape. Jig supplies no default
184
+ model. Client, API, endpoint, model, executable path, and credentials are
185
+ trusted host configuration, not FLOW or Binding inputs, and Jig exposes no
186
+ provider registry.
115
187
 
116
188
  The complete runnable example and current specification map are in the
117
- [repository README](https://github.com/jigmd/jig#readme) and
118
- [`docs/jig/guide/index.md`](https://github.com/jigmd/jig/blob/main/docs/jig/guide/index.md).
189
+ [repository README](https://github.com/jiggy/jig#readme) and
190
+ [`docs/jig/guide/index.md`](https://github.com/jiggy/jig/blob/main/docs/jig/guide/index.md).
119
191
 
120
192
  This is a prerelease alpha. It does not expose Services, Hooks, event sources,
121
- Agent providers, Semantic Choice, Jig Graph, runtime registries, or sandbox
122
- registries.
193
+ a provider registry or package-selected provider configuration, Agent sessions,
194
+ Semantic Choice, Jig Graph, schedulers, catalogues, runtime registries, or
195
+ sandbox registries.
123
196
 
124
197
  Copyright © 2026 Victor Duarte <zvictor> and contributors.
@@ -35,6 +35,56 @@ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
35
35
  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
36
36
  THIS SOFTWARE.
37
37
 
38
+ openai 7.9.0
39
+ ------------
40
+
41
+ Jig bundles portions of the official OpenAI TypeScript and JavaScript library
42
+ in its private OpenAI Agent worker.
43
+
44
+ Copyright 2026 OpenAI
45
+
46
+ Licensed under the Apache License, Version 2.0. The complete license is shipped
47
+ as `libexec/agent/openai.LICENSE`.
48
+
49
+ @agentclientprotocol/codex-acp 1.8.0
50
+ ------------------------------------
51
+
52
+ Jig ships the official ACP adapter for native OpenAI Codex as an inert support
53
+ asset. It is selected only when the operator explicitly enables the native
54
+ Codex client; Jig does not include the Codex executable or its credentials.
55
+
56
+ Copyright 2025 JetBrains s.r.o.
57
+
58
+ Licensed under the Apache License, Version 2.0. The complete adapter license is
59
+ shipped as `libexec/agent/codex-acp.LICENSE`.
60
+
61
+ @agentclientprotocol/claude-agent-acp 0.73.0
62
+ -------------------------------------------------
63
+
64
+ Jig bundles the official ACP adapter for native Claude Code as optional inert
65
+ support. The adapter is selected only when the operator explicitly enables
66
+ Claude Code; Jig does not include the native Claude executable or credentials.
67
+
68
+ Copyright 2025 Zed Industries
69
+
70
+ The adapter is licensed under Apache-2.0. Its bundle includes Anthropic's
71
+ Claude Agent SDK, whose use is governed by Anthropic's legal agreements. The
72
+ applicable texts are shipped as `libexec/agent/claude-agent-acp.LICENSE` and
73
+ `libexec/agent/claude-agent-sdk.LICENSE`.
74
+
75
+ pi-acp 0.0.33
76
+ -------------
77
+
78
+ Jig bundles the ACP adapter for native Pi as optional inert support. The
79
+ adapter is selected only when the operator explicitly enables Pi; Jig does not
80
+ include credentials or the operator-supplied native Pi executable and sibling
81
+ runtime-support files.
82
+
83
+ Copyright (c) 2026 Sergii Kozak
84
+
85
+ Licensed under MIT. The complete license is shipped as
86
+ `libexec/agent/pi-acp.LICENSE`.
87
+
38
88
  Unicode 15.1.0 CaseFolding data
39
89
  --------------------------------
40
90
 
package/bin/jig CHANGED
@@ -16,6 +16,8 @@ if [ -x /usr/bin/readlink ]; then
16
16
  readlink=/usr/bin/readlink
17
17
  elif [ -x /bin/readlink ]; then
18
18
  readlink=/bin/readlink
19
+ elif [ -x /run/current-system/sw/bin/readlink ]; then
20
+ readlink=/run/current-system/sw/bin/readlink
19
21
  else
20
22
  fail
21
23
  fi
package/dist/index.js CHANGED
@@ -1754,6 +1754,7 @@ function compareProjectPaths(left, right) {
1754
1754
  }
1755
1755
 
1756
1756
  // src/project/author.ts
1757
+ var LOCAL_NAME = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
1757
1758
  var GLOB_CHARACTERS = /[*?\[\]{}]/;
1758
1759
  function discover(roots) {
1759
1760
  const values = typeof roots === "string" ? [roots] : snapshotStringArray(roots, "roots");
@@ -1782,9 +1783,15 @@ function normalizeJig(input, canonical) {
1782
1783
  function defineBinding(input) {
1783
1784
  return normalizeBinding(input, false);
1784
1785
  }
1786
+ function flowRef(path) {
1787
+ return record({ kind: "flow", path: normalizeProjectPath(path, "Flow reference") });
1788
+ }
1789
+ function bindingRef(id) {
1790
+ return record({ kind: "binding", id: validateLocalName(id, "Binding reference") });
1791
+ }
1785
1792
  function normalizeBinding(input, canonical) {
1786
1793
  const captured = snapshotJsonObject(input, "Binding definition");
1787
- assertClosedObject(captured, canonical ? ["kind", "package", "settings"] : ["package", "settings"], "Binding definition");
1794
+ assertClosedObject(captured, canonical ? ["kind", "package", "settings", "slots"] : ["package", "settings", "slots"], "Binding definition");
1788
1795
  if (canonical && captured.kind !== "package") {
1789
1796
  throw new TypeError("Binding kind must be package");
1790
1797
  }
@@ -1792,7 +1799,30 @@ function normalizeBinding(input, canonical) {
1792
1799
  throw new TypeError("Binding package is required");
1793
1800
  const packagePath = normalizeProjectPath(captured.package, "package");
1794
1801
  const settings = Object.hasOwn(captured, "settings") ? expectJsonObject(captured.settings, "settings") : emptyRecord();
1795
- return record({ kind: "package", package: packagePath, settings });
1802
+ const slots = Object.hasOwn(captured, "slots") ? normalizeFlowSlots(captured.slots) : emptyRecord();
1803
+ return record({ kind: "package", package: packagePath, settings, slots });
1804
+ }
1805
+ function normalizeFlowSlots(value) {
1806
+ const input = snapshotJsonObject(value, "slots");
1807
+ if (Object.keys(input).length > 256) {
1808
+ throw new TypeError("slots exceed 256 entries");
1809
+ }
1810
+ const output = Object.create(null);
1811
+ for (const name of Object.keys(input).sort(compareUtf8)) {
1812
+ validateLocalName(name, "slot name");
1813
+ const target = parseRunTargetSelector(input[name], `slot ${name}`);
1814
+ output[name] = target.kind === "flow" ? `flow:${target.path}` : `binding:${target.id}`;
1815
+ }
1816
+ return Object.freeze(output);
1817
+ }
1818
+ function parseRunTargetSelector(value, label) {
1819
+ if (typeof value !== "string")
1820
+ throw new TypeError(`${label} must be a target selector`);
1821
+ if (value.startsWith("flow:"))
1822
+ return flowRef(normalizeProjectPath(value.slice(5), label));
1823
+ if (value.startsWith("binding:"))
1824
+ return bindingRef(validateLocalName(value.slice(8), label));
1825
+ throw new TypeError(`${label} must select flow:<path> or binding:<id>`);
1796
1826
  }
1797
1827
  function normalizeSource(value, field, canonical) {
1798
1828
  if (value === undefined)
@@ -1836,6 +1866,12 @@ function normalizeUniquePaths(values, label, rejectGlob) {
1836
1866
  assertNoProjectPathCollisions(paths, label);
1837
1867
  return Object.freeze(paths);
1838
1868
  }
1869
+ function validateLocalName(value, label) {
1870
+ if (typeof value !== "string" || value.length > 64 || !LOCAL_NAME.test(value)) {
1871
+ throw new TypeError(`${label} must be a LocalName`);
1872
+ }
1873
+ return value;
1874
+ }
1839
1875
  function snapshotJsonObject(value, label) {
1840
1876
  const snapshot = snapshotJson(value, label);
1841
1877
  validateJson1(snapshot);
@@ -30,10 +30,12 @@ export interface PackageBindingDefinition {
30
30
  readonly kind: "package";
31
31
  readonly package: string;
32
32
  readonly settings: JsonObject;
33
+ readonly slots: Readonly<Record<string, string>>;
33
34
  }
34
35
  export interface PackageBindingInput {
35
36
  readonly package: string;
36
37
  readonly settings?: JsonObject;
38
+ readonly slots?: Readonly<Record<string, string>>;
37
39
  }
38
40
  export type BindingDefinition = PackageBindingDefinition;
39
41
  export declare function discover(roots: string | readonly string[]): DiscoverySource;
@@ -45,3 +47,5 @@ export declare function flowRef(path: string): FlowRef;
45
47
  export declare function bindingRef(id: string): BindingRef;
46
48
  /** Evaluator-only canonical re-normalization; absent from the package root. */
47
49
  export declare function normalizePackageBindingDefinition(input: unknown): PackageBindingDefinition;
50
+ /** Internal selector parsing shared by authoring and exact project linking. */
51
+ export declare function parseRunTargetSelector(value: unknown, label: string): RunTargetRef;
@@ -0,0 +1,191 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2025 Zed Industries, Inc. and contributors
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.