@sprucelabs/spruce-templates 28.1.4 → 28.2.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/build/index.d.ts CHANGED
@@ -128,6 +128,10 @@ export declare const templates: {
128
128
  }): string;
129
129
  views(options: CombinedViewsOptions): string;
130
130
  viewPlugin(): string;
131
+ agentPlugin(): string;
132
+ agentSystemPrompt(options: {
133
+ name: string;
134
+ }): string;
131
135
  viewControllerPlugin(options: {
132
136
  namePascal: string;
133
137
  nameCamel: string;
package/build/index.js CHANGED
@@ -269,6 +269,14 @@ exports.templates = {
269
269
  const template = templateImporter_utility_1.default.getTemplate('view/view.plugin.ts.hbs');
270
270
  return template({});
271
271
  },
272
+ agentPlugin() {
273
+ const template = templateImporter_utility_1.default.getTemplate('agent/agent.plugin.ts.hbs');
274
+ return template({});
275
+ },
276
+ agentSystemPrompt(options) {
277
+ const template = templateImporter_utility_1.default.getTemplate('agent/SYSTEM_PROMPT.md.hbs');
278
+ return template(options);
279
+ },
272
280
  viewControllerPlugin(options) {
273
281
  const template = templateImporter_utility_1.default.getTemplate('view/viewController.plugin.ts.hbs');
274
282
  return template(options);
@@ -0,0 +1,17 @@
1
+ # SYSTEM PROMPT
2
+
3
+ ## AGENT NAME
4
+
5
+ {{name}}
6
+
7
+ DELETE EVERYTHING FROM THIS LINE DOWN 👇
8
+
9
+ ## Tips to writing a great system prompt
10
+
11
+ - Be specific about the role and behavior you want from the AI.
12
+ - Include context about the task or domain.
13
+ - Set clear expectations for responses.
14
+ - Use examples to illustrate desired outputs.
15
+ - Specify constraints or guidelines to follow.
16
+ - I used AI to write these tips, so I don't know if they're any good.
17
+ - As best practices arise, I'll update this prompt.
@@ -0,0 +1 @@
1
+ export { plugin as default } from '@sprucelabs/spruce-agent-plugin'
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "28.1.4",
6
+ "version": "28.2.0",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "tsconfig.json",
@@ -56,10 +56,10 @@
56
56
  "watch.tsc": "tsc -w"
57
57
  },
58
58
  "dependencies": {
59
- "@sprucelabs/mercury-types": "^48.0.106",
60
- "@sprucelabs/schema": "^32.1.56",
61
- "@sprucelabs/spruce-event-utils": "^41.0.120",
62
- "@sprucelabs/spruce-skill-utils": "^32.0.113",
59
+ "@sprucelabs/mercury-types": "^48.0.112",
60
+ "@sprucelabs/schema": "^32.1.59",
61
+ "@sprucelabs/spruce-event-utils": "^41.0.126",
62
+ "@sprucelabs/spruce-skill-utils": "^32.0.116",
63
63
  "fs-extra": "^11.3.2",
64
64
  "handlebars": "^4.7.8",
65
65
  "lodash": "^4.17.21",
@@ -68,7 +68,7 @@
68
68
  "devDependencies": {
69
69
  "@types/fs-extra": "^11.0.4",
70
70
  "@types/lodash": "^4.17.20",
71
- "@types/node": "^24.6.1",
71
+ "@types/node": "^24.6.2",
72
72
  "chokidar-cli": "^3.0.0",
73
73
  "concurrently": "^9.2.1",
74
74
  "conventional-changelog-sprucelabs": "2.0.1",
@@ -80,5 +80,5 @@
80
80
  "conventional-changelog-sprucelabs"
81
81
  ]
82
82
  },
83
- "gitHead": "73701828d02e609846d61162836af36cda8a7d2f"
83
+ "gitHead": "50e9bcb98e32a47b60cb73b7abe7fd373b6ce084"
84
84
  }