decoupled-cli 2.0.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.
Files changed (55) hide show
  1. package/README.md +416 -0
  2. package/bin/decoupled-cli +3 -0
  3. package/dist/commands/auth.d.ts +3 -0
  4. package/dist/commands/auth.d.ts.map +1 -0
  5. package/dist/commands/auth.js +386 -0
  6. package/dist/commands/auth.js.map +1 -0
  7. package/dist/commands/config.d.ts +3 -0
  8. package/dist/commands/config.d.ts.map +1 -0
  9. package/dist/commands/config.js +84 -0
  10. package/dist/commands/config.js.map +1 -0
  11. package/dist/commands/content.d.ts +3 -0
  12. package/dist/commands/content.d.ts.map +1 -0
  13. package/dist/commands/content.js +199 -0
  14. package/dist/commands/content.js.map +1 -0
  15. package/dist/commands/download.d.ts +4 -0
  16. package/dist/commands/download.d.ts.map +1 -0
  17. package/dist/commands/download.js +127 -0
  18. package/dist/commands/download.js.map +1 -0
  19. package/dist/commands/health.d.ts +3 -0
  20. package/dist/commands/health.d.ts.map +1 -0
  21. package/dist/commands/health.js +28 -0
  22. package/dist/commands/health.js.map +1 -0
  23. package/dist/commands/org.d.ts +3 -0
  24. package/dist/commands/org.d.ts.map +1 -0
  25. package/dist/commands/org.js +73 -0
  26. package/dist/commands/org.js.map +1 -0
  27. package/dist/commands/spaces.d.ts +3 -0
  28. package/dist/commands/spaces.d.ts.map +1 -0
  29. package/dist/commands/spaces.js +613 -0
  30. package/dist/commands/spaces.js.map +1 -0
  31. package/dist/commands/tokens.d.ts +3 -0
  32. package/dist/commands/tokens.d.ts.map +1 -0
  33. package/dist/commands/tokens.js +90 -0
  34. package/dist/commands/tokens.js.map +1 -0
  35. package/dist/commands/usage.d.ts +3 -0
  36. package/dist/commands/usage.d.ts.map +1 -0
  37. package/dist/commands/usage.js +104 -0
  38. package/dist/commands/usage.js.map +1 -0
  39. package/dist/index.d.ts +3 -0
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.js +49 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/lib/api.d.ts +40 -0
  44. package/dist/lib/api.d.ts.map +1 -0
  45. package/dist/lib/api.js +162 -0
  46. package/dist/lib/api.js.map +1 -0
  47. package/dist/lib/config.d.ts +63 -0
  48. package/dist/lib/config.d.ts.map +1 -0
  49. package/dist/lib/config.js +317 -0
  50. package/dist/lib/config.js.map +1 -0
  51. package/examples/.cursorrules +189 -0
  52. package/examples/CLAUDE.md +1080 -0
  53. package/examples/GEMINI.md +1056 -0
  54. package/examples/content-import-sample.json +114 -0
  55. package/package.json +55 -0
