flowcollab 0.1.3 → 0.1.4
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/bin/init.mjs +7 -12
- package/package.json +1 -1
package/bin/init.mjs
CHANGED
|
@@ -96,14 +96,12 @@ async function main() {
|
|
|
96
96
|
process.exit(1);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
console.log('\nFlow
|
|
100
|
-
console.log('You signed up
|
|
99
|
+
console.log('\nFlow — CLI setup\n');
|
|
100
|
+
console.log('You signed up at https://flow-production-84b7.up.railway.app');
|
|
101
101
|
console.log('This writes your .env and CLAUDE.md — no Supabase config needed.\n');
|
|
102
102
|
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
const token = (await ask('Your API token (from setup page): ')).trim();
|
|
106
|
-
const actorId = (await ask('Your actor ID (from setup page, e.g. "alice"): ')).trim() || 'owner';
|
|
103
|
+
const token = (await ask('Your API token (from the board setup page): ')).trim();
|
|
104
|
+
const actorId = (await ask('Your actor ID (from the board, e.g. "alice"): ')).trim() || 'owner';
|
|
107
105
|
const scopeRaw = (await ask('Your scope [owner/contributor, default: owner]: ')).trim().toLowerCase();
|
|
108
106
|
const scope = scopeRaw === 'contributor' ? 'contributor' : 'owner';
|
|
109
107
|
|
|
@@ -142,13 +140,10 @@ async function main() {
|
|
|
142
140
|
rl.close();
|
|
143
141
|
|
|
144
142
|
const tokenVar = scope === 'owner' ? 'FLOW_API_TOKEN_OWNER' : 'FLOW_API_TOKEN_CONTRIBUTOR';
|
|
145
|
-
const actorVar = scope === 'owner' ? 'FLOW_TOKEN_OWNER_ACTOR' : 'FLOW_TOKEN_CONTRIBUTOR_ACTOR';
|
|
146
143
|
const envLines = [
|
|
147
144
|
`${tokenVar}=${token}`,
|
|
148
|
-
`${actorVar}=${actorId}`,
|
|
149
|
-
`FLOW_API_BASE=${apiBase}`,
|
|
150
|
-
`FLOW_ACTING_VIA=claude`,
|
|
151
145
|
`FLOW_DEFAULT_ASSIGNEE=${actorId}`,
|
|
146
|
+
`FLOW_ACTING_VIA=claude`,
|
|
152
147
|
];
|
|
153
148
|
|
|
154
149
|
console.log('\n========== .env ==========\n');
|
|
@@ -172,7 +167,7 @@ async function main() {
|
|
|
172
167
|
}
|
|
173
168
|
|
|
174
169
|
if (writeClaude) {
|
|
175
|
-
const content = buildWebClaudeMd({ actorId, ownerActorId, boardUrl:
|
|
170
|
+
const content = buildWebClaudeMd({ actorId, ownerActorId, boardUrl: 'https://flow-production-84b7.up.railway.app/flow/', scope, areas: localAreas });
|
|
176
171
|
writeFileSync(claudeMdTarget, content, 'utf8');
|
|
177
172
|
console.log(`✓ CLAUDE.md written. Commit this so every agent on the team gets the workflow.`);
|
|
178
173
|
}
|
|
@@ -180,7 +175,7 @@ async function main() {
|
|
|
180
175
|
console.log('\n========== Next steps ==========\n');
|
|
181
176
|
console.log(`1. Verify your connection: flow-whoami`);
|
|
182
177
|
console.log(`2. See your board: flow-pull`);
|
|
183
|
-
console.log(`3. Open the board:
|
|
178
|
+
console.log(`3. Open the board: https://flow-production-84b7.up.railway.app/flow/`);
|
|
184
179
|
console.log('');
|
|
185
180
|
}
|
|
186
181
|
|