qgraphflow 0.0.6
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/.agents/plugins/marketplace.json +20 -0
- package/.claude-plugin/marketplace.json +17 -0
- package/.claude-plugin/plugin.json +13 -0
- package/.codex-plugin/plugin.json +26 -0
- package/.cursor-plugin/plugin.json +9 -0
- package/.qoder-plugin/plugin.json +9 -0
- package/LICENSE +21 -0
- package/README.md +262 -0
- package/THIRD_PARTY_NOTICES.md +190 -0
- package/bin/qgraphflow.mjs +17 -0
- package/docs/clients.de.md +83 -0
- package/docs/clients.es.md +83 -0
- package/docs/clients.ja.md +83 -0
- package/docs/clients.md +83 -0
- package/docs/clients.pt.md +83 -0
- package/docs/clients.ru.md +83 -0
- package/docs/clients.zh-CN.md +83 -0
- package/docs/readme/README.de.md +262 -0
- package/docs/readme/README.es.md +262 -0
- package/docs/readme/README.ja.md +262 -0
- package/docs/readme/README.pt.md +262 -0
- package/docs/readme/README.ru.md +262 -0
- package/docs/readme/README.zh-CN.md +264 -0
- package/examples/order-flow.graph.json +94 -0
- package/package.json +61 -0
- package/skills/q-flow/SKILL.md +69 -0
- package/skills/q-flow/agents/openai.yaml +5 -0
- package/skills/q-flow/assets/layout-dist/ELK-LICENSE.md +264 -0
- package/skills/q-flow/assets/layout-dist/worker.mjs +24 -0
- package/skills/q-flow/assets/viewer/package.json +22 -0
- package/skills/q-flow/assets/viewer/src/diagrams/architecture.js +43 -0
- package/skills/q-flow/assets/viewer/src/diagrams/card.js +21 -0
- package/skills/q-flow/assets/viewer/src/diagrams/class.js +52 -0
- package/skills/q-flow/assets/viewer/src/diagrams/dataflow.js +19 -0
- package/skills/q-flow/assets/viewer/src/diagrams/deployment.js +41 -0
- package/skills/q-flow/assets/viewer/src/diagrams/drawing.js +174 -0
- package/skills/q-flow/assets/viewer/src/diagrams/er.js +34 -0
- package/skills/q-flow/assets/viewer/src/diagrams/flowchart.js +37 -0
- package/skills/q-flow/assets/viewer/src/diagrams/registry.js +28 -0
- package/skills/q-flow/assets/viewer/src/diagrams/sequence.js +38 -0
- package/skills/q-flow/assets/viewer/src/diagrams/state.js +91 -0
- package/skills/q-flow/assets/viewer/src/diagrams/usecase.js +28 -0
- package/skills/q-flow/assets/viewer/src/edge-routing.js +596 -0
- package/skills/q-flow/assets/viewer/src/export-svg.js +90 -0
- package/skills/q-flow/assets/viewer/src/graph-validation.js +286 -0
- package/skills/q-flow/assets/viewer/src/i18n-messages.json +1314 -0
- package/skills/q-flow/assets/viewer/src/i18n.js +14 -0
- package/skills/q-flow/assets/viewer/src/layout-measure.js +55 -0
- package/skills/q-flow/assets/viewer/src/layout-quality.js +164 -0
- package/skills/q-flow/assets/viewer/src/layout-spacing.js +12 -0
- package/skills/q-flow/assets/viewer/src/node-svg.js +28 -0
- package/skills/q-flow/assets/viewer/src/radix-colors.js +47 -0
- package/skills/q-flow/assets/viewer/src/sequence-executions.js +140 -0
- package/skills/q-flow/assets/viewer/src/sequence-fragments.js +208 -0
- package/skills/q-flow/assets/viewer/src/session-graph.js +43 -0
- package/skills/q-flow/assets/viewer/src/text-layout.js +126 -0
- package/skills/q-flow/assets/viewer/src/visual-style.js +158 -0
- package/skills/q-flow/assets/viewer-dist/index.html +291 -0
- package/skills/q-flow/references/acceptance.md +11 -0
- package/skills/q-flow/references/evidence-sources.md +38 -0
- package/skills/q-flow/references/graph-common.md +54 -0
- package/skills/q-flow/references/graph-schema.md +214 -0
- package/skills/q-flow/references/guided-intake.md +100 -0
- package/skills/q-flow/references/types/architecture.md +41 -0
- package/skills/q-flow/references/types/class.md +40 -0
- package/skills/q-flow/references/types/dataflow.md +41 -0
- package/skills/q-flow/references/types/deployment.md +37 -0
- package/skills/q-flow/references/types/er.md +36 -0
- package/skills/q-flow/references/types/flowchart.md +47 -0
- package/skills/q-flow/references/types/sequence.md +74 -0
- package/skills/q-flow/references/types/state.md +44 -0
- package/skills/q-flow/references/types/usecase.md +39 -0
- package/skills/q-flow/references/viewer-development.md +258 -0
- package/skills/q-flow/references/visual-contract.md +54 -0
- package/skills/q-flow/scripts/compile-layout.mjs +565 -0
- package/skills/q-flow/scripts/compile-sequence.mjs +112 -0
- package/skills/q-flow/scripts/generate-viewer.mjs +126 -0
- package/skills/q-flow/scripts/validate-graph.mjs +278 -0
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "qgraphflow",
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "Generate evidence-grounded interactive software diagrams with offline HTML, SVG and PNG export.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/supermax92/qgraphflow.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/supermax92/qgraphflow#readme",
|
|
11
|
+
"bugs": "https://github.com/supermax92/qgraphflow/issues",
|
|
12
|
+
"bin": {
|
|
13
|
+
"qgraphflow": "bin/qgraphflow.mjs"
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=22"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"bin/",
|
|
20
|
+
".codex-plugin/",
|
|
21
|
+
".claude-plugin/",
|
|
22
|
+
".qoder-plugin/",
|
|
23
|
+
".cursor-plugin/",
|
|
24
|
+
".agents/plugins/marketplace.json",
|
|
25
|
+
"skills/q-flow/SKILL.md",
|
|
26
|
+
"skills/q-flow/agents/",
|
|
27
|
+
"skills/q-flow/references/",
|
|
28
|
+
"skills/q-flow/scripts/generate-viewer.mjs",
|
|
29
|
+
"skills/q-flow/scripts/validate-graph.mjs",
|
|
30
|
+
"skills/q-flow/assets/viewer-dist/index.html",
|
|
31
|
+
"skills/q-flow/assets/viewer/package.json",
|
|
32
|
+
"skills/q-flow/assets/viewer/src/diagrams/",
|
|
33
|
+
"skills/q-flow/assets/viewer/src/edge-routing.js",
|
|
34
|
+
"skills/q-flow/assets/viewer/src/sequence-fragments.js",
|
|
35
|
+
"skills/q-flow/assets/viewer/src/sequence-executions.js",
|
|
36
|
+
"skills/q-flow/assets/viewer/src/i18n.js",
|
|
37
|
+
"skills/q-flow/assets/viewer/src/i18n-messages.json",
|
|
38
|
+
"skills/q-flow/assets/viewer/src/radix-colors.js",
|
|
39
|
+
"skills/q-flow/assets/viewer/src/text-layout.js",
|
|
40
|
+
"skills/q-flow/assets/viewer/src/visual-style.js",
|
|
41
|
+
"LICENSE",
|
|
42
|
+
"THIRD_PARTY_NOTICES.md",
|
|
43
|
+
"README.md",
|
|
44
|
+
"docs/clients*.md",
|
|
45
|
+
"docs/readme/",
|
|
46
|
+
"examples/order-flow.graph.json",
|
|
47
|
+
"skills/q-flow/scripts/compile-layout.mjs",
|
|
48
|
+
"skills/q-flow/scripts/compile-sequence.mjs",
|
|
49
|
+
"skills/q-flow/assets/layout-dist/",
|
|
50
|
+
"skills/q-flow/assets/viewer/src/graph-validation.js",
|
|
51
|
+
"skills/q-flow/assets/viewer/src/layout-measure.js",
|
|
52
|
+
"skills/q-flow/assets/viewer/src/layout-spacing.js",
|
|
53
|
+
"skills/q-flow/assets/viewer/src/session-graph.js",
|
|
54
|
+
"skills/q-flow/assets/viewer/src/layout-quality.js",
|
|
55
|
+
"skills/q-flow/assets/viewer/src/export-svg.js",
|
|
56
|
+
"skills/q-flow/assets/viewer/src/node-svg.js"
|
|
57
|
+
],
|
|
58
|
+
"scripts": {
|
|
59
|
+
"package": "node scripts/package.mjs"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: q-flow
|
|
3
|
+
description: Create, audit or refresh evidence-grounded interactive software diagrams from source, schemas, config, or requirements; deliver offline HTML, graph JSON and SVG.
|
|
4
|
+
argument-hint: "[module or flow] [what the diagram should answer]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Q flow
|
|
8
|
+
|
|
9
|
+
Generate an offline diagram artifact in the target repository, with SVG/PNG downloads in its Viewer.
|
|
10
|
+
|
|
11
|
+
## Intake
|
|
12
|
+
|
|
13
|
+
A request is ready when the invocation or the conversation names a subject (repository, module, flow, entity set or document) and the question the diagram must answer, at a matching level: a behaviour question (call order, decisions, data movement, lifecycle) needs one flow or component as its subject, so a repository- or module-level subject with such a question is not ready: find entry points with the file-name and annotation search in [guided-intake.md](references/guided-intake.md) (`rg -l`; do not open source files) and ask which flow. Diagram type, granularity, output directory, language and graph count have defaults and are never asked. Start Evidence without another question only when the invocation and conversation together provide a ready request.
|
|
14
|
+
|
|
15
|
+
When both are missing, run one guided round from [guided-intake.md](references/guided-intake.md) before Evidence: inventory the repository first so options name real modules, ask subject and intent in one message with a recommended option, and add a second round only for the cases it lists. When only one is missing, or the level does not match, ask for that one only. Use the client's structured question tool when one exists; otherwise number the options in plain text. After asking, end the turn and wait for the reply; never assume an answer. Write no output files before the round completes.
|
|
16
|
+
|
|
17
|
+
## Evidence
|
|
18
|
+
|
|
19
|
+
- Prefer one bounded CodeGraph query when its index is current. CodeGraph is optional; if missing or stale, use [evidence-sources.md](references/evidence-sources.md) for direct tracing and optional setup.
|
|
20
|
+
- Use source/tests for calls, DDL/mappings for ER, manifests for deployment, and accepted requirements plus implementation for business behavior.
|
|
21
|
+
- Preserve exact identifiers and file/line anchors. Separate repository facts, framework behavior, documents, and inference; omit unproven critical relationships and label other inference. Never put secrets or token values in graph data.
|
|
22
|
+
|
|
23
|
+
## Author
|
|
24
|
+
|
|
25
|
+
1. Choose `meta.diagramType` by intent: structure → `architecture`; decisions → `flowchart`; ordered calls → `sequence`; stored data → `er`; runtime placement → `deployment`; types → `class`; lifecycle → `state`; actors/capabilities → `usecase`; data movement → `dataflow`. Default to `architecture` when ambiguous. Use one graph unless the user explicitly requests multiple views; order a collection as architecture, flowchart, sequence, ER, deployment, class, state, use case, then data flow.
|
|
26
|
+
2. Read exactly two files: [graph-common.md](references/graph-common.md) and the matching type page in [references/types/](references/types/) (`types/<diagramType>.md`). Do not read `graph-schema.md`, `visual-contract.md`, `examples/`, `scripts/`, `assets/` or any test to learn rules: the two pages carry every rule the validator applies plus a minimal valid skeleton, and anything they leave open is settled by the validator's message, not by reading implementation.
|
|
27
|
+
3. Write the complete evidenced graph that answers the question, as facts without coordinates — layout is computed. Real names and full labels; `evidence` on every edge; `source` anchors on repository-backed nodes; `groupId` / `parentId` for real ownership only; `layout.rank`, `layout.order`, `primaryPath` or `participantOrder` only for an order the source already has. Mark the business center with the `business` kind or a `core` tag, never literal colors or invented kinds. In a collection, reuse the same non-empty `module` value for the same business module. Preserve ER keys/cardinalities, class members/multiplicities, sequence pairing/fragments/executions, state guards and architecture/deployment boundaries. Write the file once and complete; later corrections are edits to the reported fields.
|
|
28
|
+
4. Default output: `<repository-root>/docs/qgraphflow/<scope>-<diagram-type>/`, with a short kebab-case scope or `overview`. Honor user-selected directories, including legacy paths.
|
|
29
|
+
|
|
30
|
+
## Generate and verify
|
|
31
|
+
|
|
32
|
+
Resolve this skill directory from the loaded `SKILL.md`, not the client's working directory or a hard-coded installation path. Resolve references, scripts and assets relative to it. Use absolute paths for the input graph and output directory in the target repository; never write user outputs into the plugin installation or cache. Quote paths that may contain spaces.
|
|
33
|
+
|
|
34
|
+
Run from this skill directory (or invoke the scripts by their resolved absolute paths):
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
node scripts/validate-graph.mjs "<absolute-graph.json>" --input-only --repo-root "<absolute-repository-root>"
|
|
38
|
+
node scripts/generate-viewer.mjs "<absolute-graph.json>" "<absolute-output-directory>" --repo-root "<absolute-repository-root>"
|
|
39
|
+
node scripts/validate-graph.mjs "<absolute-output-directory>/graph.json" --repo-root "<absolute-repository-root>"
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
- Execute the scripts; do not read them, the bundled HTML, the Viewer source or tests. `--help` lists every option. A successful run prints one summary line; a failed run prints the failing elements with rule, measurement and remediation, and `--verbose` prints the full receipt when you need it.
|
|
43
|
+
- On failure, repair in this order: `node scripts/validate-graph.mjs "<graph.json>" --input-only --fix --repo-root "<root>"` (renumbers sequence `order`, fills operand ids and unambiguous `replyTo`, adds the callee bar of each answered sync call, re-anchors a symbol found once in its file, prints each change, writes back only when the graph then passes); then edit only the reported fields of the reported elements and rerun. Rewrite the whole file only when the diagram type or the split into views was wrong. Never delete supported facts, shrink text or use `--force` to pass a check.
|
|
44
|
+
- Composition warnings never fail the run; the input validation step prints them in full, the later two only count them in the receipt (`warnings: n`). Fix `module.missing` (an ordinary node without the module of the subsystem whose work it performs), `module.inconsistent` (the same component with different modules across views) and `flowchart.process-branch` (a non-decision that branches). `module.single-tone` asks whether the steps of a flow really are one subsystem's work — if they are, leave it. Module colours are hashed from the name and eight slots repeat by design: the module label stays authoritative, so never rename a module for colour. A failing collection names every failing view in one run.
|
|
45
|
+
- If bounded layout still fails, report the blocking nodes and relationships and propose separate views with explicit coverage of the original model; never silently reduce the requested detail. Generation defaults to `--layout auto`; `--layout preserve` keeps existing geometry under the same gate.
|
|
46
|
+
- For repository-backed diagrams, pass the target repository root to both commands: they verify every node `source` against local UTF-8 files (existence, line range, symbol, no path escape) and report `sourceEvidence`. This checks the working tree, not the commit in `sourceRef` or whether code proves a relationship. Omitting `--repo-root` reports `skipped`, never verified evidence; say so when source files are unavailable. Conceptual diagrams need no root.
|
|
47
|
+
- Outputs are `index.html`, `graph.json` and one SVG per view (`diagram.svg`, or `diagram-<n>-<type>.svg` in a collection), built from the prebuilt `assets/viewer-dist/index.html`; no Viewer rebuild or package installation. Use `--force` only with approval to replace the named outputs. A collection is one delivery: all views must pass before any output is replaced.
|
|
48
|
+
- Reply with: every artifact path (`index.html`, `graph.json`, each SVG), diagram type(s), evidence scope, the validation result (semantic, geometry, source evidence), unresolved inference or framework boundaries, and the line `Browser acceptance: not performed` unless the next section ran. Keep tool output to summaries or relevant errors; never paste full HTML or graph JSON.
|
|
49
|
+
|
|
50
|
+
## Acceptance on request
|
|
51
|
+
|
|
52
|
+
Ordinary graph delivery ends with the three commands above. Run the browser checks in [acceptance.md](references/acceptance.md) only when (a) the user asks to see or check the rendering, (b) the delivery includes Viewer changes, or (c) a receipt reports rendering diagnostics; read that file only then. Otherwise the reply carries `Browser acceptance: not performed`.
|
|
53
|
+
|
|
54
|
+
## Refresh an existing diagram
|
|
55
|
+
|
|
56
|
+
When asked to update an existing diagram (its directory or `graph.json`), or when source evidence reports drift, refresh it instead of drawing a new one; the request approves `--force` for that directory.
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
node scripts/validate-graph.mjs "<dir>/graph.json" --input-only --fix --repo-root "<root>"
|
|
60
|
+
node scripts/generate-viewer.mjs "<dir>/graph.json" "<dir>" --layout preserve --force --repo-root "<root>"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Between the two, fix only anchors still reported: read just their files, edit just those nodes' `source` or facts, and report a symbol you cannot place. Do not re-gather evidence or rewrite the graph unless asked; then validate the output as above. `preserve` keeps the user's moved positions and edited text; if it fails the gate, report the nodes and ask before `--layout auto`. Reply with the changed anchors and every artifact path. If a browser could only download `graph.json`, put it in `<dir>` and regenerate the page and SVGs.
|
|
64
|
+
|
|
65
|
+
## Viewer maintenance
|
|
66
|
+
|
|
67
|
+
For Viewer changes or interaction audits, read [viewer-development.md](references/viewer-development.md), including its maintained visual/interaction contract. Changes to Viewer source, routing, schema behavior, or validation require the full nine-type browser matrix described there. Graph-only delivery uses the single-page check in [acceptance.md](references/acceptance.md).
|
|
68
|
+
|
|
69
|
+
Publishing the plugin or creating a remote repository requires separate user authorization.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Q flow"
|
|
3
|
+
short_description: "Nine kinds of interactive software diagrams from source, configuration and documents"
|
|
4
|
+
brand_color: "#203f35"
|
|
5
|
+
default_prompt: "Use $q-flow to generate the right kind of interactive software diagram from the current evidence."
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
# Eclipse Public License - v 2.0
|
|
2
|
+
|
|
3
|
+
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
|
|
4
|
+
PUBLIC LICENSE (“AGREEMENT”). ANY USE, REPRODUCTION OR DISTRIBUTION OF
|
|
5
|
+
THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
|
|
6
|
+
|
|
7
|
+
## 1. DEFINITIONS
|
|
8
|
+
|
|
9
|
+
“Contribution” means:
|
|
10
|
+
|
|
11
|
+
- a\) in the case of the initial Contributor, the initial content
|
|
12
|
+
Distributed under this Agreement, and
|
|
13
|
+
- b\) in the case of each subsequent Contributor:
|
|
14
|
+
- i\) changes to the Program, and
|
|
15
|
+
- ii\) additions to the Program;
|
|
16
|
+
|
|
17
|
+
where such changes and/or additions to the Program originate from
|
|
18
|
+
and are Distributed by that particular Contributor. A Contribution
|
|
19
|
+
“originates” from a Contributor if it was added to the Program by
|
|
20
|
+
such Contributor itself or anyone acting on such Contributor's
|
|
21
|
+
behalf. Contributions do not include changes or additions to the
|
|
22
|
+
Program that are not Modified Works.
|
|
23
|
+
|
|
24
|
+
“Contributor” means any person or entity that Distributes the Program.
|
|
25
|
+
|
|
26
|
+
“Licensed Patents” mean patent claims licensable by a Contributor which
|
|
27
|
+
are necessarily infringed by the use or sale of its Contribution alone
|
|
28
|
+
or when combined with the Program.
|
|
29
|
+
|
|
30
|
+
“Program” means the Contributions Distributed in accordance with this
|
|
31
|
+
Agreement.
|
|
32
|
+
|
|
33
|
+
“Recipient” means anyone who receives the Program under this Agreement
|
|
34
|
+
or any Secondary License (as applicable), including Contributors.
|
|
35
|
+
|
|
36
|
+
“Derivative Works” shall mean any work, whether in Source Code or other
|
|
37
|
+
form, that is based on (or derived from) the Program and for which the
|
|
38
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
39
|
+
represent, as a whole, an original work of authorship.
|
|
40
|
+
|
|
41
|
+
“Modified Works” shall mean any work in Source Code or other form that
|
|
42
|
+
results from an addition to, deletion from, or modification of the
|
|
43
|
+
contents of the Program, including, for purposes of clarity any new file
|
|
44
|
+
in Source Code form that contains any contents of the Program. Modified
|
|
45
|
+
Works shall not include works that contain only declarations,
|
|
46
|
+
interfaces, types, classes, structures, or files of the Program solely
|
|
47
|
+
in each case in order to link to, bind by name, or subclass the Program
|
|
48
|
+
or Modified Works thereof.
|
|
49
|
+
|
|
50
|
+
“Distribute” means the acts of a) distributing or b) making available in
|
|
51
|
+
any manner that enables the transfer of a copy.
|
|
52
|
+
|
|
53
|
+
“Source Code” means the form of a Program preferred for making
|
|
54
|
+
modifications, including but not limited to software source code,
|
|
55
|
+
documentation source, and configuration files.
|
|
56
|
+
|
|
57
|
+
“Secondary License” means either the GNU General Public License, Version
|
|
58
|
+
2.0, or any later versions of that license, including any exceptions or
|
|
59
|
+
additional permissions as identified by the initial Contributor.
|
|
60
|
+
|
|
61
|
+
## 2. GRANT OF RIGHTS
|
|
62
|
+
|
|
63
|
+
- a\) Subject to the terms of this Agreement, each Contributor hereby
|
|
64
|
+
grants Recipient a non-exclusive, worldwide, royalty-free copyright
|
|
65
|
+
license to reproduce, prepare Derivative Works of, publicly display,
|
|
66
|
+
publicly perform, Distribute and sublicense the Contribution of such
|
|
67
|
+
Contributor, if any, and such Derivative Works.
|
|
68
|
+
- b\) Subject to the terms of this Agreement, each Contributor hereby
|
|
69
|
+
grants Recipient a non-exclusive, worldwide, royalty-free patent license
|
|
70
|
+
under Licensed Patents to make, use, sell, offer to sell, import and
|
|
71
|
+
otherwise transfer the Contribution of such Contributor, if any, in
|
|
72
|
+
Source Code or other form. This patent license shall apply to the
|
|
73
|
+
combination of the Contribution and the Program if, at the time the
|
|
74
|
+
Contribution is added by the Contributor, such addition of the
|
|
75
|
+
Contribution causes such combination to be covered by the
|
|
76
|
+
Licensed Patents. The patent license shall not apply to any other
|
|
77
|
+
combinations which include the Contribution. No hardware per se is
|
|
78
|
+
licensed hereunder.
|
|
79
|
+
- c\) Recipient understands that although each Contributor grants the
|
|
80
|
+
licenses to its Contributions set forth herein, no assurances are
|
|
81
|
+
provided by any Contributor that the Program does not infringe the
|
|
82
|
+
patent or other intellectual property rights of any other entity. Each
|
|
83
|
+
Contributor disclaims any liability to Recipient for claims brought by
|
|
84
|
+
any other entity based on infringement of intellectual property rights
|
|
85
|
+
or otherwise. As a condition to exercising the rights and licenses
|
|
86
|
+
granted hereunder, each Recipient hereby assumes sole responsibility to
|
|
87
|
+
secure any other intellectual property rights needed, if any. For
|
|
88
|
+
example, if a third party patent license is required to allow Recipient
|
|
89
|
+
to Distribute the Program, it is Recipient's responsibility to acquire
|
|
90
|
+
that license before distributing the Program.
|
|
91
|
+
- d\) Each Contributor represents that to its knowledge it has sufficient
|
|
92
|
+
copyright rights in its Contribution, if any, to grant the copyright
|
|
93
|
+
license set forth in this Agreement.
|
|
94
|
+
- e\) Notwithstanding the terms of any Secondary License, no Contributor
|
|
95
|
+
makes additional grants to any Recipient (other than those set forth in
|
|
96
|
+
this Agreement) as a result of such Recipient's receipt of the Program
|
|
97
|
+
under the terms of a Secondary License (if permitted under the terms of
|
|
98
|
+
Section 3).
|
|
99
|
+
|
|
100
|
+
## 3. REQUIREMENTS
|
|
101
|
+
|
|
102
|
+
3.1 If a Contributor Distributes the Program in any form, then:
|
|
103
|
+
|
|
104
|
+
- a\) the Program must also be made available as Source Code, in accordance
|
|
105
|
+
with section 3.2, and the Contributor must accompany the Program with a
|
|
106
|
+
statement that the Source Code for the Program is available under this
|
|
107
|
+
Agreement, and informs Recipients how to obtain it in a reasonable
|
|
108
|
+
manner on or through a medium customarily used for software exchange;
|
|
109
|
+
and
|
|
110
|
+
- b\) the Contributor may Distribute the Program under a license different
|
|
111
|
+
than this Agreement, provided that such license:
|
|
112
|
+
- i\) effectively disclaims on behalf of all other Contributors all
|
|
113
|
+
warranties and conditions, express and implied, including warranties or
|
|
114
|
+
conditions of title and non-infringement, and implied warranties or
|
|
115
|
+
conditions of merchantability and fitness for a particular purpose;
|
|
116
|
+
- ii\) effectively excludes on behalf of all other Contributors all
|
|
117
|
+
liability for damages, including direct, indirect, special, incidental
|
|
118
|
+
and consequential damages, such as lost profits;
|
|
119
|
+
- iii\) does not attempt to limit or alter the recipients' rights in the
|
|
120
|
+
Source Code under section 3.2; and
|
|
121
|
+
- iv\) requires any subsequent distribution of the Program by any party to
|
|
122
|
+
be under a license that satisfies the requirements of this section 3.
|
|
123
|
+
|
|
124
|
+
3.2 When the Program is Distributed as Source Code:
|
|
125
|
+
|
|
126
|
+
- a\) it must be made available under this Agreement, or if the Program (i)
|
|
127
|
+
is combined with other material in a separate file or files made
|
|
128
|
+
available under a Secondary License, and (ii) the initial Contributor
|
|
129
|
+
attached to the Source Code the notice described in Exhibit A of this
|
|
130
|
+
Agreement, then the Program may be made available under the terms of
|
|
131
|
+
such Secondary Licenses, and
|
|
132
|
+
- b\) a copy of this Agreement must be included with each copy of
|
|
133
|
+
the Program.
|
|
134
|
+
|
|
135
|
+
3.3 Contributors may not remove or alter any copyright, patent,
|
|
136
|
+
trademark, attribution notices, disclaimers of warranty, or limitations
|
|
137
|
+
of liability (‘notices’) contained within the Program from any copy of
|
|
138
|
+
the Program which they Distribute, provided that Contributors may add
|
|
139
|
+
their own appropriate notices.
|
|
140
|
+
|
|
141
|
+
## 4. COMMERCIAL DISTRIBUTION
|
|
142
|
+
|
|
143
|
+
Commercial distributors of software may accept certain responsibilities
|
|
144
|
+
with respect to end users, business partners and the like. While this
|
|
145
|
+
license is intended to facilitate the commercial use of the Program, the
|
|
146
|
+
Contributor who includes the Program in a commercial product offering
|
|
147
|
+
should do so in a manner which does not create potential liability for
|
|
148
|
+
other Contributors. Therefore, if a Contributor includes the Program in
|
|
149
|
+
a commercial product offering, such Contributor (“Commercial
|
|
150
|
+
Contributor”) hereby agrees to defend and indemnify every other
|
|
151
|
+
Contributor (“Indemnified Contributor”) against any losses, damages and
|
|
152
|
+
costs (collectively “Losses”) arising from claims, lawsuits and other
|
|
153
|
+
legal actions brought by a third party against the Indemnified
|
|
154
|
+
Contributor to the extent caused by the acts or omissions of such
|
|
155
|
+
Commercial Contributor in connection with its distribution of the
|
|
156
|
+
Program in a commercial product offering. The obligations in this
|
|
157
|
+
section do not apply to any claims or Losses relating to any actual or
|
|
158
|
+
alleged intellectual property infringement. In order to qualify, an
|
|
159
|
+
Indemnified Contributor must: a) promptly notify the Commercial
|
|
160
|
+
Contributor in writing of such claim, and b) allow the Commercial
|
|
161
|
+
Contributor to control, and cooperate with the Commercial Contributor
|
|
162
|
+
in, the defense and any related settlement negotiations. The Indemnified
|
|
163
|
+
Contributor may participate in any such claim at its own expense.
|
|
164
|
+
|
|
165
|
+
For example, a Contributor might include the Program in a commercial
|
|
166
|
+
product offering, Product X. That Contributor is then a Commercial
|
|
167
|
+
Contributor. If that Commercial Contributor then makes performance
|
|
168
|
+
claims, or offers warranties related to Product X, those performance
|
|
169
|
+
claims and warranties are such Commercial Contributor's responsibility
|
|
170
|
+
alone. Under this section, the Commercial Contributor would have to
|
|
171
|
+
defend claims against the other Contributors related to those
|
|
172
|
+
performance claims and warranties, and if a court requires any other
|
|
173
|
+
Contributor to pay any damages as a result, the Commercial Contributor
|
|
174
|
+
must pay those damages.
|
|
175
|
+
|
|
176
|
+
## 5. NO WARRANTY {#warranty}
|
|
177
|
+
|
|
178
|
+
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
|
|
179
|
+
PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN “AS IS”
|
|
180
|
+
BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
|
|
181
|
+
IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF
|
|
182
|
+
TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
|
|
183
|
+
PURPOSE. Each Recipient is solely responsible for determining the
|
|
184
|
+
appropriateness of using and distributing the Program and assumes all
|
|
185
|
+
risks associated with its exercise of rights under this Agreement,
|
|
186
|
+
including but not limited to the risks and costs of program errors,
|
|
187
|
+
compliance with applicable laws, damage to or loss of data, programs or
|
|
188
|
+
equipment, and unavailability or interruption of operations.
|
|
189
|
+
|
|
190
|
+
## 6. DISCLAIMER OF LIABILITY {#disclaimer}
|
|
191
|
+
|
|
192
|
+
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
|
|
193
|
+
PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS
|
|
194
|
+
SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
195
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST
|
|
196
|
+
PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
197
|
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
198
|
+
ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
|
|
199
|
+
EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
|
|
200
|
+
POSSIBILITY OF SUCH DAMAGES.
|
|
201
|
+
|
|
202
|
+
## 7. GENERAL
|
|
203
|
+
|
|
204
|
+
If any provision of this Agreement is invalid or unenforceable under
|
|
205
|
+
applicable law, it shall not affect the validity or enforceability of
|
|
206
|
+
the remainder of the terms of this Agreement, and without further action
|
|
207
|
+
by the parties hereto, such provision shall be reformed to the minimum
|
|
208
|
+
extent necessary to make such provision valid and enforceable.
|
|
209
|
+
|
|
210
|
+
If Recipient institutes patent litigation against any entity (including
|
|
211
|
+
a cross-claim or counterclaim in a lawsuit) alleging that the Program
|
|
212
|
+
itself (excluding combinations of the Program with other software or
|
|
213
|
+
hardware) infringes such Recipient's patent(s), then such Recipient's
|
|
214
|
+
rights granted under Section 2(b) shall terminate as of the date such
|
|
215
|
+
litigation is filed.
|
|
216
|
+
|
|
217
|
+
All Recipient's rights under this Agreement shall terminate if it fails
|
|
218
|
+
to comply with any of the material terms or conditions of this Agreement
|
|
219
|
+
and does not cure such failure in a reasonable period of time after
|
|
220
|
+
becoming aware of such noncompliance. If all Recipient's rights under
|
|
221
|
+
this Agreement terminate, Recipient agrees to cease use and distribution
|
|
222
|
+
of the Program as soon as reasonably practicable. However, Recipient's
|
|
223
|
+
obligations under this Agreement and any licenses granted by Recipient
|
|
224
|
+
relating to the Program shall continue and survive.
|
|
225
|
+
|
|
226
|
+
Everyone is permitted to copy and distribute copies of this Agreement,
|
|
227
|
+
but in order to avoid inconsistency the Agreement is copyrighted and may
|
|
228
|
+
only be modified in the following manner. The Agreement Steward reserves
|
|
229
|
+
the right to publish new versions (including revisions) of this
|
|
230
|
+
Agreement from time to time. No one other than the Agreement Steward has
|
|
231
|
+
the right to modify this Agreement. The Eclipse Foundation is the
|
|
232
|
+
initial Agreement Steward. The Eclipse Foundation may assign the
|
|
233
|
+
responsibility to serve as the Agreement Steward to a suitable separate
|
|
234
|
+
entity. Each new version of the Agreement will be given a distinguishing
|
|
235
|
+
version number. The Program (including Contributions) may always be
|
|
236
|
+
Distributed subject to the version of the Agreement under which it was
|
|
237
|
+
received. In addition, after a new version of the Agreement is
|
|
238
|
+
published, Contributor may elect to Distribute the Program (including
|
|
239
|
+
its Contributions) under the new version.
|
|
240
|
+
|
|
241
|
+
Except as expressly stated in Sections 2(a) and 2(b) above, Recipient
|
|
242
|
+
receives no rights or licenses to the intellectual property of any
|
|
243
|
+
Contributor under this Agreement, whether expressly, by implication,
|
|
244
|
+
estoppel or otherwise. All rights in the Program not expressly granted
|
|
245
|
+
under this Agreement are reserved. Nothing in this Agreement is intended
|
|
246
|
+
to be enforceable by any entity that is not a Contributor or Recipient.
|
|
247
|
+
No third-party beneficiary rights are created under this Agreement.
|
|
248
|
+
|
|
249
|
+
## Exhibit A – Form of Secondary Licenses Notice {#exhibit-a}
|
|
250
|
+
|
|
251
|
+
“This Source Code may also be made available under the following
|
|
252
|
+
Secondary Licenses when the conditions for such availability set forth
|
|
253
|
+
in the Eclipse Public License, v. 2.0 are satisfied: {name license(s),
|
|
254
|
+
version(s), and exceptions or additional permissions here}.”
|
|
255
|
+
|
|
256
|
+
> Simply including a copy of this Agreement, including this Exhibit A is
|
|
257
|
+
> not sufficient to license the Source Code under Secondary Licenses.
|
|
258
|
+
>
|
|
259
|
+
> If it is not possible or desirable to put the notice in a particular
|
|
260
|
+
> file, then You may include the notice in a location (such as a LICENSE
|
|
261
|
+
> file in a relevant directory) where a recipient would be likely to
|
|
262
|
+
> look for such a notice.
|
|
263
|
+
>
|
|
264
|
+
> You may add additional accurate notices of copyright ownership.
|