@mindfoldhq/trellis 0.3.0-beta.12 → 0.3.0-beta.13

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 CHANGED
@@ -1,110 +1,235 @@
1
- # Functional Source License, Version 1.1, MIT Future License
1
+ GNU AFFERO GENERAL PUBLIC LICENSE
2
+ Version 3, 19 November 2007
2
3
 
3
- ## Abbreviation
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
4
5
 
5
- FSL-1.1-MIT
6
+ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
6
7
 
7
- ## Notice
8
+ Preamble
8
9
 
9
- Copyright 2026 Mindfold LLC
10
+ The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software.
10
11
 
11
- ## Terms and Conditions
12
+ The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users.
12
13
 
13
- ### Licensor ("We")
14
+ When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
14
15
 
15
- The party offering the Software under these Terms and Conditions.
16
+ Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software.
16
17
 
17
- ### The Software
18
+ A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public.
18
19
 
19
- The "Software" is each version of the software that we make available under
20
- these Terms and Conditions, as indicated by our inclusion of these Terms and
21
- Conditions with the Software.
20
+ The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version.
22
21
 
23
- ### License Grant
22
+ An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license.
24
23
 
25
- Subject to your compliance with this License Grant and the Patents,
26
- Redistribution and Trademark clauses below, we hereby grant you the right to
27
- use, copy, modify, create derivative works, publicly perform, publicly display
28
- and redistribute the Software for any Permitted Purpose identified below.
24
+ The precise terms and conditions for copying, distribution and modification follow.
29
25
 
30
- ### Permitted Purpose
26
+ TERMS AND CONDITIONS
31
27
 
32
- A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
33
- means making the Software available to others in a commercial product or
34
- service that:
28
+ 0. Definitions.
35
29
 
36
- 1. substitutes for the Software;
30
+ "This License" refers to version 3 of the GNU Affero General Public License.
37
31
 
38
- 2. substitutes for any other product or service we offer using the Software
39
- that exists as of the date we make the Software available; or
32
+ "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
40
33
 
41
- 3. offers the same or substantially similar functionality as the Software.
34
+ "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.
42
35
 
43
- Permitted Purposes specifically include using the Software:
36
+ To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.
44
37
 
45
- 1. for your internal use and access;
38
+ A "covered work" means either the unmodified Program or a work based on the Program.
46
39
 
47
- 2. for non-commercial education;
40
+ To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
48
41
 
49
- 3. for non-commercial research; and
42
+ To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
50
43
 
51
- 4. in connection with professional services that you provide to a licensee
52
- using the Software in accordance with these Terms and Conditions.
44
+ An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
53
45
 
54
- ### Patents
46
+ 1. Source Code.
47
+ The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.
55
48
 
56
- To the extent your use for a Permitted Purpose would necessarily infringe our
57
- patents, the license grant above includes a license under our patents. If you
58
- make a claim against any party that the Software infringes or contributes to
59
- the infringement of any patent, then your patent license to the Software ends
60
- immediately.
49
+ A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
61
50
 
62
- ### Redistribution
51
+ The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
63
52
 
64
- The Terms and Conditions apply to all copies, modifications and derivatives of
65
- the Software.
53
+ The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those
54
+ subprograms and other parts of the work.
66
55
 
67
- If you redistribute any copies, modifications or derivatives of the Software,
68
- you must include a copy of or a link to these Terms and Conditions and not
69
- remove any copyright notices provided in or with the Software.
56
+ The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
70
57
 
71
- ### Disclaimer
58
+ The Corresponding Source for a work in source code form is that same work.
72
59
 
73
- THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
74
- IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
75
- PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
60
+ 2. Basic Permissions.
61
+ All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
76
62
 
77
- IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
78
- SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
79
- EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
63
+ You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
80
64
 
81
- ### Trademarks
65
+ Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
82
66
 
83
- Except for displaying the License Details and identifying us as the origin of
84
- the Software, you have no right under these Terms and Conditions to use our
85
- trademarks, trade names, service marks or product names.
67
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
68
+ No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
86
69
 
87
- ## Grant of Future License
70
+ When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
88
71
 
89
- We hereby irrevocably grant you an additional license to use the Software under
90
- the MIT License that is effective on the second anniversary of the date we make
91
- the Software available. On or after that date, you may use the Software under
92
- the MIT License, in which case the following will apply:
72
+ 4. Conveying Verbatim Copies.
73
+ You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
93
74
 
94
- Permission is hereby granted, free of charge, to any person obtaining a copy of
95
- this software and associated documentation files (the "Software"), to deal in
96
- the Software without restriction, including without limitation the rights to
97
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
98
- of the Software, and to permit persons to whom the Software is furnished to do
99
- so, subject to the following conditions:
75
+ You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
100
76
 
101
- The above copyright notice and this permission notice shall be included in all
102
- copies or substantial portions of the Software.
77
+ 5. Conveying Modified Source Versions.
78
+ You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
103
79
 
