@penpair/core 0.1.3 → 0.3.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/adapters.d.ts +16 -1
- package/dist/adapters.js +62 -19
- package/dist/approvals.d.ts +32 -0
- package/dist/approvals.js +213 -0
- package/dist/atomic-output.d.ts +5 -0
- package/dist/atomic-output.js +33 -0
- package/dist/audit-rules.d.ts +60 -0
- package/dist/audit-rules.js +443 -0
- package/dist/backup-note.d.ts +4 -0
- package/dist/backup-note.js +49 -0
- package/dist/baseline-coverage.d.ts +25 -0
- package/dist/baseline-coverage.js +248 -0
- package/dist/baselines-config.d.ts +25 -0
- package/dist/baselines-config.js +150 -11
- package/dist/baselines.d.ts +37 -8
- package/dist/baselines.js +362 -59
- package/dist/cli-arguments.d.ts +7 -0
- package/dist/cli-arguments.js +47 -0
- package/dist/cli-main.d.ts +13 -1
- package/dist/cli-main.js +2107 -247
- package/dist/client.d.ts +30 -6
- package/dist/client.js +160 -35
- package/dist/command-result.d.ts +159 -0
- package/dist/command-result.js +468 -0
- package/dist/coordination.d.ts +15 -0
- package/dist/coordination.js +184 -0
- package/dist/credentials.d.ts +21 -0
- package/dist/credentials.js +105 -0
- package/dist/deep-check.js +57 -9
- package/dist/design-spec.d.ts +55 -0
- package/dist/design-spec.js +275 -0
- package/dist/endpoint.d.ts +8 -1
- package/dist/endpoint.js +133 -21
- package/dist/errors.d.ts +2 -1
- package/dist/errors.js +8 -4
- package/dist/export.d.ts +18 -0
- package/dist/export.js +113 -10
- package/dist/file-archive.d.ts +16 -0
- package/dist/file-archive.js +58 -0
- package/dist/file-guard.d.ts +8 -0
- package/dist/file-guard.js +58 -0
- package/dist/formats.d.ts +4 -0
- package/dist/formats.js +229 -0
- package/dist/index.d.ts +34 -1
- package/dist/index.js +34 -1
- package/dist/inspection.d.ts +106 -0
- package/dist/inspection.js +657 -0
- package/dist/instance/config-schema.d.ts +422 -0
- package/dist/instance/config-schema.js +435 -0
- package/dist/instance/config.d.ts +29 -0
- package/dist/instance/config.js +191 -29
- package/dist/instance/connect.d.ts +10 -1
- package/dist/instance/connect.js +178 -30
- package/dist/instance/connection.d.ts +39 -4
- package/dist/instance/connection.js +198 -14
- package/dist/instance/gitignore.js +5 -2
- package/dist/instance/init.js +32 -7
- package/dist/instance/runner.js +32 -10
- package/dist/instance/setup.js +46 -13
- package/dist/instance/tty.js +28 -8
- package/dist/journal.d.ts +87 -0
- package/dist/journal.js +423 -0
- package/dist/kit-smoke.d.ts +31 -0
- package/dist/kit-smoke.js +145 -0
- package/dist/kit-source.d.ts +2 -0
- package/dist/kit-source.js +279 -0
- package/dist/kit.d.ts +25 -0
- package/dist/kit.js +158 -0
- package/dist/layout-policy.d.ts +2 -0
- package/dist/layout-policy.js +86 -0
- package/dist/layout.d.ts +21 -0
- package/dist/layout.js +36 -0
- package/dist/live-smoke.d.ts +8 -0
- package/dist/live-smoke.js +23 -0
- package/dist/local-profile.js +2 -1
- package/dist/mcp-server.d.ts +12 -0
- package/dist/mcp-server.js +415 -0
- package/dist/native-api.d.ts +15 -0
- package/dist/native-api.js +78 -0
- package/dist/onboard.d.ts +10 -0
- package/dist/onboard.js +41 -0
- package/dist/operation.d.ts +22 -3
- package/dist/operation.js +341 -31
- package/dist/page-session.d.ts +23 -0
- package/dist/page-session.js +142 -0
- package/dist/png.d.ts +5 -0
- package/dist/png.js +22 -0
- package/dist/portable-tokens.d.ts +22 -0
- package/dist/portable-tokens.js +331 -0
- package/dist/probe.d.ts +6 -2
- package/dist/probe.js +64 -11
- package/dist/project-input.d.ts +6 -0
- package/dist/project-input.js +65 -0
- package/dist/project-snippets.js +29 -12
- package/dist/project-status.d.ts +24 -0
- package/dist/project-status.js +188 -0
- package/dist/registry.d.ts +2 -1
- package/dist/registry.js +224 -53
- package/dist/run-file.d.ts +26 -0
- package/dist/run-file.js +199 -0
- package/dist/shots.d.ts +43 -0
- package/dist/shots.js +172 -0
- package/dist/skill-instructions.d.ts +13 -0
- package/dist/skill-instructions.js +144 -0
- package/dist/skills.d.ts +7 -0
- package/dist/skills.js +163 -46
- package/dist/snippet.d.ts +3 -2
- package/dist/snippet.js +33 -9
- package/dist/snippets/archive.d.ts +9 -0
- package/dist/snippets/archive.js +10 -4
- package/dist/snippets/read.d.ts +1 -1
- package/dist/snippets/read.js +78 -41
- package/dist/structure-snapshot.d.ts +85 -0
- package/dist/structure-snapshot.js +525 -0
- package/dist/token-edit.d.ts +53 -0
- package/dist/token-edit.js +352 -0
- package/dist/token-projection.d.ts +56 -0
- package/dist/token-projection.js +286 -0
- package/dist/tokens-diff.d.ts +19 -6
- package/dist/tokens-diff.js +182 -18
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/skills/penpair-design/SKILL.md +20 -45
- package/skills/penpair-design/references/penpot-plugin-gotchas.md +58 -2
- package/skills/penpair-design/references/project-facts.md +3 -1
- package/skills/penpair-design/references/write-protocol.md +15 -3
- package/skills/penpair-handoff/SKILL.md +16 -0
- package/skills/penpair-handoff/references/comparison-companion.md +13 -0
- package/skills/penpair-handoff/references/handoff-flow.md +13 -0
- package/skills/penpair-recipes/SKILL.md +21 -0
- package/skills/penpair-recipes/references/build-flow.md +11 -0
- package/skills/penpair-setup/SKILL.md +8 -2
- package/dist/cli.d.ts +0 -2
- package/dist/cli.js +0 -3
- package/dist/docker/lifecycle.d.ts +0 -96
- package/dist/docker/lifecycle.js +0 -273
- package/dist/docker/secrets.d.ts +0 -11
- package/dist/docker/secrets.js +0 -38
- package/dist/docker/template.d.ts +0 -8
- package/dist/docker/template.js +0 -158
- package/dist/docker-profile.d.ts +0 -114
- package/dist/docker-profile.js +0 -18
- package/dist/instance/lifecycle.d.ts +0 -129
- package/dist/instance/lifecycle.js +0 -336
- package/dist/instance/secrets.d.ts +0 -11
- package/dist/instance/secrets.js +0 -38
- package/dist/instance/template.d.ts +0 -8
- package/dist/instance/template.js +0 -158
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The compose file for one instance. It follows the official Penpot compose file; the local changes are the defaults
|
|
3
|
-
* worth keeping: a pinned version, ports bound to 127.0.0.1, telemetry off, secrets only from `.env`, local mail capture,
|
|
4
|
-
* the MCP server on. Container ports of the database, cache, admin console, exporter and MCP are not published; the
|
|
5
|
-
* MCP is reached through the frontend at /mcp/stream.
|
|
6
|
-
*/
|
|
7
|
-
export function renderCompose(config) {
|
|
8
|
-
const { frontend, mail } = config.ports;
|
|
9
|
-
return `# Generated by penpair. Edit penpair.config.json and run \`penpair init\` again instead of editing this file.
|
|
10
|
-
x-flags: &penpot-flags
|
|
11
|
-
PENPOT_FLAGS: disable-email-verification enable-smtp enable-prepl-server disable-secure-session-cookies enable-mcp enable-admin-console
|
|
12
|
-
|
|
13
|
-
x-uri: &penpot-public-uri
|
|
14
|
-
PENPOT_PUBLIC_URI: http://localhost:${frontend}
|
|
15
|
-
|
|
16
|
-
x-body-size: &penpot-http-body-size
|
|
17
|
-
PENPOT_HTTP_SERVER_MAX_BODY_SIZE: 367001600
|
|
18
|
-
PENPOT_HTTP_SERVER_MAX_MULTIPART_BODY_SIZE: 367001600
|
|
19
|
-
|
|
20
|
-
x-secret-key: &penpot-secret-key
|
|
21
|
-
PENPOT_SECRET_KEY: \${PENPOT_SECRET_KEY:?Set PENPOT_SECRET_KEY in .env}
|
|
22
|
-
|
|
23
|
-
x-database: &penpot-database
|
|
24
|
-
PENPOT_DATABASE_URI: postgresql://penpot-postgres/penpot
|
|
25
|
-
PENPOT_DATABASE_USERNAME: penpot
|
|
26
|
-
PENPOT_DATABASE_PASSWORD: \${PENPOT_DATABASE_PASSWORD:?Set PENPOT_DATABASE_PASSWORD in .env}
|
|
27
|
-
|
|
28
|
-
networks:
|
|
29
|
-
penpot:
|
|
30
|
-
|
|
31
|
-
volumes:
|
|
32
|
-
penpot_postgres_v15:
|
|
33
|
-
penpot_assets:
|
|
34
|
-
|
|
35
|
-
services:
|
|
36
|
-
penpot-frontend:
|
|
37
|
-
image: "penpotapp/frontend:\${PENPOT_VERSION:-${config.penpotVersion}}"
|
|
38
|
-
restart: always
|
|
39
|
-
ports:
|
|
40
|
-
- "127.0.0.1:${frontend}:8080"
|
|
41
|
-
volumes:
|
|
42
|
-
- penpot_assets:/opt/data/assets
|
|
43
|
-
depends_on:
|
|
44
|
-
- penpot-backend
|
|
45
|
-
- penpot-admin-console
|
|
46
|
-
- penpot-mcp
|
|
47
|
-
- penpot-exporter
|
|
48
|
-
networks:
|
|
49
|
-
- penpot
|
|
50
|
-
environment:
|
|
51
|
-
<< : [*penpot-flags, *penpot-http-body-size, *penpot-public-uri]
|
|
52
|
-
PENPOT_ADMIN_CONSOLE_URI: http://penpot-admin-console:3000
|
|
53
|
-
|
|
54
|
-
penpot-backend:
|
|
55
|
-
image: "penpotapp/backend:\${PENPOT_VERSION:-${config.penpotVersion}}"
|
|
56
|
-
restart: always
|
|
57
|
-
volumes:
|
|
58
|
-
- penpot_assets:/opt/data/assets
|
|
59
|
-
depends_on:
|
|
60
|
-
penpot-postgres:
|
|
61
|
-
condition: service_healthy
|
|
62
|
-
penpot-valkey:
|
|
63
|
-
condition: service_healthy
|
|
64
|
-
networks:
|
|
65
|
-
- penpot
|
|
66
|
-
environment:
|
|
67
|
-
<< : [*penpot-flags, *penpot-public-uri, *penpot-http-body-size, *penpot-secret-key, *penpot-database]
|
|
68
|
-
PENPOT_ADMIN_CONSOLE_URI: http://penpot-admin-console:3000
|
|
69
|
-
PENPOT_REDIS_URI: redis://penpot-valkey/0
|
|
70
|
-
PENPOT_OBJECTS_STORAGE_BACKEND: fs
|
|
71
|
-
PENPOT_OBJECTS_STORAGE_FS_DIRECTORY: /opt/data/assets
|
|
72
|
-
PENPOT_TELEMETRY_ENABLED: "false"
|
|
73
|
-
PENPOT_TELEMETRY_REFERER: compose
|
|
74
|
-
PENPOT_SMTP_DEFAULT_FROM: no-reply@example.com
|
|
75
|
-
PENPOT_SMTP_DEFAULT_REPLY_TO: no-reply@example.com
|
|
76
|
-
PENPOT_SMTP_HOST: penpot-mailcatch
|
|
77
|
-
PENPOT_SMTP_PORT: 1025
|
|
78
|
-
PENPOT_SMTP_USERNAME:
|
|
79
|
-
PENPOT_SMTP_PASSWORD:
|
|
80
|
-
PENPOT_SMTP_TLS: "false"
|
|
81
|
-
PENPOT_SMTP_SSL: "false"
|
|
82
|
-
|
|
83
|
-
penpot-admin-console:
|
|
84
|
-
image: "penpotapp/admin-console:\${PENPOT_VERSION:-${config.penpotVersion}}"
|
|
85
|
-
restart: always
|
|
86
|
-
depends_on:
|
|
87
|
-
penpot-postgres:
|
|
88
|
-
condition: service_healthy
|
|
89
|
-
networks:
|
|
90
|
-
- penpot
|
|
91
|
-
environment:
|
|
92
|
-
<< : [*penpot-public-uri, *penpot-secret-key, *penpot-database]
|
|
93
|
-
PENPOT_INTERNAL_URI: http://penpot-frontend:8080
|
|
94
|
-
|
|
95
|
-
penpot-mcp:
|
|
96
|
-
image: "penpotapp/mcp:\${PENPOT_VERSION:-${config.penpotVersion}}"
|
|
97
|
-
restart: always
|
|
98
|
-
networks:
|
|
99
|
-
- penpot
|
|
100
|
-
|
|
101
|
-
penpot-exporter:
|
|
102
|
-
image: "penpotapp/exporter:\${PENPOT_VERSION:-${config.penpotVersion}}"
|
|
103
|
-
restart: always
|
|
104
|
-
depends_on:
|
|
105
|
-
penpot-valkey:
|
|
106
|
-
condition: service_healthy
|
|
107
|
-
networks:
|
|
108
|
-
- penpot
|
|
109
|
-
environment:
|
|
110
|
-
<< : [*penpot-flags, *penpot-secret-key, *penpot-public-uri]
|
|
111
|
-
PENPOT_INTERNAL_URI: http://penpot-frontend:8080
|
|
112
|
-
PENPOT_REDIS_URI: redis://penpot-valkey/0
|
|
113
|
-
|
|
114
|
-
penpot-postgres:
|
|
115
|
-
image: "postgres:15"
|
|
116
|
-
restart: always
|
|
117
|
-
stop_signal: SIGINT
|
|
118
|
-
healthcheck:
|
|
119
|
-
test: ["CMD-SHELL", "pg_isready -U penpot"]
|
|
120
|
-
interval: 2s
|
|
121
|
-
timeout: 10s
|
|
122
|
-
retries: 5
|
|
123
|
-
start_period: 2s
|
|
124
|
-
volumes:
|
|
125
|
-
- penpot_postgres_v15:/var/lib/postgresql/data
|
|
126
|
-
networks:
|
|
127
|
-
- penpot
|
|
128
|
-
environment:
|
|
129
|
-
- POSTGRES_INITDB_ARGS=--data-checksums
|
|
130
|
-
- POSTGRES_DB=penpot
|
|
131
|
-
- POSTGRES_USER=penpot
|
|
132
|
-
- POSTGRES_PASSWORD=\${PENPOT_DATABASE_PASSWORD:?Set PENPOT_DATABASE_PASSWORD in .env}
|
|
133
|
-
|
|
134
|
-
penpot-valkey:
|
|
135
|
-
image: valkey/valkey:8.1
|
|
136
|
-
restart: always
|
|
137
|
-
healthcheck:
|
|
138
|
-
test: ["CMD-SHELL", "valkey-cli ping | grep PONG"]
|
|
139
|
-
interval: 1s
|
|
140
|
-
timeout: 3s
|
|
141
|
-
retries: 5
|
|
142
|
-
start_period: 3s
|
|
143
|
-
networks:
|
|
144
|
-
- penpot
|
|
145
|
-
environment:
|
|
146
|
-
- VALKEY_EXTRA_FLAGS=--maxmemory 128mb --maxmemory-policy volatile-lfu
|
|
147
|
-
|
|
148
|
-
penpot-mailcatch:
|
|
149
|
-
image: sj26/mailcatcher:latest
|
|
150
|
-
restart: always
|
|
151
|
-
expose:
|
|
152
|
-
- '1025'
|
|
153
|
-
ports:
|
|
154
|
-
- "127.0.0.1:${mail}:1080"
|
|
155
|
-
networks:
|
|
156
|
-
- penpot
|
|
157
|
-
`;
|
|
158
|
-
}
|