rulesync 8.3.0 → 8.4.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.
@@ -14978,6 +14978,17 @@ var CodexCliSubagentTomlSchema = z57.looseObject({
14978
14978
  model_reasoning_effort: z57.optional(z57.string()),
14979
14979
  sandbox_mode: z57.optional(z57.string())
14980
14980
  });
14981
+ function stringifyCodexCliSubagentToml(tomlObj) {
14982
+ const { developer_instructions, ...restFields } = tomlObj;
14983
+ const restToml = smolToml5.stringify(restFields).trimEnd();
14984
+ if (developer_instructions === void 0) {
14985
+ return restToml;
14986
+ }
14987
+ const developerInstructionsToml = developer_instructions.includes("\n") ? developer_instructions.includes("'''") ? smolToml5.stringify({ developer_instructions }).trimEnd() : `developer_instructions = '''
14988
+ ${developer_instructions}
14989
+ '''` : smolToml5.stringify({ developer_instructions }).trimEnd();
14990
+ return [restToml, developerInstructionsToml].filter((value) => value.length > 0).join("\n");
14991
+ }
14981
14992
  var CodexCliSubagent = class _CodexCliSubagent extends ToolSubagent {
14982
14993
  body;
14983
14994
  constructor({ body, ...rest }) {
@@ -15054,7 +15065,7 @@ var CodexCliSubagent = class _CodexCliSubagent extends ToolSubagent {
15054
15065
  ...rulesyncSubagent.getBody() ? { developer_instructions: rulesyncSubagent.getBody() } : {},
15055
15066
  ...codexcliSection
15056
15067
  };
15057
- const body = smolToml5.stringify(tomlObj);
15068
+ const body = stringifyCodexCliSubagentToml(tomlObj);
15058
15069
  const paths = this.getSettablePaths({ global });
15059
15070
  const relativeFilePath = rulesyncSubagent.getRelativeFilePath().replace(/\.md$/, ".toml");
15060
15071
  return new _CodexCliSubagent({
@@ -13262,6 +13262,17 @@ var CodexCliSubagentTomlSchema = import_mini51.z.looseObject({
13262
13262
  model_reasoning_effort: import_mini51.z.optional(import_mini51.z.string()),
13263
13263
  sandbox_mode: import_mini51.z.optional(import_mini51.z.string())
13264
13264
  });
13265
+ function stringifyCodexCliSubagentToml(tomlObj) {
13266
+ const { developer_instructions, ...restFields } = tomlObj;
13267
+ const restToml = smolToml4.stringify(restFields).trimEnd();
13268
+ if (developer_instructions === void 0) {
13269
+ return restToml;
13270
+ }
13271
+ const developerInstructionsToml = developer_instructions.includes("\n") ? developer_instructions.includes("'''") ? smolToml4.stringify({ developer_instructions }).trimEnd() : `developer_instructions = '''
13272
+ ${developer_instructions}
13273
+ '''` : smolToml4.stringify({ developer_instructions }).trimEnd();
13274
+ return [restToml, developerInstructionsToml].filter((value) => value.length > 0).join("\n");
13275
+ }
13265
13276
  var CodexCliSubagent = class _CodexCliSubagent extends ToolSubagent {
13266
13277
  body;
13267
13278
  constructor({ body, ...rest }) {
@@ -13338,7 +13349,7 @@ var CodexCliSubagent = class _CodexCliSubagent extends ToolSubagent {
13338
13349
  ...rulesyncSubagent.getBody() ? { developer_instructions: rulesyncSubagent.getBody() } : {},
13339
13350
  ...codexcliSection
13340
13351
  };
13341
- const body = smolToml4.stringify(tomlObj);
13352
+ const body = stringifyCodexCliSubagentToml(tomlObj);
13342
13353
  const paths = this.getSettablePaths({ global });
13343
13354
  const relativeFilePath = rulesyncSubagent.getRelativeFilePath().replace(/\.md$/, ".toml");
13344
13355
  return new _CodexCliSubagent({
@@ -26036,7 +26047,7 @@ function wrapCommand({
26036
26047
  }
26037
26048
 
26038
26049
  // src/cli/index.ts
26039
- var getVersion = () => "8.3.0";
26050
+ var getVersion = () => "8.4.0";
26040
26051
  function wrapCommand2(name, errorCode, handler) {
26041
26052
  return wrapCommand({ name, errorCode, handler, getVersion });
26042
26053
  }
package/dist/cli/index.js CHANGED
@@ -73,7 +73,7 @@ import {
73
73
  stringifyFrontmatter,
74
74
  toPosixPath,
75
75
  writeFileContent
76
- } from "../chunk-RVBJT5ST.js";
76
+ } from "../chunk-MMBSR2RA.js";
77
77
 
78
78
  // src/cli/index.ts
79
79
  import { Command } from "commander";
@@ -4523,7 +4523,7 @@ function wrapCommand({
4523
4523
  }
4524
4524
 
4525
4525
  // src/cli/index.ts
4526
- var getVersion = () => "8.3.0";
4526
+ var getVersion = () => "8.4.0";
4527
4527
  function wrapCommand2(name, errorCode, handler) {
4528
4528
  return wrapCommand({ name, errorCode, handler, getVersion });
4529
4529
  }
package/dist/index.cjs CHANGED
@@ -14986,6 +14986,17 @@ var CodexCliSubagentTomlSchema = import_mini57.z.looseObject({
14986
14986
  model_reasoning_effort: import_mini57.z.optional(import_mini57.z.string()),
14987
14987
  sandbox_mode: import_mini57.z.optional(import_mini57.z.string())
14988
14988
  });
14989
+ function stringifyCodexCliSubagentToml(tomlObj) {
14990
+ const { developer_instructions, ...restFields } = tomlObj;
14991
+ const restToml = smolToml5.stringify(restFields).trimEnd();
14992
+ if (developer_instructions === void 0) {
14993
+ return restToml;
14994
+ }
14995
+ const developerInstructionsToml = developer_instructions.includes("\n") ? developer_instructions.includes("'''") ? smolToml5.stringify({ developer_instructions }).trimEnd() : `developer_instructions = '''
14996
+ ${developer_instructions}
14997
+ '''` : smolToml5.stringify({ developer_instructions }).trimEnd();
14998
+ return [restToml, developerInstructionsToml].filter((value) => value.length > 0).join("\n");
14999
+ }
14989
15000
  var CodexCliSubagent = class _CodexCliSubagent extends ToolSubagent {
14990
15001
  body;
14991
15002
  constructor({ body, ...rest }) {
@@ -15062,7 +15073,7 @@ var CodexCliSubagent = class _CodexCliSubagent extends ToolSubagent {
15062
15073
  ...rulesyncSubagent.getBody() ? { developer_instructions: rulesyncSubagent.getBody() } : {},
15063
15074
  ...codexcliSection
15064
15075
  };
15065
- const body = smolToml5.stringify(tomlObj);
15076
+ const body = stringifyCodexCliSubagentToml(tomlObj);
15066
15077
  const paths = this.getSettablePaths({ global });
15067
15078
  const relativeFilePath = rulesyncSubagent.getRelativeFilePath().replace(/\.md$/, ".toml");
15068
15079
  return new _CodexCliSubagent({
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  checkRulesyncDirExists,
7
7
  generate,
8
8
  importFromTool
9
- } from "./chunk-RVBJT5ST.js";
9
+ } from "./chunk-MMBSR2RA.js";
10
10
 
11
11
  // src/index.ts
12
12
  async function generate2(options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rulesync",
3
- "version": "8.3.0",
3
+ "version": "8.4.0",
4
4
  "description": "Unified AI rules management CLI tool that generates configuration files for various AI development tools",
5
5
  "keywords": [
6
6
  "ai",