104
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
105
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
106
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
107
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
108
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
109
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
110
- SOFTWARE.
80
+ a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
81
+
82
+ b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
83
+
84
+ c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
85
+
86
+ d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
87
+
88
+ A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
89
+
90
+ 6. Conveying Non-Source Forms.
91
+ You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
92
+
93
+ a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
94
+
95
+ b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
96
+
97
+ c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
98
+
99
+ d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
100
+
101
+ e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
102
+
103
+ A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
104
+
105
+ A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
106
+
107
+ "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
108
+
109
+ If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
110
+
111
+ The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
112
+
113
+ Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
114
+
115
+ 7. Additional Terms.
116
+ "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
117
+
118
+ When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
119
+
120
+ Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
121
+
122
+ a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
123
+
124
+ b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
125
+
126
+ c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
127
+
128
+ d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
129
+
130
+ e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
131
+
132
+ f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
133
+
134
+ All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
135
+
136
+ If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
137
+
138
+ Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
139
+
140
+ 8. Termination.
141
+
142
+ You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
143
+
144
+ However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
145
+
146
+ Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
147
+
148
+ Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
149
+
150
+ 9. Acceptance Not Required for Having Copies.
151
+
152
+ You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
153
+
154
+ 10. Automatic Licensing of Downstream Recipients.
155
+
156
+ Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
157
+
158
+ An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
159
+
160
+ You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
161
+
162
+ 11. Patents.
163
+
164
+ A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".
165
+
166
+ A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
167
+
168
+ Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
169
+
170
+ In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
171
+
172
+ If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent
173
+ license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
174
+
175
+ If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
176
+
177
+ A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
178
+
179
+ Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
180
+
181
+ 12. No Surrender of Others' Freedom.
182
+
183
+ If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may
184
+ not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
185
+
186
+ 13. Remote Network Interaction; Use with the GNU General Public License.
187
+
188
+ Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph.
189
+
190
+ Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License.
191
+
192
+ 14. Revised Versions of this License.
193
+
194
+ The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
195
+
196
+ Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation.
197
+
198
+ If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
199
+
200
+ Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
201
+
202
+ 15. Disclaimer of Warranty.
203
+
204
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
205
+
206
+ 16. Limitation of Liability.
207
+
208
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
209
+
210
+ 17. Interpretation of Sections 15 and 16.
211
+
212
+ If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
213
+
214
+ END OF TERMS AND CONDITIONS
215
+
216
+ How to Apply These Terms to Your New Programs
217
+
218
+ If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
219
+
220
+ To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
221
+
222
+ <one line to give the program's name and a brief idea of what it does.>
223
+ Copyright (C) <year> <name of author>
224
+
225
+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
226
+
227
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
228
+
229
+ You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
230
+
231
+ Also add information on how to contact you by electronic and paper mail.
232
+
233
+ If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements.
234
+
235
+ You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <http://www.gnu.org/licenses/>.
@@ -0,0 +1,190 @@
1
+ {
2
+ "version": "0.2.14",
3
+ "description": "Command namespace migration + fix incorrect task directory paths in agent docs",
4
+ "migrations": [
5
+ {
6
+ "type": "rename",
7
+ "from": ".claude/commands/start.md",
8
+ "to": ".claude/commands/trellis/start.md",
9
+ "description": "Move Claude start command to trellis/ subdirectory"
10
+ },
11
+ {
12
+ "type": "rename",
13
+ "from": ".claude/commands/finish-work.md",
14
+ "to": ".claude/commands/trellis/finish-work.md",
15
+ "description": "Move Claude finish-work command to trellis/ subdirectory"
16
+ },
17
+ {
18
+ "type": "rename",
19
+ "from": ".claude/commands/before-frontend-dev.md",
20
+ "to": ".claude/commands/trellis/before-frontend-dev.md",
21
+ "description": "Move Claude before-frontend-dev command to trellis/ subdirectory"
22
+ },
23
+ {
24
+ "type": "rename",
25
+ "from": ".claude/commands/before-backend-dev.md",
26
+ "to": ".claude/commands/trellis/before-backend-dev.md",
27
+ "description": "Move Claude before-backend-dev command to trellis/ subdirectory"
28
+ },
29
+ {
30
+ "type": "rename",
31
+ "from": ".claude/commands/check-frontend.md",
32
+ "to": ".claude/commands/trellis/check-frontend.md",
33
+ "description": "Move Claude check-frontend command to trellis/ subdirectory"
34
+ },
35
+ {
36
+ "type": "rename",
37
+ "from": ".claude/commands/check-backend.md",
38
+ "to": ".claude/commands/trellis/check-backend.md",
39
+ "description": "Move Claude check-backend command to trellis/ subdirectory"
40
+ },
41
+ {
42
+ "type": "rename",
43
+ "from": ".claude/commands/check-cross-layer.md",
44
+ "to": ".claude/commands/trellis/check-cross-layer.md",
45
+ "description": "Move Claude check-cross-layer command to trellis/ subdirectory"
46
+ },
47
+ {
48
+ "type": "rename",
49
+ "from": ".claude/commands/record-session.md",
50
+ "to": ".claude/commands/trellis/record-session.md",
51
+ "description": "Move Claude record-session command to trellis/ subdirectory"
52
+ },
53
+ {
54
+ "type": "rename",
55
+ "from": ".claude/commands/update-spec.md",
56
+ "to": ".claude/commands/trellis/update-spec.md",
57
+ "description": "Move Claude update-spec command to trellis/ subdirectory"
58
+ },
59
+ {
60
+ "type": "rename",
61
+ "from": ".claude/commands/onboard.md",
62
+ "to": ".claude/commands/trellis/onboard.md",
63
+ "description": "Move Claude onboard command to trellis/ subdirectory"
64
+ },
65
+ {
66
+ "type": "rename",
67
+ "from": ".claude/commands/break-loop.md",
68
+ "to": ".claude/commands/trellis/break-loop.md",
69
+ "description": "Move Claude break-loop command to trellis/ subdirectory"
70
+ },
71
+ {
72
+ "type": "rename",
73
+ "from": ".claude/commands/integrate-skill.md",
74
+ "to": ".claude/commands/trellis/integrate-skill.md",
75
+ "description": "Move Claude integrate-skill command to trellis/ subdirectory"
76
+ },
77
+ {
78
+ "type": "rename",
79
+ "from": ".claude/commands/create-command.md",
80
+ "to": ".claude/commands/trellis/create-command.md",
81
+ "description": "Move Claude create-command command to trellis/ subdirectory"
82
+ },
83
+ {
84
+ "type": "rename",
85
+ "from": ".claude/commands/parallel.md",
86
+ "to": ".claude/commands/trellis/parallel.md",
87
+ "description": "Move Claude parallel command to trellis/ subdirectory"
88
+ },
89
+ {
90
+ "type": "rename",
91
+ "from": ".cursor/commands/start.md",
92
+ "to": ".cursor/commands/trellis-start.md",
93
+ "description": "Rename Cursor start command with trellis- prefix"
94
+ },
95
+ {
96
+ "type": "rename",
97
+ "from": ".cursor/commands/finish-work.md",
98
+ "to": ".cursor/commands/trellis-finish-work.md",
99
+ "description": "Rename Cursor finish-work command with trellis- prefix"
100
+ },
101
+ {
102
+ "type": "rename",
103
+ "from": ".cursor/commands/before-frontend-dev.md",
104
+ "to": ".cursor/commands/trellis-before-frontend-dev.md",
105
+ "description": "Rename Cursor before-frontend-dev command with trellis- prefix"
106
+ },
107
+ {
108
+ "type": "rename",
109
+ "from": ".cursor/commands/before-backend-dev.md",
110
+ "to": ".cursor/commands/trellis-before-backend-dev.md",
111
+ "description": "Rename Cursor before-backend-dev command with trellis- prefix"
112
+ },
113
+ {
114
+ "type": "rename",
115
+ "from": ".cursor/commands/check-frontend.md",
116
+ "to": ".cursor/commands/trellis-check-frontend.md",
117
+ "description": "Rename Cursor check-frontend command with trellis- prefix"
118
+ },
119
+ {
120
+ "type": "rename",
121
+ "from": ".cursor/commands/check-backend.md",
122
+ "to": ".cursor/commands/trellis-check-backend.md",
123
+ "description": "Rename Cursor check-backend command with trellis- prefix"
124
+ },
125
+ {
126
+ "type": "rename",
127
+ "from": ".cursor/commands/check-cross-layer.md",
128
+ "to": ".cursor/commands/trellis-check-cross-layer.md",
129
+ "description": "Rename Cursor check-cross-layer command with trellis- prefix"
130
+ },
131
+ {
132
+ "type": "rename",
133
+ "from": ".cursor/commands/record-session.md",
134
+ "to": ".cursor/commands/trellis-record-session.md",
135
+ "description": "Rename Cursor record-session command with trellis- prefix"
136
+ },
137
+ {
138
+ "type": "rename",
139
+ "from": ".cursor/commands/update-spec.md",
140
+ "to": ".cursor/commands/trellis-update-spec.md",
141
+ "description": "Rename Cursor update-spec command with trellis- prefix"
142
+ },
143
+ {
144
+ "type": "rename",
145
+ "from": ".cursor/commands/onboard.md",
146
+ "to": ".cursor/commands/trellis-onboard.md",
147
+ "description": "Rename Cursor onboard command with trellis- prefix"
148
+ },
149
+ {
150
+ "type": "rename",
151
+ "from": ".cursor/commands/break-loop.md",
152
+ "to": ".cursor/commands/trellis-break-loop.md",
153
+ "description": "Rename Cursor break-loop command with trellis- prefix"
154
+ },
155
+ {
156
+ "type": "rename",
157
+ "from": ".cursor/commands/integrate-skill.md",
158
+ "to": ".cursor/commands/trellis-integrate-skill.md",
159
+ "description": "Rename Cursor integrate-skill command with trellis- prefix"
160
+ },
161
+ {
162
+ "type": "rename",
163
+ "from": ".cursor/commands/create-command.md",
164
+ "to": ".cursor/commands/trellis-create-command.md",
165
+ "description": "Rename Cursor create-command command with trellis- prefix"
166
+ },
167
+ {
168
+ "type": "rename",
169
+ "from": ".cursor/commands/parallel.md",
170
+ "to": ".cursor/commands/trellis-parallel.md",
171
+ "description": "Rename Cursor parallel command with trellis- prefix"
172
+ },
173
+ {
174
+ "type": "update",
175
+ "path": ".claude/agents/dispatch.md",
176
+ "description": "Fix incorrect task directory path format (was .trellis/workspace/{dev}/tasks/, should be .trellis/tasks/)"
177
+ },
178
+ {
179
+ "type": "update",
180
+ "path": ".claude/agents/plan.md",
181
+ "description": "Fix incorrect task directory path in example output"
182
+ },
183
+ {
184
+ "type": "update",
185
+ "path": ".trellis/scripts/multi-agent/status.sh",
186
+ "description": "Remove hardcoded developer name in help example"
187
+ }
188
+ ],
189
+ "notes": "This release includes: (1) Command namespace migration - Claude Code uses subdirectory (.claude/commands/trellis/), Cursor uses filename prefix (.cursor/commands/trellis-*); (2) Bug fix for incorrect task directory paths that caused worktrees to be created in wrong locations"
190
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-beta.13",
3
+ "description": "Cursor platform support & base_branch auto-recording",
4
+ "breaking": false,
5
+ "recommendMigrate": true,
6
+ "changelog": "**Features:**\n\n1. **Cursor Platform Support** (5357e98)\n - Added Cursor as a supported platform alongside Claude Code and OpenCode\n - task.py now auto-detects platform based on config directories\n - Cursor uses flat command structure: `.cursor/commands/trellis-<name>.md`\n\n2. **Auto-record base_branch on Task Creation** (e38578b)\n - Creating a task now automatically records the current branch as `base_branch`\n - PRs will target the correct branch where user was working\n - Syncs with main branch 0.2.15 changes\n\n3. **set-base-branch Command** (e38578b)\n - New command to manually change PR target branch\n - Usage: `python3 task.py set-base-branch <task-dir> <branch>`\n\n**Bug Fixes:**\n\n1. **OpenCode Agent Path Fixes** (5357e98)\n - Fixed hardcoded task directory paths in OpenCode agent docs\n - Changed from `.trellis/workspace/{developer}/tasks/` to `.trellis/tasks/`\n - Cleaned up unused hardcoded constants in plan.py and start.py",
7
+ "migrations": [],
8
+ "notes": "Recommended for Cursor users and multi-agent pipeline users who need correct PR targeting."
9
+ }
@@ -13,7 +13,7 @@ You are the Dispatch Agent in the Multi-Agent Pipeline (pure dispatcher).
13
13
 
