@generalintelligence/cofounder 0.1.1-preview.36484880702
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 +18 -0
- package/README.md +64 -0
- package/bin/cofounder-launcher.cjs +5 -0
- package/package.json +48 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Cofounder CLI — Proprietary Software
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 GIC Technologies, Inc. All rights reserved.
|
|
4
|
+
|
|
5
|
+
The Cofounder CLI is proprietary software provided as part of the Cofounder
|
|
6
|
+
Service. Access to and use of this software are subject to the Cofounder
|
|
7
|
+
Terms of Service:
|
|
8
|
+
|
|
9
|
+
https://cofounder.co/terms
|
|
10
|
+
|
|
11
|
+
This notice does not grant rights beyond those provided in the Terms of
|
|
12
|
+
Service or a separate written agreement with GIC Technologies, Inc.
|
|
13
|
+
Public availability of this software does not make it open source.
|
|
14
|
+
|
|
15
|
+
Third-party components remain subject to their respective licenses.
|
|
16
|
+
|
|
17
|
+
For questions about licensing, contact:
|
|
18
|
+
support@generalintelligencecompany.com
|
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Cofounder CLI
|
|
2
|
+
|
|
3
|
+
Cofounder connects you and your coding agent to the company behind your product: persistent resources and operations such as hosting, databases, domains, email, payments, and analytics.
|
|
4
|
+
|
|
5
|
+
Keep using your local tools for code, Git, and tests. Use Cofounder to manage company resources, permissions, approvals, and status in one shared place. Your next session can pick up from the company's current state instead of reconstructing it from chat history.
|
|
6
|
+
|
|
7
|
+
## Get started
|
|
8
|
+
|
|
9
|
+
You'll need Node.js 22 or newer. This package is private: you need access to the npm organization and must run `npm login` before installing.
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install -g @generalintelligence/cofounder vercel@59.19.0
|
|
13
|
+
cofounder auth login
|
|
14
|
+
cofounder company list
|
|
15
|
+
cofounder --help
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Select a company with `cofounder company use COMPANY_ID`, replacing `COMPANY_ID` with an ID from the list. Starting a new company? Run `cofounder company create --help`. Add `--json` to commands when you need structured output for scripts or agents.
|
|
19
|
+
|
|
20
|
+
## Vercel CLI
|
|
21
|
+
|
|
22
|
+
The install command above installs the official `vercel` package alongside Cofounder. Both Cofounder environments use that same `vercel` command. Request credentials with `cofounder hosting credentials create --resource-id <id> --json`, then export its `env` fields and run Vercel commands directly. Cofounder does not automatically renew these credentials.
|
|
23
|
+
|
|
24
|
+
If you already have a compatible global Vercel installation, you can omit `vercel@59.19.0` from the install command. Global Vercel updates are managed separately from Cofounder. Project-local Cofounder installs include the pinned Vercel dependency and its ordinary `vercel` executable automatically.
|
|
25
|
+
|
|
26
|
+
## Find your next milestone
|
|
27
|
+
|
|
28
|
+
After selecting a company, see where it stands and what to work on next:
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
cofounder roadmap
|
|
32
|
+
cofounder roadmap next
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The roadmap shows your recommended milestone and progress by department. `roadmap next` gives you the commands to inspect that milestone and, when available, start it. Viewing the roadmap doesn't start work; `roadmap start <milestone-key>` starts the milestone's agent task.
|
|
36
|
+
|
|
37
|
+
## Working with your coding agent
|
|
38
|
+
|
|
39
|
+
Use local tools to build and test your project. For company operations:
|
|
40
|
+
|
|
41
|
+
1. Find the Cofounder Capability that matches your goal—the instructions and tools for that kind of work.
|
|
42
|
+
2. Check the company's existing resources and requirements.
|
|
43
|
+
3. Follow the Capability's instructions, use its tools, and respect required approvals.
|
|
44
|
+
4. Verify the outcome and keep its receipt or evidence.
|
|
45
|
+
|
|
46
|
+
Cofounder is the source of truth for its managed resources, permissions, approvals, and status. Reuse those resources rather than creating parallel infrastructure directly with a provider when Cofounder supports the work.
|
|
47
|
+
|
|
48
|
+
If multiple resources match, ask which one to use. If Cofounder doesn't support the work, say so before taking another path.
|
|
49
|
+
|
|
50
|
+
A project-local `.cofounder/` directory may identify the project. It must not contain credentials or be treated as live company state.
|
|
51
|
+
|
|
52
|
+
## Production and staging
|
|
53
|
+
|
|
54
|
+
This package runs `cofounder` and connects to https://api.superoptimizers.cofounder.co by default. Saved login and settings live in `~/.cofounder`, outside your project. Production and staging commands can be installed together and keep separate saved logins. Explicit `COFOUNDER_CONFIG_DIR` and API URL overrides remain supported.
|
|
55
|
+
|
|
56
|
+
## Updates and supported platforms
|
|
57
|
+
|
|
58
|
+
Update with `npm install -g @generalintelligence/cofounder@latest`.
|
|
59
|
+
|
|
60
|
+
Supported: macOS x64/ARM64, Linux glibc x64/ARM64, and Alpine Linux musl x64. You don't need Bun. Keep npm optional dependencies enabled; reinstall if the platform package is missing.
|
|
61
|
+
|
|
62
|
+
## Documentation
|
|
63
|
+
|
|
64
|
+
Visit the [Cofounder docs](https://docs.cofounder.co) for guides to the workspace, roadmap, company resources, and more. Use `cofounder --help` for available CLI commands.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const{spawnSync:W}=require("node:child_process"),{readFileSync:$,statSync:X,unlinkSync:Y,writeFileSync:K}=require("node:fs"),{homedir:A}=require("node:os"),{dirname:R,join:L}=require("node:path"),Z=require.resolve("../package.json"),U=R(Z),{name:M,optionalDependencies:N,cofounder:x}=require(Z),J=process.platform==="linux"&&!process.report.getReport().header.glibcVersionRuntime,_=`${process.platform}-${process.arch}${J?"-musl":""}`,G=`${M}-${_}`;function O(q){process.stderr.write(`${x.command}: ${q}
|
|
3
|
+
`);process.exit(1)}if(!Object.hasOwn(N,G))O(`unsupported platform ${_}. Supported targets: ${Object.keys(N).map((q)=>q.slice(M.length+1)).join(", ")}`);let Q;try{Q=require.resolve(`${G}/bin/cofounder`)}catch{O(`missing ${G}@${N[G]}. Reinstall ${M} with npm optional dependencies enabled.`)}const H={...process.env,COFOUNDER_CLI_NPM_ROOT:U,COFOUNDER_CLI_COMMAND:x.command,COFOUNDER_CLI_PACKAGE_VERSION:x.package_version,COFOUNDER_CONFIG_DIR:process.env.COFOUNDER_CONFIG_DIR||L(A(),x.config_directory),COFOUNDER_API_URL:process.env.COFOUNDER_API_URL||process.env.COFOUNDER_API_BASE_URL||x.api_url,COFOUNDER_APP_URL:process.env.COFOUNDER_APP_URL||x.app_url},z=W(Q,process.argv.slice(2),{stdio:"inherit",env:H});if(z.error)O(z.error.message);if(z.signal)process.kill(process.pid,z.signal);if(z.status===0)b();process.exit(z.status??1);function b(){const q=process.argv.slice(2);if(q.length===0||!process.stdin.isTTY||!process.stdout.isTTY||process.env.CI||q.includes("--json")||q.includes("--help")||q.includes("-h")||q.includes("--version")||q.includes("-V")||q.includes("upgrade"))return;const T=L(H.COFOUNDER_CONFIG_DIR,"updates.json"),I=L(H.COFOUNDER_CONFIG_DIR,"updates.last-check"),B=`${I}.lock`;try{if(JSON.parse($(T,"utf8")).automatic!==!0)return;if(Date.now()-X(I).mtimeMs<86400000)return}catch(C){if(C.code!=="ENOENT"||C.path===T)return}let V=!1;try{try{K(B,"",{flag:"wx",mode:384})}catch(E){if(E.code!=="EEXIST"||Date.now()-X(B).mtimeMs<300000)return;Y(B);K(B,"",{flag:"wx",mode:384})}V=!0;K(I,"",{mode:384});const C=W(Q,["upgrade","--apply","--json"],{env:H,encoding:"utf8",timeout:135000,maxBuffer:1048576});if(C.status===0){const E=JSON.parse(C.stdout);if(E.updated)process.stderr.write(`${x.command} updated to ${E.version}.
|
|
4
|
+
`)}else process.stderr.write(`${x.command}: automatic update failed. Run ${x.command} upgrade --apply to retry.
|
|
5
|
+
`)}catch{}finally{if(V)try{Y(B)}catch{}}}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.1.1-preview.36484880702",
|
|
3
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/General-Intelligence-Company/superoptimizers.git",
|
|
7
|
+
"directory": "packages/cofounder-cli-npm"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"registry": "https://registry.npmjs.org/",
|
|
11
|
+
"access": "restricted"
|
|
12
|
+
},
|
|
13
|
+
"cofounder": {
|
|
14
|
+
"environment": "production",
|
|
15
|
+
"command": "cofounder",
|
|
16
|
+
"api_url": "https://api.superoptimizers.cofounder.co",
|
|
17
|
+
"app_url": "https://app.cofounder.co",
|
|
18
|
+
"config_directory": ".cofounder",
|
|
19
|
+
"package_name": "@generalintelligence/cofounder",
|
|
20
|
+
"package_version": "0.1.1-preview.36484880702",
|
|
21
|
+
"source_sha": "ace09630d2021386fc8fa81ff5f248eb4fa8be74",
|
|
22
|
+
"native_manifest_sha256": "c051bff9ca79216ef5954308e5e8549ca7ca505c74c6a369c3310b7af2340277",
|
|
23
|
+
"installation": "npm"
|
|
24
|
+
},
|
|
25
|
+
"name": "@generalintelligence/cofounder",
|
|
26
|
+
"description": "Cofounder CLI (production).",
|
|
27
|
+
"files": [
|
|
28
|
+
"bin/cofounder-launcher.cjs",
|
|
29
|
+
"README.md",
|
|
30
|
+
"LICENSE"
|
|
31
|
+
],
|
|
32
|
+
"bin": {
|
|
33
|
+
"cofounder": "bin/cofounder-launcher.cjs"
|
|
34
|
+
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=22"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"vercel": "59.19.0"
|
|
40
|
+
},
|
|
41
|
+
"optionalDependencies": {
|
|
42
|
+
"@generalintelligence/cofounder-darwin-arm64": "0.1.1-preview.36484880702",
|
|
43
|
+
"@generalintelligence/cofounder-darwin-x64": "0.1.1-preview.36484880702",
|
|
44
|
+
"@generalintelligence/cofounder-linux-x64": "0.1.1-preview.36484880702",
|
|
45
|
+
"@generalintelligence/cofounder-linux-arm64": "0.1.1-preview.36484880702",
|
|
46
|
+
"@generalintelligence/cofounder-linux-x64-musl": "0.1.1-preview.36484880702"
|
|
47
|
+
}
|
|
48
|
+
}
|