@hazeljs/cli 0.8.7 → 1.0.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/cli-manifest.json +1 -1
- package/dist/commands/generate-simple.js +1 -1
- package/dist/commands/templates.d.ts +2 -2
- package/dist/commands/templates.js +3 -3
- package/package.json +6 -6
- package/LICENSE +0 -192
package/cli-manifest.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"description": "Machine-readable manifest of all CLI commands and options for LLM agent tool-use",
|
|
5
5
|
"cli": {
|
|
6
6
|
"name": "hazel",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "1.0.1",
|
|
8
8
|
"description": "CLI for generating HazelJS components and applications"
|
|
9
9
|
},
|
|
10
10
|
"commands": [
|
|
@@ -141,7 +141,7 @@ exports.SIMPLE_GENERATORS = [
|
|
|
141
141
|
nameRequired: true,
|
|
142
142
|
nextSteps: [
|
|
143
143
|
'npm install @hazeljs/rag',
|
|
144
|
-
'Wire llm() to HazelAI or
|
|
144
|
+
'Wire llm() to HazelAI or AIEnhancedService',
|
|
145
145
|
'For production vectors, use HazelAI persistence.rag or construct RAGPipeline with your VectorStore',
|
|
146
146
|
],
|
|
147
147
|
},
|
|
@@ -23,12 +23,12 @@ export declare const PIPE_TEMPLATE = "import { type PipeTransform, type RequestC
|
|
|
23
23
|
export declare const EXCEPTION_FILTER_TEMPLATE = "import { Catch, type ExceptionFilter, type ArgumentsHost, HttpError, logger } from '@hazeljs/core';\n\n@Catch(HttpError)\nexport class {{className}}ExceptionFilter implements ExceptionFilter<HttpError> {\n catch(exception: HttpError, host: ArgumentsHost): void {\n const ctx = host.switchToHttp();\n const response = ctx.getResponse();\n const request = ctx.getRequest();\n\n const status = exception.statusCode || 500;\n const message = exception.message || 'Internal server error';\n\n logger.error(`[${request.method}] ${request.url} - ${message} (${status})`);\n\n response.status(status).json({\n statusCode: status,\n message,\n timestamp: new Date().toISOString(),\n path: request.url,\n });\n }\n}\n";
|
|
24
24
|
export declare const REPOSITORY_TEMPLATE = "import { Repository, BaseRepository, PrismaService } from '@hazeljs/prisma';\n\n// @Repository implies @Injectable() \u2014 no need for both decorators\n@Repository({ model: '{{modelName}}' })\nexport class {{className}}Repository extends BaseRepository<any> {\n constructor(prisma: PrismaService) {\n super(prisma, '{{modelName}}');\n }\n\n // Add custom repository methods here\n async findByName(name: string) {\n return this.findMany({ where: { name } });\n }\n}\n";
|
|
25
25
|
export declare const WEBSOCKET_GATEWAY_TEMPLATE = "import { Realtime, OnConnect, OnDisconnect, OnMessage, Subscribe, Client, Data, WebSocketClient } from '@hazeljs/websocket';\n\n@Realtime('/{{fileName}}')\nexport class {{className}}Gateway {\n @OnConnect()\n handleConnection(@Client() client: WebSocketClient) {\n console.log('Client connected:', client.id);\n }\n\n @OnDisconnect()\n handleDisconnect(@Client() client: WebSocketClient) {\n console.log('Client disconnected:', client.id);\n }\n\n @Subscribe('message')\n @OnMessage('message')\n handleMessage(@Client() client: WebSocketClient, @Data() data: unknown) {\n console.log('Message received from', client.id, ':', data);\n // Handle message logic here\n }\n}\n";
|
|
26
|
-
export declare const AI_SERVICE_TEMPLATE = "import { Service } from '@hazeljs/core';\nimport {
|
|
26
|
+
export declare const AI_SERVICE_TEMPLATE = "import { Service } from '@hazeljs/core';\nimport { AIEnhancedService, AIFunction, AIPrompt } from '@hazeljs/ai';\n\n@Service()\nexport class {{className}}AIService {\n constructor(private readonly aiService: AIEnhancedService) {}\n\n @AIFunction({\n provider: 'openai',\n model: 'gpt-4',\n streaming: false,\n })\n async {{camelName}}Task(@AIPrompt() prompt: string): Promise<unknown> {\n const result = await this.aiService.complete({\n provider: 'openai',\n model: 'gpt-4',\n messages: [{ role: 'user', content: prompt }],\n });\n\n return result;\n }\n}\n";
|
|
27
27
|
export declare const AGENT_TEMPLATE = "import { Agent, Tool } from '@hazeljs/agent';\n\n@Agent({\n name: '{{fileName}}',\n description: '{{description}}',\n systemPrompt: 'You are a helpful {{className}} agent.',\n enableMemory: true,\n enableRAG: true,\n})\nexport class {{className}}Agent {\n @Tool({\n description: 'Example tool for {{fileName}}',\n parameters: [\n {\n name: 'input',\n type: 'string',\n description: 'Input parameter',\n required: true,\n },\n ],\n })\n async exampleTool(input: { input: string }): Promise<{ result: string }> {\n // Implement your tool logic here\n return {\n result: `Processed: ${input.input}`,\n };\n }\n}\n";
|
|
28
28
|
export declare const CACHE_SERVICE_TEMPLATE = "import { Service } from '@hazeljs/core';\nimport { CacheService, Cacheable, CacheEvict } from '@hazeljs/cache';\n\n@Service()\nexport class {{className}}CacheService {\n constructor(private readonly cacheService: CacheService) {}\n\n @Cacheable({ key: '{{fileName}}:all', ttl: 60 })\n async findAll() {\n // This result will be cached for 60 seconds\n return [];\n }\n\n @Cacheable({ key: '{{fileName}}:{{=<% %>=}}#{id}<%={{ }}=%>', ttl: 300 })\n async findOne(id: string) {\n // This result will be cached for 5 minutes\n return { id };\n }\n\n @CacheEvict({ key: '{{fileName}}:all' })\n async create(data: any) {\n // Creating a new item evicts the list cache\n return data;\n }\n\n async clearAll() {\n await this.cacheService.clear();\n }\n}\n";
|
|
29
29
|
export declare const CRON_SERVICE_TEMPLATE = "import { Service } from '@hazeljs/core';\nimport { Cron, CronExpression } from '@hazeljs/cron';\n\n@Service()\nexport class {{className}}CronService {\n @Cron(CronExpression.EVERY_MINUTE)\n handleEveryMinute() {\n console.log('[{{className}}Cron] Running every minute...');\n // Add your cron job logic here\n }\n\n @Cron('0 0 * * *') // Every day at midnight\n handleDaily() {\n console.log('[{{className}}Cron] Running daily task...');\n // Add your daily task logic here\n }\n\n @Cron(CronExpression.EVERY_HOUR)\n handleHourly() {\n console.log('[{{className}}Cron] Running hourly cleanup...');\n // Add your hourly task logic here\n }\n}\n";
|
|
30
30
|
export declare const RAG_SERVICE_TEMPLATE = "import { Service } from '@hazeljs/core';\nimport { RAGPipeline, MemoryVectorStore } from '@hazeljs/rag';\n\n@Service()\nexport class {{className}}RagService {\n private pipeline: RAGPipeline;\n\n constructor() {\n // Initialize with a memory vector store (swap for Pinecone, Qdrant, etc. in production)\n const vectorStore = new MemoryVectorStore();\n\n this.pipeline = new RAGPipeline({\n vectorStore,\n topK: 5,\n });\n }\n\n async addDocument(content: string, metadata?: Record<string, unknown>) {\n // Add a document to the vector store for retrieval\n await this.pipeline.addDocument({\n content,\n metadata: metadata || {},\n });\n }\n\n async query(question: string) {\n // Retrieve relevant documents and generate a response\n const results = await this.pipeline.query(question);\n return results;\n }\n}\n";
|
|
31
|
-
export declare const RAG_PIPELINE_TEMPLATE = "import { Service } from '@hazeljs/core';\nimport { RAGPipeline } from '@hazeljs/rag';\n\n/**\n * RAG pipeline scaffold \u2014 uses {@link RAGPipeline.from} with in-memory vectors.\n * Swap persistence via HazelAI `persistence.rag` or construct {@link RAGPipeline} with Pinecone/Qdrant/Weaviate/Chroma.\n */\n@Service()\nexport class {{className}}RagPipelineService {\n private pipeline: RAGPipeline | null = null;\n\n async ensurePipeline(): Promise<RAGPipeline> {\n if (this.pipeline) return this.pipeline;\n this.pipeline = RAGPipeline.from({\n provider: 'openai',\n vectorStore: 'memory',\n topK: 5,\n chunkSize: 1000,\n chunkOverlap: 200,\n llm: async (prompt: string) => {\n // Wire to your LLM (HazelAI,
|
|
31
|
+
export declare const RAG_PIPELINE_TEMPLATE = "import { Service } from '@hazeljs/core';\nimport { RAGPipeline } from '@hazeljs/rag';\n\n/**\n * RAG pipeline scaffold \u2014 uses {@link RAGPipeline.from} with in-memory vectors.\n * Swap persistence via HazelAI `persistence.rag` or construct {@link RAGPipeline} with Pinecone/Qdrant/Weaviate/Chroma.\n */\n@Service()\nexport class {{className}}RagPipelineService {\n private pipeline: RAGPipeline | null = null;\n\n async ensurePipeline(): Promise<RAGPipeline> {\n if (this.pipeline) return this.pipeline;\n this.pipeline = RAGPipeline.from({\n provider: 'openai',\n vectorStore: 'memory',\n topK: 5,\n chunkSize: 1000,\n chunkOverlap: 200,\n llm: async (prompt: string) => {\n // Wire to your LLM (HazelAI, AIEnhancedService, or HTTP)\n return prompt;\n },\n });\n await this.pipeline.initialize();\n return this.pipeline;\n }\n\n async query(question: string) {\n const p = await this.ensurePipeline();\n return p.query(question);\n }\n}\n";
|
|
32
32
|
export declare const DISCOVERY_TEMPLATE = "import { Service } from '@hazeljs/core';\nimport { ServiceRegistry, DiscoveryClient } from '@hazeljs/discovery';\n\n@Service()\nexport class {{className}}DiscoveryService {\n constructor(\n private readonly registry: ServiceRegistry,\n private readonly client: DiscoveryClient,\n ) {}\n\n async registerService() {\n await this.registry.register({\n name: '{{fileName}}-service',\n host: 'localhost',\n port: 3000,\n metadata: {\n version: '1.0.0',\n },\n });\n }\n\n async discoverService(serviceName: string) {\n const instances = await this.client.getInstances(serviceName);\n return instances;\n }\n}\n";
|
|
33
33
|
export declare const CONFIG_TEMPLATE = "import { HazelModule } from '@hazeljs/core';\nimport { ConfigModule, ConfigService } from '@hazeljs/config';\n\n// Import ConfigModule.forRoot() in your app module:\n//\n// @HazelModule({\n// imports: [\n// ConfigModule.forRoot({\n// envFilePath: '.env',\n// }),\n// ],\n// })\n//\n// Then inject ConfigService wherever you need it:\n//\n// constructor(private readonly config: ConfigService) {}\n//\n// Usage:\n// this.config.get('DATABASE_URL');\n// this.config.get('PORT', '3000'); // with default value\n\nexport { ConfigModule, ConfigService };\n";
|
|
34
34
|
export declare const SERVERLESS_LAMBDA_TEMPLATE = "import { createLambdaHandler } from '@hazeljs/serverless';\nimport { AppModule } from './app.module';\n\nexport const handler = createLambdaHandler(AppModule);\n";
|
|
@@ -187,11 +187,11 @@ export class {{className}}Gateway {
|
|
|
187
187
|
}
|
|
188
188
|
`;
|
|
189
189
|
exports.AI_SERVICE_TEMPLATE = `import { Service } from '@hazeljs/core';
|
|
190
|
-
import {
|
|
190
|
+
import { AIEnhancedService, AIFunction, AIPrompt } from '@hazeljs/ai';
|
|
191
191
|
|
|
192
192
|
@Service()
|
|
193
193
|
export class {{className}}AIService {
|
|
194
|
-
constructor(private readonly aiService:
|
|
194
|
+
constructor(private readonly aiService: AIEnhancedService) {}
|
|
195
195
|
|
|
196
196
|
@AIFunction({
|
|
197
197
|
provider: 'openai',
|
|
@@ -344,7 +344,7 @@ export class {{className}}RagPipelineService {
|
|
|
344
344
|
chunkSize: 1000,
|
|
345
345
|
chunkOverlap: 200,
|
|
346
346
|
llm: async (prompt: string) => {
|
|
347
|
-
// Wire to your LLM (HazelAI,
|
|
347
|
+
// Wire to your LLM (HazelAI, AIEnhancedService, or HTTP)
|
|
348
348
|
return prompt;
|
|
349
349
|
},
|
|
350
350
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hazeljs/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Command-line interface for scaffolding and generating HazelJS applications and components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"mustache": "^4.2.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@hazeljs/eval": "^0.
|
|
34
|
+
"@hazeljs/eval": "^1.0.1"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@hazeljs/eval": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@hazeljs/eval": "^0.
|
|
42
|
+
"@hazeljs/eval": "^1.0.1",
|
|
43
43
|
"@types/inquirer": "^8.2.12",
|
|
44
44
|
"@types/jest": "^29.5.14",
|
|
45
45
|
"@types/mustache": "^4.2.6",
|
|
@@ -71,16 +71,16 @@
|
|
|
71
71
|
"license": "Apache-2.0",
|
|
72
72
|
"repository": {
|
|
73
73
|
"type": "git",
|
|
74
|
-
"url": "
|
|
74
|
+
"url": "https://github.com/hazel-js/hazeljs",
|
|
75
75
|
"directory": "packages/cli"
|
|
76
76
|
},
|
|
77
77
|
"bugs": {
|
|
78
|
-
"url": "https://github.com/
|
|
78
|
+
"url": "https://github.com/hazel-js/hazeljs/issues"
|
|
79
79
|
},
|
|
80
80
|
"homepage": "https://hazeljs.ai",
|
|
81
81
|
"funding": {
|
|
82
82
|
"type": "opencollective",
|
|
83
83
|
"url": "https://opencollective.com/hazeljs"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "083b94562940a86c8e0a8cd81988d04b541608ac"
|
|
86
86
|
}
|
package/LICENSE
DELETED
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
Copyright 2024 HazelJS Team
|
|
6
|
-
|
|
7
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
you may not use this file except in compliance with the License.
|
|
9
|
-
You may obtain a copy of the License at
|
|
10
|
-
|
|
11
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
|
|
13
|
-
Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
See the License for the specific language governing permissions and
|
|
17
|
-
limitations under the License.
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
22
|
-
|
|
23
|
-
1. Definitions.
|
|
24
|
-
|
|
25
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
26
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
27
|
-
|
|
28
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
29
|
-
the copyright owner that is granting the License.
|
|
30
|
-
|
|
31
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
32
|
-
other entities that control, are controlled by, or are under common
|
|
33
|
-
control with that entity. For the purposes of this definition,
|
|
34
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
35
|
-
direction or management of such entity, whether by contract or
|
|
36
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
37
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
38
|
-
|
|
39
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
40
|
-
exercising permissions granted by this License.
|
|
41
|
-
|
|
42
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
43
|
-
including but not limited to software source code, documentation
|
|
44
|
-
source, and configuration files.
|
|
45
|
-
|
|
46
|
-
"Object" form shall mean any form resulting from mechanical
|
|
47
|
-
transformation or translation of a Source form, including but
|
|
48
|
-
not limited to compiled object code, generated documentation,
|
|
49
|
-
and conversions to other media types.
|
|
50
|
-
|
|
51
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
52
|
-
Object form, made available under the License, as indicated by a
|
|
53
|
-
copyright notice that is included in or attached to the work
|
|
54
|
-
(an example is provided in the Appendix below).
|
|
55
|
-
|
|
56
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
57
|
-
form, that is based on (or derived from) the Work and for which the
|
|
58
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
59
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
60
|
-
of this License, Derivative Works shall not include works that remain
|
|
61
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
62
|
-
the Work and Derivative Works thereof.
|
|
63
|
-
|
|
64
|
-
"Contribution" shall mean any work of authorship, including
|
|
65
|
-
the original version of the Work and any modifications or additions
|
|
66
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
67
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
68
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
69
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
70
|
-
means any form of electronic, verbal, or written communication sent
|
|
71
|
-
to the Licensor or its representatives, including but not limited to
|
|
72
|
-
communication on electronic mailing lists, source code control systems,
|
|
73
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
74
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
75
|
-
excluding communication that is conspicuously marked or otherwise
|
|
76
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
77
|
-
|
|
78
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
79
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
80
|
-
subsequently incorporated within the Work.
|
|
81
|
-
|
|
82
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
83
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
84
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
85
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
86
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
87
|
-
Work and such Derivative Works in Source or Object form.
|
|
88
|
-
|
|
89
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
90
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
91
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
92
|
-
(except as stated in this section) patent license to make, have made,
|
|
93
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
94
|
-
where such license applies only to those patent claims licensable
|
|
95
|
-
by such Contributor that are necessarily infringed by their
|
|
96
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
97
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
98
|
-
institute patent litigation against any entity (including a
|
|
99
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
100
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
101
|
-
or contributory patent infringement, then any patent licenses
|
|
102
|
-
granted to You under this License for that Work shall terminate
|
|
103
|
-
as of the date such litigation is filed.
|
|
104
|
-
|
|
105
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
106
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
107
|
-
modifications, and in Source or Object form, provided that You
|
|
108
|
-
meet the following conditions:
|
|
109
|
-
|
|
110
|
-
(a) You must give any other recipients of the Work or
|
|
111
|
-
Derivative Works a copy of this License; and
|
|
112
|
-
|
|
113
|
-
(b) You must cause any modified files to carry prominent notices
|
|
114
|
-
stating that You changed the files; and
|
|
115
|
-
|
|
116
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
117
|
-
that You distribute, all copyright, patent, trademark, and
|
|
118
|
-
attribution notices from the Source form of the Work,
|
|
119
|
-
excluding those notices that do not pertain to any part of
|
|
120
|
-
the Derivative Works; and
|
|
121
|
-
|
|
122
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
123
|
-
distribution, then any Derivative Works that You distribute must
|
|
124
|
-
include a readable copy of the attribution notices contained
|
|
125
|
-
within such NOTICE file, excluding those notices that do not
|
|
126
|
-
pertain to any part of the Derivative Works, in at least one
|
|
127
|
-
of the following places: within a NOTICE text file distributed
|
|
128
|
-
as part of the Derivative Works; within the Source form or
|
|
129
|
-
documentation, if provided along with the Derivative Works; or,
|
|
130
|
-
within a display generated by the Derivative Works, if and
|
|
131
|
-
wherever such third-party notices normally appear. The contents
|
|
132
|
-
of the NOTICE file are for informational purposes only and
|
|
133
|
-
do not modify the License. You may add Your own attribution
|
|
134
|
-
notices within Derivative Works that You distribute, alongside
|
|
135
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
136
|
-
that such additional attribution notices cannot be construed
|
|
137
|
-
as modifying the License.
|
|
138
|
-
|
|
139
|
-
You may add Your own copyright statement to Your modifications and
|
|
140
|
-
may provide additional or different license terms and conditions
|
|
141
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
142
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
143
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
144
|
-
the conditions stated in this License.
|
|
145
|
-
|
|
146
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
147
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
148
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
149
|
-
this License, without any additional terms or conditions.
|
|
150
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
151
|
-
the terms of any separate license agreement you may have executed
|
|
152
|
-
with Licensor regarding such Contributions.
|
|
153
|
-
|
|
154
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
155
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
156
|
-
except as required for reasonable and customary use in describing the
|
|
157
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
158
|
-
|
|
159
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
160
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
161
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
162
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
163
|
-
implied, including, without limitation, any warranties or conditions
|
|
164
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
165
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
166
|
-
appropriateness of using or redistributing the Work and assume any
|
|
167
|
-
risks associated with Your exercise of permissions under this License.
|
|
168
|
-
|
|
169
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
170
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
171
|
-
unless required by applicable law (such as deliberate and grossly
|
|
172
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
173
|
-
liable to You for damages, including any direct, indirect, special,
|
|
174
|
-
incidental, or consequential damages of any character arising as a
|
|
175
|
-
result of this License or out of the use or inability to use the
|
|
176
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
177
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
178
|
-
other commercial damages or losses), even if such Contributor
|
|
179
|
-
has been advised of the possibility of such damages.
|
|
180
|
-
|
|
181
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
182
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
183
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
184
|
-
or other liability obligations and/or rights consistent with this
|
|
185
|
-
License. However, in accepting such obligations, You may act only
|
|
186
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
187
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
188
|
-
defend, and hold each Contributor harmless for any liability
|
|
189
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
190
|
-
of your accepting any such warranty or additional liability.
|
|
191
|
-
|
|
192
|
-
END OF TERMS AND CONDITIONS
|