14
14
  Current Task is specified by `.trellis/.current-task` file, content is the relative path to task directory.
15
15
 
16
- Task directory path format: `.trellis/workspace/{developer}/tasks/{MM}-{DD}-{name}/`
16
+ Task directory path format: `.trellis/tasks/{MM}-{DD}-{name}/`
17
17
 
18
18
  This directory contains all context files for the current task:
19
19
 
@@ -41,7 +41,7 @@ Read `.trellis/.current-task` to get current task directory path:
41
41
 
42
42
  ```bash
43
43
  TASK_DIR=$(cat .trellis/.current-task)
44
- # e.g.: .trellis/workspace/taosu/tasks/12-my-feature
44
+ # e.g.: .trellis/tasks/02-03-my-feature
45
45
  ```
46
46
 
47
47
  ### Step 2: Read Task Configuration
@@ -335,7 +335,7 @@ Input:
335
335
  Result: ACCEPTED - Clear, specific, has defined behavior
336
336
 
337
337
  Output:
338
- .trellis/workspace/xxx/tasks/17-add-rate-limiting/
338
+ .trellis/tasks/02-03-add-rate-limiting/
339
339
  ├── task.json # branch: feature/add-rate-limiting, scope: api
340
340
  ├── prd.md # Detailed requirements with acceptance criteria
