twoux 0.0.0-stage → 0.1.0

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.md ADDED
@@ -0,0 +1,61 @@
1
+ # TwoUX Licence 1.0
2
+
3
+ Copyright (c) 2026 Giulia Pizzignacco. All rights reserved, except as granted below.
4
+
5
+ TwoUX is free to use. You may build and ship your own products with it, including commercial products and client work. You may not sell it, give it away or offer it as your own design system, UI kit or component library.
6
+
7
+ ## 1. Definitions
8
+
9
+ "TwoUX" means everything in this repository and published from it: the component source code, styles, tokens and themes, the documentation, the examples and example apps, and the knowledge files written for people and coding agents (including AGENTS.md, CLAUDE.md, llms.txt, llms-full.txt, docs-md, the rules, the job table and the skills).
10
+
11
+ "Product" means a website, application, internal tool, service or other software that you, your employer or your client build and offer, whose main value comes from its own features and content rather than from TwoUX.
12
+
13
+ "You" means the person or organisation using TwoUX under this licence.
14
+
15
+ ## 2. What you may do
16
+
17
+ Free of charge, worldwide and for as long as you follow this licence, you may:
18
+
19
+ 1. Use, copy and modify TwoUX to design, build and run any number of Products, commercial or not.
20
+ 2. Build Products for clients, and hand those Products, including the parts of TwoUX inside them, to the client, who may then use them under this licence.
21
+ 3. Distribute TwoUX as part of a Product, in source or compiled form, as long as it is not offered as a separate kit or library (see section 3) and this licence travels with the TwoUX files.
22
+ 4. Let your coding agents and tools read TwoUX, including its knowledge files, to write code for your Products.
23
+ 5. Fork the public repository to suggest changes back, or to keep a modified copy for your own Products.
24
+
25
+ ## 3. What you may not do
26
+
27
+ You may not, whether you charge for it or not:
28
+
29
+ 1. Sell, sublicense, rent or lease TwoUX, or any part of it, on its own.
30
+ 2. Redistribute or publish TwoUX, a modified version of it, or a substantial part of it, as or inside a design system, UI kit, component library, template, theme, starter kit, code generator, design file or any other product whose main value is TwoUX itself.
31
+ 3. Offer a service that lets other people generate, download or copy TwoUX components or knowledge files for their own use.
32
+ 4. Use TwoUX, its documentation or its knowledge files to train, fine-tune or evaluate a machine learning model, or to build a dataset for that purpose. Agents reading the files to write code for your Products, as in section 2.4, is allowed.
33
+ 5. Remove or change the copyright notice, this licence or the third-party notices.
34
+
35
+ ## 4. Third-party software
36
+
37
+ TwoUX includes and is built on open-source software, such as shadcn/ui and Radix UI, under their own licences. Those parts stay under their own licences, listed in NOTICE.md. Nothing in this licence limits the rights those licences give you.
38
+
39
+ ## 5. Name and logo
40
+
41
+ This licence does not give you any right to use the name TwoUX or its logo, except to say truthfully that your Product is built with TwoUX.
42
+
43
+ ## 6. Ending the licence
44
+
45
+ If you break this licence, your rights under it end automatically. If you fix the breach within 30 days of first learning about it, your rights come back.
46
+
47
+ ## 7. No warranty
48
+
49
+ To the extent the applicable law allows, TwoUX is provided "as is", without warranty of any kind, express or implied, including the warranties of merchantability, fitness for a particular purpose and non-infringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with TwoUX or its use.
50
+
51
+ ## 8. Contributions
52
+
53
+ If you send a change, suggestion or other contribution to TwoUX, for example a pull request or an issue, you confirm that you have the right to send it, and you grant Giulia Pizzignacco a perpetual, worldwide, royalty-free and irrevocable licence to use, modify, sublicense and distribute it as part of TwoUX, under this licence or any other.
54
+
55
+ ## 9. Governing law
56
+
57
+ This licence is governed by the laws of Portugal. The courts of Portugal have jurisdiction over any dispute arising from it or from the use of TwoUX. This does not remove any right the law of your country gives you to bring proceedings where you live.
58
+
59
+ ## 10. Questions
60
+
61
+ If you are unsure whether your use is allowed, email hi@axdexpert.ai before you ship it.
package/bin/twoux.mjs ADDED
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+ // twoux: runs the twoux command from @twoux/ui. Uses the copy installed in the current project when there
3
+ // is one, so the rules, docs and checks always match the version the app builds with; otherwise the
4
+ // copy installed alongside this package.
5
+ import { createRequire } from "node:module";
6
+ import { join } from "node:path";
7
+ import { pathToFileURL } from "node:url";
8
+
9
+ function resolveFrom(base) {
10
+ try {
11
+ return createRequire(base).resolve("@twoux/ui/package.json");
12
+ } catch {
13
+ return null;
14
+ }
15
+ }
16
+
17
+ const pkgJson = resolveFrom(join(process.cwd(), "noop.js")) ?? resolveFrom(import.meta.url);
18
+ if (!pkgJson) {
19
+ console.error("TwoUX is not installed. Run npm install @twoux/ui in your project, then run this command again.");
20
+ process.exit(1);
21
+ }
22
+ await import(pathToFileURL(join(pkgJson, "..", "bin/twoux.mjs")).href);
package/package.json CHANGED
@@ -1,6 +1,35 @@
1
1
  {
2
2
  "name": "twoux",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "Command line for TwoUX: set a project up for AI agents, find the component for a job, check UI code and run the MCP server. Runs the @twoux/ui installed in your project.",
5
+ "license": "SEE LICENSE IN LICENSE.md",
6
+ "type": "module",
7
+ "bin": {
8
+ "twoux": "./bin/twoux.mjs"
9
+ },
10
+ "files": [
11
+ "bin",
12
+ "LICENSE.md"
13
+ ],
14
+ "dependencies": {
15
+ "@twoux/ui": "^0.1.0"
16
+ },
17
+ "engines": {
18
+ "node": ">=20"
19
+ },
20
+ "author": "Giulia Pizzignacco <hi@axdexpert.ai>",
21
+ "homepage": "https://twoux.com",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/axdexpert/twoux.git",
25
+ "directory": "packages/twoux"
26
+ },
27
+ "bugs": {
28
+ "url": "https://github.com/axdexpert/twoux/issues"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public",
32
+ "provenance": true
33
+ },
34
+ "scripts": {}
6
35
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.