wayfind 2.0.75 → 2.0.76
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/team-context.js +12 -0
- package/package.json +1 -1
package/bin/team-context.js
CHANGED
|
@@ -317,6 +317,18 @@ async function teamCreate() {
|
|
|
317
317
|
};
|
|
318
318
|
|
|
319
319
|
writeJSONFile(TEAM_FILE, team);
|
|
320
|
+
|
|
321
|
+
// Register in local context.json so /init-memory and other commands can find this team
|
|
322
|
+
const config = readContextConfig();
|
|
323
|
+
if (!config.teams) config.teams = {};
|
|
324
|
+
config.teams[id] = {
|
|
325
|
+
path: WAYFIND_DIR,
|
|
326
|
+
name,
|
|
327
|
+
configured_at: new Date().toISOString(),
|
|
328
|
+
};
|
|
329
|
+
if (!config.default) config.default = id;
|
|
330
|
+
writeContextConfig(config);
|
|
331
|
+
|
|
320
332
|
telemetry.capture('team_created', { member_count: 1 }, CLI_USER);
|
|
321
333
|
console.log('');
|
|
322
334
|
console.log(`Team '${name}' created.`);
|
package/package.json
CHANGED