341
341
  ├── implement.jsonl # Backend specs + existing middleware patterns
@@ -149,6 +149,29 @@ The following slash commands are for users (not AI):
149
149
 
150
150
  ---
151
151
 
152
+ ## Platform Detection
153
+
154
+ Trellis auto-detects your platform based on config directories. For Cursor users, ensure detection works correctly:
155
+
156
+ | Condition | Detected Platform |
157
+ |-----------|-------------------|
158
+ | Only `.cursor/` exists | `cursor` ✅ |
159
+ | Both `.cursor/` and `.claude/` exist | `claude` (default) |
160
+
161
+ If auto-detection fails, set manually:
162
+
163
+ ```bash
164
+ export TRELLIS_PLATFORM=cursor
165
+ ```
166
+
167
+ Or prefix commands:
168
+
169
+ ```bash
170
+ TRELLIS_PLATFORM=cursor python3 ./.trellis/scripts/task.py list
171
+ ```
172
+
173
+ ---
174
+
152
175
  ## Session End Reminder
153
176
 
154
177
  **IMPORTANT**: When a task or session is completed, remind the user:
@@ -20,7 +20,7 @@ You are the Dispatch Agent in the Multi-Agent Pipeline (pure dispatcher).
20
20
 
21
21
  Current Task is specified by `.trellis/.current-task` file, content is the relative path to task directory.
22
22
 
23
- Task directory path format: `.trellis/workspace/{developer}/tasks/{MM}-{DD}-{name}/`
23
+ Task directory path format: `.trellis/tasks/{MM}-{DD}-{name}/`
24
24
 
25
25
  This directory contains all context files for the current task:
26
26
 
@@ -48,7 +48,7 @@ Read `.trellis/.current-task` to get current task directory path:
48
48
 
49
49
  ```bash
50
50
  TASK_DIR=$(cat .trellis/.current-task)
51
- # e.g.: .trellis/workspace/taosu/tasks/12-my-feature
51
+ # e.g.: .trellis/tasks/02-03-my-feature
52
52
  ```
53
53
 
54
54
  ### Step 2: Read Task Configuration
@@ -366,7 +366,7 @@ Input:
366
366
  Result: ACCEPTED - Clear, specific, has defined behavior
367
367
 
368
368
  Output:
369
- .trellis/workspace/xxx/tasks/17-add-rate-limiting/
369
+ .trellis/tasks/02-03-add-rate-limiting/
370
370
  ├── task.json # branch: feature/add-rate-limiting, scope: api
371
371
  ├── prd.md # Detailed requirements with acceptance criteria
372
372
  ├── implement.jsonl # Backend specs + existing middleware patterns
@@ -1,11 +1,12 @@
1
1
  """
2
2
  CLI Adapter for Multi-Platform Support.
3
3
 
4
- Abstracts differences between Claude Code and OpenCode CLI interfaces.
4
+ Abstracts differences between Claude Code, OpenCode, and Cursor interfaces.
5
5
 
6
6
  Supported platforms:
7
7
  - claude: Claude Code (default)
8
8
  - opencode: OpenCode
9
+ - cursor: Cursor IDE
9
10
 
10
11
  Usage:
11
12
  from common.cli_adapter import CLIAdapter
@@ -24,7 +25,7 @@ from dataclasses import dataclass
24
25
  from pathlib import Path
25
26
  from typing import ClassVar, Literal
26
27
 
27
- Platform = Literal["claude", "opencode"]
28
+ Platform = Literal["claude", "opencode", "cursor"]
28
29
 
29
30
 
30
31
  @dataclass
@@ -68,9 +69,14 @@ class CLIAdapter:
68
69
  """Get platform-specific config directory name.
