minimal-forge-work-pack-sync 0.1.2 → 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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +5 -1
package/dist/index.js CHANGED
@@ -10582,7 +10582,7 @@ var DEFAULT_DEBUG_TRACE_LIMITS = {
10582
10582
  };
10583
10583
 
10584
10584
  // packages/shared/src/contracts/settings.ts
10585
- var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.2";
10585
+ var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.4";
10586
10586
  var WORK_PACK_SYNC_PLUGIN_PACKAGE = `minimal-forge-work-pack-sync@${WORK_PACK_SYNC_PLUGIN_VERSION}`;
10587
10587
  var WORK_PACK_SYNC_PLUGIN_FILENAME = `minimal-forge-work-pack-sync-${WORK_PACK_SYNC_PLUGIN_VERSION}.tgz`;
10588
10588
 
@@ -11432,7 +11432,7 @@ async function writeTextAtomic(filePath, content) {
11432
11432
  }
11433
11433
 
11434
11434
  // packages/cli/src/workPackSyncPlugin.ts
11435
- var PLUGIN_VERSION = "0.1.2";
11435
+ var PLUGIN_VERSION = "0.1.4";
11436
11436
  var STATUS_FILENAME = "work-pack-startup-status.json";
11437
11437
  var activeSync = /* @__PURE__ */ new Map();
11438
11438
  var ForgeWorkPackSyncServer = async (_input, options) => {
@@ -11568,7 +11568,11 @@ async function parseMarkdownConfig(filePath, bodyField) {
11568
11568
  if (!data || typeof data !== "object" || Array.isArray(data)) {
11569
11569
  throw new Error(`A extens\xE3o Forge ${path3.basename(filePath)} n\xE3o tem frontmatter v\xE1lido`);
11570
11570
  }
11571
- return { ...data, [bodyField]: match[2].trim() };
11571
+ const config = { ...data, [bodyField]: match[2].trim() };
11572
+ if (bodyField === "prompt" && typeof config.permission === "string" && ["allow", "ask", "deny"].includes(config.permission)) {
11573
+ config.permission = { "*": config.permission };
11574
+ }
11575
+ return config;
11572
11576
  }
11573
11577
  function objectRecord(value) {
11574
11578
  return value && typeof value === "object" && !Array.isArray(value) ? { ...value } : {};
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "minimal-forge-work-pack-sync",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Minimal Forge Work Pack startup synchronization for OpenCode and OpenWork.",
5
5
  "license": "UNLICENSED",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/hugo-alves/minimal-forge.git"
9
+ },
6
10
  "type": "module",
7
11
  "main": "./dist/index.js",
8
12
  "exports": {