@fro.bot/systematic 1.10.0 → 1.11.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.
package/dist/index.js CHANGED
@@ -70,7 +70,7 @@ ${toolMapping}
70
70
  // src/lib/skill-loader.ts
71
71
  import path2 from "path";
72
72
  var SKILL_PREFIX = "systematic:";
73
- var SKILL_DESCRIPTION_PREFIX = "(systematic - Skill) ";
73
+ var SKILL_DESCRIPTION_PREFIX = "(Systematic - Skill) ";
74
74
  function formatSkillCommandName(name) {
75
75
  if (name.startsWith(SKILL_PREFIX)) {
76
76
  return name;
@@ -128,6 +128,17 @@ function loadSkill(skillInfo) {
128
128
  }
129
129
 
130
130
  // src/lib/config-handler.ts
131
+ function toTitleCase(name) {
132
+ return name.split("-").map((segment) => segment.length > 0 ? segment.charAt(0).toUpperCase() + segment.slice(1) : segment).join("-");
133
+ }
134
+ function formatAgentDescription(name, description) {
135
+ const baseDescription = description || `${name} agent`;
136
+ const suffix = `(${toTitleCase(name)} - Systematic)`;
137
+ if (baseDescription.endsWith(suffix)) {
138
+ return baseDescription;
139
+ }
140
+ return `${baseDescription} ${suffix}`;
141
+ }
131
142
  function loadAgentAsConfig(agentInfo) {
132
143
  try {
133
144
  const converted = convertFileWithCache(agentInfo.file, "agent", {
@@ -148,7 +159,7 @@ function loadAgentAsConfig(agentInfo) {
148
159
  permission
149
160
  } = extractAgentFrontmatter(converted);
150
161
  const config = {
151
- description: description || `${agentInfo.name} agent`,
162
+ description: formatAgentDescription(agentInfo.name, description),
152
163
  prompt
153
164
  };
154
165
  if (model !== undefined)
@@ -185,7 +196,7 @@ function loadCommandAsConfig(commandInfo) {
185
196
  const baseDescription = description || `${name || cleanName} command`;
186
197
  const config = {
187
198
  template: body.trim(),
188
- description: `(systematic) ${baseDescription}`
199
+ description: `(Systematic) ${baseDescription}`
189
200
  };
190
201
  if (agent !== undefined)
191
202
  config.agent = agent;
@@ -5,6 +5,8 @@ export interface ConfigHandlerDeps {
5
5
  bundledAgentsDir: string;
6
6
  bundledCommandsDir: string;
7
7
  }
8
+ export declare function toTitleCase(name: string): string;
9
+ export declare function formatAgentDescription(name: string, description: string | undefined): string;
8
10
  /**
9
11
  * Create the config hook handler for the Systematic plugin.
10
12
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fro.bot/systematic",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "Structured engineering workflows for OpenCode",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",