69
70
 
70
71
  Returns:
71
- Directory name ('.claude' or '.opencode')
72
+ Directory name ('.claude', '.opencode', or '.cursor')
72
73
  """
73
- return ".opencode" if self.platform == "opencode" else ".claude"
74
+ if self.platform == "opencode":
75
+ return ".opencode"
76
+ elif self.platform == "cursor":
77
+ return ".cursor"
78
+ else:
79
+ return ".claude"
74
80
 
75
81
  def get_config_dir(self, project_root: Path) -> Path:
76
82
  """Get platform-specific config directory.
@@ -105,8 +111,39 @@ class CLIAdapter:
105
111
 
106
112
  Returns:
107
113
  Path to commands directory or file
114
+
115
+ Note:
116
+ Cursor uses prefix naming: .cursor/commands/trellis-<name>.md
117
+ Claude/OpenCode use subdirectory: .claude/commands/trellis/<name>.md
118
+ """
119
+ if not parts:
120
+ return self.get_config_dir(project_root) / "commands"
121
+
122
+ # Cursor uses prefix naming instead of subdirectory
123
+ if self.platform == "cursor" and len(parts) >= 2 and parts[0] == "trellis":
124
+ # Convert trellis/<name>.md to trellis-<name>.md
125
+ filename = parts[-1]
126
+ return self.get_config_dir(project_root) / "commands" / f"trellis-{filename}"
127
+
128
+ return self.get_config_dir(project_root) / "commands" / Path(*parts)
129
+
130
+ def get_trellis_command_path(self, name: str) -> str:
131
+ """Get relative path to a trellis command file.
132
+
133
+ Args:
134
+ name: Command name without extension (e.g., 'finish-work', 'check-backend')
135
+
136
+ Returns:
137
+ Relative path string for use in JSONL entries
138
+
139
+ Note:
140
+ Cursor: .cursor/commands/trellis-<name>.md
141
+ Others: .{platform}/commands/trellis/<name>.md
108
142
  """
109
- return self.get_config_dir(project_root) / "commands" / Path(*parts) if parts else self.get_config_dir(project_root) / "commands"
143
+ if self.platform == "cursor":
144
+ return f".cursor/commands/trellis-{name}.md"
145
+ else:
146
+ return f"{self.config_dir_name}/commands/trellis/{name}.md"
110
147
 
111
148
  # =========================================================================
112
149
  # Environment Variables
@@ -235,10 +272,32 @@ class CLIAdapter:
235
272
  """Check if platform is Claude Code."""
236
273
  return self.platform == "claude"
237
274
 
275
+ @property
276
+ def is_cursor(self) -> bool:
277
+ """Check if platform is Cursor."""
278
+ return self.platform == "cursor"
279
+
238
280
  @property
239
281
  def cli_name(self) -> str:
240
- """Get CLI executable name."""
241
- return "opencode" if self.is_opencode else "claude"
282
+ """Get CLI executable name.
283
+
284
+ Note: Cursor doesn't have a CLI tool, returns None-like value.
285
+ """
286
+ if self.is_opencode:
287
+ return "opencode"
288
+ elif self.is_cursor:
289
+ return "cursor" # Note: Cursor is IDE-only, no CLI
290
+ else:
291
+ return "claude"
292
+
293
+ @property
294
+ def supports_cli_agents(self) -> bool:
295
+ """Check if platform supports running agents via CLI.
296
+
297
+ Claude Code and OpenCode support CLI agent execution.
298
+ Cursor is IDE-only and doesn't support CLI agents.
299
+ """
300
+ return self.platform in ("claude", "opencode")
242
301
 
243
302
  # =========================================================================
244
303
  # Session ID Handling
@@ -282,7 +341,7 @@ def get_cli_adapter(platform: str = "claude") -> CLIAdapter:
282
341
  """Get CLI adapter for the specified platform.
283
342
 
284
343
  Args:
285
- platform: Platform name ('claude' or 'opencode')
344
+ platform: Platform name ('claude', 'opencode', or 'cursor')
286
345
 
287
346
  Returns:
288
347
  CLIAdapter instance
@@ -290,10 +349,10 @@ def get_cli_adapter(platform: str = "claude") -> CLIAdapter:
290
349
  Raises:
291
350
  ValueError: If platform is not supported
292
351
  """
293
- if platform not in ("claude", "opencode"):
294
- raise ValueError(f"Unsupported platform: {platform} (must be 'claude' or 'opencode')")
352
+ if platform not in ("claude", "opencode", "cursor"):
353
+ raise ValueError(f"Unsupported platform: {platform} (must be 'claude', 'opencode', or 'cursor')")
295
354
 
296
- return CLIAdapter(platform=platform)
355
+ return CLIAdapter(platform=platform) # type: ignore
297
356
 
298
357
 
299
358
  def detect_platform(project_root: Path) -> Platform:
@@ -302,19 +361,20 @@ def detect_platform(project_root: Path) -> Platform:
302
361
  Detection order:
303
362
  1. TRELLIS_PLATFORM environment variable (if set)
304
363
  2. .opencode directory exists → opencode
305
- 3. Defaultclaude
364
+ 3. .cursor directory exists (without .claude) cursor
365
+ 4. Default → claude
306
366
 
307
367
  Args:
308
368
  project_root: Project root directory
309
369
 
310
370
  Returns:
311
- Detected platform ('claude' or 'opencode')
371
+ Detected platform ('claude', 'opencode', or 'cursor')
312
372
  """
