create-dokio 0.1.11 → 0.1.13

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 +25 -27
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -29,36 +29,36 @@ function buildPages(pageCount) {
29
29
 
30
30
  // src/hubs.ts
31
31
  var HUBS = [
32
- { id: "meridianenergy", title: "Meridian Energy Hub" },
33
32
  { id: "aexp", title: "Amex Global" },
34
- { id: "ipa", title: "IPA LAM Hub" },
35
- { id: "bupa-sam", title: "Bupa Sales And Marketing Hub" },
36
- { id: "gwm", title: "GWM Advertising Studio" },
37
- { id: "knowledgebase", title: "KB Hub" },
38
- { id: "vidacorp", title: "VidaDesign Hub" },
39
- { id: "mi", title: "Measurable Impact" },
40
- { id: "bupa-hs", title: "Bupa Health Services" },
41
- { id: "originloopvpp-partnerships-hub", title: "Origin Loop VPP Partnerships Hub" },
42
33
  { id: "amazon-devices", title: "Amazon Devices" },
43
- { id: "belmond", title: "Belmond" },
44
- { id: "origin", title: "Origin" },
45
- { id: "shell-au", title: "Shell Australia Brand Templates" },
46
- { id: "nissan", title: "Nissan" },
47
- { id: "bupa-agedcare", title: "Bupa Aged Care" },
48
34
  { id: "australian-unity", title: "Australian Unity" },
49
- { id: "poolwerx", title: "Poolwerx Loop" },
50
- { id: "scimmer", title: "Scimmer" },
51
- { id: "sandbox", title: "Sandbox" },
35
+ { id: "belmond", title: "Belmond" },
36
+ { id: "bupa-aged-care", title: "Bupa Aged Care" },
52
37
  { id: "bupa-healthy-cities", title: "Bupa Healthy Cities" },
38
+ { id: "bupa-hs", title: "Bupa Health Services" },
39
+ { id: "bupa-marketing", title: "Bupa Marketing" },
40
+ { id: "bupa-retail", title: "Bupa Retail" },
41
+ { id: "bupa-sam", title: "Bupa Sales And Marketing Hub" },
42
+ { id: "designsystem", title: "Design System" },
53
43
  { id: "eabrandhub", title: "EnergyAustralia's Brand Hub" },
54
- { id: "origin-fugu", title: "Origin Fugu" },
55
44
  { id: "fridas", title: "Frida's Luxe Sip n' Paint" },
45
+ { id: "gwm", title: "GWM Advertising Studio" },
56
46
  { id: "headspace", title: "Headspace" },
47
+ { id: "hellofresh", title: "HelloFresh" },
48
+ { id: "ipa", title: "IPA LAM Hub" },
57
49
  { id: "iris-samsung", title: "Iris | Samsung" },
58
- { id: "bupa-marketing", title: "Bupa Marketing" },
59
- { id: "bupa-retail", title: "Bupa Retail" },
60
- { id: "designsystem", title: "Design System" },
61
- { id: "hellofresh", title: "HelloFresh" }
50
+ { id: "knowledgebase", title: "KB Hub" },
51
+ { id: "mi", title: "Measurable Impact" },
52
+ { id: "meridianenergy", title: "Meridian Energy Hub" },
53
+ { id: "nissan", title: "Nissan" },
54
+ { id: "origin", title: "Origin" },
55
+ { id: "origin-fugu", title: "Origin Fugu" },
56
+ { id: "originloopvpp-partnerships-hub", title: "Origin Loop VPP Partnerships Hub" },
57
+ { id: "poolwerx", title: "Poolwerx Loop" },
58
+ { id: "sandbox", title: "Sandbox" },
59
+ { id: "scimmer", title: "Scimmer" },
60
+ { id: "shell-au", title: "Shell Australia Brand Templates" },
61
+ { id: "vidacorp", title: "VidaDesign Hub" }
62
62
  ];
63
63
  function hubRepoUrl(hubId) {
64
64
  return `https://github.com/dokioco/${hubId}-templates`;
@@ -942,12 +942,10 @@ def generate_description(title, files, diff):
942
942
  diff_section = f"\\n\\nDiff:\\n\`\`\`\\n{diff[:4000]}\\n\`\`\`" if diff.strip() else ""
943
943
 
944
944
  prompt = (
945
- f"You are writing a changelog description for a Dokio template.\\n\\n"
946
- f"Commit title: {title}\\n"
947
- f"Files changed:\\n{files_str}"
945
+ f"Commit: {title}\\n"
946
+ f"Files:\\n{files_str}"
948
947
  f"{diff_section}\\n\\n"
949
- f"Write a clear, concise description (2-4 sentences) explaining what changed and why. "
950
- f"Focus on impact and purpose. Be specific but brief. No markdown headers or bullet points."
948
+ f"Write one sentence describing what changed. Be direct and specific. No filler words."
951
949
  )
952
950
 
953
951
  message = client.messages.create(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-dokio",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "CLI scaffold for Dokio templates",
5
5
  "type": "module",
6
6
  "bin": {
@@ -18,6 +18,7 @@
18
18
  "prompts": "^2.4.2"
19
19
  },
20
20
  "devDependencies": {
21
+ "@anthropic-ai/sdk": "^0.100.1",
21
22
  "@commitlint/cli": "^19.0.0",
22
23
  "@commitlint/config-conventional": "^19.0.0",
23
24
  "@commitlint/types": "^19.0.0",