@forwardimpact/outpost 3.7.0 → 3.8.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/outpost.js +8 -35
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardimpact/outpost",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "description": "Personal operations center — context from email, calendar, and knowledge assembled so preparation is continuous, not a morning scramble.",
5
5
  "homepage": "https://www.forwardimpact.team",
6
6
  "repository": {
package/src/outpost.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // fit-outpost daemon Run continuously (poll every 60s)
6
6
  // fit-outpost wake <agent> Wake a specific agent immediately
7
7
  // fit-outpost init <path> Initialize a new knowledge base
8
- // fit-outpost update [path] Update KB with latest CLAUDE.md, agents and skills
8
+ // fit-outpost update [path] Update KB with latest CLAUDE.md, agents and skills (defaults to current directory)
9
9
  // fit-outpost stop Gracefully stop daemon and all running agents
10
10
  // fit-outpost validate Validate agent definitions exist
11
11
  // fit-outpost status Show agent status
@@ -64,7 +64,8 @@ function buildDefinition(version) {
64
64
  {
65
65
  name: "update",
66
66
  args: "[path]",
67
- description: "Update KB with latest CLAUDE.md, agents and skills",
67
+ description:
68
+ "Update KB with latest CLAUDE.md, agents and skills (defaults to current directory)",
68
69
  },
69
70
  {
70
71
  name: "stop",
@@ -302,39 +303,11 @@ export async function run(runtime, version) {
302
303
  const tpl = await requireTemplateDir();
303
304
  if (tpl === null) return 1;
304
305
 
305
- if (args[0]) {
306
- const result = await kbManager.update(args[0], tpl);
307
- if (!result.ok) {
308
- proc.stderr.write(result.error + "\n");
309
- return result.code;
310
- }
311
- return 0;
312
- }
313
-
314
- const config = await loadConfig();
315
- const kbPaths = [
316
- ...new Set(
317
- Object.values(config.agents)
318
- .filter((a) => a.kb)
319
- .map((a) => expandPath(a.kb)),
320
- ),
321
- ];
322
-
323
- if (kbPaths.length === 0) {
324
- proc.stderr.write(
325
- "No knowledge bases configured and no path given.\n" +
326
- "Usage: fit-outpost update [path]\n",
327
- );
328
- return 1;
329
- }
330
-
331
- for (const kb of kbPaths) {
332
- logger.info(`\nUpdating ${kb}...`);
333
- const result = await kbManager.update(kb, tpl);
334
- if (!result.ok) {
335
- proc.stderr.write(result.error + "\n");
336
- return result.code;
337
- }
306
+ const target = args[0] ?? proc.cwd();
307
+ const result = await kbManager.update(target, tpl);
308
+ if (!result.ok) {
309
+ proc.stderr.write(result.error + "\n");
310
+ return result.code;
338
311
  }
339
312
  return 0;
340
313
  }