313
373
  import os
314
374
 
315
375
  # Check environment variable first
316
376
  env_platform = os.environ.get("TRELLIS_PLATFORM", "").lower()
317
- if env_platform in ("claude", "opencode"):
377
+ if env_platform in ("claude", "opencode", "cursor"):
318
378
  return env_platform # type: ignore
319
379
 
320
380
  # Check for .opencode directory (OpenCode-specific)
@@ -322,6 +382,11 @@ def detect_platform(project_root: Path) -> Platform:
322
382
  if (project_root / ".opencode").is_dir():
323
383
  return "opencode"
324
384
 
385
+ # Check for .cursor directory (Cursor-specific)
386
+ # Only detect as cursor if .claude doesn't exist (to avoid confusion)
387
+ if (project_root / ".cursor").is_dir() and not (project_root / ".claude").is_dir():
388
+ return "cursor"
389
+
325
390
  return "claude"
326
391
 
327
392
 
@@ -60,7 +60,6 @@ def log_error(msg: str) -> None:
60
60
  # Constants
61
61
  # =============================================================================
62
62
 
63
- PLAN_MD_PATH = ".claude/agents/plan.md"
64
63
  DEFAULT_PLATFORM = "claude"
65
64
 
66
65
 
@@ -108,8 +108,6 @@ def _write_json_file(path: Path, data: dict) -> bool:
108
108
  # Constants
109
109
  # =============================================================================
110
110
 
111
- # Default paths (will be overridden by CLI adapter for OpenCode)
112
- DISPATCH_MD_PATH = ".claude/agents/dispatch.md"
113
111
  DEFAULT_PLATFORM = "claude"
114
112
 
115
113
 
@@ -12,6 +12,7 @@ Usage:
12
12
  python3 task.py start <dir> # Set as current task
13
13
  python3 task.py finish # Clear current task
14
14
  python3 task.py set-branch <dir> <branch> # Set git branch
15
+ python3 task.py set-base-branch <dir> <branch> # Set PR target branch
15
16
  python3 task.py set-scope <dir> <scope> # Set scope for PR title
16
17
  python3 task.py create-pr [dir] [--dry-run] # Create PR from task
17
18
  python3 task.py archive <task-name> # Archive completed task
@@ -37,6 +38,7 @@ from datetime import datetime
37
38
  from pathlib import Path
38
39
 
39
40
  from common.cli_adapter import get_cli_adapter_auto
