@mnemom/mnemom 0.17.37 → 0.17.38-next.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.
Files changed (114) hide show
  1. package/dist/commands/agent-run.d.ts +11 -0
  2. package/dist/commands/agent-run.js +37 -0
  3. package/dist/commands/agent-share-render.d.ts +5 -5
  4. package/dist/commands/agent-share-render.js +9 -7
  5. package/dist/commands/agent-share-test-issuer.d.ts +1 -1
  6. package/dist/commands/agent-share-test-issuer.js +1 -1
  7. package/dist/commands/agent.d.ts +8 -1
  8. package/dist/commands/agent.js +14 -3
  9. package/dist/commands/scan.d.ts +15 -2
  10. package/dist/commands/scan.js +48 -3
  11. package/dist/index.js +1 -1
  12. package/dist/lib/commit-report.d.ts +7 -13
  13. package/dist/lib/commit-report.js +12 -5
  14. package/dist/lib/conduct-receipt.d.ts +8 -3
  15. package/dist/lib/conduct-receipt.js +29 -7
  16. package/dist/lib/experimental.d.ts +1 -1
  17. package/dist/lib/experimental.js +1 -12
  18. package/dist/lib/runner/executor-client.d.ts +5 -0
  19. package/dist/lib/runner/executor-client.js +8 -0
  20. package/dist/lib/runner/job.d.ts +37 -0
  21. package/dist/lib/runner/job.js +74 -1
  22. package/dist/lib/runner/phases.d.ts +7 -2
  23. package/dist/lib/runner/phases.js +7 -2
  24. package/dist/lib/runner/proxy.d.ts +26 -2
  25. package/dist/lib/runner/proxy.js +33 -1
  26. package/dist/lib/runner/record-commit.d.ts +16 -0
  27. package/dist/lib/runner/record-commit.js +7 -0
  28. package/dist/lib/scan/spend/anthropic-usage.d.ts +20 -1
  29. package/dist/lib/scan/spend/anthropic-usage.js +32 -7
  30. package/dist/lib/scan/spend/anthropic-wif.d.ts +42 -0
  31. package/dist/lib/scan/spend/anthropic-wif.js +153 -0
  32. package/package.json +2 -5
  33. package/node_modules/@mnemom/aip-verifier/LICENSE +0 -190
  34. package/node_modules/@mnemom/aip-verifier/dist/claim-lint-CVITIRcU.d.cts +0 -478
  35. package/node_modules/@mnemom/aip-verifier/dist/claim-lint-CVITIRcU.d.ts +0 -478
  36. package/node_modules/@mnemom/aip-verifier/dist/index.cjs +0 -971
  37. package/node_modules/@mnemom/aip-verifier/dist/index.cjs.map +0 -1
  38. package/node_modules/@mnemom/aip-verifier/dist/index.d.cts +0 -330
  39. package/node_modules/@mnemom/aip-verifier/dist/index.d.ts +0 -330
  40. package/node_modules/@mnemom/aip-verifier/dist/index.js +0 -933
  41. package/node_modules/@mnemom/aip-verifier/dist/index.js.map +0 -1
  42. package/node_modules/@mnemom/aip-verifier/dist/render-lines.cjs +0 -879
  43. package/node_modules/@mnemom/aip-verifier/dist/render-lines.cjs.map +0 -1
  44. package/node_modules/@mnemom/aip-verifier/dist/render-lines.d.cts +0 -96
  45. package/node_modules/@mnemom/aip-verifier/dist/render-lines.d.ts +0 -96
  46. package/node_modules/@mnemom/aip-verifier/dist/render-lines.js +0 -875
  47. package/node_modules/@mnemom/aip-verifier/dist/render-lines.js.map +0 -1
  48. package/node_modules/@mnemom/aip-verifier/package.json +0 -86
  49. package/node_modules/@noble/ed25519/LICENSE +0 -21
  50. package/node_modules/@noble/ed25519/README.md +0 -371
  51. package/node_modules/@noble/ed25519/index.d.ts +0 -391
  52. package/node_modules/@noble/ed25519/index.js +0 -933
  53. package/node_modules/@noble/ed25519/index.ts +0 -1134
  54. package/node_modules/@noble/ed25519/package.json +0 -54
  55. package/node_modules/@noble/hashes/LICENSE +0 -21
  56. package/node_modules/@noble/hashes/README.md +0 -478
  57. package/node_modules/@noble/hashes/_blake.d.ts +0 -20
  58. package/node_modules/@noble/hashes/_blake.js +0 -59
  59. package/node_modules/@noble/hashes/_md.d.ts +0 -95
  60. package/node_modules/@noble/hashes/_md.js +0 -209
  61. package/node_modules/@noble/hashes/_u64.d.ts +0 -36
  62. package/node_modules/@noble/hashes/_u64.js +0 -77
  63. package/node_modules/@noble/hashes/argon2.d.ts +0 -148
  64. package/node_modules/@noble/hashes/argon2.js +0 -577
  65. package/node_modules/@noble/hashes/blake1.d.ts +0 -162
  66. package/node_modules/@noble/hashes/blake1.js +0 -630
  67. package/node_modules/@noble/hashes/blake2.d.ts +0 -203
  68. package/node_modules/@noble/hashes/blake2.js +0 -573
  69. package/node_modules/@noble/hashes/blake3.d.ts +0 -68
  70. package/node_modules/@noble/hashes/blake3.js +0 -310
  71. package/node_modules/@noble/hashes/eskdf.d.ts +0 -91
  72. package/node_modules/@noble/hashes/eskdf.js +0 -225
  73. package/node_modules/@noble/hashes/hkdf.d.ts +0 -70
  74. package/node_modules/@noble/hashes/hkdf.js +0 -152
  75. package/node_modules/@noble/hashes/hmac.d.ts +0 -50
  76. package/node_modules/@noble/hashes/hmac.js +0 -93
  77. package/node_modules/@noble/hashes/index.d.ts +0 -1
  78. package/node_modules/@noble/hashes/index.js +0 -34
  79. package/node_modules/@noble/hashes/legacy.d.ts +0 -107
  80. package/node_modules/@noble/hashes/legacy.js +0 -348
  81. package/node_modules/@noble/hashes/package.json +0 -91
  82. package/node_modules/@noble/hashes/pbkdf2.d.ts +0 -66
  83. package/node_modules/@noble/hashes/pbkdf2.js +0 -176
  84. package/node_modules/@noble/hashes/scrypt.d.ts +0 -98
  85. package/node_modules/@noble/hashes/scrypt.js +0 -304
  86. package/node_modules/@noble/hashes/sha2.d.ts +0 -176
  87. package/node_modules/@noble/hashes/sha2.js +0 -446
  88. package/node_modules/@noble/hashes/sha3-addons.d.ts +0 -533
  89. package/node_modules/@noble/hashes/sha3-addons.js +0 -973
  90. package/node_modules/@noble/hashes/sha3.d.ts +0 -208
  91. package/node_modules/@noble/hashes/sha3.js +0 -475
  92. package/node_modules/@noble/hashes/src/_blake.ts +0 -67
  93. package/node_modules/@noble/hashes/src/_md.ts +0 -227
  94. package/node_modules/@noble/hashes/src/_u64.ts +0 -111
  95. package/node_modules/@noble/hashes/src/argon2.ts +0 -693
  96. package/node_modules/@noble/hashes/src/blake1.ts +0 -677
  97. package/node_modules/@noble/hashes/src/blake2.ts +0 -648
  98. package/node_modules/@noble/hashes/src/blake3.ts +0 -344
  99. package/node_modules/@noble/hashes/src/eskdf.ts +0 -265
  100. package/node_modules/@noble/hashes/src/hkdf.ts +0 -161
  101. package/node_modules/@noble/hashes/src/hmac.ts +0 -130
  102. package/node_modules/@noble/hashes/src/index.ts +0 -33
  103. package/node_modules/@noble/hashes/src/legacy.ts +0 -361
  104. package/node_modules/@noble/hashes/src/pbkdf2.ts +0 -219
  105. package/node_modules/@noble/hashes/src/scrypt.ts +0 -375
  106. package/node_modules/@noble/hashes/src/sha2.ts +0 -486
  107. package/node_modules/@noble/hashes/src/sha3-addons.ts +0 -1157
  108. package/node_modules/@noble/hashes/src/sha3.ts +0 -525
  109. package/node_modules/@noble/hashes/src/utils.ts +0 -978
  110. package/node_modules/@noble/hashes/src/webcrypto.ts +0 -283
  111. package/node_modules/@noble/hashes/utils.d.ts +0 -560
  112. package/node_modules/@noble/hashes/utils.js +0 -687
  113. package/node_modules/@noble/hashes/webcrypto.d.ts +0 -121
  114. package/node_modules/@noble/hashes/webcrypto.js +0 -228
