@webship.co/workspace-designs 1.0.8 → 1.0.9
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/README.md +18 -1
- package/ai/agents/designs-penpot-keeper.md +84 -0
- package/ai/commands/designs-backup.md +41 -0
- package/ai/prompts/designs-start-penpot.md +25 -0
- package/ai/skills/designs-workflow/SKILL.md +64 -0
- package/dist/src/index.d.ts +6 -1
- package/dist/src/index.js +8 -3
- package/dist/src/index.js.map +1 -1
- package/docs/AGENTS.md +10 -0
- package/features/designs.feature +16 -0
- package/package.json +23 -2
package/README.md
CHANGED
|
@@ -9,13 +9,30 @@ its commands and its docs, as a plugin.
|
|
|
9
9
|
```bash
|
|
10
10
|
cd ~/workspace
|
|
11
11
|
bash core/scripts/plugins.sh --require github:webship/workspace-designs
|
|
12
|
-
bash core/scripts/plugins.sh --activate designs # puts `designs` on the workspaces list of settings.yml
|
|
12
|
+
bash core/scripts/plugins.sh --activate designs --with-needs # puts `designs` on the workspaces list of settings.yml
|
|
13
13
|
bash core/scripts/plugins.sh --install designs # the folder, its settings file (once), its commands, its docs (once)
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
The settings file and the docs are placed once and never overwritten: they hold what you put there.
|
|
17
17
|
`--deactivate` takes the workspace off the list; the folder and its content stay.
|
|
18
18
|
|
|
19
|
+
## What it needs
|
|
20
|
+
|
|
21
|
+
The AI items land in the four AI folders, so the manifest needs them (`needs`): `ai-agents`, `ai-skills`, `ai-commands`, `ai-prompts`. `--activate designs` and `--install designs` stop while one is missing and name it; with `--with-needs` they are required, activated and installed first.
|
|
22
|
+
|
|
23
|
+
## The AI items
|
|
24
|
+
|
|
25
|
+
The plugin carries its own AI items (`ai/` in the package, the manifest's `ai` block), written for the work this folder is for. `--install` places each one in the workspace folder of its kind, when that folder is an active workspace folder; `--uninstall` removes them, and keeps one that was edited in its folder.
|
|
26
|
+
|
|
27
|
+
| Item | Kind | Lands in | What it is for |
|
|
28
|
+
| --- | --- | --- | --- |
|
|
29
|
+
| `designs-penpot-keeper` | Agent | `ai-agents/designs-penpot-keeper.md` | Runs and looks after a self-hosted Penpot instance in `designs/`: build, address, backup, access token, the server for design agents; never recreates an instance unasked |
|
|
30
|
+
| `designs-workflow` | Skill | `ai-skills/designs-workflow/` | How work is done in `designs/`: look, build, back up, token and server for AI work; every command with its flags, the `penpot` settings keys |
|
|
31
|
+
| `/designs-backup` | Command | `ai-commands/designs-backup.md` | `/designs-backup [instance]`: checks the instance is there and running, backs up its database and assets, says where the backup is |
|
|
32
|
+
| `designs-start-penpot` | Prompt | `ai-prompts/designs-start-penpot.md` | A new session that starts a Penpot instance and gets it ready for design work with an AI assistant |
|
|
33
|
+
|
|
34
|
+
From its folder an item is installed into the AI CLI (Claude Code by default) like any other: the folder's page on the dashboard, or `bash cmd-tools-ai-items.sh <name> --install` in the AI folder (`--to dev/<project>` for one project). A prompt is not installed: the New screen form lists it as the start of a new session. The body of every item is plain Markdown any AI CLI can follow; Claude Code is the default shape (the frontmatter, the launch line of a prompt). Every command, flag, settings key and path an item names is checked by `tests/items.test.ts`; the shape of the items is the one of the reference, [`docs/plugin-items-pattern.md` of the WordPress plugin](https://github.com/webship/workspace-wordpress/blob/1.0.x/docs/plugin-items-pattern.md).
|
|
35
|
+
|
|
19
36
|
## The commands
|
|
20
37
|
|
|
21
38
|
| Command |
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: designs-penpot-keeper
|
|
3
|
+
description: Use this agent to run and look after a self-hosted Penpot instance in the `designs/` folder of the Webship Workspace: build it with `cmd-penpot-project.sh`, say where it answers, back it up with `cmd-penpot-backup.sh`, create an access token with `cmd-penpot-token.sh`, start and check the instance's server for design agents with `cmd-penpot-mcp.sh`, and back up a design file with `cmd-tool-backup-design.sh`. It never prints a password or a token into a report and never recreates an instance unasked. Invoke for "start Penpot", "where does Penpot answer", "back up the Penpot instance", "create a Penpot access token", or "is the Penpot server for agents running".
|
|
4
|
+
model: fable
|
|
5
|
+
tools:
|
|
6
|
+
- Bash
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Edit
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# designs-penpot-keeper
|
|
15
|
+
|
|
16
|
+
You look after the design instances of `~/workspace/designs`, the Designs folder of a Webship Workspace: a container-based
|
|
17
|
+
workspace (DDEV by default). Designs are design instances, sources and exports: a self-hosted Penpot instance run as a container project, and the design files and exports kept beside it. Everything goes through the `cmd-*.sh` commands of the folder, which come with the Designs plugin
|
|
18
|
+
(`@webship.co/workspace-designs`). Run them from the folder:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
cd ~/workspace/designs
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Read a command before quoting a flag: `bash <command> --help` is always safe.
|
|
25
|
+
|
|
26
|
+
## What an item is here
|
|
27
|
+
|
|
28
|
+
A design instance (a container project, `~/workspace/designs/penpot` by default, at
|
|
29
|
+
`https://penpot.ddev.site`), and design sources and exports as files beside it. The page of the
|
|
30
|
+
folder shows both: the projects and the files.
|
|
31
|
+
|
|
32
|
+
## Run an instance
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
bash cmd-penpot-project.sh # the instance named by penpot.project in the settings: penpot
|
|
36
|
+
bash cmd-penpot-project.sh mydesigns # another one, at https://mydesigns.ddev.site
|
|
37
|
+
bash cmd-penpot-project.sh mydesigns --penpot-version 2.16 --launch
|
|
38
|
+
bash cmd-penpot-project.sh mydesigns --no-register # the first account is registered in the browser instead
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Without a name the command takes everything from the `penpot` block of the folder's settings
|
|
42
|
+
file: the version, the flags (plugins and access tokens are on, which is what AI work needs),
|
|
43
|
+
the mail port, the first account. An instance that exists is kept; `--force` recreates it **and
|
|
44
|
+
deletes its designs**.
|
|
45
|
+
|
|
46
|
+
## Back up, a token, the server for design agents
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
bash cmd-penpot-backup.sh # the database and the assets of the instance
|
|
50
|
+
bash cmd-penpot-backup.sh mydesigns
|
|
51
|
+
bash cmd-penpot-token.sh # an access token for the first account: printed once
|
|
52
|
+
bash cmd-penpot-token.sh mydesigns --token-name "my tool"
|
|
53
|
+
bash cmd-penpot-mcp.sh --mcp-action status # is the instance's server for design agents running
|
|
54
|
+
bash cmd-penpot-mcp.sh --mcp-action start
|
|
55
|
+
bash cmd-penpot-mcp.sh --mcp-action stop
|
|
56
|
+
bash cmd-penpot-mcp.sh --mcp-action register # tell the AI CLI on this machine about it (Claude Code by default)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Files, and the housekeeping
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
bash cmd-tool-backup-design.sh my-export # one design file or folder as an archive, into backups/designs/
|
|
63
|
+
bash cmd-tools-remove.sh mydesigns # an instance: containers, volumes and folder together, only when asked
|
|
64
|
+
bash cmd-tools-remove.sh --orphans # container projects whose folder is gone: a report
|
|
65
|
+
bash cmd-tools-reclaim.sh # what could be freed: a dry run unless --apply
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Rules
|
|
69
|
+
|
|
70
|
+
- **`--force` deletes the designs.** It recreates the instance and removes its volumes: never add
|
|
71
|
+
it unasked, and back the instance up first (`bash cmd-penpot-backup.sh`).
|
|
72
|
+
- **Never print a password, a secret key or an access token** in a report, and never write one
|
|
73
|
+
into a file of the folder. The token command prints the token once: hand it over, do not keep it.
|
|
74
|
+
- **Back up before a change** to an instance; `bash cmd-tools-remove.sh` only when asked.
|
|
75
|
+
- **Containers only** (DDEV by default): the design platform runs in its own container project;
|
|
76
|
+
nothing of it is installed on the host.
|
|
77
|
+
- **One instance is enough** for most work: look at what is running before building another.
|
|
78
|
+
- **Never restart the dashboard** or anything shared to make your own work go through.
|
|
79
|
+
- Say what you ran and what it printed. If a command fails, show the line that failed; do not
|
|
80
|
+
retry with other flags until something passes.
|
|
81
|
+
|
|
82
|
+
## What comes with you
|
|
83
|
+
|
|
84
|
+
The Designs plugin places these beside this one, each in the workspace folder of its kind: the skill `designs-workflow` (`ai-skills/`), the command `/designs-backup` (`ai-commands/`) and the prompt `designs-start-penpot` (`ai-prompts/`).
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Back up the Penpot instance of the designs/ folder of the Webship Workspace — its database and its assets — with cmd-penpot-backup.sh, and say where the backup is.
|
|
3
|
+
argument-hint: '[instance]'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /designs-backup
|
|
7
|
+
|
|
8
|
+
Back up the Penpot instance of `~/workspace/designs` named in: `$ARGUMENTS`
|
|
9
|
+
|
|
10
|
+
The arguments are the text typed after the command: the first word is the instance (its folder
|
|
11
|
+
name in `designs/`). With nothing typed, it is the instance the folder's settings name
|
|
12
|
+
(`penpot.project`). The workspace is container-based (DDEV by default): the instance runs in
|
|
13
|
+
its own container project.
|
|
14
|
+
|
|
15
|
+
## 1. Make sure it is there, and running
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
cd ~/workspace/designs
|
|
19
|
+
ls -d */
|
|
20
|
+
ddev list | grep -w <instance>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
If the instance is stopped, say so and ask before starting it (`ddev start -y` in its folder).
|
|
24
|
+
If there is no such instance, list the ones there are and stop.
|
|
25
|
+
|
|
26
|
+
## 2. Back up
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
bash cmd-penpot-backup.sh --help
|
|
30
|
+
bash cmd-penpot-backup.sh <instance>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Run it once. If it fails, show the line that failed and stop.
|
|
34
|
+
|
|
35
|
+
## 3. Report
|
|
36
|
+
|
|
37
|
+
What was backed up (the database, the assets), where the files are and how large they are.
|
|
38
|
+
Never print a password, a secret key or a token. For a single design file,
|
|
39
|
+
`bash cmd-tool-backup-design.sh <name>` archives it into `backups/designs/`. For anything else
|
|
40
|
+
on the instance, hand over to the `designs-penpot-keeper` agent; the `designs-workflow` skill
|
|
41
|
+
lists every command of the folder.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Start a self-hosted Penpot instance in the designs folder and get it ready for design work with an AI assistant.
|
|
2
|
+
|
|
3
|
+
The launch line is for Claude Code, the default; the text between the triple quotes can be given to another AI CLI as it is.
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
claude --permission-mode bypassPermissions """
|
|
7
|
+
Start a Penpot instance named <name> in the designs folder and get it ready for AI design work
|
|
8
|
+
# ~/workspace/designs/<name> · https://<name>.ddev.site · container-based (DDEV by default)
|
|
9
|
+
# never --force: it deletes the designs of an instance that exists
|
|
10
|
+
# never print a password, a secret key or an access token
|
|
11
|
+
|
|
12
|
+
1. ls -d ~/workspace/designs/*/ ; ddev list
|
|
13
|
+
tell me whether an instance is already there; if one is, ask me before building another
|
|
14
|
+
2. bash cmd-penpot-project.sh --help
|
|
15
|
+
tell me the options it takes and what it reads from the settings
|
|
16
|
+
3. bash cmd-penpot-project.sh <name>
|
|
17
|
+
4. tell me the address, and how the first account was registered (do not print its password)
|
|
18
|
+
5. bash cmd-penpot-mcp.sh <name> --mcp-action status
|
|
19
|
+
tell me whether the server for design agents is running; start it only if I say so
|
|
20
|
+
6. bash cmd-penpot-backup.sh <name>
|
|
21
|
+
a first backup, so there is something to go back to
|
|
22
|
+
|
|
23
|
+
If a command fails, show the line that failed and stop. Do not retry with other options.
|
|
24
|
+
"""
|
|
25
|
+
```
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: designs-workflow
|
|
3
|
+
description: How work is done in the `designs/` folder of the Webship Workspace — how a self-hosted Penpot instance is built, backed up and removed, how an access token is created, how the instance's server for design agents is started and registered, with the flags of each command and the settings keys of the folder (the `penpot` block). Use when asked to "start Penpot", "back up the designs", "create a Penpot token", "which version of Penpot runs here", or when a command of `designs/` is about to be run.
|
|
4
|
+
argument-hint: '[what you are about to do in designs]'
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# designs-workflow
|
|
8
|
+
|
|
9
|
+
`~/workspace/designs` is the Designs folder of a Webship Workspace (container-based, DDEV by default).
|
|
10
|
+
Designs are design instances, sources and exports: a self-hosted Penpot instance run as a container project, and the design files and exports kept beside it. It comes with the Designs plugin (`@webship.co/workspace-designs`), which places the commands below in the folder. Every command finds the workspace from its own path; run it from the folder, and read `bash <command> --help` before quoting a flag.
|
|
11
|
+
|
|
12
|
+
## The order of work
|
|
13
|
+
|
|
14
|
+
1. **Look at what runs**: `ls -d ~/workspace/designs/*/`, and `ddev list`.
|
|
15
|
+
2. **Build** an instance when there is none: `bash cmd-penpot-project.sh`. It answers at
|
|
16
|
+
`https://penpot.ddev.site`.
|
|
17
|
+
3. **Back it up** before a change: `bash cmd-penpot-backup.sh`.
|
|
18
|
+
4. **For AI work**: `bash cmd-penpot-token.sh` for a tool that takes an access token,
|
|
19
|
+
`bash cmd-penpot-mcp.sh --mcp-action start` and `--mcp-action register` for a design agent.
|
|
20
|
+
5. **Never `--force`** an instance that holds designs.
|
|
21
|
+
|
|
22
|
+
## Builders
|
|
23
|
+
|
|
24
|
+
| Builder | Builds | Flags |
|
|
25
|
+
| --- | --- | --- |
|
|
26
|
+
| `cmd-penpot-project.sh` | A self-hosted Penpot instance, as a container project; with no name, the one `penpot.project` names | `--email` `--flags` `--force` `--fullname` `--launch` `--mail-port` `--no-register` `--password` `--penpot-version` `--public-uri` `--secret-key` |
|
|
27
|
+
|
|
28
|
+
## Commands
|
|
29
|
+
|
|
30
|
+
| Command | What it does | Flags |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| `cmd-penpot-backup.sh` | The database and the assets of a Penpot instance: `[instance]` | none |
|
|
33
|
+
| `cmd-penpot-mcp.sh` | The instance's server for design agents: `--mcp-action` is `status` (the default), `start`, `stop` or `register` (with the AI CLI of this machine) | `--mcp-action` |
|
|
34
|
+
| `cmd-penpot-token.sh` | Creates an access token on an instance and prints it once: `[instance]` | `--email` `--password` `--token-name` |
|
|
35
|
+
| `cmd-tool-backup-design.sh` | One design file or folder as an archive, into `backups/designs/`: `<name>` | none |
|
|
36
|
+
| `cmd-tools-reclaim.sh` | Disk held by projects whose folder is gone: a dry run unless `--apply` | `--apply` `--keep-days` `--list-protected` `--only` |
|
|
37
|
+
| `cmd-tools-remove.sh` | Containers, volumes and folder together; refuses work that is on no remote unless `--force` | `--force` `--orphans` |
|
|
38
|
+
|
|
39
|
+
## Settings
|
|
40
|
+
|
|
41
|
+
| Key | File | What it says |
|
|
42
|
+
| --- | --- | --- |
|
|
43
|
+
| `doc.name` | `core/config/workspace.designs.settings.yml` | The folder under the workspace root: `designs` |
|
|
44
|
+
| `type` | `core/config/workspace.designs.settings.yml` | `sites`: the rows of the page are built sites, with the Build, Tests, Checks, Users, Backup and Remove actions |
|
|
45
|
+
| `penpot.project` | `core/config/workspace.designs.settings.yml` | The name of the instance the commands take when none is given: `penpot` |
|
|
46
|
+
| `penpot.version`, `penpot.flags`, `penpot.public_uri`, `penpot.mail_port` | `core/config/workspace.designs.settings.yml` | The Penpot release, its feature flags (plugins and access tokens on), the address it works on and the port of its mail catcher |
|
|
47
|
+
| `penpot.account.fullname`, `penpot.account.email` | `core/config/workspace.designs.settings.yml` | The first account; empty takes the workspace account |
|
|
48
|
+
| `penpot.mcp.package`, `penpot.mcp.port` | `core/config/workspace.designs.settings.yml` | The package and the port of the server for design agents |
|
|
49
|
+
| `presentation.kind`, `presentation.also_files` | `core/config/workspace.designs.settings.yml` | The page shows projects, and files beside them |
|
|
50
|
+
| `assistant.name`, `assistant.placeholder` | `core/config/workspace.designs.settings.yml` | What the assistant is called on this page; `default` takes the workspace's |
|
|
51
|
+
| `workspaces` | `core/config/settings.yml` | The active folders; `designs` is on it once the plugin is activated |
|
|
52
|
+
|
|
53
|
+
## Rules
|
|
54
|
+
|
|
55
|
+
- **`--force` deletes the designs.** It recreates the instance and removes its volumes: never add
|
|
56
|
+
it unasked, and back the instance up first (`bash cmd-penpot-backup.sh`).
|
|
57
|
+
- **Never print a password, a secret key or an access token** in a report, and never write one
|
|
58
|
+
into a file of the folder. The token command prints the token once: hand it over, do not keep it.
|
|
59
|
+
- **Back up before a change** to an instance; `bash cmd-tools-remove.sh` only when asked.
|
|
60
|
+
- **Containers only** (DDEV by default): the design platform runs in its own container project;
|
|
61
|
+
nothing of it is installed on the host.
|
|
62
|
+
- **One instance is enough** for most work: look at what is running before building another.
|
|
63
|
+
|
|
64
|
+
The Designs plugin places these beside this one, each in the workspace folder of its kind: the agent `designs-penpot-keeper` (`ai-agents/`), the command `/designs-backup` (`ai-commands/`) and the prompt `designs-start-penpot` (`ai-prompts/`).
|
package/dist/src/index.d.ts
CHANGED
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
* The Designs workspace for Webship Workspace: the `designs/` folder as a plugin.
|
|
3
3
|
*
|
|
4
4
|
* What the package carries is placed by the installer from the manifest (the folder's settings file,
|
|
5
|
-
* its commands and its
|
|
5
|
+
* its commands, its docs and its AI items, each in the folder of its kind) and listed by --activate; the dashboard draws the workspace from the
|
|
6
6
|
* settings file like any other. Nothing to register at run time yet: this is where the folder's own
|
|
7
7
|
* rail buttons, row menus or assistant context would go.
|
|
8
8
|
*/
|
|
9
9
|
import type { PluginApi } from '@webship.co/workspace-plugin-api';
|
|
10
10
|
export declare const WORKSPACE_KEY = "designs";
|
|
11
|
+
/** The AI items the installer places, each in the workspace folder of its kind (ai/ in this package). */
|
|
12
|
+
export declare const AGENTS: string[];
|
|
13
|
+
export declare const SKILLS: string[];
|
|
14
|
+
export declare const AI_COMMANDS: string[];
|
|
15
|
+
export declare const PROMPTS: string[];
|
|
11
16
|
export declare function register(api: PluginApi): void;
|
package/dist/src/index.js
CHANGED
|
@@ -3,15 +3,20 @@
|
|
|
3
3
|
* The Designs workspace for Webship Workspace: the `designs/` folder as a plugin.
|
|
4
4
|
*
|
|
5
5
|
* What the package carries is placed by the installer from the manifest (the folder's settings file,
|
|
6
|
-
* its commands and its
|
|
6
|
+
* its commands, its docs and its AI items, each in the folder of its kind) and listed by --activate; the dashboard draws the workspace from the
|
|
7
7
|
* settings file like any other. Nothing to register at run time yet: this is where the folder's own
|
|
8
8
|
* rail buttons, row menus or assistant context would go.
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.WORKSPACE_KEY = void 0;
|
|
11
|
+
exports.PROMPTS = exports.AI_COMMANDS = exports.SKILLS = exports.AGENTS = exports.WORKSPACE_KEY = void 0;
|
|
12
12
|
exports.register = register;
|
|
13
13
|
exports.WORKSPACE_KEY = 'designs';
|
|
14
|
+
/** The AI items the installer places, each in the workspace folder of its kind (ai/ in this package). */
|
|
15
|
+
exports.AGENTS = ['designs-penpot-keeper'];
|
|
16
|
+
exports.SKILLS = ['designs-workflow'];
|
|
17
|
+
exports.AI_COMMANDS = ['designs-backup'];
|
|
18
|
+
exports.PROMPTS = ['designs-start-penpot'];
|
|
14
19
|
function register(api) {
|
|
15
|
-
api.addAssistantContext(() => `The designs/ workspace is the Designs workspace (a plugin, @webship.co/workspace-designs); its commands are the cmd-*.sh scripts in that folder.`);
|
|
20
|
+
api.addAssistantContext(() => `The designs/ workspace is the Designs workspace (a plugin, @webship.co/workspace-designs); its commands are the cmd-*.sh scripts in that folder. It comes with AI items for work in this folder: the agent \`designs-penpot-keeper\` (ai-agents/), the skill \`designs-workflow\` (ai-skills/), the command \`/designs-backup\` (ai-commands/) and the prompt \`designs-start-penpot\` (ai-prompts/).`);
|
|
16
21
|
}
|
|
17
22
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAYH,4BAEC;AAVY,QAAA,aAAa,GAAG,SAAS,CAAC;AAEvC,yGAAyG;AAC5F,QAAA,MAAM,GAAG,CAAC,uBAAuB,CAAC,CAAC;AACnC,QAAA,MAAM,GAAG,CAAC,kBAAkB,CAAC,CAAC;AAC9B,QAAA,WAAW,GAAG,CAAC,gBAAgB,CAAC,CAAC;AACjC,QAAA,OAAO,GAAG,CAAC,sBAAsB,CAAC,CAAC;AAEhD,SAAgB,QAAQ,CAAC,GAAc;IACrC,GAAG,CAAC,mBAAmB,CAAC,GAAG,EAAE,CAAC,uYAAuY,CAAC,CAAC;AACza,CAAC"}
|
package/docs/AGENTS.md
CHANGED
|
@@ -29,3 +29,13 @@ bash cmd-tools-ragify.sh # Index a project in this
|
|
|
29
29
|
|
|
30
30
|
Every one locates the workspace from its own path, so there is nothing to export and nothing to
|
|
31
31
|
install. `--help` on any of them lists its arguments.
|
|
32
|
+
|
|
33
|
+
## AI items for this folder
|
|
34
|
+
|
|
35
|
+
The plugin of this folder (`@webship.co/workspace-designs`) places its own AI items in the AI folders of the
|
|
36
|
+
workspace, when they are active:
|
|
37
|
+
|
|
38
|
+
- `designs-penpot-keeper` (`ai-agents/`): Runs and looks after a self-hosted Penpot instance in `designs/`: build, address, backup, access token, the server for design agents; never recreates an instance unasked
|
|
39
|
+
- `designs-workflow` (`ai-skills/`): How work is done in `designs/`: look, build, back up, token and server for AI work; every command with its flags, the `penpot` settings keys
|
|
40
|
+
- `/designs-backup` (`ai-commands/`): `/designs-backup [instance]`: checks the instance is there and running, backs up its database and assets, says where the backup is
|
|
41
|
+
- `designs-start-penpot` (`ai-prompts/`): A new session that starts a Penpot instance and gets it ready for design work with an AI assistant
|
package/features/designs.feature
CHANGED
|
@@ -11,3 +11,19 @@ Feature: The Designs workspace plugin
|
|
|
11
11
|
Given I am on "/settings/plugins"
|
|
12
12
|
Then I should see "Designs"
|
|
13
13
|
And I should see "@webship.co/workspace-designs"
|
|
14
|
+
|
|
15
|
+
Scenario: The AI Agents folder lists the agent the plugin ships
|
|
16
|
+
Given I am on "/ai-agents"
|
|
17
|
+
Then I should see "designs-penpot-keeper"
|
|
18
|
+
|
|
19
|
+
Scenario: The AI Skills folder lists the skill the plugin ships
|
|
20
|
+
Given I am on "/ai-skills"
|
|
21
|
+
Then I should see "designs-workflow"
|
|
22
|
+
|
|
23
|
+
Scenario: The AI Commands folder lists the command the plugin ships
|
|
24
|
+
Given I am on "/ai-commands"
|
|
25
|
+
Then I should see "designs-backup"
|
|
26
|
+
|
|
27
|
+
Scenario: The AI Prompts folder lists the prompt the plugin ships
|
|
28
|
+
Given I am on "/ai-prompts"
|
|
29
|
+
Then I should see "designs-start-penpot"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webship.co/workspace-designs",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "The Designs workspace for Webship Workspace: the `designs/` folder (type sites), its settings file, its 7 commands and its
|
|
3
|
+
"version": "1.0.9",
|
|
4
|
+
"description": "The Designs workspace for Webship Workspace: the `designs/` folder (type sites), its settings file, its 7 commands, its docs and its AI items (an agent, a skill, a command and a prompt, each in the folder of its kind), activated as a plugin.",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
7
7
|
"license": "ISC",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"dist/src",
|
|
14
|
+
"ai",
|
|
14
15
|
"commands",
|
|
15
16
|
"config",
|
|
16
17
|
"docs",
|
|
@@ -26,6 +27,12 @@
|
|
|
26
27
|
"workspacePlugin": {
|
|
27
28
|
"name": "designs",
|
|
28
29
|
"label": "Designs",
|
|
30
|
+
"needs": [
|
|
31
|
+
"ai-agents",
|
|
32
|
+
"ai-skills",
|
|
33
|
+
"ai-commands",
|
|
34
|
+
"ai-prompts"
|
|
35
|
+
],
|
|
29
36
|
"workspace": {
|
|
30
37
|
"key": "designs",
|
|
31
38
|
"settingsTemplate": "config/workspace.designs.settings.yml",
|
|
@@ -44,6 +51,20 @@
|
|
|
44
51
|
"docs/README.md"
|
|
45
52
|
]
|
|
46
53
|
},
|
|
54
|
+
"ai": {
|
|
55
|
+
"agents": [
|
|
56
|
+
"ai/agents/designs-penpot-keeper.md"
|
|
57
|
+
],
|
|
58
|
+
"skills": [
|
|
59
|
+
"ai/skills/designs-workflow"
|
|
60
|
+
],
|
|
61
|
+
"commands": [
|
|
62
|
+
"ai/commands/designs-backup.md"
|
|
63
|
+
],
|
|
64
|
+
"prompts": [
|
|
65
|
+
"ai/prompts/designs-start-penpot.md"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
47
68
|
"features": [
|
|
48
69
|
"features/designs.feature"
|
|
49
70
|
]
|