@@ -0,0 +1,114 @@
1
+ {
2
+ "model": [
3
+ {
4
+ "bundle": "event",
5
+ "description": "Content type for managing events, conferences, and gatherings",
6
+ "label": "Event",
7
+ "body": true,
8
+ "fields": [
9
+ {
10
+ "id": "event_date",
11
+ "label": "Event Date",
12
+ "type": "datetime"
13
+ },
14
+ {
15
+ "id": "location",
16
+ "label": "Location",
17
+ "type": "string"
18
+ },
19
+ {
20
+ "id": "featured_image",
21
+ "label": "Featured Image",
22
+ "type": "image"
23
+ },
24
+ {
25
+ "id": "event_details",
26
+ "label": "Event Details",
27
+ "type": "paragraph(event_detail)[]"
28
+ },
29
+ {
30
+ "id": "tags",
31
+ "label": "Tags",
32
+ "type": "term(tags)[]"
33
+ },
34
+ {
35
+ "id": "featured",
36
+ "label": "Featured",
37
+ "type": "bool"
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ "entity": "paragraph",
43
+ "bundle": "event_detail",
44
+ "description": "Reusable content blocks for event information and details",
45
+ "label": "Event Detail",
46
+ "fields": [
47
+ {
48
+ "id": "detail_title",
49
+ "label": "Detail Title",
50
+ "type": "string!"
51
+ },
52
+ {
53
+ "id": "detail_content",
54
+ "label": "Detail Content",
55
+ "type": "text"
56
+ },
57
+ {
58
+ "id": "detail_image",
59
+ "label": "Detail Image",
60
+ "type": "image"
61
+ }
62
+ ]
63
+ }
64
+ ],
65
+ "content": [
66
+ {
67
+ "id": "detail1",
68
+ "type": "paragraph.event_detail",
69
+ "values": {
70
+ "detail_title": "Schedule",
71
+ "detail_content": "The event will run from 9:00 AM to 5:00 PM with lunch break at noon.",
72
+ "detail_image": {
73
+ "uri": "/modules/custom/dcloud_import/resources/placeholder.png",
74
+ "alt": "Event schedule timeline showing sessions and breaks",
75
+ "title": "Conference Schedule"
76
+ }
77
+ }
78
+ },
79
+ {
80
+ "id": "detail2",
81
+ "type": "paragraph.event_detail",
82
+ "values": {
83
+ "detail_title": "Speakers",
84
+ "detail_content": "Join us for presentations by industry experts and thought leaders."
85
+ }
86
+ },
87
+ {
88
+ "id": "event1",
89
+ "type": "node.event",
90
+ "path": "/events/web-dev-conference-2024",
91
+ "values": {
92
+ "title": "Web Development Conference 2024",
93
+ "body": "<p>Join us for a full day of learning about modern web development...</p>",
94
+ "event_date": "2024-03-15T09:00:00",
95
+ "location": "Convention Center Downtown",
96
+ "featured_image": {
97
+ "uri": "/modules/custom/dcloud_import/resources/placeholder.png",
98
+ "alt": "Web Development Conference 2024 promotional image",
99
+ "title": "Conference Hero Image"
100
+ },
101
+ "tags": [
102
+ "web-development",
103
+ "conference",
104
+ "technology"
105
+ ],
106
+ "featured": true,
107
+ "event_details": [
108
+ "@detail1",
109
+ "@detail2"
110
+ ]
111
+ }
112
+ }
113
+ ]
114
+ }
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "decoupled-cli",
3
+ "version": "2.0.0",
4
+ "description": "Command-line interface for DrupalCloud API management",
5
+ "main": "dist/index.js",
6
+ "bin": {
7
+ "decoupled-cli": "bin/decoupled-cli"
8
+ },
9
+ "scripts": {
10
+ "build": "tsc",
11
+ "dev": "tsc --watch",
12
+ "start": "node dist/index.js",
13
+ "test": "jest",
14
+ "lint": "eslint src/**/*.ts",
15
+ "prepublishOnly": "npm run build"
16
+ },
17
+ "keywords": [
18
+ "drupalcloud",
19
+ "cli",
20
+ "api",
21
+ "drupal",
22
+ "cloud"
23
+ ],
24
+ "author": "DrupalCloud",
25
+ "license": "MIT",
26
+ "dependencies": {
27
+ "@types/node-fetch": "^2.6.13",
28
+ "axios": "^1.6.2",
29
+ "chalk": "^5.3.0",
30
+ "cli-table3": "^0.6.3",
31
+ "commander": "^11.1.0",
32
+ "dotenv": "^16.3.1",
33
+ "inquirer": "^9.2.12",
34
+ "keytar": "^7.9.0",
35
+ "node-fetch": "^3.3.2",
36
+ "ora": "^8.0.1"
37
+ },
38
+ "devDependencies": {
39
+ "@types/inquirer": "^9.0.7",
40
+ "@types/node": "^20.10.4",
41
+ "@typescript-eslint/eslint-plugin": "^6.14.0",
42
+ "@typescript-eslint/parser": "^6.14.0",
43
+ "eslint": "^8.55.0",
44
+ "jest": "^29.7.0",
45
+ "typescript": "^5.3.3"
46
+ },
47
+ "engines": {
48
+ "node": ">=16.0.0"
49
+ },
50
+ "files": [
51
+ "dist/",
52
+ "bin/",
53
+ "examples/"
54
+ ]
55
+ }