@@ -0,0 +1,153 @@
1
+ // MNE-9706 (S2.6, design T18): read the Anthropic Console through workload identity federation (WIF).
2
+ //
3
+ // Three steps, all from this machine:
4
+ // 1. Ask mnemom-api for a short-lived OIDC identity token (the "assertion") for the org, with the user's
5
+ // own CLI sign-in: POST /v1/orgs/{org_id}/scan/wif-assertion. Its sub is `mnemom:org:<org_id>`.
6
+ // 2. Exchange it DIRECTLY at Anthropic (POST https://api.anthropic.com/v1/oauth/token, RFC 7523
7
+ // jwt-bearer) for a short-lived access token. Mnemom never sees that token.
8
+ // 3. Hand the token to the usage reader, which sends it only to the two report paths (the fence).
9
+ //
10
+ // The customer's Console holds the federation issuer, service account and rule. The CLI needs only their
11
+ // non-secret ids, read from Anthropic's own variable names (ANTHROPIC_FEDERATION_RULE_ID,
12
+ // ANTHROPIC_ORGANIZATION_ID, ANTHROPIC_SERVICE_ACCOUNT_ID, optional ANTHROPIC_WORKSPACE_ID).
13
+ //
14
+ // The assertion and the access token live in memory for one scan and are never logged, stored, printed,
15
+ // put in argv, a URL or an error message. Every failure is a fixed sentence (WifFailure), so the caller can
16
+ // fall back to the pasted Admin key with a clear message.
17
+ import { MnemomApiError, postApi } from "../../api.js";
18
+ import { ANTHROPIC_ADMIN_ORIGIN } from "./anthropic-usage.js";
19
+ export const WIF_EXCHANGE_URL = `${ANTHROPIC_ADMIN_ORIGIN}/v1/oauth/token`;
20
+ export const WIF_ENV = {
21
+ rule: "ANTHROPIC_FEDERATION_RULE_ID",
22
+ org: "ANTHROPIC_ORGANIZATION_ID",
23
+ serviceAccount: "ANTHROPIC_SERVICE_ACCOUNT_ID",
24
+ workspace: "ANTHROPIC_WORKSPACE_ID",
25
+ };
26
+ /** Same ceiling the server held a WIF token to (credential-source.ts MAX_WIF_TOKEN_LIFETIME_MS). */
27
+ export const MAX_WIF_TOKEN_LIFETIME_MS = 300_000;
28
+ const EXCHANGE_TIMEOUT_MS = 15_000;
29
+ const WIF_TEXT = {
30
+ config_invalid: "The Anthropic workload identity settings are incomplete or malformed (federation rule, organization and service account ids).",
31
+ assertion_unavailable: "Mnemom could not issue a workload identity token for this org right now.",
32
+ assertion_refused: "Mnemom did not issue a workload identity token (sign in as an owner or admin of an org with Org Scan on).",
33
+ exchange_refused: "Anthropic refused the workload identity token. Check the federation rule in your Anthropic Console (its issuer, subject and scope org:admin).",
34
+ exchange_failed: "Anthropic's token exchange could not be completed.",
35
+ };
36
+ export const wifFailureText = (r) => WIF_TEXT[r];
37
+ export const WIF_FALLBACK_NOTE = "Falling back to the pasted Anthropic Admin key.";
38
+ /** Carries only a reason tag; its message is the fixed sentence. */
39
+ export class WifError extends Error {
40
+ reason;
41
+ constructor(reason) {
42
+ super(WIF_TEXT[reason]);
43
+ this.reason = reason;
44
+ this.name = "WifError";
45
+ }
46
+ }
47
+ const RULE_RE = /^fdrl_[A-Za-z0-9]{1,128}$/;
48
+ const SVAC_RE = /^svac_[A-Za-z0-9]{1,128}$/;
49
+ const WRKSPC_RE = /^wrkspc_[A-Za-z0-9]{1,128}$/;
50
+ const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
51
+ /**
52
+ * Reads the WIF ids from env. None of the three required ids set: null (WIF is not set up, no message).
53
+ * Some set, or any malformed: WifError("config_invalid"), so a half-done setup is said out loud.
54
+ */
55
+ export function readWifConfig(env) {
56
+ const get = (k) => {
57
+ const v = env[k]?.trim();
58
+ return v ? v : undefined;
59
+ };
60
+ const rule = get(WIF_ENV.rule);
61
+ const org = get(WIF_ENV.org);
62
+ const svac = get(WIF_ENV.serviceAccount);
63
+ const ws = get(WIF_ENV.workspace);
64
+ if (!rule && !org && !svac)
65
+ return null;
66
+ if (!rule || !org || !svac)
67
+ throw new WifError("config_invalid");
68
+ if (!RULE_RE.test(rule) || !UUID_RE.test(org) || !SVAC_RE.test(svac))
69
+ throw new WifError("config_invalid");
70
+ if (ws !== undefined && !WRKSPC_RE.test(ws))
71
+ throw new WifError("config_invalid");
72
+ return {
73
+ federationRuleId: rule,
74
+ organizationId: org,
75
+ serviceAccountId: svac,
76
+ ...(ws ? { workspaceId: ws } : {}),
77
+ };
78
+ }
79
+ const JWT_RE = /^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/;
80
+ async function defaultMint(orgId) {
81
+ return postApi(`/v1/orgs/${encodeURIComponent(orgId)}/scan/wif-assertion`, {});
82
+ }
83
+ /** Steps 1 and 2. Throws WifError only. */
84
+ export async function obtainWifAccessToken(orgId, cfg, deps = {}) {
85
+ const now = deps.now ?? Date.now;
86
+ let assertion;
87
+ try {
88
+ const body = await (deps.mintAssertion ?? defaultMint)(orgId);
89
+ const a = body && typeof body === "object" ? body.assertion : undefined;
90
+ if (typeof a !== "string" || a.length > 16_384 || !JWT_RE.test(a))
91
+ throw new WifError("assertion_unavailable");
92
+ assertion = a;
93
+ }
94
+ catch (e) {
95
+ if (e instanceof WifError)
96
+ throw e;
97
+ const status = e instanceof MnemomApiError ? e.effectiveStatus : 0;
98
+ // 401/403 is "not you"; 404 is the dark route (Org Scan off for this org). Both: no token for you.
99
+ throw new WifError(status === 401 || status === 403 || status === 404
100
+ ? "assertion_refused"
101
+ : "assertion_unavailable");
102
+ }
103
+ const fetchImpl = deps.fetchImpl ?? ((...a) => fetch(...a));
104
+ let res;
105
+ try {
106
+ res = await fetchImpl(WIF_EXCHANGE_URL, {
107
+ method: "POST",
108
+ headers: { "content-type": "application/json", accept: "application/json" },
109
+ body: JSON.stringify({
110
+ grant_type: "urn:ietf:params:oauth:grant-type:jwt-bearer",
111
+ assertion,
112
+ federation_rule_id: cfg.federationRuleId,
113
+ organization_id: cfg.organizationId,
114
+ service_account_id: cfg.serviceAccountId,
115
+ ...(cfg.workspaceId ? { workspace_id: cfg.workspaceId } : {}),
116
+ }),
117
+ // A redirect would carry the assertion elsewhere: refuse to follow one.
118
+ redirect: "error",
119
+ signal: AbortSignal.timeout(EXCHANGE_TIMEOUT_MS),
120
+ });
121
+ }
122
+ catch {
123
+ // Never surface the thrown value: it can carry the request.
124
+ throw new WifError("exchange_failed");
125
+ }
126
+ if (!res.ok) {
127
+ await res.body?.cancel().catch(() => { });
128
+ throw new WifError(res.status === 400 || res.status === 401 || res.status === 403
129
+ ? "exchange_refused"
130
+ : "exchange_failed");
131
+ }
132
+ let json;
133
+ try {
134
+ json = await res.json();
135
+ }
136
+ catch {
137
+ throw new WifError("exchange_failed");
138
+ }
139
+ const b = json && typeof json === "object" ? json : {};
140
+ const token = b.access_token;
141
+ if (typeof token !== "string" || !/^[\x21-\x7e]{8,4096}$/.test(token))
142
+ throw new WifError("exchange_failed");
143
+ if (b.token_type !== undefined && String(b.token_type).toLowerCase() !== "bearer")
144
+ throw new WifError("exchange_failed");
145
+ const secs = typeof b.expires_in === "number" && Number.isFinite(b.expires_in) && b.expires_in > 0
146
+ ? b.expires_in
147
+ : 300;
148
+ const t = now();
149
+ return {
150
+ accessToken: token,
151
+ expiresAt: Math.min(t + secs * 1000, t + MAX_WIF_TOKEN_LIFETIME_MS),
152
+ };
153
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mnemom/mnemom",
3
- "version": "0.17.37",
3
+ "version": "0.17.38-next.0",
4
4
  "description": "Transparent AI agent tracing",
5
5
  "type": "module",
6
6
  "bin": {
@@ -18,8 +18,8 @@
18
18
  "test": "vitest"
19
19
  },
20
20
  "dependencies": {
21
- "@mnemom/aip-verifier": "file:vendor/mnemom-aip-verifier-0.6.0.tgz",
22
21
  "@mnemom/policy-engine": "^0.3.0",
22
+ "@mnemom/verify": "0.6.2",
23
23
  "chalk": "^5.3.0",
24
24
  "commander": "^12.0.0",
25
25
  "js-yaml": "^4.3.2",
@@ -34,9 +34,6 @@
34
34
  "typescript": "^6.0.3",
35
35
  "vitest": "^4.1.12"
36
36
  },
37
- "bundleDependencies": [
38
- "@mnemom/aip-verifier"
39
- ],
40
37
  "files": [
41
38
  "dist",
42
39
  "!dist/__tests__",
@@ -1,190 +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 the 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 the 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 any 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 reasonable and customary use in describing the
141
- origin of the Work and 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 choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- Copyright 2026 Mnemon
179
-
180
- Licensed under the Apache License, Version 2.0 (the "License");
181
- you may not use this file except in compliance with the License.
182
- You may obtain a copy of the License at
183
-
184
- http://www.apache.org/licenses/LICENSE-2.0
185
-
186
- Unless required by applicable law or agreed to in writing, software
187
- distributed under the License is distributed on an "AS IS" BASIS,
188
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
- See the License for the specific language governing permissions and
190
- limitations under the License.