@profoundlogic/coderflow-cli 0.2.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/LICENSE.txt ADDED
@@ -0,0 +1,322 @@
1
+ PROFOUND CODERFLOW SOFTWARE LICENSE AGREEMENT
2
+
3
+ This Software License Agreement (hereinafter "Agreement") is entered into between you ("Customer" or "you") and Profound Logic Software, Inc. ("Profound") and governs your access to and use of Profound CoderFlow and related software, tools, and services. By installing, accessing, or using CoderFlow, you agree to be bound by the terms of this Agreement. If you do not agree to these terms, you may not use CoderFlow.
4
+
5
+ 1. DEFINITIONS
6
+
7
+ 1.1 "Activation Date" shall mean the date on which you are provided with the License Key.
8
+
9
+ 1.2 "Agent" shall mean an autonomous software process within CoderFlow that executes engineering workflows, including but not limited to code generation, compilation, testing, validation, and deployment tasks.
10
+
11
+ 1.3 "Agent Execution" shall mean any instance in which an Agent performs work on your behalf, including but not limited to code analysis, code generation, build processes, test execution, validation cycles, and iterative fix-and-retest loops.
12
+
13
+ 1.4 "CoderFlow" shall mean Profound's agentic coding platform, comprising the CoderFlow Platform, CoderFlow Agents, CoderFlow CLI, and any related npm packages, tools, APIs, templates, and documentation provided by Profound for autonomous AI-assisted software development.
14
+
15
+ 1.5 "CoderFlow Agents" shall mean the autonomous AI agents provided as part of CoderFlow that execute engineering workflows, including code generation, building, testing, validation, refactoring, conversion, and documentation tasks.
16
+
17
+ 1.6 "CoderFlow CLI" shall mean the command-line interface tools and related npm packages provided by Profound for interacting with and orchestrating CoderFlow, including but not limited to any packages published under the @profound, @profoundjs, or @coderflow namespaces on npm or similar package registries and including but not limited to packages with "CoderFlow", "codermake", and "aitool" branding.
18
+
19
+ 1.7 "CoderFlow Components" shall mean, collectively, the CoderFlow Platform, CoderFlow Agents, CoderFlow CLI, and all related npm packages, libraries, APIs, templates, scripts, and tools provided by Profound as part of or for use with CoderFlow.
20
+
21
+ 1.8 "CoderFlow Platform" shall mean the containerized agentic execution platform provided by Profound, including the orchestration layer, agent runtime environment, execution containers, governance controls, audit logging, and administrative interfaces.
22
+
23
+ 1.9 "Confidential Information" shall mean any proprietary technologies, processes, software, trade secrets, data, know-how, technical specifications, documentation, pricing information, business strategies, and any other information disclosed by one party to the other that is marked as confidential or that reasonably should be understood to be confidential given the nature of the information and circumstances of disclosure. Confidential Information shall include, without limitation, all CoderFlow Components, License Keys, Agent configurations, workflow templates, and any technical documentation or specifications related to CoderFlow.
24
+
25
+ 1.10 "Customer Code" shall mean source code, object code, scripts, configuration files, and related materials that are owned by you or licensed to you by third parties, which you submit to or process through CoderFlow.
26
+
27
+ 1.11 "Customer Data" shall mean any data, information, or content that you submit to, process through, or store within CoderFlow, including but not limited to Customer Code, configuration data, credentials, environment variables, and any output generated by CoderFlow from your inputs.
28
+
29
+ 1.12 "Generated Output" shall mean any source code, documentation, test cases, configuration files, reports, or other materials created by CoderFlow Agents during Agent Execution based on your instructions or Customer Code.
30
+
31
+ 1.13 "Initial Term" shall mean:
32
+
33
+ (a) if the License Key is a trial license key, the thirty (30) day period of time starting on the Activation Date;
34
+
35
+ (b) if the License Key was priced on a subscription basis, the period of time between the Activation Date and the date on which your first payment following the Activation Date is due; or
36
+
37
+ (c) if the License Key is not a trial license key and was not priced on a subscription basis, the period of time between the Activation Date and the one (1) year anniversary of the Activation Date.
38
+
39
+ 1.14 "License Key" shall mean a license key provided to you by Profound which enables your use of CoderFlow. In the event you are provided multiple license keys by Profound, then each such license key shall be deemed to be a License Key which is governed by a separate instance of this Agreement.
40
+
41
+ 1.15 "LLM Provider" shall mean any third-party provider of large language model services that may be used by CoderFlow for AI capabilities, including but not limited to Anthropic (Claude), OpenAI, Google (Gemini), and any other providers supported by CoderFlow.
42
+
43
+ 1.16 "Partition" shall mean a single logical partition (LPAR) on an IBM i system, a single virtual machine, a single container environment, or a single physical or virtual server instance, as applicable to your deployment configuration.
44
+
45
+ 1.17 "Renewal Term" shall mean:
46
+
47
+ (a) if the License Key was priced on a subscription basis, the period of time between the last day of the then current Initial or Renewal Term, and the next date on which a payment is due following the end of the then current Initial or Renewal Term; or
48
+
49
+ (b) if the License Key was not priced on a subscription basis, the period of time between the last day of the then current Initial or Renewal Term, and the next anniversary of the Activation Date.
50
+
51
+ 1.18 "Term" shall mean the Initial Term and any Renewal Terms.
52
+
53
+ 1.19 "Third-Party Components" shall mean any third-party software, libraries, tools, or services that are incorporated into, bundled with, or required for the operation of CoderFlow, including but not limited to LLM Provider services, open-source libraries, and third-party APIs.
54
+
55
+ 2. LICENSE GRANT
56
+
57
+ 2.1 GRANT OF LICENSE. Subject to the terms and conditions of this Agreement, and conditioned upon your payment of all applicable fees, Profound hereby grants to you, during the Term, a non-exclusive, non-sublicensable, non-transferable license to:
58
+
59
+ (a) install the CoderFlow Components on computers and servers owned or controlled by you, in accordance with the deployment configuration specified in your order or license documentation;
60
+
61
+ (b) use the CoderFlow Platform to orchestrate and execute CoderFlow Agents for the purpose of software development, code conversion, refactoring, testing, documentation, and related engineering tasks;
62
+
63
+ (c) use the CoderFlow CLI and related npm packages to interact with and control CoderFlow in accordance with this Agreement;
64
+
65
+ (d) authorize your employees and authorized independent contractors working on your behalf to use CoderFlow, subject to the license restrictions set forth in Section 3; and
66
+
67
+ (e) use CoderFlow in combination with other Profound software products, including Profound.js, Profound AppDev, Profound API, and Profound AI, to the extent you hold valid licenses for such other Profound software.
68
+
69
+ 2.2 TRIAL LICENSE. If the License Key is a trial license key, then you are hereby authorized to, during the Term, use CoderFlow solely for the purpose of evaluating CoderFlow and deciding whether to obtain a commercial license key for CoderFlow from Profound. Trial licenses are limited to non-production use only and may have additional functional limitations as determined by Profound.
70
+
71
+ 2.3 GENERATED OUTPUT. Subject to your compliance with this Agreement and all applicable laws:
72
+
73
+ (a) Profound claims no ownership in Generated Output that is created by CoderFlow based on your Customer Code or your specific instructions;
74
+
75
+ (b) You acknowledge that Generated Output may incorporate patterns, structures, or techniques derived from CoderFlow's underlying algorithms and training, and such incorporation does not transfer any ownership interest in CoderFlow or its underlying technology to you;
76
+
77
+ (c) You are solely responsible for reviewing, testing, validating, and approving all Generated Output before deploying it to production environments or incorporating it into your systems; and
78
+
79
+ (d) Profound makes no representations or warranties regarding the accuracy, completeness, security, or fitness for any particular purpose of any Generated Output.
80
+
81
+ 2.4 CUSTOMER CODE AND DATA. You retain all right, title, and interest in and to your Customer Code and Customer Data. You grant to Profound a limited, non-exclusive license to access, process, and use Customer Code and Customer Data solely as necessary to provide CoderFlow services to you and to improve CoderFlow's functionality, provided that any use for improvement purposes shall be limited to anonymized, aggregated data that cannot be used to identify you or reconstruct your specific Customer Code.
82
+
83
+ 3. RESTRICTIONS
84
+
85
+ 3.1 GENERAL RESTRICTIONS. You may not, and agree that you will not attempt to, and will not assist or allow others to:
86
+
87
+ (a) circumvent a technological measure that effectively controls, or is intended to control, access to any or all of CoderFlow, including the source code of any aspect of CoderFlow;
88
+
89
+ (b) alter, remove, or obscure any proprietary legend, copyright, or trademark notice contained in or on CoderFlow;
90
+
91
+ (c) reverse engineer, reverse assemble, decompile, or disassemble CoderFlow or any CoderFlow Component;
92
+
93
+ (d) modify, translate, or create derivative works based on CoderFlow or any CoderFlow Component;
94
+
95
+ (e) share, distribute, sublicense, rent, lease, or lend CoderFlow or any License Key to any third party;
96
+
97
+ (f) take any action which is intended to, or would reasonably be expected to, interfere with the operation of CoderFlow, including any activities which would reasonably be expected to interfere with or degrade the operation of equipment used by Profound to operate CoderFlow or any related services;
98
+
99
+ (g) use CoderFlow to process, store, or transmit any material that infringes or misappropriates the intellectual property rights of any third party, or that is unlawful, defamatory, or otherwise objectionable;
100
+
101
+ (h) use CoderFlow, or any information derived from CoderFlow, for (i) creating products or services which are competitive with, or which could serve as a replacement for, CoderFlow; (ii) benchmarking or competitive analysis of CoderFlow; or (iii) any other purpose that is, or may be, to Profound's detriment or commercial disadvantage;
102
+
103
+ (i) attempt to gain unauthorized access to CoderFlow, other accounts, computer systems, or networks connected to CoderFlow;
104
+
105
+ (j) use CoderFlow to generate malicious code, malware, exploits, or any software designed to damage, disrupt, or gain unauthorized access to computer systems;
106
+
107
+ (k) remove, disable, or circumvent any security features, governance controls, or audit logging functionality within CoderFlow; or
108
+
109
+ (l) use CoderFlow in any manner that violates applicable laws, regulations, or third-party rights.
110
+
111
+ 3.2 LICENSE KEY RESTRICTIONS. You may not share or otherwise make the License Key available to any third party, and must treat the License Key as Confidential Information of Profound.
112
+
113
+ 3.3 PARTITION-BASED LICENSING. If the License Key is priced based on limiting the use of CoderFlow on a specific number of Partitions, then, unless you purchase additional license capacity from Profound, you may not use CoderFlow except on the number of Partitions specified in your license documentation.
114
+
115
+ 3.4 CONCURRENT USER LICENSING. If the License Key is priced based on CoderFlow being used concurrently by no more than a limited number of individuals on a Partition, then, unless you purchase additional license capacity from Profound, the number of individuals who you authorize or allow to use CoderFlow at any one time (including your employees and authorized independent contractors) may not exceed the number of concurrent users specified in your license documentation.
116
+
117
+ 3.5 NAMED USER LICENSING. If the License Key is priced based on CoderFlow being used by no more than a limited number of unique named users, then, unless you purchase additional license capacity from Profound, once the number of individuals you have allowed or authorized to use CoderFlow has reached the specified limit, you may not authorize or allow any additional individuals to use CoderFlow without first removing authorization from an existing user.
118
+
119
+ 3.6 AGENT EXECUTION LIMITS. If your license includes limits on Agent Executions, you agree to abide by such limits. Profound reserves the right to monitor Agent Execution usage and to suspend or throttle access to CoderFlow if you exceed your licensed limits.
120
+
121
+ 3.7 VIOLATION REPORTING. In the event you become aware of any violation or attempted violation of the provisions of this Section 3, you will immediately inform Profound of that violation and provide Profound such assistance as it may reasonably request to remediate any actual or potential damage caused by such actual or attempted violation.
122
+
123
+ 3.8 MATERIAL BREACH. You acknowledge that the license set forth in this Agreement is conditioned on your compliance with the requirements of this Section 3, and that any breach of the requirements of this Section 3 will be considered to be a material breach of this Agreement.
124
+
125
+ 4. INTELLECTUAL PROPERTY
126
+
127
+ 4.1 OWNERSHIP. You acknowledge and agree that CoderFlow, including all CoderFlow Components, and the intellectual property rights, moral rights, and goodwill therein and any derivative works thereof, is wholly owned by and shall remain the sole property of Profound. This Agreement does not convey to you any ownership interest in or to CoderFlow, but only a limited right of use revocable in accordance with the terms of this Agreement.
128
+
129
+ 4.2 TRADEMARKS. Profound has numerous trademarks and service marks (collectively, "Trademarks") including, without limitation, PROFOUND LOGIC, the Profound Logic Software logo, the CoderFlow logo, CODERFLOW, FUTURIZATION, PROFOUND APPDEV, PROFOUND API, PROFOUND AI, PROFOUND.JS, PROFOUND UI, and related marks. No right, license, or interest in or to Trademarks is granted to you under this Agreement.
130
+
131
+ 4.3 FEEDBACK. If you provide Profound with any suggestions, ideas, enhancement requests, feedback, recommendations, or other input regarding CoderFlow ("Feedback"), you hereby grant to Profound a perpetual, irrevocable, worldwide, royalty-free, fully paid-up, non-exclusive license to use, reproduce, modify, create derivative works from, distribute, and otherwise exploit such Feedback for any purpose without restriction or obligation to you.
132
+
133
+ 4.4 THIRD-PARTY COMPONENTS. CoderFlow may include or require Third-Party Components, which are subject to their own license terms. You agree to comply with all applicable third-party license terms. A list of Third-Party Components and their applicable licenses is available upon request or in the CoderFlow documentation.
134
+
135
+ 5. CONFIDENTIALITY
136
+
137
+ 5.1 CONFIDENTIAL INFORMATION. In the course of carrying out this Agreement, each party may be exposed to Confidential Information of the other party. Notwithstanding the foregoing, Confidential Information shall not include any information which (i) was publicly known or made generally available in the public domain prior to the time of disclosure; (ii) becomes publicly known or made generally available to the public through no fault of the receiving party; (iii) is in the receiving party's possession at the time of disclosure without confidentiality restrictions, as evidenced by written records; or (iv) is independently developed by the receiving party without use of the disclosing party's Confidential Information, as evidenced by written records.
138
+
139
+ 5.2 LIMITED USE. Each party agrees not to use any Confidential Information of the other party for any purpose except in accordance with this Agreement. Each party agrees not to disclose any Confidential Information of the other party to third parties, except to its employees and authorized independent contractors who have a need to know such information for purposes of this Agreement and who are bound by confidentiality obligations at least as protective as those contained herein.
140
+
141
+ 5.3 MAINTENANCE OF CONFIDENTIALITY. Each party shall take all commercially reasonable measures to protect the secrecy of and avoid unauthorized disclosure and unauthorized use of the Confidential Information of the other party. Each party shall reproduce any proprietary rights notices on any approved copies of Confidential Information in the same manner in which such notices were set forth in or on the original.
142
+
143
+ 5.4 COMPELLED DISCLOSURE. If either party is compelled by law, regulation, or court order to disclose Confidential Information of the other party, the compelled party shall, to the extent legally permitted, provide the other party with prompt written notice of such requirement so that the other party may seek a protective order or other appropriate remedy. The compelled party shall disclose only such Confidential Information as is legally required and shall use commercially reasonable efforts to obtain confidential treatment for any Confidential Information so disclosed.
144
+
145
+ 6. DATA PROCESSING AND SECURITY
146
+
147
+ 6.1 DATA PROCESSING. You acknowledge that CoderFlow may process Customer Code and Customer Data as necessary to provide the services contemplated by this Agreement. Such processing may include, without limitation:
148
+
149
+ (a) transmitting minimal code context to LLM Providers for the purpose of generating code suggestions, completions, and other AI-assisted outputs;
150
+
151
+ (b) executing builds, tests, and validation processes within isolated container environments;
152
+
153
+ (c) storing logs, audit trails, and execution records for governance and compliance purposes; and
154
+
155
+ (d) analyzing anonymized, aggregated usage data to improve CoderFlow functionality.
156
+
157
+ 6.2 LLM PROVIDER DATA HANDLING. You acknowledge and agree that:
158
+
159
+ (a) CoderFlow may transmit minimal code snippets and context to LLM Providers as necessary to provide AI-assisted functionality;
160
+
161
+ (b) Profound uses commercially reasonable efforts to minimize the data transmitted to LLM Providers and does not transmit full repositories, credentials, or bulk data to LLM Providers;
162
+
163
+ (c) LLM Providers are subject to their own terms of service and privacy policies, and Profound is not responsible for the data handling practices of LLM Providers; and
164
+
165
+ (d) You are responsible for ensuring that your use of CoderFlow, including any data transmitted to LLM Providers, complies with your own data protection policies and applicable laws.
166
+
167
+ 6.3 SECURITY MEASURES. Profound shall implement and maintain commercially reasonable administrative, technical, and physical security measures designed to protect Customer Data against unauthorized access, disclosure, alteration, or destruction. Such measures include, without limitation:
168
+
169
+ (a) isolated container execution with least-privilege access controls;
170
+
171
+ (b) encryption of data in transit and at rest;
172
+
173
+ (c) role-based access controls and authentication mechanisms;
174
+
175
+ (d) audit logging and monitoring of system access and activities; and
176
+
177
+ (e) regular security assessments and vulnerability testing.
178
+
179
+ 6.4 CUSTOMER RESPONSIBILITIES. You are solely responsible for:
180
+
181
+ (a) maintaining the security of your own systems, networks, and credentials;
182
+
183
+ (b) ensuring that all users authorized to access CoderFlow comply with applicable security policies;
184
+
185
+ (c) promptly notifying Profound of any suspected security incidents or unauthorized access;
186
+
187
+ (d) backing up Customer Code and Customer Data; and
188
+
189
+ (e) reviewing and approving all Generated Output before deployment to production environments.
190
+
191
+ 7. LIMITED WARRANTY; WARRANTY DISCLAIMER; LIMITATION OF LIABILITY
192
+
193
+ 7.1 LIMITED WARRANTY. Each party warrants that it is duly organized and is duly authorized to execute and deliver this Agreement and to perform its respective obligations hereunder.
194
+
195
+ 7.2 WARRANTY DISCLAIMER. EXCEPT FOR THE LIMITED WARRANTY IN SECTION 7.1, CODERFLOW AND ALL CODERFLOW COMPONENTS ARE PROVIDED "AS-IS" AND PROFOUND MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH RESPECT TO CODERFLOW. PROFOUND EXPRESSLY DISCLAIMS THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND INFORMATIONAL CONTENT. THERE IS NO WARRANTY THAT THE OPERATION OF CODERFLOW WILL BE UNINTERRUPTED, ERROR-FREE, OR VIRUS-FREE, OR THAT CODERFLOW WILL MEET ANY PARTICULAR CRITERIA OF PERFORMANCE OR QUALITY. YOU ASSUME THE ENTIRE RISK OF SELECTION, INSTALLATION, AND USE OF CODERFLOW.
196
+
197
+ 7.3 AI-SPECIFIC DISCLAIMERS. WITHOUT LIMITING THE GENERALITY OF SECTION 7.2, YOU ACKNOWLEDGE AND AGREE THAT:
198
+
199
+ (a) CODERFLOW USES ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING TECHNOLOGIES THAT MAY PRODUCE INACCURATE, INCOMPLETE, OR UNEXPECTED RESULTS;
200
+
201
+ (b) GENERATED OUTPUT MAY CONTAIN ERRORS, BUGS, SECURITY VULNERABILITIES, OR OTHER DEFECTS;
202
+
203
+ (c) GENERATED OUTPUT IS NOT A SUBSTITUTE FOR PROFESSIONAL JUDGMENT, CODE REVIEW, TESTING, AND VALIDATION BY QUALIFIED PERSONNEL;
204
+
205
+ (d) PROFOUND DOES NOT GUARANTEE THAT GENERATED OUTPUT WILL BE FREE OF INTELLECTUAL PROPERTY INFRINGEMENT OR THAT IT WILL BE SUITABLE FOR ANY PARTICULAR PURPOSE;
206
+
207
+ (e) THE PERFORMANCE AND CAPABILITIES OF LLM PROVIDERS MAY CHANGE WITHOUT NOTICE, WHICH MAY AFFECT CODERFLOW FUNCTIONALITY; AND
208
+
209
+ (f) YOU ARE SOLELY RESPONSIBLE FOR ALL DECISIONS REGARDING THE USE, DEPLOYMENT, OR INCORPORATION OF GENERATED OUTPUT INTO YOUR SYSTEMS OR PRODUCTS.
210
+
211
+ 7.4 LIMITATION OF LIABILITY. IN NO EVENT WILL PROFOUND BE LIABLE UNDER, OR IN CONNECTION WITH, THIS AGREEMENT OR ITS SUBJECT MATTER, UNDER ANY LEGAL OR EQUITABLE THEORY, INCLUDING BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, OR OTHERWISE, FOR ANY:
212
+
213
+ (a) INCREASED COSTS, DIMINUTION IN VALUE, OR LOST BUSINESS, PRODUCTION, REVENUES, OR PROFITS;
214
+
215
+ (b) LOSS OF GOODWILL OR REPUTATION;
216
+
217
+ (c) USE, INABILITY TO USE, LOSS, INTERRUPTION, DELAY, OR RECOVERY OF CODERFLOW OR ANY CODERFLOW COMPONENT;
218
+
219
+ (d) LOSS, DAMAGE, CORRUPTION, OR RECOVERY OF DATA, OR BREACH OF DATA OR SYSTEM SECURITY;
220
+
221
+ (e) COST OF REPLACEMENT GOODS OR SERVICES;
222
+
223
+ (f) DAMAGES ARISING FROM OR RELATED TO GENERATED OUTPUT, INCLUDING DAMAGES CAUSED BY ERRORS, BUGS, SECURITY VULNERABILITIES, OR INTELLECTUAL PROPERTY INFRINGEMENT IN GENERATED OUTPUT;
224
+
225
+ (g) DAMAGES ARISING FROM OR RELATED TO THE ACTS OR OMISSIONS OF LLM PROVIDERS OR OTHER THIRD-PARTY SERVICE PROVIDERS; OR
226
+
227
+ (h) CONSEQUENTIAL, INCIDENTAL, INDIRECT, EXEMPLARY, SPECIAL, ENHANCED, OR PUNITIVE DAMAGES,
228
+
229
+ IN EACH CASE REGARDLESS OF WHETHER PROFOUND WAS ADVISED OF THE POSSIBILITY OF SUCH LOSSES OR DAMAGES OR SUCH LOSSES OR DAMAGES WERE OTHERWISE FORESEEABLE, AND NOTWITHSTANDING THE FAILURE OF ANY AGREED OR OTHER REMEDY OF ITS ESSENTIAL PURPOSE.
230
+
231
+ 7.5 CAP ON LIABILITY. IN NO EVENT WILL THE COLLECTIVE AGGREGATE LIABILITY OF PROFOUND ARISING OUT OF OR RELATED TO THIS AGREEMENT, WHETHER ARISING UNDER OR RELATED TO BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, OR ANY OTHER LEGAL OR EQUITABLE THEORY, EXCEED THE TOTAL AMOUNTS PAID TO PROFOUND UNDER THIS AGREEMENT IN THE TWELVE (12) MONTHS PRECEDING THE EVENT GIVING RISE TO THE CLAIM, OR ONE HUNDRED DOLLARS ($100), WHICHEVER IS GREATER. THE FOREGOING LIMITATIONS APPLY EVEN IF ANY REMEDY FAILS OF ITS ESSENTIAL PURPOSE.
232
+
233
+ 8. INDEMNIFICATION
234
+
235
+ 8.1 INDEMNIFICATION BY CUSTOMER. You agree to indemnify, defend, and hold harmless Profound and its officers, directors, employees, agents, successors, and assigns from and against any and all claims, damages, losses, liabilities, costs, and expenses (including reasonable attorneys' fees) arising out of or related to:
236
+
237
+ (a) your use of CoderFlow in violation of this Agreement;
238
+
239
+ (b) your Customer Code or Customer Data, including any claims that Customer Code or Customer Data infringes or misappropriates the intellectual property rights of any third party;
240
+
241
+ (c) your use, deployment, or distribution of Generated Output;
242
+
243
+ (d) your violation of any applicable law, regulation, or third-party right; or
244
+
245
+ (e) any dispute between you and any third party arising from your use of CoderFlow.
246
+
247
+ 9. TERM AND TERMINATION
248
+
249
+ 9.1 TERM. The term of this Agreement shall commence upon the date and time that you install any CoderFlow Component or receive a License Key, whichever occurs first.
250
+
251
+ 9.2 AUTOMATIC RENEWAL. This Agreement will automatically expire on the first business day following the last day of the Term without requiring any further action by the parties. At the conclusion of the Initial Term and at the conclusion of each Renewal Term, this Agreement will automatically renew for an additional Renewal Term unless:
252
+
253
+ (a) this Agreement is terminated as set forth herein;
254
+
255
+ (b) you provide Profound with written notice that you do not wish for this Agreement to renew at least thirty (30) days prior to the end of the then current Term;
256
+
257
+ (c) if the License Key is priced on a subscription basis, you have not paid all amounts then due to Profound by the end of the then current Term; or
258
+
259
+ (d) the License Key is a trial license key (in which case there shall be no Renewal Terms, and the Term will expire on the conclusion of the Initial Term).
260
+
261
+ 9.3 TERMINATION FOR CAUSE. This Agreement may be terminated as follows:
262
+
263
+ (a) Profound may terminate this Agreement immediately and without notice upon breach of any material provision of this Agreement by you;
264
+
265
+ (b) Either party may terminate this Agreement upon thirty (30) days written notice if the other party commits a material breach of this Agreement and fails to cure such breach within such thirty (30) day period; or
266
+
267
+ (c) The parties may jointly terminate this Agreement by mutual written agreement.
268
+
269
+ 9.4 TERMINATION FOR CONVENIENCE. Profound may terminate this Agreement for convenience upon ninety (90) days written notice to you, in which case Profound shall refund to you a pro-rata portion of any prepaid fees for the period following the effective date of termination.
270
+
271
+ 9.5 EFFECT OF TERMINATION. Upon termination or expiration of this Agreement:
272
+
273
+ (a) All licenses granted hereunder shall immediately terminate;
274
+
275
+ (b) CoderFlow may be deactivated and rendered inoperable, without prior warning to you;
276
+
277
+ (c) You shall immediately cease all use of CoderFlow and all CoderFlow Components;
278
+
279
+ (d) You shall permanently delete any and all copies of CoderFlow Components, including any License Keys, on all computers and computer networks owned or controlled by you;
280
+
281
+ (e) Upon Profound's request, you shall certify in writing that you have complied with the foregoing obligations; and
282
+
283
+ (f) Sections 1, 3, 4, 5, 7, 8, 9.5, and 10 shall survive termination or expiration of this Agreement.
284
+
285
+ 10. MISCELLANEOUS
286
+
287
+ 10.1 TRANSFERABILITY. You may not assign or otherwise transfer any of your rights or delegate or otherwise transfer any of your obligations under this Agreement without Profound's prior written consent. Notwithstanding the foregoing, you may assign this Agreement as part of a corporate reorganization, consolidation, merger, or sale of substantially all assets or all stock of your company, provided that you shall provide written notice of such assignment to Profound within thirty (30) days of such assignment. Profound may assign or otherwise transfer any of its rights or delegate or otherwise transfer any of its obligations under this Agreement without restriction. This Agreement shall inure to the benefit of and be binding upon the successors and permitted assigns of the parties.
288
+
289
+ 10.2 NOTICES. All notices to Profound under this Agreement must be in writing to Profound Logic Software, Inc., 1133 Camelback St. #12559, Newport Beach, CA 92658, through (i) personal service, (ii) via certified mail, return receipt requested, or (iii) via nationally recognized overnight courier. Notices to you may be sent to the email address or physical address associated with your account or License Key.
290
+
291
+ 10.3 GOVERNING LAW. This Agreement shall be construed and governed in accordance with the substantive laws of the State of Ohio, without regard to its conflict of laws principles. Any claim related to this Agreement or CoderFlow shall be brought in a court of competent jurisdiction in Hamilton County, Ohio. You hereby waive any defense that you are not subject to the jurisdiction of such courts, that any such action is brought in an inconvenient forum, or that venue of the action is improper.
292
+
293
+ 10.4 AUDIT. From time to time, Profound may hire a disinterested third party to audit and inspect your books, records, computers, and computer networks for compliance with this Agreement. All such audits shall be during normal business hours and on dates mutually agreed upon with reasonable advance notice, and you agree to cooperate in such audits and inspections. If any audit reveals that you have exceeded the scope of your license, you shall promptly pay to Profound the applicable fees for such excess usage, plus interest at the rate of one and one-half percent (1.5%) per month from the date such fees were due.
294
+
295
+ 10.5 UNENFORCEABILITY. It is intended that this Agreement shall not violate any applicable law. If, at any time or for any reason, any provision of this Agreement becomes unenforceable or invalid, such provision shall be amended to bring it into legal compliance and to preserve to the maximum extent possible the intent of the parties, and the remaining provisions shall remain unaffected and continue with the same effect as if such unenforceable or invalid provision had not been inserted herein.
296
+
297
+ 10.6 NO WAIVER. Failure of either party to exercise its rights under this Agreement shall not be construed as a waiver of that party's rights, including without limitation the right to seek remedies arising from past, present, or future breach by the other party.
298
+
299
+ 10.7 TAXES. You are responsible for any applicable sales, use, excise, value-added, or other similar taxes, levies, or duties payable with respect to your license of CoderFlow assessable by any local, state, provincial, federal, or foreign jurisdiction. Unless expressly specified otherwise, all fees exclude such taxes, levies, and duties. Profound is responsible only for taxes based upon Profound's net income, assets, payroll, property, and employees.
300
+
301
+ 10.8 FORCE MAJEURE. Neither party shall be liable for any failure or delay in performing its obligations under this Agreement (except for payment obligations) where such failure or delay results from causes beyond the reasonable control of such party, including but not limited to acts of God, natural disasters, war, terrorism, riots, embargoes, acts of civil or military authorities, fire, floods, epidemics, pandemics, strikes, or failures or degradation of third-party telecommunications or power supply.
302
+
303
+ 10.9 INDEPENDENT CONTRACTORS. The relationship between the parties is that of independent contractors. Nothing in this Agreement shall be construed to create a partnership, joint venture, agency, or employment relationship between the parties.
304
+
305
+ 10.10 HEADINGS. The headings and captions in this Agreement are for convenience purposes only and shall not be used to construe the terms of this Agreement.
306
+
307
+ 10.11 EXPORT. You shall not export or re-export directly or indirectly (including by remote access) any part of CoderFlow outside of the jurisdiction in which you obtained it without the appropriate United States or foreign government licenses and in compliance with all applicable export control laws and regulations.
308
+
309
+ 10.12 U.S. GOVERNMENT RIGHTS. If you are a U.S. Government agency or contractor, CoderFlow is provided as "Commercial Computer Software" and "Commercial Computer Software Documentation" as defined in 48 C.F.R. 2.101, and the rights of the U.S. Government are as set forth in 48 C.F.R. 12.212 or 48 C.F.R. 227.7202, as applicable.
310
+
311
+ 10.13 ENTIRE AGREEMENT. This Agreement contains the entire understanding between the parties with respect to the matters contained herein. This Agreement supersedes all prior agreements between the parties, whether oral or written, express or implied, as to the matters contained herein. No waiver, consent, modification, amendment, or change of the terms of this Agreement shall be binding unless in writing and signed by both parties.
312
+
313
+ 10.14 COUNTERPARTS. This Agreement may be executed in counterparts, each of which shall be deemed an original and all of which together shall constitute one and the same instrument. Electronic signatures shall be deemed valid and binding.
314
+
315
+
316
+ BY INSTALLING, ACCESSING, OR USING CODERFLOW, YOU ACKNOWLEDGE THAT YOU HAVE READ THIS AGREEMENT, UNDERSTAND IT, AND AGREE TO BE BOUND BY ITS TERMS AND CONDITIONS.
317
+
318
+
319
+ Profound Logic Software, Inc.
320
+ 1133 Camelback St. #12559
321
+ Newport Beach, CA 92658
322
+ www.profoundlogic.com
package/README.md ADDED
@@ -0,0 +1,102 @@
1
+ # CoderFlow CLI
2
+
3
+ The CLI applies completed task patches to your local repositories. It complements CoderFlow Server by bridging server-based AI work with your local development.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @profoundlogic/coderflow-cli
9
+ ```
10
+
11
+ ## Connecting to the Server
12
+
13
+ ```bash
14
+ coder login
15
+ ```
16
+
17
+ Enter your server URL and credentials when prompted.
18
+
19
+ ## Applying Patches
20
+
21
+ Apply changes from a completed task to your local repos:
22
+
23
+ ```bash
24
+ # Interactive selection from completed tasks
25
+ coder apply
26
+
27
+ # Apply a specific task
28
+ coder apply <task-id>
29
+
30
+ # Apply only certain files
31
+ coder apply --include="*.js"
32
+ ```
33
+
34
+ Changes are staged (`git add`) but not committed, so you can review before committing.
35
+
36
+ ## Discarding Changes
37
+
38
+ Undo applied changes (unstage, restore, clean):
39
+
40
+ ```bash
41
+ # Discard in default environment
42
+ coder discard
43
+
44
+ # Discard in specific environment
45
+ coder discard --env=myproject
46
+
47
+ # Skip confirmation
48
+ coder discard --yes
49
+ ```
50
+
51
+ ## Attaching to Containers
52
+
53
+ ```bash
54
+ # Connect to last container
55
+ coder attach
56
+
57
+ # Connect with bash shell
58
+ coder attach --shell
59
+
60
+ # Connect to specific container
61
+ coder attach <container-id>
62
+ ```
63
+
64
+ ## Configuration and Profiles
65
+
66
+ Manage connection settings:
67
+
68
+ ```bash
69
+ # Show current config
70
+ coder config show
71
+
72
+ # Set server URL
73
+ coder config set serverUrl http://myserver:3000
74
+ ```
75
+
76
+ Use profiles to connect to different servers:
77
+
78
+ ```bash
79
+ # Create profile
80
+ coder profile create production
81
+
82
+ # Switch profiles
83
+ coder profile switch production
84
+
85
+ # Use profile for one command
86
+ coder --profile=production apply
87
+ ```
88
+
89
+ ## Getting Help
90
+
91
+ ```bash
92
+ # General help
93
+ coder --help
94
+
95
+ # All commands
96
+ coder --help-all
97
+
98
+ # Help for specific command
99
+ coder apply --help
100
+ ```
101
+
102
+ Task management commands are available for when you prefer CLI over the Web UI. Run `coder --help-all` to see `run`, `status`, `results`, `list`, and more.
package/coder.js ADDED
@@ -0,0 +1,202 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * CoderFlow CLI
4
+ * Command-line interface for AI coding task management
5
+ */
6
+
7
+ import { showHelp, showExtendedHelp, showCommandHelp } from './lib/help.js';
8
+ import { runTask } from './lib/commands/run.js';
9
+ import { getStatus } from './lib/commands/status.js';
10
+ import { getResults } from './lib/commands/results.js';
11
+ import { listTasks } from './lib/commands/list.js';
12
+ import { applyTask } from './lib/commands/apply.js';
13
+ import { startInteractive } from './lib/commands/interactive.js';
14
+ import { handleContainers } from './lib/commands/containers.js';
15
+ import { showLogs } from './lib/commands/logs.js';
16
+ import { rejectTask } from './lib/commands/reject.js';
17
+ import { login } from './lib/commands/login.js';
18
+ import { discardChanges } from './lib/commands/discard.js';
19
+ import { attachToContainer } from './lib/commands/attach.js';
20
+ import { handleConfig } from './lib/commands/config.js';
21
+ import { handleProfile } from './lib/commands/profile.js';
22
+ import { runTest } from './lib/commands/test.js';
23
+ import { setCliProfileOverride } from './lib/config.js';
24
+ import { readFileSync } from 'fs';
25
+ import { fileURLToPath } from 'url';
26
+ import { dirname, join } from 'path';
27
+
28
+ const __filename = fileURLToPath(import.meta.url);
29
+ const __dirname = dirname(__filename);
30
+ const pkg = JSON.parse(readFileSync(join(__dirname, 'package.json'), 'utf-8'));
31
+
32
+ /**
33
+ * Simple argument parser for CLI flags
34
+ */
35
+ function parseArgs(args) {
36
+ const parsed = {};
37
+ for (let i = 0; i < args.length; i++) {
38
+ const arg = args[i];
39
+ if (arg.startsWith('--')) {
40
+ const key = arg.slice(2);
41
+ const value = args[i + 1] && !args[i + 1].startsWith('--') ? args[++i] : true;
42
+ parsed[key] = value;
43
+ } else if (arg.startsWith('-')) {
44
+ const key = arg.slice(1);
45
+ parsed[key] = true;
46
+ }
47
+ }
48
+ return parsed;
49
+ }
50
+
51
+ /**
52
+ * Extract and handle the --profile flag from arguments
53
+ * Returns the remaining arguments with --profile removed
54
+ */
55
+ function extractProfileFlag(args) {
56
+ const result = [];
57
+ let profileName = null;
58
+
59
+ for (let i = 0; i < args.length; i++) {
60
+ const arg = args[i];
61
+
62
+ // Handle --profile=name format
63
+ if (arg.startsWith('--profile=')) {
64
+ profileName = arg.slice('--profile='.length);
65
+ continue;
66
+ }
67
+
68
+ // Handle --profile name format
69
+ if (arg === '--profile') {
70
+ if (i + 1 < args.length && !args[i + 1].startsWith('-')) {
71
+ profileName = args[++i];
72
+ }
73
+ continue;
74
+ }
75
+
76
+ result.push(arg);
77
+ }
78
+
79
+ return { args: result, profileName };
80
+ }
81
+
82
+ /**
83
+ * Main CLI entry point
84
+ */
85
+ async function main() {
86
+ const rawArgs = process.argv.slice(2);
87
+
88
+ // Extract --profile flag before processing other arguments
89
+ const { args, profileName } = extractProfileFlag(rawArgs);
90
+
91
+ // Set the profile override if provided
92
+ if (profileName) {
93
+ setCliProfileOverride(profileName);
94
+ }
95
+
96
+ const command = args[0];
97
+
98
+ // Handle version flag
99
+ if (command === '--version' || command === '-v') {
100
+ console.log(pkg.version);
101
+ process.exit(0);
102
+ }
103
+
104
+ // Handle per-command help (e.g., "coder test --help")
105
+ if (command && (args.includes('--help') || args.includes('-h'))) {
106
+ if (showCommandHelp(command)) {
107
+ process.exit(0);
108
+ }
109
+ // Fall through to show general help if command not found
110
+ }
111
+
112
+ try {
113
+ switch (command) {
114
+ case 'run':
115
+ await runTask(args.slice(1)); // Pass all args after 'run'
116
+ break;
117
+
118
+ case 'status':
119
+ await getStatus(args[1]);
120
+ break;
121
+
122
+ case 'results':
123
+ await getResults(args[1]);
124
+ break;
125
+
126
+ case 'apply':
127
+ await applyTask(args[1], args[2]);
128
+ break;
129
+
130
+ case 'discard':
131
+ await discardChanges(args.slice(1));
132
+ break;
133
+
134
+ case 'list':
135
+ await listTasks();
136
+ break;
137
+
138
+ case 'logs':
139
+ await showLogs(args.slice(1));
140
+ break;
141
+
142
+ case 'reject':
143
+ await rejectTask(args.slice(1));
144
+ break;
145
+
146
+ case 'containers':
147
+ await handleContainers(args.slice(1));
148
+ break;
149
+
150
+ case 'login':
151
+ await login(args.slice(1));
152
+ break;
153
+
154
+ case 'attach':
155
+ await attachToContainer(args.slice(1));
156
+ break;
157
+
158
+ case 'config':
159
+ await handleConfig(args.slice(1));
160
+ break;
161
+
162
+ case 'profile':
163
+ await handleProfile(args.slice(1));
164
+ break;
165
+
166
+ case 'test':
167
+ await runTest(args.slice(1));
168
+ break;
169
+
170
+ case 'start':
171
+ await startInteractive(args.slice(1));
172
+ break;
173
+
174
+ case 'shell':
175
+ // Prepend --shell flag and pass remaining args
176
+ await startInteractive(['--shell', ...args.slice(1)]);
177
+ break;
178
+
179
+ case 'help':
180
+ case '--help':
181
+ case '-h':
182
+ case undefined:
183
+ showHelp();
184
+ break;
185
+
186
+ case '--help-all':
187
+ case 'help-all':
188
+ showExtendedHelp();
189
+ break;
190
+
191
+ default:
192
+ console.error(`Error: Unknown command "${command}"`);
193
+ console.error('Run "coder help" for usage information');
194
+ process.exit(1);
195
+ }
196
+ } catch (error) {
197
+ console.error(`Error: ${error.message}`);
198
+ process.exit(1);
199
+ }
200
+ }
201
+
202
+ main();