@mosadd/mcp 3.0.0-alpha.34 → 3.0.0-alpha.35
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 +3 -3
- package/dist/bin/mcp.js +1 -1
- package/dist/{chunk-IWLN5EO5.js → chunk-2UC5HJ7S.js} +403 -281
- package/dist/index.d.ts +6 -4
- package/dist/index.js +1 -1
- package/package.json +15 -15
- package/src/server.ts +2 -1
- package/src/tools/index.ts +8 -4
- package/src/tools/mdm-as-agent.ts +122 -0
- package/src/version.ts +8 -0
- package/LICENSE +0 -201
package/dist/index.d.ts
CHANGED
|
@@ -211,12 +211,14 @@ declare function createMosaddServer(options?: MosaddServerOptions): McpServer;
|
|
|
211
211
|
* defensive classification over the threat taxonomy — the surveillance-era
|
|
212
212
|
* *marketing* was killed, the classification engine is real and wanted.
|
|
213
213
|
*
|
|
214
|
-
*
|
|
214
|
+
* 84 callable tools registered — the exact live count is exported as TOOL_COUNT
|
|
215
215
|
* (= allTools.length) below; ALWAYS reference that, never re-hard-code a number that drifts.
|
|
216
|
-
* Breakdown (2026-08-
|
|
217
|
-
* modules mDM
|
|
216
|
+
* Breakdown (2026-08-17, measured from a live tools/list on the built server):
|
|
217
|
+
* modules mDM 16 · mIRC 24 · mURL 7 · mAYL 16 = 63; capabilities mTALK 6 · mRAG 8 ·
|
|
218
218
|
* comms 5 (action_create/action_frame_get/embed_create/capabilities/session_attach) · Irondome/threat 2
|
|
219
|
-
* = 21.
|
|
219
|
+
* = 21. 63 + 21 = 84. (mDM 16 = 14 + mDM_send_as_agent/mDM_list_my_agents added 2026-08-17: an MCP key
|
|
220
|
+
* is bound to a USER, so an agent runtime wired up with its owner's key spoke AS THE OWNER — these
|
|
221
|
+
* let it speak as an agent it OWNS instead, checked server-side. mRAG 8 = 4 search/ingest + 4 mRAG_graph_* traversal tools added 2026-08-11.
|
|
220
222
|
* comms_session_attach added 2026-08-14: a live agent session claims the account's reply lane so
|
|
221
223
|
* the cloud stand-in defers to it — the front door that used to be a script on one PC.)
|
|
222
224
|
* (History of this line drifting: the 2026-07-17 breakdown ended "= 69"
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mosadd/mcp",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.35",
|
|
4
4
|
"mcpName": "io.github.hei33enberg/mosadd-mcp",
|
|
5
|
-
"description": "Model Context Protocol server for mosadd. Exposes 4 modules (mDM, mIRC, mURL, mAYL) and capabilities (mTALK, mRAG) plus comms agent-actions —
|
|
5
|
+
"description": "Model Context Protocol server for mosadd. Exposes 4 modules (mDM, mIRC, mURL, mAYL) and capabilities (mTALK, mRAG) plus comms agent-actions — 84 tools — to any agent runtime (Claude Code, Cursor, Windsurf, Cline, ChatGPT Apps, Lovable, Bolt, Goose, Manus, custom).",
|
|
6
6
|
"homepage": "https://github.com/Hei33enberg/mosADD-OS/tree/main/packages/mcp",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -34,14 +34,21 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsup src/index.ts src/bin/mcp.ts src/bin/login.ts --format esm --dts --clean --shims",
|
|
39
|
+
"dev": "tsx src/bin/mcp.ts",
|
|
40
|
+
"test": "vitest run",
|
|
41
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
42
|
+
"clean": "rm -rf dist .turbo"
|
|
43
|
+
},
|
|
37
44
|
"dependencies": {
|
|
38
45
|
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
46
|
+
"@mosadd/crypto": "workspace:*",
|
|
47
|
+
"@mosadd/protocol": "workspace:*",
|
|
48
|
+
"@mosadd/providers": "workspace:*",
|
|
49
|
+
"@mosadd/threat-engine": "workspace:*",
|
|
39
50
|
"@supabase/supabase-js": "^2.48.0",
|
|
40
|
-
"zod": "^4.3.6"
|
|
41
|
-
"@mosadd/crypto": "3.0.0-alpha.27",
|
|
42
|
-
"@mosadd/providers": "3.0.0-alpha.27",
|
|
43
|
-
"@mosadd/threat-engine": "3.0.0-alpha.28",
|
|
44
|
-
"@mosadd/protocol": "3.0.0-alpha.28"
|
|
51
|
+
"zod": "^4.3.6"
|
|
45
52
|
},
|
|
46
53
|
"devDependencies": {
|
|
47
54
|
"tsup": "^8.3.5",
|
|
@@ -62,12 +69,5 @@
|
|
|
62
69
|
],
|
|
63
70
|
"engines": {
|
|
64
71
|
"node": ">=18"
|
|
65
|
-
},
|
|
66
|
-
"scripts": {
|
|
67
|
-
"build": "tsup src/index.ts src/bin/mcp.ts src/bin/login.ts --format esm --dts --clean --shims",
|
|
68
|
-
"dev": "tsx src/bin/mcp.ts",
|
|
69
|
-
"test": "vitest run",
|
|
70
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
71
|
-
"clean": "rm -rf dist .turbo"
|
|
72
72
|
}
|
|
73
|
-
}
|
|
73
|
+
}
|
package/src/server.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
6
6
|
import { allTools } from "./tools/index.js";
|
|
7
|
+
import { PKG_VERSION } from "./version.js";
|
|
7
8
|
import { SupabaseDmProvider } from "./providers/supabase-dm.js";
|
|
8
9
|
import { SupabaseVoiceProvider } from "./providers/supabase-voice.js";
|
|
9
10
|
import { InMemoryMdmKeyStore, publishOwnPrekeys } from "./crypto/mdm-session.js";
|
|
@@ -60,7 +61,7 @@ export function createMosaddServer(options: MosaddServerOptions = {}) {
|
|
|
60
61
|
const server = new McpServer(
|
|
61
62
|
{
|
|
62
63
|
name: "mosadd",
|
|
63
|
-
version:
|
|
64
|
+
version: PKG_VERSION,
|
|
64
65
|
},
|
|
65
66
|
{
|
|
66
67
|
capabilities: {
|
package/src/tools/index.ts
CHANGED
|
@@ -12,12 +12,14 @@
|
|
|
12
12
|
* defensive classification over the threat taxonomy — the surveillance-era
|
|
13
13
|
* *marketing* was killed, the classification engine is real and wanted.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* 84 callable tools registered — the exact live count is exported as TOOL_COUNT
|
|
16
16
|
* (= allTools.length) below; ALWAYS reference that, never re-hard-code a number that drifts.
|
|
17
|
-
* Breakdown (2026-08-
|
|
18
|
-
* modules mDM
|
|
17
|
+
* Breakdown (2026-08-17, measured from a live tools/list on the built server):
|
|
18
|
+
* modules mDM 16 · mIRC 24 · mURL 7 · mAYL 16 = 63; capabilities mTALK 6 · mRAG 8 ·
|
|
19
19
|
* comms 5 (action_create/action_frame_get/embed_create/capabilities/session_attach) · Irondome/threat 2
|
|
20
|
-
* = 21.
|
|
20
|
+
* = 21. 63 + 21 = 84. (mDM 16 = 14 + mDM_send_as_agent/mDM_list_my_agents added 2026-08-17: an MCP key
|
|
21
|
+
* is bound to a USER, so an agent runtime wired up with its owner's key spoke AS THE OWNER — these
|
|
22
|
+
* let it speak as an agent it OWNS instead, checked server-side. mRAG 8 = 4 search/ingest + 4 mRAG_graph_* traversal tools added 2026-08-11.
|
|
21
23
|
* comms_session_attach added 2026-08-14: a live agent session claims the account's reply lane so
|
|
22
24
|
* the cloud stand-in defers to it — the front door that used to be a script on one PC.)
|
|
23
25
|
* (History of this line drifting: the 2026-07-17 breakdown ended "= 69"
|
|
@@ -48,6 +50,7 @@
|
|
|
48
50
|
|
|
49
51
|
import type { MosaddTool } from "../types.js";
|
|
50
52
|
import { mdmTools } from "./mdm.js";
|
|
53
|
+
import { mdmAsAgentTools } from "./mdm-as-agent.js"; // mDM_send_as_agent + mDM_list_my_agents — 2026-08-17 (LINEAR-5620): a key is bound to a USER, so an agent runtime connected with its owner's key spoke AS THE OWNER and had no thread with him. These let that session speak as an agent it OWNS (verified server-side in mdm-send-as-agent).
|
|
51
54
|
import { mdmVoiceTools } from "./mdm-voice.js";
|
|
52
55
|
import { mircTools } from "./mirc.js";
|
|
53
56
|
import { mircMembersTools } from "./mirc-members.js";
|
|
@@ -75,6 +78,7 @@ import { makeCapabilitiesTool } from "./capabilities.js";
|
|
|
75
78
|
/** The m* channel tools (everything except the meta discovery tool). */
|
|
76
79
|
const channelTools: MosaddTool[] = [
|
|
77
80
|
...mdmTools,
|
|
81
|
+
...mdmAsAgentTools,
|
|
78
82
|
...mdmVoiceTools,
|
|
79
83
|
...mircTools,
|
|
80
84
|
...mircMembersTools,
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* mDM agent-attributed send — a person's session speaks AS one of THEIR agents.
|
|
3
|
+
*
|
|
4
|
+
* ── THE PROBLEM THIS SOLVES ──────────────────────────────────────────────────
|
|
5
|
+
* An MCP key is bound to a USER, and the hosted gateway exchanges it for THAT
|
|
6
|
+
* user's session. So when someone adds the connector while signed in as
|
|
7
|
+
* themselves, their agent runtime comes up holding the OWNER'S identity. The
|
|
8
|
+
* founder hit exactly this on 2026-08-17: his "Dispatch" agent authenticated as
|
|
9
|
+
* him, went looking for him among his own contacts, did not find him, and
|
|
10
|
+
* reported the agent↔agent guard as the cause. The real cost was that his mDM
|
|
11
|
+
* had no living 1:1 thread with his dispatcher.
|
|
12
|
+
*
|
|
13
|
+
* With this tool the same session can post AS `dispatcher@mosadd.com`, so the
|
|
14
|
+
* DYSPOZYTOR thread fills with messages FROM the dispatcher.
|
|
15
|
+
*
|
|
16
|
+
* ── AUTHORIZATION ────────────────────────────────────────────────────────────
|
|
17
|
+
* Enforced SERVER-SIDE by the `mdm-send-as-agent` Edge Function, never here:
|
|
18
|
+
* the named identity must be `kind='agent'`, owned by the CALLER
|
|
19
|
+
* (`owner_user_id`), and not retired. A client-side check would be decoration —
|
|
20
|
+
* the tool arguments are attacker-controlled by definition.
|
|
21
|
+
*
|
|
22
|
+
* Shape follows the accepted `mAYL_send_as_agent` precedent (owner's credential
|
|
23
|
+
* in, agent-attributed message out). Its AUTH model was deliberately not copied:
|
|
24
|
+
* measured 2026-08-17, `hub-claim-mint` accepts any `agent_id` string and never
|
|
25
|
+
* compares it to an owner, so the agent name in a mAYL provenance stamp is
|
|
26
|
+
* caller-asserted text. That gap is filed as LINEAR-5625; this tool does not
|
|
27
|
+
* reproduce it.
|
|
28
|
+
*
|
|
29
|
+
* Auth transport also differs on purpose: mAYL_send_as_agent reads
|
|
30
|
+
* `process.env.MOSADD_API_KEY`, which does not exist on the hosted multi-tenant
|
|
31
|
+
* gateway (the key is per-request there, not process-wide). This tool goes
|
|
32
|
+
* through `invokeFunction`, i.e. the caller's own session — so it works
|
|
33
|
+
* identically over stdio and over mcp.mosadd.com.
|
|
34
|
+
*
|
|
35
|
+
* Agent DMs travel as plaintext base64 on the established agent lane (the same
|
|
36
|
+
* path agent-dm-responder uses); this tool does not change that property.
|
|
37
|
+
* LINEAR-5620.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
import { z } from "zod";
|
|
41
|
+
import type { MosaddTool, MosaddToolContext } from "../types.js";
|
|
42
|
+
import { invokeFunction } from "../providers/supabase.js";
|
|
43
|
+
|
|
44
|
+
const mDM_send_as_agent_input = z.object({
|
|
45
|
+
agent: z
|
|
46
|
+
.string()
|
|
47
|
+
.min(1)
|
|
48
|
+
.max(200)
|
|
49
|
+
.describe(
|
|
50
|
+
"Which of YOUR agents to speak as — its mosADD address (dispatcher@mosadd.com), " +
|
|
51
|
+
"its identity id, or its display name. Must be an agent you own.",
|
|
52
|
+
),
|
|
53
|
+
text: z.string().min(1).max(8000).describe("The message body, as the agent would write it."),
|
|
54
|
+
to: z
|
|
55
|
+
.string()
|
|
56
|
+
.max(200)
|
|
57
|
+
.optional()
|
|
58
|
+
.describe(
|
|
59
|
+
"Recipient identity id or mosADD address. Defaults to YOU (the key's owner) — " +
|
|
60
|
+
"the common case is an agent reporting to its owner. Must be a person, not another agent.",
|
|
61
|
+
),
|
|
62
|
+
silent: z
|
|
63
|
+
.boolean()
|
|
64
|
+
.optional()
|
|
65
|
+
.describe("Deliver without waking a phone: the message still arrives and shows unread, only the OS push is skipped."),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const mDM_list_my_agents_input = z.object({});
|
|
69
|
+
|
|
70
|
+
type SendResult = {
|
|
71
|
+
ok: boolean;
|
|
72
|
+
sent_as: { identity_id: string; address: string | null; display_name: string | null };
|
|
73
|
+
to: { identity_id: string; display_name: string | null };
|
|
74
|
+
thread_id: string;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
async function mDM_send_as_agent(
|
|
78
|
+
input: z.infer<typeof mDM_send_as_agent_input>,
|
|
79
|
+
ctx: MosaddToolContext,
|
|
80
|
+
): Promise<SendResult> {
|
|
81
|
+
ctx.log("debug", "mDM_send_as_agent", { agent: input.agent });
|
|
82
|
+
return await invokeFunction<SendResult>("mdm-send-as-agent", {
|
|
83
|
+
agent: input.agent,
|
|
84
|
+
text: input.text,
|
|
85
|
+
...(input.to ? { to: input.to } : {}),
|
|
86
|
+
...(input.silent ? { silent: true } : {}),
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
async function mDM_list_my_agents(
|
|
91
|
+
_input: z.infer<typeof mDM_list_my_agents_input>,
|
|
92
|
+
ctx: MosaddToolContext,
|
|
93
|
+
): Promise<{ agents: Array<{ identity_id: string; address: string | null; display_name: string | null }> }> {
|
|
94
|
+
ctx.log("debug", "mDM_list_my_agents");
|
|
95
|
+
return await invokeFunction("mdm-send-as-agent", { action: "list_agents" });
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export const mdmAsAgentTools: MosaddTool[] = [
|
|
99
|
+
{
|
|
100
|
+
name: "mDM_send_as_agent",
|
|
101
|
+
requires: "network",
|
|
102
|
+
description:
|
|
103
|
+
"Send a direct message AS ONE OF YOUR OWN AGENTS instead of as yourself. Use this when you are an " +
|
|
104
|
+
"agent runtime (Dispatch, Hermes, a CTO agent) connected with your owner's key: without it every " +
|
|
105
|
+
"message you send appears to come FROM the owner, so the owner has no thread with you. Names the " +
|
|
106
|
+
"agent by mosADD address, identity id or display name; `to` defaults to the key's owner. The server " +
|
|
107
|
+
"verifies you OWN that agent — speaking as someone else's agent, or as another person, is refused. " +
|
|
108
|
+
"Recipient must be a person: agent-to-agent DM stays blocked.",
|
|
109
|
+
inputSchema: mDM_send_as_agent_input,
|
|
110
|
+
handler: mDM_send_as_agent as MosaddTool["handler"],
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: "mDM_list_my_agents",
|
|
114
|
+
requires: "network",
|
|
115
|
+
description:
|
|
116
|
+
"List the agents you are allowed to speak as with mDM_send_as_agent — every live agent owned by " +
|
|
117
|
+
"the account behind this key, with its identity id, mosADD address and display name. Call this " +
|
|
118
|
+
"first when you are unsure which agent identity you hold.",
|
|
119
|
+
inputSchema: mDM_list_my_agents_input,
|
|
120
|
+
handler: mDM_list_my_agents as MosaddTool["handler"],
|
|
121
|
+
},
|
|
122
|
+
];
|
package/src/version.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Single source of truth for the package version at RUNTIME.
|
|
2
|
+
// ⛔ Never hand-type the version anywhere else (server.ts carried a hardcoded
|
|
3
|
+
// "3.0.0-alpha.32" while package.json said alpha.34 — serverInfo lied to every
|
|
4
|
+
// connected client). tsup bundles this JSON import, so the constant always
|
|
5
|
+
// equals the version that was actually published.
|
|
6
|
+
import pkg from "../package.json" with { type: "json" };
|
|
7
|
+
|
|
8
|
+
export const PKG_VERSION: string = (pkg as { version: string }).version;
|
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 acceptance of 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 and
|
|
170
|
-
on Your sole responsibility, not on behalf of any other Contributor,
|
|
171
|
-
and only if You agree to indemnify, defend, and hold each Contributor
|
|
172
|
-
harmless for any liability incurred by, or claims asserted against,
|
|
173
|
-
such Contributor by reason of your accepting any such warranty or
|
|
174
|
-
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 mosadd 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 implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|