@jini-ai/agent-plugins 0.6.22 → 0.7.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/CHANGELOG.md +51 -0
- package/README.md +13 -0
- package/calendly/exports/booking-calendar.css +7 -0
- package/calendly/exports/booking-calendar.html +5 -0
- package/calendly/mcp.json +10 -0
- package/calendly/plugin.json +47 -0
- package/calendly/skills/calendly/SKILL.md +27 -0
- package/charts-echarts/plugin.json +2 -2
- package/charts-recharts/plugin.json +2 -2
- package/cloudflare/lib/cms-forms.mjs +57 -0
- package/cloudflare/lib/forms.mjs +78 -18
- package/cloudflare/lib/target.mjs +17 -4
- package/cloudflare/plugin.json +2 -2
- package/cloudflare/skills/cloudflare/SKILL.md +4 -4
- package/cloudflare/skills/cloudflare/references/workers.md +4 -4
- package/cloudflare/worker/forms-receiver.mjs +81 -41
- package/cloudflare/worker/portable-validation.mjs +220 -0
- package/commerce/plugin.json +17 -0
- package/commerce/skills/commerce/SKILL.md +23 -0
- package/composio/mcp.json +1 -1
- package/composio/plugin.json +2 -2
- package/composio/skills/composio/SKILL.md +4 -4
- package/core/commerce-server.d.ts +2 -0
- package/core/commerce-server.mjs +2 -0
- package/dist/admin-surfaces/connections/connections.d.ts +35 -0
- package/dist/admin-surfaces/connections/connections.js +135 -0
- package/dist/admin-surfaces/connections/index.d.ts +3 -0
- package/dist/admin-surfaces/connections/index.js +2 -0
- package/dist/admin-surfaces/connections/ports.d.ts +110 -0
- package/dist/admin-surfaces/connections/ports.js +2 -0
- package/dist/admin-surfaces/index.d.ts +2 -0
- package/dist/admin-surfaces/index.js +1 -0
- package/dist/admin-surfaces/plugin-state-persistence.d.ts +27 -0
- package/dist/admin-surfaces/plugin-state-persistence.js +2 -0
- package/dist/admin-surfaces/plugin-state.d.ts +51 -0
- package/dist/admin-surfaces/plugin-state.js +106 -0
- package/dist/connect/access-token-tool.d.ts +240 -0
- package/dist/connect/access-token-tool.js +213 -0
- package/dist/connect/apply-connect-defaults.d.ts +91 -0
- package/dist/connect/apply-connect-defaults.js +113 -0
- package/dist/connect/apply-tool-renames.d.ts +72 -0
- package/dist/connect/apply-tool-renames.js +105 -0
- package/dist/connect/connect-card-ui.d.ts +143 -0
- package/dist/connect/connect-card-ui.js +106 -0
- package/dist/connect/connect-destination.d.ts +35 -0
- package/dist/connect/connect-destination.js +45 -0
- package/dist/connect/connect-sign-in-wait.d.ts +31 -0
- package/dist/connect/connect-sign-in-wait.js +21 -0
- package/dist/connect/connect-tool.d.ts +314 -0
- package/dist/connect/connect-tool.js +431 -0
- package/dist/connect/connection-status.d.ts +33 -0
- package/dist/connect/connection-status.js +63 -0
- package/dist/connect/credential-cards.d.ts +15 -0
- package/dist/connect/credential-cards.js +49 -0
- package/dist/connect/credential-save-tool.d.ts +45 -0
- package/dist/connect/credential-save-tool.js +156 -0
- package/dist/connect/enable-access.d.ts +67 -0
- package/dist/connect/enable-access.js +74 -0
- package/dist/connect/executable/approval.d.ts +58 -0
- package/dist/connect/executable/approval.js +40 -0
- package/dist/connect/executable/host-capabilities.d.ts +76 -0
- package/dist/connect/executable/host-capabilities.js +100 -0
- package/dist/connect/executable/index.d.ts +10 -0
- package/dist/connect/executable/index.js +9 -0
- package/dist/connect/executable/ports.d.ts +189 -0
- package/dist/connect/executable/ports.js +2 -0
- package/dist/connect/executable/register.d.ts +21 -0
- package/dist/connect/executable/register.js +125 -0
- package/dist/connect/federate-mcp.d.ts +190 -0
- package/dist/connect/federate-mcp.js +440 -0
- package/dist/connect/grant-signed-in-defaults.d.ts +96 -0
- package/dist/connect/grant-signed-in-defaults.js +100 -0
- package/dist/connect/import-access-token.d.ts +114 -0
- package/dist/connect/import-access-token.js +103 -0
- package/dist/connect/index.d.ts +19 -0
- package/dist/connect/index.js +19 -0
- package/dist/connect/plugin-credential-card.d.ts +46 -0
- package/dist/connect/plugin-credential-card.js +63 -0
- package/dist/connect/plugin-host/index.d.ts +203 -0
- package/dist/connect/plugin-host/index.js +153 -0
- package/dist/connect/ports.d.ts +74 -0
- package/dist/connect/ports.js +2 -0
- package/dist/connect/switch-on-saved-token.d.ts +48 -0
- package/dist/connect/switch-on-saved-token.js +20 -0
- package/dist/connect/token-sign-in.d.ts +51 -0
- package/dist/connect/token-sign-in.js +43 -0
- package/dist/core/identity-namespace.d.ts +39 -0
- package/dist/core/identity-namespace.js +61 -3
- package/dist/folder-zip-node.js +3 -1
- package/dist/lifecycle/automatic-use.d.ts +12 -7
- package/dist/lifecycle/automatic-use.js +37 -28
- package/dist/lifecycle/capability-projection.js +5 -1
- package/dist/lifecycle/contribution-loader.d.ts +2 -7
- package/dist/lifecycle/contribution-types.d.ts +8 -0
- package/dist/lifecycle/contribution-types.js +2 -0
- package/dist/lifecycle/credential-card-metadata.d.ts +23 -0
- package/dist/lifecycle/credential-card-metadata.js +184 -0
- package/dist/lifecycle/exports.d.ts +11 -0
- package/dist/lifecycle/exports.js +64 -3
- package/dist/lifecycle/host-tools/identity.d.ts +38 -0
- package/dist/lifecycle/host-tools/identity.js +58 -0
- package/dist/lifecycle/host-tools/index.d.ts +20 -0
- package/dist/lifecycle/host-tools/index.js +20 -0
- package/dist/lifecycle/host-tools/memory-tools.d.ts +22 -0
- package/dist/lifecycle/host-tools/memory-tools.js +63 -0
- package/dist/lifecycle/host-tools/ports.d.ts +121 -0
- package/dist/lifecycle/host-tools/ports.js +2 -0
- package/dist/lifecycle/host-tools/provider-status-tool.d.ts +88 -0
- package/dist/lifecycle/host-tools/provider-status-tool.js +45 -0
- package/dist/lifecycle/host-tools/search-tool.d.ts +74 -0
- package/dist/lifecycle/host-tools/search-tool.js +282 -0
- package/dist/lifecycle/host-tools/skill-tool.d.ts +219 -0
- package/dist/lifecycle/host-tools/skill-tool.js +482 -0
- package/dist/lifecycle/host-tools/write-note-tool.d.ts +22 -0
- package/dist/lifecycle/host-tools/write-note-tool.js +47 -0
- package/dist/lifecycle/index.d.ts +2 -1
- package/dist/lifecycle/install.js +2 -1
- package/dist/lifecycle/installed-package-index.js +5 -8
- package/dist/lifecycle/mail/adapter-descriptors.d.ts +78 -0
- package/dist/lifecycle/mail/adapter-descriptors.js +155 -0
- package/dist/lifecycle/mail/catalog.d.ts +116 -0
- package/dist/lifecycle/mail/catalog.js +72 -0
- package/dist/lifecycle/mail/configuration.d.ts +25 -0
- package/dist/lifecycle/mail/configuration.js +62 -0
- package/dist/lifecycle/mail/contribution.d.ts +89 -0
- package/dist/lifecycle/mail/contribution.js +115 -0
- package/dist/lifecycle/mail/host-mailer.d.ts +24 -0
- package/dist/lifecycle/mail/host-mailer.js +10 -0
- package/dist/lifecycle/mail/index.d.ts +16 -0
- package/dist/lifecycle/mail/index.js +16 -0
- package/dist/lifecycle/mail/selection.d.ts +40 -0
- package/dist/lifecycle/mail/selection.js +86 -0
- package/dist/lifecycle/manifest.d.ts +7 -2
- package/dist/lifecycle/manifest.js +32 -9
- package/dist/lifecycle/metadata.d.ts +31 -0
- package/dist/lifecycle/metadata.js +80 -0
- package/dist/lifecycle/persistent-state.js +2 -1
- package/dist/lifecycle/ports.d.ts +2 -0
- package/dist/lifecycle/resolve-agent-plugin-refs.d.ts +2 -1
- package/dist/lifecycle/resolve-agent-plugin-refs.js +14 -8
- package/dist/lifecycle/search-projection.d.ts +3 -4
- package/dist/lifecycle/search-projection.js +5 -7
- package/dist/lifecycle/search.js +3 -2
- package/fly/plugin.json +5 -5
- package/fly/skills/fly/SKILL.md +1 -1
- package/formspree/plugin.json +7 -0
- package/formspree/skills/formspree/SKILL.md +11 -0
- package/github/plugin.json +2 -2
- package/github/skills/github/SKILL.md +28 -28
- package/github/skills/github/references/actions.md +8 -8
- package/github/skills/github/references/auth-and-tokens.md +7 -7
- package/github/skills/github/references/repo-files.md +5 -5
- package/github/skills/github/references/site-backup.md +16 -16
- package/github/skills/github/references/source-control.md +17 -17
- package/github-pages/plugin.json +2 -2
- package/github-pages/skills/github-pages/SKILL.md +3 -3
- package/google-forms/plugin.json +7 -0
- package/google-forms/skills/google-forms/SKILL.md +15 -0
- package/google-login/plugin.json +3 -3
- package/google-login/skills/google-login/SKILL.md +17 -60
- package/google-workspace/plugin.json +6 -6
- package/google-workspace/skills/google-workspace/references/connection.md +1 -1
- package/google-workspace/skills/google-workspace/references/form-delivery.md +4 -4
- package/google-workspace/tovu-admin-surfaces.json +5 -5
- package/higgsfield-media/plugin.json +5 -5
- package/higgsfield-media/skills/higgsfield-media/SKILL.md +31 -33
- package/higgsfield-media/skills/higgsfield-media/references/failure-modes.md +7 -7
- package/higgsfield-media/skills/higgsfield-media/references/models-and-plan-gates.md +3 -3
- package/jev/plugin.json +2 -2
- package/langfuse/plugin.json +2 -2
- package/meilisearch/plugin.json +2 -2
- package/meilisearch/skills/meilisearch/SKILL.md +1 -1
- package/netlify/plugin.json +2 -2
- package/netlify/skills/netlify/SKILL.md +3 -3
- package/opentelemetry/plugin.json +2 -2
- package/opentelemetry/skills/opentelemetry/SKILL.md +7 -7
- package/package.json +92 -14
- package/posthog/plugin.json +2 -2
- package/posthog/skills/posthog/SKILL.md +7 -7
- package/railway/plugin.json +3 -3
- package/railway/skills/railway/SKILL.md +10 -11
- package/render/plugin.json +3 -3
- package/render/skills/render/SKILL.md +7 -8
- package/resend/NOTES.md +2 -2
- package/resend/mcp.json +1 -1
- package/resend/plugin.json +5 -5
- package/resend/skills/resend/SKILL.md +13 -13
- package/s3-compatible/plugin.json +2 -2
- package/s3-compatible/skills/s3-compatible/SKILL.md +4 -4
- package/sentry/plugin.json +2 -2
- package/sentry/skills/sentry/SKILL.md +7 -7
- package/shopify/plugin.json +2 -2
- package/site-compliance/plugin.json +2 -2
- package/site-compliance/skills/site-compliance/SKILL.md +3 -3
- package/site-compliance/skills/site-compliance/references/gdpr-eu-uk.md +1 -1
- package/site-import/plugin.json +2 -2
- package/slide-design/plugin.json +2 -2
- package/software-engineering/LICENSE +201 -0
- package/software-engineering/NOTICE +9 -0
- package/software-engineering/README.md +89 -0
- package/software-engineering/plugin.json +24 -0
- package/software-engineering/skills/software-engineering/SKILL.md +33 -0
- package/software-engineering/skills/software-engineering/references/debugging.md +54 -0
- package/software-engineering/skills/software-engineering/references/implementation.md +27 -0
- package/software-engineering/skills/software-engineering/references/planning.md +27 -0
- package/software-engineering/skills/software-engineering/references/prototyping.md +14 -0
- package/software-engineering/skills/software-engineering/references/security.md +47 -0
- package/software-engineering/skills/software-engineering/references/verification.md +53 -0
- package/stripe/plugin.json +2 -2
- package/supabase/mcp.json +4 -4
- package/supabase/plugin.json +3 -3
- package/supabase/skills/supabase/SKILL.md +8 -8
- package/supabase/skills/supabase/references/failure-modes.md +5 -5
- package/ui-ux-design/plugin.json +2 -2
- package/vercel/plugin.json +2 -2
- package/vercel/skills/vercel/SKILL.md +3 -3
- package/wordpress/plugin.json +2 -2
- package/wordpress/skills/wordpress/SKILL.md +3 -3
- package/wordpress/skills/wordpress/references/free-site-redirect.md +2 -2
- package/wordpress/skills/wordpress/references/subdomain.md +5 -5
|
@@ -13,10 +13,9 @@ export interface AgentPluginDiscoveryPage {
|
|
|
13
13
|
readonly totalMatches: number;
|
|
14
14
|
readonly nextOffset: number | null;
|
|
15
15
|
}
|
|
16
|
-
/** Keep
|
|
17
|
-
*
|
|
18
|
-
* @
|
|
19
|
-
* @complexity O(1) bounded text work; no I/O or mutation.
|
|
16
|
+
/** Keep readable discovery metadata for off plugins; activation still owns tool availability.
|
|
17
|
+
* @returns The active candidate, or the same searchable metadata clearly marked off.
|
|
18
|
+
* @complexity O(1) bounded text work and shallow copy; no I/O or mutation.
|
|
20
19
|
*/
|
|
21
20
|
export declare function agentVisiblePluginCandidate({ candidate }: {
|
|
22
21
|
candidate: AgentPluginSearchCandidate;
|
|
@@ -8,19 +8,17 @@ function shortDescription({ text }, { maxBytes = 240 } = {}) {
|
|
|
8
8
|
end--;
|
|
9
9
|
return bytes.subarray(0, end).toString('utf8');
|
|
10
10
|
}
|
|
11
|
-
/** Keep
|
|
12
|
-
*
|
|
13
|
-
* @
|
|
14
|
-
* @complexity O(1) bounded text work; no I/O or mutation.
|
|
11
|
+
/** Keep readable discovery metadata for off plugins; activation still owns tool availability.
|
|
12
|
+
* @returns The active candidate, or the same searchable metadata clearly marked off.
|
|
13
|
+
* @complexity O(1) bounded text work and shallow copy; no I/O or mutation.
|
|
15
14
|
*/
|
|
16
15
|
export function agentVisiblePluginCandidate({ candidate }, _options = {}) {
|
|
17
16
|
if (candidate.enabled)
|
|
18
17
|
return candidate;
|
|
19
18
|
const purpose = shortDescription({ text: (candidate.summary ?? candidate.description ?? '').slice(0, 1024).replace(/\s+/g, ' ').trim() }, { maxBytes: 100 });
|
|
20
19
|
const label = shortDescription({ text: (candidate.displayName ?? candidate.pluginId).slice(0, 1024).replace(/\s+/g, ' ').trim() }, { maxBytes: 80 });
|
|
21
|
-
return {
|
|
22
|
-
description: `installed, off: ${label}: ${purpose} —
|
|
23
|
-
skills: [], keywords: [], provides: [], mcpServerIds: [] };
|
|
20
|
+
return { ...candidate, id: candidate.id ?? candidate.pluginId, enabled: false,
|
|
21
|
+
description: `installed, off: ${label}: ${purpose} — read guidance; tools unavailable` };
|
|
24
22
|
}
|
|
25
23
|
/** Project one candidate without copying skills, keywords, credentials or host metadata. O(1). */
|
|
26
24
|
function discoveryMatch({ candidate }, _options = {}) {
|
package/dist/lifecycle/search.js
CHANGED
|
@@ -25,8 +25,9 @@ function passesDeploymentGate({ candidate, capabilities, terms }, _options = {})
|
|
|
25
25
|
function automaticScore({ candidate, terms }, _options = {}) {
|
|
26
26
|
if (!candidate.enabled) {
|
|
27
27
|
const visible = agentVisiblePluginCandidate({ candidate });
|
|
28
|
-
const
|
|
29
|
-
|
|
28
|
+
const skills = visible.skills.map(skill => [skill.name, skill.summary].join(' ')).join(' ');
|
|
29
|
+
const catalogTerms = automaticTerms(`${visible.pluginId} ${visible.description ?? ''} ${visible.keywords.join(' ')} ${(visible.provides ?? []).join(' ')} ${skills}`);
|
|
30
|
+
return terms.reduce((score, term) => score + (catalogTerms.includes(term) ? 4 : 0), 0);
|
|
30
31
|
}
|
|
31
32
|
const capabilities = candidate.provides ?? [];
|
|
32
33
|
if (!passesDeploymentGate({ candidate, capabilities, terms }))
|
package/fly/plugin.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "fly",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"description": "Deploys the host's server to fly.io: one machine only for volume-backed state, secrets never in fly.toml, deploying ships code, not content. Contributes Fly operations, server config generation and the FlyV1 credential scheme.",
|
|
6
6
|
"author": "Tovu",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"extensions": {
|
|
9
|
-
"
|
|
9
|
+
"jini": {
|
|
10
10
|
"vendorAliases": ["FLY_", "fly.io", "flyctl", "fly.toml", "machines.dev", "flyv1"],
|
|
11
11
|
"displayName": "Fly.io",
|
|
12
|
-
"summary": "Puts the
|
|
12
|
+
"summary": "Puts the application server itself online on Fly.io.",
|
|
13
13
|
"hostSignals": [
|
|
14
14
|
{
|
|
15
15
|
"env": "FLY_APP_NAME",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"label": "fly.io",
|
|
34
34
|
"ownedApiLabel": "fly.io",
|
|
35
35
|
"category": "hosting",
|
|
36
|
-
"intro": "Connect Fly.io to inspect and deploy the
|
|
36
|
+
"intro": "Connect Fly.io to inspect and deploy the application server and manage its Machines.",
|
|
37
37
|
"usedFor": [
|
|
38
|
-
"Deploys your
|
|
38
|
+
"Deploys your application server and checks its status and logs",
|
|
39
39
|
"Manages the app's running servers",
|
|
40
40
|
"Creates and manages apps when you grant access to the organization"
|
|
41
41
|
],
|
package/fly/skills/fly/SKILL.md
CHANGED
|
@@ -14,7 +14,7 @@ any server on Fly.
|
|
|
14
14
|
Choose the card yourself from its `usedFor` list. Reuse a saved key or working sign-in for that
|
|
15
15
|
task. Never offer a replacement unless the person asks.
|
|
16
16
|
|
|
17
|
-
Open **Connect Fly.io**
|
|
17
|
+
Open **Connect Fly.io** through the secure connection card for a new key. The card explains app-scoped deploy tokens and saves the `fly.io` credential with both API origins. In the Fly dashboard select the real app or organization, then **Tokens**; there is no universal app token-creation URL to guess. Only if the person explicitly asks to replace the saved key, rotate the existing row through its secure connection card.
|
|
18
18
|
|
|
19
19
|
## Scope
|
|
20
20
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
|
+
"name": "formspree", "version": "0.1.1", "author": "Jini", "license": "Apache-2.0",
|
|
4
|
+
"description": "Connects native forms to Formspree. Visitors POST directly to Formspree; this site keeps its existing form definitions and historical answers. Installation alone never switches a form.",
|
|
5
|
+
"extensions": { "jini": { "id": "jini/formspree-agent", "displayName": "Formspree", "providerPlugin": "formspree", "provides": ["forms"] } },
|
|
6
|
+
"keywords": ["formspree", "forms", "form collection"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: formspree
|
|
3
|
+
description: Select Formspree collection for a site form using its public endpoint, or switch back to built-in collection.
|
|
4
|
+
---
|
|
5
|
+
Use the existing authorized list form definitions and update the form provider configuration tools. Enable the Formspree provider plugin first using the normal plugin controls. Do not create vendor forms, ask for API keys, synchronize submissions or build Google Forms.
|
|
6
|
+
|
|
7
|
+
Ask the owner for the public native form endpoint shown by Formspree (https://formspree.io/f/<form-id>). It is a public destination, never a secret. Preview where answers will go and get the owner's requested choice before changing it: Formspree keeps answers in the owner's Formspree account, browser and Formspree validation apply, and Formspree supplies spam protection according to that account's settings. Existing local history and frozen delivery jobs remain unchanged.
|
|
8
|
+
|
|
9
|
+
Set `provider: { id: "formspree", config: { endpoint: "https://formspree.io/f/<form-id>" } }` using update the form provider configuration. Switch back with `provider: { id: "builtin", config: {} }`. Never replace the form's fields or HTML to switch providers.
|
|
10
|
+
|
|
11
|
+
Every already published page containing the form must be republished. For Cloudflare, republish the receiver manifest/routes too. Do not delete the old receiver or pending remote answers: they never auto-expire and must finish importing. Notification recipients stay local when content is copied between sites; show that in the transfer preview.
|
package/github/plugin.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "github",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"description": "Everything a host's assistant needs to work against a GitHub repository through the workspace's own saved credentials, with no git, no gh CLI, and no token ever passing through the assistant: writing and updating files in one atomic commit, dispatching and following a GitHub Actions run, reading a failed run's logs, committing the site's rendered static export, backing up the site itself (database, media, themes, plugins, settings) to a private repository, and deploying the host's server through its GitHub Actions deploy workflow (the `github-actions` deployment ops platform). Encodes the rules that generic GitHub knowledge gets wrong here — a 204 dispatch means queued and never deployed, a workflow only fires on the branch its own trigger names, a repository secret is the human's step and never the assistant's, a 403 on an org-wide listing is a normal app-scoped-token boundary rather than a broken credential, and editing an existing file means diffing the MODIFIED files and not only the added and deleted ones.",
|
|
6
6
|
"author": "Tovu",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"extensions": {
|
|
9
|
-
"
|
|
9
|
+
"jini": {
|
|
10
10
|
"vendorAliases": ["github_pat_"],
|
|
11
11
|
"displayName": "GitHub",
|
|
12
12
|
"summary": "Lets the assistant save your site's files to GitHub, run builds there, and back up your whole site.",
|
|
@@ -10,7 +10,7 @@ description: Work against a GitHub repository through this workspace's own saved
|
|
|
10
10
|
Choose the card yourself from its `usedFor` list. Reuse a saved key or working sign-in for that
|
|
11
11
|
task. Never offer a replacement unless the person asks.
|
|
12
12
|
|
|
13
|
-
Open **Connect GitHub**
|
|
13
|
+
Open **Connect GitHub** through the secure connection card; it saves the API credential labelled `github`. For `github-source-control`, open the secure connection card; it saves through the source-control owner. For Pages hosting use the `github-pages` plugin’s card. These remain distinct save contracts. Each card names the repository permissions and links to fine-grained token creation. Never collect a token in chat.
|
|
14
14
|
|
|
15
15
|
## Scope
|
|
16
16
|
|
|
@@ -34,13 +34,13 @@ Decide this first; the two jobs use different tools.
|
|
|
34
34
|
- **Source control and backup** — write files into a repository, commit the site's rendered export,
|
|
35
35
|
back up the site, or start and follow any other workflow: the tools in the rest of this document.
|
|
36
36
|
- **Deploying the host's server with GitHub Actions** — use the deployment tools with platform
|
|
37
|
-
`github-actions`, never a hand-built dispatch.
|
|
37
|
+
`github-actions`, never a hand-built dispatch. Start a deployment with target
|
|
38
38
|
`owner/repo` and the branch or tag. It resolves the ref to a full SHA and dispatches the host's
|
|
39
39
|
deploy workflow pinned to that commit; the host guidance describes that workflow's own inputs and
|
|
40
40
|
refusals. Say which commit will build. A started deploy is queued, never deployed: follow it with
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
deploy whose connection dropped before checking
|
|
41
|
+
wait for deployment completion (pass the returned runId) until `finished`, then check the live site. Use
|
|
42
|
+
deployment status and read deployment logs to find a failed job and step. Never retry a
|
|
43
|
+
deploy whose connection dropped before checking deployment status. The saved
|
|
44
44
|
`api.github.com` credential needs Actions write. Setting up the server host itself (its config,
|
|
45
45
|
volume and secrets) is the host plugin's job, not this one's.
|
|
46
46
|
|
|
@@ -49,19 +49,19 @@ Decide this first; the two jobs use different tools.
|
|
|
49
49
|
## What you are allowed to use, and what does not exist here
|
|
50
50
|
|
|
51
51
|
Two native host tools do everything below. **This plugin ships no MCP server and adds no tool.**
|
|
52
|
-
Its deploy half is only the `github-actions` platform behind the core `
|
|
52
|
+
Its deploy half is only the `github-actions` platform behind the core `deployment operations` tools.
|
|
53
53
|
|
|
54
54
|
| Tool | What it is |
|
|
55
55
|
|---|---|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
56
|
+
| authenticated GitHub request | One authenticated `GET`/`POST`/`PUT`/`PATCH`/`DELETE` to GitHub's REST API through a saved credential. You pass a `label` and a **full absolute URL**; the server injects the real `Authorization` header. |
|
|
57
|
+
| write named repository files with confirmation | A human-confirmed, atomic write of 1–25 named files onto an **existing** branch (blob → tree → commit → non-force ref update). |
|
|
58
58
|
|
|
59
|
-
Two more exist for a narrower job —
|
|
60
|
-
|
|
59
|
+
Two more exist for a narrower job — inspect source-control capabilities and
|
|
60
|
+
commit through source control — and they are **not** general-purpose repo writes. See
|
|
61
61
|
`references/source-control.md` before you reach for either; the distinction between them and
|
|
62
|
-
|
|
62
|
+
write named repository files with confirmation is the single easiest thing to get wrong in this document.
|
|
63
63
|
|
|
64
|
-
And two back up the site itself —
|
|
64
|
+
And two back up the site itself — preview a site backup, then publish the site backup — into a private
|
|
65
65
|
repository. See `references/site-backup.md`.
|
|
66
66
|
|
|
67
67
|
There is no `git`, no `gh`, and no shell path. **Never shell out to `curl`, `wget`, or `git` to
|
|
@@ -71,7 +71,7 @@ the store exists to prevent.
|
|
|
71
71
|
|
|
72
72
|
### You do not choose the host
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
authenticated GitHub request refuses any URL whose host is not on that credential's own saved
|
|
75
75
|
allowlist (its base URL plus any saved additional hosts), **before any request is sent**. This is
|
|
76
76
|
not a limitation to route around. It is the property that makes an agent-held credential safe at
|
|
77
77
|
all: the human decided, once, at save time, which origins this token may ever reach.
|
|
@@ -80,7 +80,7 @@ So: build every URL from `https://api.github.com` (or whatever base the credenti
|
|
|
80
80
|
saved — GitHub Enterprise has its own). If a call is refused, the error names the hosts that
|
|
81
81
|
*are* allowed. Read it and use one; do not try a different host to see what sticks.
|
|
82
82
|
|
|
83
|
-
To find the label,
|
|
83
|
+
To find the label, list the saved credential labels. It returns each saved
|
|
84
84
|
credential's label, category, base URL and additional hosts — never a token. A workspace with a
|
|
85
85
|
credential labelled `github` is the expected case, but do not assume the label: read it.
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ credential labelled `github` is the expected case, but do not assume the label:
|
|
|
88
88
|
|
|
89
89
|
## The rules
|
|
90
90
|
|
|
91
|
-
These
|
|
91
|
+
These rules prevent credential and repository mistakes.
|
|
92
92
|
|
|
93
93
|
### Rule 1 — A repository secret is ALWAYS the human's step. This is not negotiable.
|
|
94
94
|
|
|
@@ -154,7 +154,7 @@ review that looked at which files were **added** and which were **deleted** saw
|
|
|
154
154
|
the file was neither. It was modified, and the modification quietly removed two load-bearing lines.
|
|
155
155
|
Two deploys failed before anyone connected the two facts.
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
write named repository files with confirmation replaces a file's **entire content**; it does not patch. So when
|
|
158
158
|
you are updating a file that already exists:
|
|
159
159
|
|
|
160
160
|
1. Read the current content first (`GET /repos/{owner}/{repo}/contents/{path}?ref={branch}`,
|
|
@@ -174,13 +174,13 @@ its own resource and still **403 on any call that enumerates an organization or
|
|
|
174
174
|
org's repositories, the account's installations, every-app-in-the-org listings.
|
|
175
175
|
|
|
176
176
|
That 403 looks *exactly* like an expired, revoked, or wrong-scoped credential. It is neither.
|
|
177
|
-
Misreading it
|
|
177
|
+
Misreading it can cause a working credential to be
|
|
178
178
|
replaced.
|
|
179
179
|
|
|
180
180
|
The rule: **prefer per-resource endpoints over listings.** If you know the `owner/repo`, ask about
|
|
181
181
|
that repository directly. Resolve the identifier from the human, from a file already in the repo,
|
|
182
182
|
or from the conversation — never by listing the org and searching it. If you genuinely have no
|
|
183
|
-
identifier, ask
|
|
183
|
+
identifier, ask rather than guess the cause.
|
|
184
184
|
|
|
185
185
|
If a call does come back 401 or 403, **read the `authDiagnostic` field on the result before
|
|
186
186
|
reporting a bare failure**, follow the remedy it names, and retry at most **once**. There is
|
|
@@ -204,14 +204,14 @@ Answer one question first: **is this app source, or is it the site's rendered ou
|
|
|
204
204
|
|
|
205
205
|
| You want to… | Use |
|
|
206
206
|
|---|---|
|
|
207
|
-
| Add or update named files — a config file, a workflow, a script, a Dockerfile |
|
|
208
|
-
| Read anything at all from GitHub |
|
|
209
|
-
| Deploy the host's server through its deploy workflow |
|
|
210
|
-
| Start any other workflow, or follow a run |
|
|
211
|
-
| Back up the **site itself** (database, media, themes, plugins, settings) into a private repo |
|
|
212
|
-
| Publish the **site's rendered static export** into a repo |
|
|
213
|
-
|
|
214
|
-
Conflating the last row with the rest wastes real work.
|
|
207
|
+
| Add or update named files — a config file, a workflow, a script, a Dockerfile | write named repository files with confirmation |
|
|
208
|
+
| Read anything at all from GitHub | authenticated GitHub request (`GET`) |
|
|
209
|
+
| Deploy the host's server through its deploy workflow | start a deployment with platform `github-actions` — see "Which job is this?" above |
|
|
210
|
+
| Start any other workflow, or follow a run | authenticated GitHub request — see `references/actions.md` |
|
|
211
|
+
| Back up the **site itself** (database, media, themes, plugins, settings) into a private repo | preview a site backup, then publish the site backup — see `references/site-backup.md` |
|
|
212
|
+
| Publish the **site's rendered static export** into a repo | commit through source control — see `references/source-control.md` |
|
|
213
|
+
|
|
214
|
+
Conflating the last row with the rest wastes real work. commit through source control runs a
|
|
215
215
|
fresh static export of the site and commits the resulting HTML and assets, and it **deletes** paths
|
|
216
216
|
it previously wrote that the export no longer produces. It is a publishing target, not a way to put
|
|
217
217
|
a file in a repository. A container build needs app source, and a rendered export is not app
|
|
@@ -241,8 +241,8 @@ either tool for the first time in a task.
|
|
|
241
241
|
and telling the distinct failure signatures apart.
|
|
242
242
|
- `references/auth-and-tokens.md` — what a saved GitHub credential can and cannot do, scopes,
|
|
243
243
|
`authDiagnostic`, rate limits, and why repository secrets are the human's step.
|
|
244
|
-
- `references/source-control.md` —
|
|
245
|
-
|
|
244
|
+
- `references/source-control.md` — commit through source control versus
|
|
245
|
+
write named repository files with confirmation: two different credential stores, two different jobs, and the
|
|
246
246
|
app-source-versus-rendered-export distinction.
|
|
247
247
|
- `references/site-backup.md` — backing up the site itself: plan then push, private repositories
|
|
248
248
|
only, what the dialog shows, the limits, every code and what to tell the human, and why a refused
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# GitHub Actions: dispatch, follow, diagnose
|
|
2
2
|
|
|
3
|
-
Everything here goes through
|
|
3
|
+
Everything here goes through authenticated GitHub request against the saved GitHub credential.
|
|
4
4
|
Nothing here needs a new tool, and nothing here needs a shell.
|
|
5
5
|
|
|
6
6
|
---
|
|
@@ -20,7 +20,7 @@ Three facts, none of which you may guess:
|
|
|
20
20
|
And one check worth its single call: confirm the workflow is actually registered.
|
|
21
21
|
|
|
22
22
|
```
|
|
23
|
-
|
|
23
|
+
authenticated GitHub request({
|
|
24
24
|
label: "github",
|
|
25
25
|
method: "GET",
|
|
26
26
|
url: "https://api.github.com/repos/<owner>/<repo>/actions/workflows"
|
|
@@ -43,7 +43,7 @@ and on a day it is a month behind — the name cannot tell those two apart, and
|
|
|
43
43
|
unless you tell them. One GET turns the name into a fact:
|
|
44
44
|
|
|
45
45
|
```
|
|
46
|
-
|
|
46
|
+
authenticated GitHub request({
|
|
47
47
|
label: "github",
|
|
48
48
|
method: "GET",
|
|
49
49
|
url: "https://api.github.com/repos/<owner>/<repo>/branches/<ref>"
|
|
@@ -75,7 +75,7 @@ out is the human's call, and they can only make it if you have said what it is.
|
|
|
75
75
|
The runs list you will poll *after* the dispatch also answers a question worth asking *before* it:
|
|
76
76
|
|
|
77
77
|
```
|
|
78
|
-
|
|
78
|
+
authenticated GitHub request({
|
|
79
79
|
label: "github",
|
|
80
80
|
method: "GET",
|
|
81
81
|
url: "https://api.github.com/repos/<owner>/<repo>/actions/workflows/<file.yml>/runs?per_page=1"
|
|
@@ -99,7 +99,7 @@ than the conversation you are having, say the date out loud and let them draw th
|
|
|
99
99
|
## Dispatch
|
|
100
100
|
|
|
101
101
|
```
|
|
102
|
-
|
|
102
|
+
authenticated GitHub request({
|
|
103
103
|
label: "github",
|
|
104
104
|
method: "POST",
|
|
105
105
|
url: "https://api.github.com/repos/<owner>/<repo>/actions/workflows/<file.yml>/dispatches",
|
|
@@ -128,7 +128,7 @@ Never retry a 422 with a different guess. Fix the actual cause.
|
|
|
128
128
|
There is no callback and no webhook here. You poll.
|
|
129
129
|
|
|
130
130
|
```
|
|
131
|
-
|
|
131
|
+
authenticated GitHub request({
|
|
132
132
|
label: "github",
|
|
133
133
|
method: "GET",
|
|
134
134
|
url: "https://api.github.com/repos/<owner>/<repo>/actions/workflows/<file.yml>/runs?per_page=1"
|
|
@@ -164,7 +164,7 @@ honest "still in progress after N checks, here is the link" is a better answer t
|
|
|
164
164
|
Do not report "the workflow failed" and stop. Find the step.
|
|
165
165
|
|
|
166
166
|
```
|
|
167
|
-
|
|
167
|
+
authenticated GitHub request({
|
|
168
168
|
label: "github",
|
|
169
169
|
method: "GET",
|
|
170
170
|
url: "https://api.github.com/repos/<owner>/<repo>/actions/runs/<run_id>/jobs"
|
|
@@ -183,7 +183,7 @@ Report: the job name, the step name and number, and the run's `html_url`.
|
|
|
183
183
|
`GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs` does not return logs. It returns a **302**
|
|
184
184
|
whose `Location` points at an object-store host.
|
|
185
185
|
|
|
186
|
-
|
|
186
|
+
authenticated GitHub request follows **zero** redirects, and that object-store host is not on
|
|
187
187
|
the credential's saved allowlist, so you cannot follow it either. You will see the 302 and its
|
|
188
188
|
`Location` header, and that is where it ends. This is not a bug to work around — following an
|
|
189
189
|
arbitrary redirect target with a credential attached is exactly the egress hazard the single-hop
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
## Where the token lives, and why you never see it
|
|
4
4
|
|
|
5
|
-
Open
|
|
5
|
+
Open the secure connection card for the plugin’s own GitHub card. It saves label `github` and base URL `https://api.github.com`, with the token sealed server-side. Existing rows can still be rotated by their exact saved label.
|
|
6
6
|
|
|
7
7
|
You name the **label**. The server resolves the credential and injects the real `Authorization`
|
|
8
8
|
header itself. The token never appears in a tool's input, in a tool's output, or anywhere in your
|
|
9
9
|
context.
|
|
10
10
|
|
|
11
|
-
To discover what is saved,
|
|
11
|
+
To discover what is saved, list the saved credential labels. It returns
|
|
12
12
|
each credential's label, category, base URL, and additional hosts — never a token, and never a
|
|
13
13
|
saved username. An empty list is the signal to ask a human to save one, not to look for another
|
|
14
14
|
way in.
|
|
15
15
|
|
|
16
|
-
Two headers you must never set on
|
|
16
|
+
Two headers you must never set on authenticated GitHub request: `Authorization` and `Cookie`
|
|
17
17
|
(also `Host` and `Proxy-Authorization`). The server injects the real one, and a call trying to set
|
|
18
18
|
any of these is refused.
|
|
19
19
|
|
|
@@ -76,7 +76,7 @@ Organization secrets, environment secrets, and Dependabot secrets are all covere
|
|
|
76
76
|
**A 403 on an org-wide or account-wide listing endpoint is a normal permission boundary for an
|
|
77
77
|
app-scoped or repo-scoped token. It is not a broken credential.**
|
|
78
78
|
|
|
79
|
-
Misreading this
|
|
79
|
+
Misreading this can cause a perfectly good
|
|
80
80
|
credential replaced. A token scoped to one repository can fully manage that repository and still
|
|
81
81
|
403 on any call that enumerates an organization or an account.
|
|
82
82
|
|
|
@@ -101,20 +101,20 @@ path and fails only for `.github/workflows/…` is a scope problem, not a path p
|
|
|
101
101
|
|
|
102
102
|
## Reading `authDiagnostic`
|
|
103
103
|
|
|
104
|
-
A 401 or 403 response from
|
|
104
|
+
A 401 or 403 response from authenticated GitHub request carries an `authDiagnostic` object
|
|
105
105
|
alongside GitHub's untouched `bodyText`. **Read it before reporting a bare failure.**
|
|
106
106
|
|
|
107
107
|
- On a **401** where the scheme sent was `Bearer` and no username is stored, `hint` names the one
|
|
108
108
|
narrow guess the system is willing to make: this provider may need HTTP Basic with a saved
|
|
109
109
|
username. Treat it as a hypothesis. Ask the human for the username, save it with
|
|
110
|
-
|
|
110
|
+
update the saved credential username, retry **once**. Never invent a username, and never loop past
|
|
111
111
|
one retry.
|
|
112
112
|
- When a username is already stored, there is no hint — the cause is something else and unguessable.
|
|
113
113
|
- On a **403 there is no hint at all**, deliberately. 403 covers scopes, org policy, rate limits,
|
|
114
114
|
and missing headers; a Basic-auth guess there would be a false lead rather than a hedge. Report
|
|
115
115
|
the failure and GitHub's own message plainly.
|
|
116
116
|
|
|
117
|
-
If you suspect the credential itself,
|
|
117
|
+
If you suspect the credential itself, verify the saved credential checks one saved credential
|
|
118
118
|
against its own API, live, and reports `valid` / `invalid` / `unreachable`. **`unreachable` does
|
|
119
119
|
not mean the credential is bad** — it is a network failure. Do not tell a human to replace a token
|
|
120
120
|
over a DNS error.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Writing and updating files in a repository
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
write named repository files with confirmation is the only way to put a file in a GitHub repository from here.
|
|
4
4
|
Never shell out to `git`, and never hand-roll the Contents API through
|
|
5
|
-
|
|
5
|
+
authenticated GitHub request — this tool exists so you do not have to, and it carries a human
|
|
6
6
|
confirmation the raw API call would skip.
|
|
7
7
|
|
|
8
8
|
---
|
|
@@ -10,7 +10,7 @@ confirmation the raw API call would skip.
|
|
|
10
10
|
## The call
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
|
|
13
|
+
write named repository files with confirmation({
|
|
14
14
|
label: "github",
|
|
15
15
|
owner: "<owner>",
|
|
16
16
|
repo: "<repo>",
|
|
@@ -69,12 +69,12 @@ transient error to retry.
|
|
|
69
69
|
This is where the damage happens. Read `Rule 4` in `SKILL.md` first; this is the procedure it
|
|
70
70
|
requires.
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
**write named repository files with confirmation replaces a file's entire content. It does not patch.** Whatever
|
|
73
73
|
you do not carry forward is gone.
|
|
74
74
|
|
|
75
75
|
1. **Read what is actually there.**
|
|
76
76
|
```
|
|
77
|
-
|
|
77
|
+
authenticated GitHub request({
|
|
78
78
|
label: "github",
|
|
79
79
|
method: "GET",
|
|
80
80
|
url: "https://api.github.com/repos/<owner>/<repo>/contents/<path>?ref=<branch>"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Backing up the site itself to a private repository
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
preview a site backup and publish the site backup copy **this site** into one folder of a private GitHub
|
|
4
4
|
repository, in one commit: its database, media, themes, installed plugins and skills, and settings.
|
|
5
|
-
Both are native host tools. They push with the same saved credential
|
|
6
|
-
the plugin’s card:
|
|
5
|
+
Both are native host tools. They push with the same saved credential saved-credential operations uses:
|
|
6
|
+
the plugin’s card: open the secure connection card.
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -13,12 +13,12 @@ Three tools can put the site's things in a repository. They do three different j
|
|
|
13
13
|
|
|
14
14
|
| The human wants… | Use |
|
|
15
15
|
|---|---|
|
|
16
|
-
| A copy of the site itself (content, members, media, settings) to keep or restore from |
|
|
17
|
-
| The site's **rendered** HTML published into a repository (Pages, a static host) |
|
|
18
|
-
| A few named files: a config, a workflow, a script |
|
|
16
|
+
| A copy of the site itself (content, members, media, settings) to keep or restore from | preview a site backup, then publish the site backup |
|
|
17
|
+
| The site's **rendered** HTML published into a repository (Pages, a static host) | commit through source control — see `source-control.md` |
|
|
18
|
+
| A few named files: a config, a workflow, a script | write named repository files with confirmation — see `repo-files.md` |
|
|
19
19
|
|
|
20
20
|
The rendered export holds no database. It is what the site *looks like*, not the site, and nothing
|
|
21
|
-
can be restored from it. Going the other way,
|
|
21
|
+
can be restored from it. Going the other way, write named repository files with confirmation cannot carry a backup:
|
|
22
22
|
25 files and 1 MiB each, and every byte would pass through your context. The database holds members
|
|
23
23
|
and admin accounts, so that is not a size problem. It is a reason never to try.
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ and admin accounts, so that is not a size problem. It is a reason never to try.
|
|
|
27
27
|
## Plan, then push
|
|
28
28
|
|
|
29
29
|
```
|
|
30
|
-
|
|
30
|
+
preview a site backup({
|
|
31
31
|
owner: "<owner>",
|
|
32
32
|
repo: "<repo>",
|
|
33
33
|
// all optional:
|
|
@@ -49,7 +49,7 @@ already exists (it will be replaced). Also what is included, the file count and
|
|
|
49
49
|
anything in `skipped` or `notes`. Then:
|
|
50
50
|
|
|
51
51
|
```
|
|
52
|
-
|
|
52
|
+
publish the site backup({ planId: "<planId>" })
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
**No dialog: the push starts at once.** The plan you showed is the human's review, so show it
|
|
@@ -59,12 +59,12 @@ the first upload.
|
|
|
59
59
|
A large site can take longer than one call. The push waits about 4 minutes; if the upload is still
|
|
60
60
|
running then, it returns `{ pushed: false, cancelled: false, inProgress: true, planId, progress,
|
|
61
61
|
message }`, where `progress` is `{ filesDone, filesTotal, bytesDone, bytesTotal }`. Tell the human
|
|
62
|
-
how far it got, then **
|
|
62
|
+
how far it got, then **publish the site backup again with the same `planId`** to keep waiting. That
|
|
63
63
|
does not start a second upload, and nothing is committed until every file is up: the backup is
|
|
64
64
|
still one commit. Keep re-calling while it answers `inProgress`.
|
|
65
65
|
|
|
66
66
|
The `planId` is used up when its push finishes, whatever the outcome. After a failure, a second
|
|
67
|
-
attempt starts with a fresh
|
|
67
|
+
attempt starts with a fresh preview a site backup. A server restart drops a running push; nothing is
|
|
68
68
|
committed, so plan again.
|
|
69
69
|
|
|
70
70
|
GitHub hiccups (a timeout, a 5xx, a rate limit) are retried inside the push with backoff, up to 5
|
|
@@ -88,7 +88,7 @@ The repository must also **already have one commit**. An empty repository is ref
|
|
|
88
88
|
| Result | Meaning |
|
|
89
89
|
|---|---|
|
|
90
90
|
| `{ pushed: true, commitSha, commitUrl, repository, branch, folder, filesWritten, totalBytes }` | Written. Report the SHA and URL. |
|
|
91
|
-
| `{ pushed: false, cancelled: false, inProgress: true, planId, progress, message }` | Still uploading. Report the progress, then
|
|
91
|
+
| `{ pushed: false, cancelled: false, inProgress: true, planId, progress, message }` | Still uploading. Report the progress, then publish the site backup again with the same `planId`. |
|
|
92
92
|
| `{ pushed: false, cancelled: false, reason: "abandoned" }` | The run ended while the push was waiting. The upload stopped and nothing was committed. Plan again. |
|
|
93
93
|
| `{ pushed: false, cancelled: false, code, message }` | Refused. See the codes below. Nothing was written. |
|
|
94
94
|
|
|
@@ -123,7 +123,7 @@ own.
|
|
|
123
123
|
|
|
124
124
|
| Code | What it means | What to tell them |
|
|
125
125
|
|---|---|---|
|
|
126
|
-
| `CREDENTIAL_NOT_FOUND` | No saved credential has that label, or none points at `https://api.github.com` | Open
|
|
126
|
+
| `CREDENTIAL_NOT_FOUND` | No saved credential has that label, or none points at `https://api.github.com` | Open the secure connection card, or name the right label with `credential`. Never have a token typed into the chat. |
|
|
127
127
|
| `CREDENTIAL_AMBIGUOUS` | More than one saved credential points at GitHub | Ask which one, then plan with `credential` |
|
|
128
128
|
| `CREDENTIAL_UNREADABLE` | The credential **is saved** but this server cannot decrypt it | Not a bad GitHub token, so replacing it is the wrong first move. It starts with the **Site key**, and the message names which case applies. No Site key: start the host with it (the host guidance names how). Malformed: fix it in the host's Site key setting. A different Site key from the one the credential was saved under: check that setting, or save the credential again. |
|
|
129
129
|
| `REPOSITORY_NOT_FOUND` | This credential cannot see that `owner/repo` | Confirm the names, then the token's repository access |
|
|
@@ -147,13 +147,13 @@ own.
|
|
|
147
147
|
|
|
148
148
|
## Never force
|
|
149
149
|
|
|
150
|
-
|
|
150
|
+
publish the site backup has no force option, and every write it makes is a **non-force** ref update on
|
|
151
151
|
top of the exact commit the plan saw. That is why `DIVERGED_BRANCH` is a refusal, not a lost commit.
|
|
152
152
|
|
|
153
153
|
So when a push is refused because the world moved (`PLAN_EXPIRED`, `PLAN_STALE`,
|
|
154
154
|
`DIVERGED_BRANCH`), the answer is always **plan again** and show the human the new plan. Never force
|
|
155
|
-
the branch through
|
|
156
|
-
rebuild the backup out of
|
|
155
|
+
the branch through authenticated GitHub request, never delete and recreate the branch, and never
|
|
156
|
+
rebuild the backup out of write named repository files with confirmation calls. Each of these would throw away
|
|
157
157
|
someone else's commit, or push content the human never reviewed.
|
|
158
158
|
|
|
159
159
|
There is no restore tool unless the host guidance names one. Do not promise one.
|