@mp-lb/berth 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/dist/berth.js +20 -10
  2. package/package.json +1 -1
package/dist/berth.js CHANGED
@@ -5995,7 +5995,7 @@ var require_lib = __commonJS({
5995
5995
  });
5996
5996
 
5997
5997
  // package.json
5998
- var version = "0.1.0";
5998
+ var version = "0.1.1";
5999
5999
 
6000
6000
  // src/runAuthCommand.ts
6001
6001
  import { spawn } from "node:child_process";
@@ -23257,7 +23257,7 @@ var messageCreateSchema = external_exports.strictObject({
23257
23257
 
23258
23258
  // ../../packages/core/src/work/schemas/messageStatusSchema.ts
23259
23259
  var messageStatusSchema = external_exports.enum(["active", "later", "unblocked", "archived"]).describe(
23260
- "Message lifecycle: active, later, unblocked or archived. Factory applies no type-specific transitions."
23260
+ "Message lifecycle: active, later, unblocked or archived. Berth applies no type-specific transitions."
23261
23261
  );
23262
23262
 
23263
23263
  // ../../packages/core/src/work/schemas/messageSchema.ts
@@ -23389,6 +23389,12 @@ var globalConfigSchema = external_exports.strictObject({
23389
23389
  "Shared workspace configuration. An empty workerLinkTemplate disables generated Worker links."
23390
23390
  );
23391
23391
 
23392
+ // ../../packages/core/src/work/schemas/configUpdateSchema.ts
23393
+ var configUpdateSchema = globalConfigSchema.partial().extend({
23394
+ // A missing field in a patch must not apply the read schema's [] default.
23395
+ workMachines: external_exports.array(workMachineSchema).optional()
23396
+ });
23397
+
23392
23398
  // src/importConfiguration.ts
23393
23399
  import { readFile as readFile3 } from "node:fs/promises";
23394
23400
 
@@ -23556,6 +23562,9 @@ var projectSchema = external_exports.object({
23556
23562
  ),
23557
23563
  source: external_exports.string().trim().max(2e3).describe(
23558
23564
  "Where tasks for this project are usually found, such as a workboard. This is project context, not the nullable source on each task."
23565
+ ),
23566
+ notes: external_exports.string().max(2e4).default("").describe(
23567
+ "Free-form Markdown notes about the project. Missing notes read as an empty string."
23559
23568
  )
23560
23569
  }).describe("A project with its identity, work source and useful links.");
23561
23570
 
@@ -23609,14 +23618,14 @@ var runConfigCommand = async (args2) => {
23609
23618
  const [action, input, ...extra] = args2;
23610
23619
  if (!extra.length && action === "schema" && (!input || ["read", "update"].includes(input)))
23611
23620
  return external_exports.toJSONSchema(
23612
- input === "read" ? globalConfigSchema : globalConfigSchema.partial(),
23621
+ input === "read" ? globalConfigSchema : configUpdateSchema,
23613
23622
  { io: "input" }
23614
23623
  );
23615
23624
  if (action === "read" && !input)
23616
23625
  return createWorkClient().config.read.query();
23617
23626
  if (action === "update" && input && !extra.length)
23618
23627
  return createWorkClient().config.update.mutate(
23619
- globalConfigSchema.partial().parse(JSON.parse(input))
23628
+ configUpdateSchema.parse(JSON.parse(input))
23620
23629
  );
23621
23630
  if (action === "import" && input && !extra.length)
23622
23631
  return importConfiguration(input);
@@ -23692,7 +23701,7 @@ var workerSchema = external_exports.strictObject({
23692
23701
 
23693
23702
  // ../../packages/core/src/work/schemas/terminalWorkerSchema.ts
23694
23703
  var terminalWorkerSchema = external_exports.strictObject({
23695
- sessionId: external_exports.uuid().describe("Factory terminal session UUID."),
23704
+ sessionId: external_exports.uuid().describe("Berth terminal session UUID."),
23696
23705
  machineId: external_exports.uuid().describe("Configured work machine UUID.")
23697
23706
  });
23698
23707
 
@@ -23716,7 +23725,7 @@ var taskSchema = external_exports.strictObject({
23716
23725
  ),
23717
23726
  signOffRequestHistory: external_exports.array(taskSignOffRequestSchema).optional(),
23718
23727
  signOffRequest: taskSignOffRequestSchema.optional().describe(
23719
- "Explicit controller request; Factory does not decide release readiness."
23728
+ "Explicit controller request; Berth does not decide release readiness."
23720
23729
  ),
23721
23730
  signOffRequestedAt: external_exports.iso.datetime().optional().describe("Server-managed time this sign-off cycle entered the inbox."),
23722
23731
  workerRun: external_exports.strictObject({
@@ -23795,7 +23804,7 @@ var promptVariableDefinitions = [
23795
23804
  {
23796
23805
  name: "definitionOfDone",
23797
23806
  optional: false,
23798
- description: "Factory's default task completion guidance."
23807
+ description: "Berth's default task completion guidance."
23799
23808
  },
23800
23809
  {
23801
23810
  name: "documentLocations",
@@ -23910,8 +23919,8 @@ var import_handlebars = __toESM(require_lib(), 1);
23910
23919
  // ../../packages/core/src/work/data/agentPromptDefaults.json
23911
23920
  var agentPromptDefaults_default = {
23912
23921
  workerLaunch: "Run fm read 'worker.md' --store 'mp-lb/roles' and follow its instructions for task {{taskId}}.",
23913
- roleMessage: "You have a new Factory message ({{messageId}}). Read it with berth message read {{messageId}}.",
23914
- reassignedRoleMessage: "Factory message {{messageId}} is ready for you. Read it with berth message read {{messageId}}."
23922
+ roleMessage: "You have a new Berth message ({{messageId}}). Read it with berth message read {{messageId}}.",
23923
+ reassignedRoleMessage: "Berth message {{messageId}} is ready for you. Read it with berth message read {{messageId}}."
23915
23924
  };
23916
23925
 
23917
23926
  // ../../packages/core/src/work/data/defaultAgentPrompts.ts
@@ -24676,7 +24685,8 @@ var taskColumnMoveSchema = external_exports.strictObject({
24676
24685
  // ../../packages/core/src/work/schemas/projectUpdateSchema.ts
24677
24686
  var projectUpdateSchema = projectSchema.omit({ uuid: true, lastWorkedOnAt: true }).partial().extend({
24678
24687
  tags: external_exports.array(external_exports.string().trim().min(1).max(100)).optional(),
24679
- company: external_exports.string().trim().max(100).optional()
24688
+ company: external_exports.string().trim().max(100).optional(),
24689
+ notes: external_exports.string().max(2e4).optional()
24680
24690
  }).required({ id: true }).describe(
24681
24691
  "Edit an existing project by id. Only supplied fields change. Both user and controller can edit projects."
24682
24692
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mp-lb/berth",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {