mesa-ai-cto 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +155 -0
- package/README.md +34 -0
- package/bin/mesa-ai-cto.mjs +50 -0
- package/package.json +44 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
THE AI CTO — PROPRIETARY LICENSE
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mesa Startup Lab. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Created by Gaurav Madan and the Mesa Startup Lab team.
|
|
6
|
+
|
|
7
|
+
--------------------------------------------------------------------------------
|
|
8
|
+
1. DEFINITIONS
|
|
9
|
+
--------------------------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
"The Kit" means this repository and everything in it: the module execution guides,
|
|
12
|
+
the concept cards, the checklists, the kit manifests, the AGENTS.md and
|
|
13
|
+
INITIALIZE.md templates, the prompts, the pitch deck, the scripts, and any
|
|
14
|
+
software published from it including the `mesa-ai-cto` command-line tool.
|
|
15
|
+
|
|
16
|
+
"Licensor" means Mesa Startup Lab, the owner of the Kit.
|
|
17
|
+
|
|
18
|
+
"You" means the individual or organisation granted a licence under these terms.
|
|
19
|
+
|
|
20
|
+
"Your Products" means software You build for Yourself or for Your clients using
|
|
21
|
+
the Kit.
|
|
22
|
+
|
|
23
|
+
"Generated Code" means source code, configuration and other files produced by an
|
|
24
|
+
AI agent, by You, or by the `mesa-ai-cto` tool while following the Kit.
|
|
25
|
+
|
|
26
|
+
--------------------------------------------------------------------------------
|
|
27
|
+
2. WHAT YOU MAY DO
|
|
28
|
+
--------------------------------------------------------------------------------
|
|
29
|
+
|
|
30
|
+
Subject to Section 3, You are granted a non-exclusive, non-transferable,
|
|
31
|
+
worldwide licence to:
|
|
32
|
+
|
|
33
|
+
a. USE the Kit to design, build, test, deploy and operate Your Products,
|
|
34
|
+
including for commercial purposes and including work delivered to clients.
|
|
35
|
+
|
|
36
|
+
b. OWN the Generated Code outright. Nothing in this licence claims any right
|
|
37
|
+
over the code You or Your agent produce by following the Kit. You may
|
|
38
|
+
license, sell, open-source or keep that code entirely as You choose, with
|
|
39
|
+
no obligation to attribute the Kit.
|
|
40
|
+
|
|
41
|
+
c. COPY the guides, checklists, prompts and templates into Your own private
|
|
42
|
+
repositories, and modify them there, for use on Your Products.
|
|
43
|
+
|
|
44
|
+
d. SHARE the Kit within Your organisation, with employees and contractors
|
|
45
|
+
working on Your Products, provided they are bound by these terms.
|
|
46
|
+
|
|
47
|
+
--------------------------------------------------------------------------------
|
|
48
|
+
3. WHAT YOU MAY NOT DO
|
|
49
|
+
--------------------------------------------------------------------------------
|
|
50
|
+
|
|
51
|
+
You may not, without prior written permission from the Licensor:
|
|
52
|
+
|
|
53
|
+
a. REDISTRIBUTE, resell, rent, lease, sublicense or otherwise make the Kit, or
|
|
54
|
+
any substantial part of it, available to anyone outside Your organisation.
|
|
55
|
+
|
|
56
|
+
b. PUBLISH the Kit, or any substantial part of it, publicly — including in a
|
|
57
|
+
public repository, a website, a book, a course, or a video series.
|
|
58
|
+
|
|
59
|
+
c. OFFER a product or service that is substantially the Kit, or that is derived
|
|
60
|
+
from it and competes with it, whether paid or free.
|
|
61
|
+
|
|
62
|
+
d. USE the Kit, or any substantial part of it, as training data for a machine
|
|
63
|
+
learning model, or to generate a derivative work intended for distribution.
|
|
64
|
+
|
|
65
|
+
e. REMOVE or obscure any copyright, attribution or licence notice in the Kit.
|
|
66
|
+
|
|
67
|
+
For clarity: Section 3 restricts redistribution of *the Kit*. It places no
|
|
68
|
+
restriction whatsoever on Your Products or on Generated Code, which are Yours
|
|
69
|
+
under Section 2(b).
|
|
70
|
+
|
|
71
|
+
--------------------------------------------------------------------------------
|
|
72
|
+
4. NO WARRANTY
|
|
73
|
+
--------------------------------------------------------------------------------
|
|
74
|
+
|
|
75
|
+
THE KIT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
76
|
+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
77
|
+
PARTICULAR PURPOSE, AND NONINFRINGEMENT.
|
|
78
|
+
|
|
79
|
+
The Kit contains security guidance, checklists and architectural
|
|
80
|
+
recommendations. These are offered in good faith and are not a substitute for a
|
|
81
|
+
professional security audit, legal advice, or compliance review appropriate to
|
|
82
|
+
Your jurisdiction and industry. Software versions, provider behaviour and
|
|
83
|
+
security best practice all change; each guide states the versions and the date it
|
|
84
|
+
was last verified, and You are responsible for confirming that guidance is still
|
|
85
|
+
current before relying on it.
|
|
86
|
+
|
|
87
|
+
Following the Kit does not guarantee that Your Products are secure, correct,
|
|
88
|
+
compliant, or fit for any purpose. You remain solely responsible for what You
|
|
89
|
+
build, deploy and operate.
|
|
90
|
+
|
|
91
|
+
--------------------------------------------------------------------------------
|
|
92
|
+
5. LIMITATION OF LIABILITY
|
|
93
|
+
--------------------------------------------------------------------------------
|
|
94
|
+
|
|
95
|
+
IN NO EVENT SHALL THE LICENSOR OR ITS AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
96
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
97
|
+
FROM, OUT OF OR IN CONNECTION WITH THE KIT OR THE USE OR OTHER DEALINGS IN THE
|
|
98
|
+
KIT — including without limitation any loss of data, loss of profit, business
|
|
99
|
+
interruption, security incident, or third-party claim arising from software built
|
|
100
|
+
using the Kit.
|
|
101
|
+
|
|
102
|
+
--------------------------------------------------------------------------------
|
|
103
|
+
6. TERMINATION
|
|
104
|
+
--------------------------------------------------------------------------------
|
|
105
|
+
|
|
106
|
+
This licence terminates automatically if You breach Section 3. On termination You
|
|
107
|
+
must stop using the Kit and delete Your copies of it. Your Products and Generated
|
|
108
|
+
Code created before termination are unaffected and remain Yours.
|
|
109
|
+
|
|
110
|
+
--------------------------------------------------------------------------------
|
|
111
|
+
7. GOVERNING LAW
|
|
112
|
+
--------------------------------------------------------------------------------
|
|
113
|
+
|
|
114
|
+
This licence is governed by the laws of India, and the courts of India shall have
|
|
115
|
+
exclusive jurisdiction over any dispute arising from it.
|
|
116
|
+
|
|
117
|
+
--------------------------------------------------------------------------------
|
|
118
|
+
8. CONTACT
|
|
119
|
+
--------------------------------------------------------------------------------
|
|
120
|
+
|
|
121
|
+
For permissions beyond the scope of this licence — redistribution, resale,
|
|
122
|
+
white-labelling, training use, or an enterprise arrangement — contact Mesa Startup
|
|
123
|
+
Lab.
|
|
124
|
+
|
|
125
|
+
================================================================================
|
|
126
|
+
NOTICE — PROVENANCE
|
|
127
|
+
================================================================================
|
|
128
|
+
|
|
129
|
+
The Kit is not theory. Its architectural patterns, its security checklists and
|
|
130
|
+
its traps are generalised from Mesa LMS, a production platform built and operated
|
|
131
|
+
by Mesa Startup Lab: four user roles with scoped permissions, roughly forty
|
|
132
|
+
backend modules, around fifty frontend feature slices, PostgreSQL, object
|
|
133
|
+
storage, transactional email, web push, a progressive web app and an LLM module.
|
|
134
|
+
|
|
135
|
+
Specifically:
|
|
136
|
+
|
|
137
|
+
* The response envelope, the error hierarchy, the boot-time environment
|
|
138
|
+
validation, the guard chain and the request logging format are generalised
|
|
139
|
+
from that codebase.
|
|
140
|
+
|
|
141
|
+
* The security checklists are derived from a review of it. Findings carry
|
|
142
|
+
identifiers (SEC-01 … SEC-20) so a rule in a checklist can be traced to the
|
|
143
|
+
incident or pattern that produced it. That review is included at
|
|
144
|
+
docs/specs/2026-08-19-mesa-security-review.md.
|
|
145
|
+
|
|
146
|
+
* The "How Mesa LMS does it" boxes in the concept cards point at real files in
|
|
147
|
+
that codebase, not at illustrative examples.
|
|
148
|
+
|
|
149
|
+
Mesa LMS itself is separate proprietary software and is not licensed by this
|
|
150
|
+
document. No right to Mesa LMS, its source code, its data, or any of its
|
|
151
|
+
trademarks is granted here. The Kit is stack-generic: nothing in it requires You
|
|
152
|
+
to use the same stack, the same providers, or the same conventions.
|
|
153
|
+
|
|
154
|
+
"The AI CTO", "Mesa Startup Lab", "Mesa School of Business" and "Mesa LMS" are
|
|
155
|
+
marks of Mesa Startup Lab.
|
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# mesa-ai-cto
|
|
2
|
+
|
|
3
|
+
Scaffolds a production-grade project from a plan produced by [The AI CTO](https://github.com/Mesa-School).
|
|
4
|
+
|
|
5
|
+
> **Not yet released.** `0.0.1` is a placeholder and does not scaffold anything.
|
|
6
|
+
> The working client ships as `0.1.0`.
|
|
7
|
+
|
|
8
|
+
## What it will do
|
|
9
|
+
|
|
10
|
+
You describe your business to the AI CTO. It produces a plan — the tier, the stack, the
|
|
11
|
+
modules, and what to build first. The plan gives you one command:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx mesa-ai-cto my-app --tier1 --token=mesa_i_…
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
That command checks your machine, installs the right codebase, writes your plan and the
|
|
18
|
+
module guides alongside it, installs dependencies, and leaves you with something running
|
|
19
|
+
on localhost.
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
my-app/
|
|
23
|
+
├── src/
|
|
24
|
+
├── docs/ module guides and checklists
|
|
25
|
+
├── plan.md what you are building, and in what order
|
|
26
|
+
└── mesa.json
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Licence
|
|
30
|
+
|
|
31
|
+
Proprietary. See [LICENSE](LICENSE).
|
|
32
|
+
|
|
33
|
+
The guides, checklists and boilerplate are **not** contained in this package. They are
|
|
34
|
+
delivered only to a holder of a valid install token.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Placeholder release.
|
|
4
|
+
*
|
|
5
|
+
* This exists so the name is held by the product that will use it — the dashboard already
|
|
6
|
+
* renders `npx mesa-ai-cto …` in every plan it produces, and a command that resolves to
|
|
7
|
+
* somebody else's package is worse than one that resolves to nothing.
|
|
8
|
+
*
|
|
9
|
+
* It also proves the publish pipeline while nothing is at stake. A version number can never
|
|
10
|
+
* be reused and a package cannot meaningfully be unpublished after 72 hours, so the first
|
|
11
|
+
* real release should not be the first release.
|
|
12
|
+
*
|
|
13
|
+
* Replaced by the real client in 0.1.0. See docs/specs/2026-08-22-cli-install-design.md.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
const args = process.argv.slice(2);
|
|
17
|
+
const wants = (...flags) => args.some((a) => flags.includes(a));
|
|
18
|
+
|
|
19
|
+
// `--version` and `--help` are questions this build can answer honestly, so they succeed.
|
|
20
|
+
if (wants("-v", "--version")) {
|
|
21
|
+
process.stdout.write("0.0.1\n");
|
|
22
|
+
process.exit(0);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const HELP = `
|
|
26
|
+
mesa-ai-cto — scaffold a project from your AI CTO plan
|
|
27
|
+
|
|
28
|
+
Not yet released. This version is a placeholder and does not scaffold anything.
|
|
29
|
+
|
|
30
|
+
When it ships:
|
|
31
|
+
npx mesa-ai-cto <name> --tier<N> --token=<t> scaffold a project
|
|
32
|
+
npx mesa-ai-cto doctor check your machine
|
|
33
|
+
npx mesa-ai-cto add <module> add a module guide
|
|
34
|
+
|
|
35
|
+
You get the command, with its token, from your plan in the AI CTO dashboard.
|
|
36
|
+
`;
|
|
37
|
+
|
|
38
|
+
if (wants("-h", "--help") || args.length === 0) {
|
|
39
|
+
process.stdout.write(`${HELP}\n`);
|
|
40
|
+
// No arguments is a request for help, and help was given.
|
|
41
|
+
process.exit(0);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Anything else is somebody — or some agent — asking this to do real work. It cannot, and
|
|
45
|
+
// exiting 0 would report success for a project that was never created.
|
|
46
|
+
process.stderr.write(
|
|
47
|
+
"\n mesa-ai-cto is not yet released — this is a placeholder version.\n" +
|
|
48
|
+
" Nothing has been created. Run with --help for what is coming.\n\n",
|
|
49
|
+
);
|
|
50
|
+
process.exit(1);
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mesa-ai-cto",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Scaffold a production-grade project from an AI CTO plan. Placeholder release — not yet functional.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"scaffold",
|
|
7
|
+
"cli",
|
|
8
|
+
"nextjs",
|
|
9
|
+
"express",
|
|
10
|
+
"postgres",
|
|
11
|
+
"supabase"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/Mesa-School/ai_cto_license_configs#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/Mesa-School/ai_cto_license_configs/issues"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/Mesa-School/ai_cto_license_configs.git",
|
|
20
|
+
"directory": "packages/mesa-ai-cto"
|
|
21
|
+
},
|
|
22
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
23
|
+
"author": "Gaurav Madan and the Mesa Startup Lab team",
|
|
24
|
+
"type": "module",
|
|
25
|
+
"bin": {
|
|
26
|
+
"mesa-ai-cto": "bin/mesa-ai-cto.mjs"
|
|
27
|
+
},
|
|
28
|
+
"//files": [
|
|
29
|
+
"An ALLOWLIST, deliberately, and never an .npmignore. An allowlist fails closed and a",
|
|
30
|
+
"denylist fails open — and the thing that escapes through an open failure here is the",
|
|
31
|
+
"Kit itself, or a .env. Every addition to this list is a decision to publish something."
|
|
32
|
+
],
|
|
33
|
+
"files": [
|
|
34
|
+
"bin/",
|
|
35
|
+
"README.md",
|
|
36
|
+
"LICENSE"
|
|
37
|
+
],
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=20"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
}
|
|
44
|
+
}
|