41
+ from common.git_context import _run_git_command
40
42
  from common.paths import (
41
43
  DIR_WORKFLOW,
42
44
  DIR_TASKS,
@@ -166,18 +168,16 @@ def get_implement_frontend() -> list[dict]:
166
168
  def get_check_context(dev_type: str, repo_root: Path) -> list[dict]:
167
169
  """Get check context entries."""
168
170
  adapter = get_cli_adapter_auto(repo_root)
169
- # Use relative path (e.g., ".claude/commands/trellis" or ".opencode/commands/trellis")
170
- commands_base = f"{adapter.config_dir_name}/commands/trellis"
171
171
 
172
172
  entries = [
173
- {"file": f"{commands_base}/finish-work.md", "reason": "Finish work checklist"},
173
+ {"file": adapter.get_trellis_command_path("finish-work"), "reason": "Finish work checklist"},
174
174
  {"file": f"{DIR_WORKFLOW}/{DIR_SPEC}/shared/index.md", "reason": "Shared coding standards"},
175
175
  ]
176
176
 
177
177
  if dev_type in ("backend", "fullstack"):
178
- entries.append({"file": f"{commands_base}/check-backend.md", "reason": "Backend check spec"})
178
+ entries.append({"file": adapter.get_trellis_command_path("check-backend"), "reason": "Backend check spec"})
179
179
  if dev_type in ("frontend", "fullstack"):
180
- entries.append({"file": f"{commands_base}/check-frontend.md", "reason": "Frontend check spec"})
180
+ entries.append({"file": adapter.get_trellis_command_path("check-frontend"), "reason": "Frontend check spec"})
181
181
 
182
182
  return entries
183
183
 
@@ -185,17 +185,15 @@ def get_check_context(dev_type: str, repo_root: Path) -> list[dict]:
185
185
  def get_debug_context(dev_type: str, repo_root: Path) -> list[dict]:
186
186
  """Get debug context entries."""
187
187
  adapter = get_cli_adapter_auto(repo_root)
188
- # Use relative path (e.g., ".claude/commands/trellis" or ".opencode/commands/trellis")
189
- commands_base = f"{adapter.config_dir_name}/commands/trellis"
190
188
 
191
189
  entries = [
192
190
  {"file": f"{DIR_WORKFLOW}/{DIR_SPEC}/shared/index.md", "reason": "Shared coding standards"},
193
191
  ]
194
192
 
195
193
  if dev_type in ("backend", "fullstack"):
196
- entries.append({"file": f"{commands_base}/check-backend.md", "reason": "Backend check spec"})
194
+ entries.append({"file": adapter.get_trellis_command_path("check-backend"), "reason": "Backend check spec"})
197
195
  if dev_type in ("frontend", "fullstack"):
198
- entries.append({"file": f"{commands_base}/check-frontend.md", "reason": "Frontend check spec"})
196
+ entries.append({"file": adapter.get_trellis_command_path("check-frontend"), "reason": "Frontend check spec"})
199
197
 
200
198
  return entries
201
199
 
@@ -270,6 +268,10 @@ def cmd_create(args: argparse.Namespace) -> int:
270
268
 
271
269
  today = datetime.now().strftime("%Y-%m-%d")
272
270
 
271
+ # Record current branch as base_branch (PR target)
272
+ _, branch_out, _ = _run_git_command(["branch", "--show-current"], cwd=repo_root)
273
+ current_branch = branch_out.strip() or "main"
274
+
273
275
  task_data = {
274
276
  "id": slug,
275
277
  "name": slug,
@@ -284,7 +286,7 @@ def cmd_create(args: argparse.Namespace) -> int:
284
286
  "createdAt": today,
285
287
  "completedAt": None,
286
288
  "branch": None,
287
- "base_branch": None,
289
+ "base_branch": current_branch,
288
290
  "worktree_path": None,
289
291
  "current_phase": 0,
290
292
  "next_action": [
@@ -805,6 +807,41 @@ def cmd_set_branch(args: argparse.Namespace) -> int:
805
807
  return 0
806
808
 
807
809
 
810
+ # =============================================================================
811
+ # Command: set-base-branch
812
+ # =============================================================================
813
+
814
+ def cmd_set_base_branch(args: argparse.Namespace) -> int:
815
+ """Set the base branch (PR target) for task."""
816
+ repo_root = get_repo_root()
817
+ target_dir = _resolve_task_dir(args.dir, repo_root)
818
+ base_branch = args.base_branch
819
+
820
+ if not base_branch:
821
+ print(colored("Error: Missing arguments", Colors.RED))
822
+ print("Usage: python3 task.py set-base-branch <task-dir> <base-branch>")
823
+ print("Example: python3 task.py set-base-branch <dir> develop")
824
+ print()
825
+ print("This sets the target branch for PR (the branch your feature will merge into).")
826
+ return 1
827
+
828
+ task_json = target_dir / FILE_TASK_JSON
829
+ if not task_json.is_file():
830
+ print(colored(f"Error: task.json not found at {target_dir}", Colors.RED))
831
+ return 1
832
+
833
+ data = _read_json_file(task_json)
834
+ if not data:
835
+ return 1
836
+
837
+ data["base_branch"] = base_branch
838
+ _write_json_file(task_json, data)
839
+
840
+ print(colored(f"✓ Base branch set to: {base_branch}", Colors.GREEN))
841
+ print(f" PR will target: {base_branch}")
842
+ return 0
843
+
844
+
808
845
  # =============================================================================
809
846
  # Command: set-scope
810
847
  # =============================================================================
@@ -954,6 +991,11 @@ def main() -> int:
954
991
  p_branch.add_argument("dir", help="Task directory")
955
992
  p_branch.add_argument("branch", help="Branch name")
956
993
 
994
+ # set-base-branch
995
+ p_base = subparsers.add_parser("set-base-branch", help="Set PR target branch")
996
+ p_base.add_argument("dir", help="Task directory")
997
+ p_base.add_argument("base_branch", help="Base branch name (PR target)")
998
+
957
999
  # set-scope
958
1000
  p_scope = subparsers.add_parser("set-scope", help="Set scope")
959
1001
  p_scope.add_argument("dir", help="Task directory")
@@ -992,6 +1034,7 @@ def main() -> int:
992
1034
  "start": cmd_start,
993
1035
  "finish": cmd_finish,
994
1036
  "set-branch": cmd_set_branch,
1037
+ "set-base-branch": cmd_set_base_branch,
995
1038
  "set-scope": cmd_set_scope,
996
1039
  "create-pr": cmd_create_pr,
997
1040
  "archive": cmd_archive,
@@ -201,7 +201,7 @@ Usage:
201
201
  $0 --registry Show agent registry
202
202
 
203
203
  Examples:
204
- $0 -a taosu
204
+ $0 -a john
205
205
  $0 --detail my-task
206
206
  $0 --progress my-task
207
207
  $0 --watch 01-16-worktree-support
@@ -47,6 +47,21 @@ NC='\033[0m'
47
47
 
48
48
  REPO_ROOT=$(get_repo_root)
49
49
 
50
+ # Platform (claude | cursor), can be overridden via --platform flag
51
+ PLATFORM="claude"
52
+
53
+ # Get command file path based on platform
54
+ # Claude: .claude/commands/trellis/<name>.md
55
+ # Cursor: .cursor/commands/trellis-<name>.md
56
+ get_command_path() {
57
+ local name="$1"
58
+ if [[ "$PLATFORM" == "cursor" ]]; then
59
+ echo ".cursor/commands/trellis-${name}.md"
60
+ else
61
+ echo ".claude/commands/trellis/${name}.md"
62
+ fi
63
+ }
64
+
50
65
  # =============================================================================
51
66
  # Helper Functions
52
67
  # =============================================================================
@@ -85,30 +100,35 @@ EOF
85
100
 
86
101
  get_check_context() {
87
102
  local dev_type="$1"
103
+ local finish_work=$(get_command_path "finish-work")
104
+ local check_backend=$(get_command_path "check-backend")
105
+ local check_frontend=$(get_command_path "check-frontend")
88
106
 
89
107
  cat << EOF
90
- {"file": ".claude/commands/trellis/finish-work.md", "reason": "Finish work checklist"}
108
+ {"file": "${finish_work}", "reason": "Finish work checklist"}
91
109
  {"file": "$DIR_WORKFLOW/$DIR_SPEC/shared/index.md", "reason": "Shared coding standards"}
92
110
  EOF
93
111
 
94
112
  if [[ "$dev_type" == "backend" ]] || [[ "$dev_type" == "fullstack" ]]; then
95
- echo '{"file": ".claude/commands/trellis/check-backend.md", "reason": "Backend check spec"}'
113
+ echo "{\"file\": \"${check_backend}\", \"reason\": \"Backend check spec\"}"
96
114
  fi
97
115
  if [[ "$dev_type" == "frontend" ]] || [[ "$dev_type" == "fullstack" ]]; then
98
- echo '{"file": ".claude/commands/trellis/check-frontend.md", "reason": "Frontend check spec"}'
116
+ echo "{\"file\": \"${check_frontend}\", \"reason\": \"Frontend check spec\"}"
99
117
  fi
100
118
  }
101
119
 
102
120
  get_debug_context() {
103
121
  local dev_type="$1"
122
+ local check_backend=$(get_command_path "check-backend")
123
+ local check_frontend=$(get_command_path "check-frontend")
104
124
 
105
125
  echo "{\"file\": \"$DIR_WORKFLOW/$DIR_SPEC/shared/index.md\", \"reason\": \"Shared coding standards\"}"
106
126
 
107
127
  if [[ "$dev_type" == "backend" ]] || [[ "$dev_type" == "fullstack" ]]; then
108
- echo '{"file": ".claude/commands/trellis/check-backend.md", "reason": "Backend check spec"}'
128
+ echo "{\"file\": \"${check_backend}\", \"reason\": \"Backend check spec\"}"
109
129
  fi
110
130
  if [[ "$dev_type" == "frontend" ]] || [[ "$dev_type" == "fullstack" ]]; then
111
- echo '{"file": ".claude/commands/trellis/check-frontend.md", "reason": "Frontend check spec"}'
131
+ echo "{\"file\": \"${check_frontend}\", \"reason\": \"Frontend check spec\"}"
112
132
  fi
113
133
  }
114
134
 
@@ -272,13 +292,36 @@ EOF
272
292
  # =============================================================================
273
293
 
274
294
  cmd_init_context() {
275
- local target_dir="$1"
276
- local dev_type="$2"
295
+ local target_dir=""
296
+ local dev_type=""
297
+
298
+ # Parse arguments
299
+ while [[ $# -gt 0 ]]; do
300
+ case "$1" in
301
+ --platform)
302
+ PLATFORM="$2"
303
+ shift 2
304
+ ;;
305
+ -*)
306
+ echo -e "${RED}Error: Unknown option $1${NC}"
307
+ exit 1
308
+ ;;
309
+ *)
310
+ if [[ -z "$target_dir" ]]; then
311
+ target_dir="$1"
312
+ elif [[ -z "$dev_type" ]]; then
313
+ dev_type="$1"
314
+ fi
315
+ shift
316
+ ;;
317
+ esac
318
+ done
277
319
 
278
320
  if [[ -z "$target_dir" ]] || [[ -z "$dev_type" ]]; then
279
321
  echo -e "${RED}Error: Missing arguments${NC}"
280
- echo "Usage: $0 init-context <task-dir> <dev_type>"
322
+ echo "Usage: $0 init-context <task-dir> <dev_type> [--platform claude|cursor]"
281
323
  echo " dev_type: backend | frontend | fullstack | test | docs"
324
+ echo " --platform: claude (default) | cursor"
282
325
  exit 1
283
326
  fi
284
327
 
@@ -1024,7 +1067,7 @@ Task Management Script for Multi-Agent Pipeline
1024
1067
 
1025
1068
  Usage:
1026
1069
  $0 create <title> Create new task directory
1027
- $0 init-context <dir> <dev_type> Initialize jsonl files
1070
+ $0 init-context <dir> <type> [--platform claude|cursor] Initialize jsonl files
1028
1071
  $0 add-context <dir> <jsonl> <path> [reason] Add entry to jsonl
1029
1072
  $0 validate <dir> Validate jsonl files
1030
1073
  $0 list-context <dir> List jsonl entries
@@ -1047,6 +1090,7 @@ List options:
1047
1090
  Examples:
1048
1091
  $0 create "Add login feature" --slug add-login
1049
1092
  $0 init-context .trellis/tasks/01-21-add-login backend
1093
+ $0 init-context .trellis/tasks/01-21-add-login frontend --platform cursor
1050
1094
  $0 add-context <dir> implement .trellis/spec/backend/auth.md "Auth guidelines"
1051
1095
  $0 set-branch <dir> task/add-login
1052
1096
  $0 start .trellis/tasks/01-21-add-login
@@ -1070,7 +1114,8 @@ case "${1:-}" in
1070
1114
  cmd_create "$@"
1071
1115
  ;;
1072
1116
  init-context)
1073
- cmd_init_context "$2" "$3"
1117
+ shift
1118
+ cmd_init_context "$@"
1074
1119
  ;;
1075
1120
  add-context)
1076
1121
  cmd_add_context "$2" "$3" "$4" "$5"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindfoldhq/trellis",
3
- "version": "0.3.0-beta.12",
3
+ "version": "0.3.0-beta.13",
4
4
  "description": "AI capabilities grow like ivy — Trellis provides the structure to guide them along a disciplined path",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "trellis"
25
25
  ],
26
26
  "author": "Mindfold LLC",
27
- "license": "FSL-1.1-MIT",
27
+ "license": "AGPL-3.0-only",
28
28
  "dependencies": {
29
29
  "chalk": "^5.3.0",
30
30
  "commander": "^12.1.0",