@clix-so/clix-agent-skills 0.1.1
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 +90 -0
- package/dist/bin/cli.js +29 -0
- package/dist/bin/commands/install.js +108 -0
- package/dist/bin/utils/mcp.js +131 -0
- package/package.json +53 -0
- package/skills/integration/LICENSE.txt +202 -0
- package/skills/integration/SKILL.md +426 -0
- package/skills/integration/examples/android-integration.kt +38 -0
- package/skills/integration/examples/flutter-integration.dart +81 -0
- package/skills/integration/examples/ios-integration.swift +36 -0
- package/skills/integration/examples/react-native-integration.tsx +18 -0
- package/skills/integration/references/error-handling.md +265 -0
- package/skills/integration/references/framework-patterns.md +201 -0
- package/skills/integration/references/mcp-integration.md +284 -0
- package/skills/integration/references/sdk-reference.md +217 -0
- package/skills/integration/scripts/install-mcp.sh +244 -0
- package/skills/integration/scripts/validate-sdk.sh +380 -0
package/README.md
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# Agent Skills for Clix
|
|
2
|
+
|
|
3
|
+
This repository contains a collection of **Agent Skills for Clix**. Each skill
|
|
4
|
+
is a self-contained package that can be loaded and executed by AI clients.
|
|
5
|
+
|
|
6
|
+
## Installing Skills
|
|
7
|
+
|
|
8
|
+
Agents skills on this repository are built on the
|
|
9
|
+
[open agent skills standard](https://agentskills.io/home). Please refer to the
|
|
10
|
+
[official documentation](https://agentskills.io/docs) for up-to-date information
|
|
11
|
+
of support AI clients. Depending on the AI client you are using, you can install
|
|
12
|
+
skills in different ways.
|
|
13
|
+
|
|
14
|
+
### Universal CLI (Recommended)
|
|
15
|
+
|
|
16
|
+
For **Cursor**, **VS Code**, **Claude Desktop**, **OpenCode**, **Goose**,
|
|
17
|
+
**GitHub Copilot**, **Amp**, and **Letta**, use our CLI tool to install skills
|
|
18
|
+
and configure the Clix MCP Server automatically:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx @clix-so/clix-agent-skills install <skill-name> --client <your-client>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**Supported Clients:**
|
|
25
|
+
|
|
26
|
+
| Client | Flag | Default Path |
|
|
27
|
+
| :------------- | :------------------ | :----------------- |
|
|
28
|
+
| Amp | `--client amp` | `.amp/skills/` |
|
|
29
|
+
| Claude | `--client claude` | `.claude/skills/` |
|
|
30
|
+
| Codex | `--client codex` | `.codex/skills/` |
|
|
31
|
+
| Cursor | `--client cursor` | `.cursor/skills/` |
|
|
32
|
+
| GitHub Copilot | `--client github` | `.github/skills/` |
|
|
33
|
+
| Goose | `--client goose` | `.goose/skills/` |
|
|
34
|
+
| Letta | `--client letta` | `.skills/` |
|
|
35
|
+
| OpenCode | `--client opencode` | `.opencode/skill/` |
|
|
36
|
+
|
|
37
|
+
### Claude Code
|
|
38
|
+
|
|
39
|
+
To register this repository as a plugin marketplace in Claude Code, run the
|
|
40
|
+
following command:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
/plugin marketplace add clix-so/skills
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
To install specific skills:
|
|
47
|
+
|
|
48
|
+
1. Select `Browse and install plugins`
|
|
49
|
+
2. Select `clix-agent-skills` from the list
|
|
50
|
+
3. Choose the skills you wish to install
|
|
51
|
+
4. Click `Install` to proceed
|
|
52
|
+
|
|
53
|
+
Alternatively, you can install a single skill directly by running:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
/plugin install <plugin-name>@<marketplace-name>
|
|
57
|
+
# For example
|
|
58
|
+
/plugin install clix-integration@clix-agent-skills
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Remember to restart Claude Code after installation to load the new skills.
|
|
62
|
+
|
|
63
|
+
### Codex
|
|
64
|
+
|
|
65
|
+
To manually install skills, save them from this repository into your Codex
|
|
66
|
+
configuration directory:
|
|
67
|
+
[https://developers.openai.com/codex/skills/#where-to-save-skills](https://developers.openai.com/codex/skills/#where-to-save-skills)
|
|
68
|
+
|
|
69
|
+
Or install a specific skill using the command line:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
$skill-installer install https://github.com/clix-so/skills/tree/main/skills/integration
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Ensure you restart Codex after installation to detect the new skills.
|
|
76
|
+
|
|
77
|
+
## Disclaimer
|
|
78
|
+
|
|
79
|
+
Please be aware that **these skills may occasionally fail or execute
|
|
80
|
+
incorrectly** due to the non-deterministic nature of AI.
|
|
81
|
+
|
|
82
|
+
It is critical that you **carefully review and verify all actions** performed by
|
|
83
|
+
these skills. While they are designed to be helpful, you remain responsible for
|
|
84
|
+
checking their output before use. Use them with caution and supervision.
|
|
85
|
+
|
|
86
|
+
## License
|
|
87
|
+
|
|
88
|
+
Each skill in this repository is governed by its own license. For specific terms
|
|
89
|
+
and conditions, please consult the `LICENSE` file located within each skill's
|
|
90
|
+
individual directory.
|
package/dist/bin/cli.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const commander_1 = require("commander");
|
|
8
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
9
|
+
const install_1 = require("./commands/install");
|
|
10
|
+
const program = new commander_1.Command();
|
|
11
|
+
program
|
|
12
|
+
.name("clix-agent-skills")
|
|
13
|
+
.description("CLI to manage and install Clix Agent Skills")
|
|
14
|
+
.version("1.0.0");
|
|
15
|
+
program
|
|
16
|
+
.command("install <skill>")
|
|
17
|
+
.description("Install a specific agent skill")
|
|
18
|
+
.option("-c, --client <client>", "Target AI client (cursor, claude, vscode, manual)")
|
|
19
|
+
.option("-p, --path <path>", "Custom installation path (default: .clix/skills)")
|
|
20
|
+
.action(async (skill, options) => {
|
|
21
|
+
try {
|
|
22
|
+
await (0, install_1.installSkill)(skill, options);
|
|
23
|
+
}
|
|
24
|
+
catch (error) {
|
|
25
|
+
console.error(chalk_1.default.red("Error installing skill:"), error.message);
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
program.parse(process.argv);
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.installSkill = installSkill;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
9
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
10
|
+
const ora_1 = __importDefault(require("ora"));
|
|
11
|
+
const mcp_1 = require("../utils/mcp");
|
|
12
|
+
async function installSkill(skillName, options) {
|
|
13
|
+
const spinner = (0, ora_1.default)(`Installing skill: ${chalk_1.default.bold(skillName)}`).start();
|
|
14
|
+
// 1. Locate Skill in current package
|
|
15
|
+
// Assuming 'skills' directory is at package root.
|
|
16
|
+
// When running from dist/bin/cli.js, package root is ../../
|
|
17
|
+
// Robustly find package root by looking for package.json
|
|
18
|
+
let packageRoot = __dirname;
|
|
19
|
+
while (!fs_extra_1.default.existsSync(path_1.default.join(packageRoot, "package.json"))) {
|
|
20
|
+
const parent = path_1.default.dirname(packageRoot);
|
|
21
|
+
if (parent === packageRoot) {
|
|
22
|
+
// Reached root without finding package.json, fallback to CWD or throw
|
|
23
|
+
packageRoot = process.cwd();
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
packageRoot = parent;
|
|
27
|
+
}
|
|
28
|
+
// Verify skills directory exists
|
|
29
|
+
let skillSourcePath = path_1.default.join(packageRoot, "skills", skillName);
|
|
30
|
+
if (!fs_extra_1.default.existsSync(skillSourcePath)) {
|
|
31
|
+
// Fallback for development if skills is not in dist but in root
|
|
32
|
+
// (Not needed if finding package.json correctly, but good for sanity)
|
|
33
|
+
console.warn(chalk_1.default.yellow(`Skill not found at ${skillSourcePath}, trying CWD...`));
|
|
34
|
+
skillSourcePath = path_1.default.resolve(process.cwd(), "skills", skillName);
|
|
35
|
+
}
|
|
36
|
+
if (!fs_extra_1.default.existsSync(skillSourcePath)) {
|
|
37
|
+
spinner.fail(`Skill ${chalk_1.default.bold(skillName)} not found locally.`);
|
|
38
|
+
console.log(chalk_1.default.yellow(`Searching in: ${skillSourcePath}`));
|
|
39
|
+
const skillsDir = path_1.default.join(packageRoot, "skills");
|
|
40
|
+
if (fs_extra_1.default.existsSync(skillsDir)) {
|
|
41
|
+
console.log(chalk_1.default.yellow(`Available skills: ${fs_extra_1.default.readdirSync(skillsDir).join(", ")}`));
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
console.log(chalk_1.default.yellow(`Skills directory not found at: ${skillsDir}`));
|
|
45
|
+
}
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
// 2. Determine Destination
|
|
49
|
+
let relativeDest = ".clix/skills";
|
|
50
|
+
if (options.path) {
|
|
51
|
+
relativeDest = options.path;
|
|
52
|
+
}
|
|
53
|
+
else if (options.client) {
|
|
54
|
+
switch (options.client.toLowerCase()) {
|
|
55
|
+
case "claude":
|
|
56
|
+
relativeDest = ".claude/skills";
|
|
57
|
+
break;
|
|
58
|
+
case "cursor":
|
|
59
|
+
relativeDest = ".cursor/skills";
|
|
60
|
+
break;
|
|
61
|
+
case "vscode":
|
|
62
|
+
relativeDest = ".vscode/skills";
|
|
63
|
+
break;
|
|
64
|
+
case "codex":
|
|
65
|
+
relativeDest = ".codex/skills";
|
|
66
|
+
break;
|
|
67
|
+
case "opencode":
|
|
68
|
+
relativeDest = ".opencode/skill";
|
|
69
|
+
break;
|
|
70
|
+
case "letta":
|
|
71
|
+
relativeDest = ".skills";
|
|
72
|
+
break;
|
|
73
|
+
case "goose":
|
|
74
|
+
relativeDest = ".goose/skills";
|
|
75
|
+
break;
|
|
76
|
+
case "github":
|
|
77
|
+
case "copilot":
|
|
78
|
+
relativeDest = ".github/skills";
|
|
79
|
+
break;
|
|
80
|
+
case "amp":
|
|
81
|
+
relativeDest = ".amp/skills";
|
|
82
|
+
break;
|
|
83
|
+
default:
|
|
84
|
+
relativeDest = options.client.startsWith(".") ? `${options.client}/skills` : `.clix/skills`;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
const destPath = path_1.default.resolve(process.cwd(), relativeDest, skillName);
|
|
88
|
+
// 3. Copy Files
|
|
89
|
+
try {
|
|
90
|
+
await fs_extra_1.default.ensureDir(destPath);
|
|
91
|
+
await fs_extra_1.default.copy(skillSourcePath, destPath);
|
|
92
|
+
spinner.succeed(`Skill files installed to ${chalk_1.default.green(relativeDest + "/" + skillName)}`);
|
|
93
|
+
}
|
|
94
|
+
catch (err) {
|
|
95
|
+
spinner.fail(`Failed to copy skill files: ${err.message}`);
|
|
96
|
+
throw err;
|
|
97
|
+
}
|
|
98
|
+
// 4. MCP Configuration
|
|
99
|
+
try {
|
|
100
|
+
await (0, mcp_1.configureMCP)(options.client);
|
|
101
|
+
}
|
|
102
|
+
catch (err) {
|
|
103
|
+
console.warn(chalk_1.default.yellow(`MCP Configuration warning: ${err.message}`));
|
|
104
|
+
}
|
|
105
|
+
console.log(`\n${chalk_1.default.green("✔")} Skill ${chalk_1.default.bold(skillName)} is ready to use!`);
|
|
106
|
+
console.log(` - Docs: ${path_1.default.join(destPath, "SKILL.md")}`);
|
|
107
|
+
console.log(` - Instruct your agent to read these docs to start working.`);
|
|
108
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.configureMCP = configureMCP;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
9
|
+
const os_1 = __importDefault(require("os"));
|
|
10
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
11
|
+
const inquirer_1 = __importDefault(require("inquirer"));
|
|
12
|
+
const CLIX_MCP_CONFIG = {
|
|
13
|
+
"clix-mcp-server": {
|
|
14
|
+
command: "npx",
|
|
15
|
+
args: ["-y", "@clix-so/clix-mcp-server@latest"],
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
async function configureMCP(client) {
|
|
19
|
+
let targetClient = client;
|
|
20
|
+
if (!targetClient) {
|
|
21
|
+
const answers = await inquirer_1.default.prompt([
|
|
22
|
+
{
|
|
23
|
+
type: "list",
|
|
24
|
+
name: "client",
|
|
25
|
+
message: "Which AI client are you using?",
|
|
26
|
+
choices: [
|
|
27
|
+
{ name: "Cursor", value: "cursor" },
|
|
28
|
+
{ name: "Claude Desktop", value: "claude" },
|
|
29
|
+
{ name: "VS Code", value: "vscode" },
|
|
30
|
+
{ name: "Codex", value: "codex" },
|
|
31
|
+
{ name: "OpenCode", value: "opencode" },
|
|
32
|
+
{ name: "Letta", value: "letta" },
|
|
33
|
+
{ name: "Goose", value: "goose" },
|
|
34
|
+
{ name: "GitHub", value: "github" },
|
|
35
|
+
{ name: "Amp", value: "amp" },
|
|
36
|
+
{ name: "None / Manual", value: "manual" },
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
]);
|
|
40
|
+
targetClient = answers.client;
|
|
41
|
+
}
|
|
42
|
+
if (targetClient === "manual") {
|
|
43
|
+
console.log(chalk_1.default.blue("Skipping automatic MCP configuration."));
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const configPath = getConfigPath(targetClient);
|
|
47
|
+
if (!configPath) {
|
|
48
|
+
console.log(chalk_1.default.yellow(`Could not determine config path for ${targetClient}. skipping.`));
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const nicePath = configPath.replace(os_1.default.homedir(), "~");
|
|
52
|
+
console.log(chalk_1.default.blue(`Checking MCP config at ${nicePath}...`));
|
|
53
|
+
if (!fs_extra_1.default.existsSync(configPath)) {
|
|
54
|
+
// For now, confirm before creating new file
|
|
55
|
+
const { create } = await inquirer_1.default.prompt([
|
|
56
|
+
{
|
|
57
|
+
type: "confirm",
|
|
58
|
+
name: "create",
|
|
59
|
+
message: `Config file not found at ${nicePath}. Create it?`,
|
|
60
|
+
default: true,
|
|
61
|
+
},
|
|
62
|
+
]);
|
|
63
|
+
if (!create) {
|
|
64
|
+
console.log(chalk_1.default.yellow("Skipping MCP configuration. You can configure manually later."));
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
try {
|
|
68
|
+
await fs_extra_1.default.ensureDir(path_1.default.dirname(configPath));
|
|
69
|
+
await fs_extra_1.default.writeJSON(configPath, { mcpServers: {} }, { spaces: 2 });
|
|
70
|
+
console.log(chalk_1.default.green(`✔ Created config file at ${nicePath}`));
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
console.log(chalk_1.default.red(`Failed to create config file: ${error.message}`));
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
// Read config
|
|
78
|
+
let config = {};
|
|
79
|
+
try {
|
|
80
|
+
config = await fs_extra_1.default.readJSON(configPath);
|
|
81
|
+
}
|
|
82
|
+
catch (e) {
|
|
83
|
+
console.log(chalk_1.default.red("Failed to parse existing config JSON."));
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (!config.mcpServers)
|
|
87
|
+
config.mcpServers = {};
|
|
88
|
+
if (config.mcpServers["clix-mcp-server"]) {
|
|
89
|
+
console.log(chalk_1.default.green("✔ Clix MCP Server is already configured."));
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
// Ask to inject
|
|
93
|
+
const { inject } = await inquirer_1.default.prompt([
|
|
94
|
+
{
|
|
95
|
+
type: "confirm",
|
|
96
|
+
name: "inject",
|
|
97
|
+
message: `Add Clix MCP Server to ${nicePath}?`,
|
|
98
|
+
default: true,
|
|
99
|
+
},
|
|
100
|
+
]);
|
|
101
|
+
if (inject) {
|
|
102
|
+
config.mcpServers["clix-mcp-server"] = CLIX_MCP_CONFIG["clix-mcp-server"];
|
|
103
|
+
await fs_extra_1.default.writeJSON(configPath, config, { spaces: 2 });
|
|
104
|
+
console.log(chalk_1.default.green(`✔ Added Clix MCP Server to configuration. Please restart ${targetClient}.`));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function getConfigPath(client) {
|
|
108
|
+
const home = os_1.default.homedir();
|
|
109
|
+
switch (client.toLowerCase()) {
|
|
110
|
+
case "cursor":
|
|
111
|
+
// Check for project-level definition first
|
|
112
|
+
const projectCursorPath = path_1.default.join(process.cwd(), ".cursor", "mcp.json");
|
|
113
|
+
if (fs_extra_1.default.existsSync(projectCursorPath)) {
|
|
114
|
+
return projectCursorPath;
|
|
115
|
+
}
|
|
116
|
+
// Fallback to global
|
|
117
|
+
return path_1.default.join(home, ".cursor", "mcp.json");
|
|
118
|
+
case "claude":
|
|
119
|
+
if (process.platform === "darwin") {
|
|
120
|
+
return path_1.default.join(home, "Library", "Application Support", "Claude", "claude_desktop_config.json");
|
|
121
|
+
}
|
|
122
|
+
else if (process.platform === "win32") {
|
|
123
|
+
return path_1.default.join(process.env.APPDATA || "", "Claude", "claude_desktop_config.json");
|
|
124
|
+
}
|
|
125
|
+
return null;
|
|
126
|
+
case "vscode":
|
|
127
|
+
return path_1.default.join(home, ".vscode", "mcp.json"); // Standard VS Code MCP path assumption
|
|
128
|
+
default:
|
|
129
|
+
return null;
|
|
130
|
+
}
|
|
131
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@clix-so/clix-agent-skills",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "An open collection of agent skills for Clix.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"clix-agent-skills": "dist/bin/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"skills"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc",
|
|
15
|
+
"start": "node dist/bin/cli.js",
|
|
16
|
+
"dev": "ts-node src/bin/cli.ts",
|
|
17
|
+
"test": "jest",
|
|
18
|
+
"lint": "prettier --check .",
|
|
19
|
+
"lint:fix": "prettier --write ."
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"clix",
|
|
23
|
+
"mcp",
|
|
24
|
+
"agent",
|
|
25
|
+
"skills",
|
|
26
|
+
"cli"
|
|
27
|
+
],
|
|
28
|
+
"author": "Clix",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/clix-so/skills"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"chalk": "^4.1.2",
|
|
36
|
+
"commander": "^14.0.2",
|
|
37
|
+
"fs-extra": "^11.3.3",
|
|
38
|
+
"inquirer": "^8.2.5",
|
|
39
|
+
"ora": "^5.4.1"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@types/fs-extra": "^11.0.4",
|
|
43
|
+
"@types/inquirer": "^9.0.9",
|
|
44
|
+
"@types/jest": "^30.0.0",
|
|
45
|
+
"@types/node": "^25.0.3",
|
|
46
|
+
"cross-env": "^10.1.0",
|
|
47
|
+
"jest": "^30.2.0",
|
|
48
|
+
"prettier": "^3.6.2",
|
|
49
|
+
"ts-jest": "^29.4.6",
|
|
50
|
+
"ts-node": "^10.9.2",
|
|
51
|
+
"typescript": "^5.9.3"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
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
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|