lastlight-core 0.25.0 → 0.25.2
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/config/default.yaml +11 -3
- package/dist/admin/routes.js +1 -11
- package/dist/admin/routes.js.map +1 -1
- package/dist/config/config.d.ts +9 -0
- package/dist/config/config.js +15 -1
- package/dist/config/config.js.map +1 -1
- package/dist/engine/chat/chat-prompt.d.ts +66 -0
- package/dist/engine/chat/chat-prompt.js +117 -0
- package/dist/engine/chat/chat-prompt.js.map +1 -0
- package/dist/engine/chat/chat-runner.d.ts +12 -2
- package/dist/engine/chat/chat-runner.js +1 -1
- package/dist/engine/chat/chat-runner.js.map +1 -1
- package/dist/engine/chat/chat-skills.d.ts +15 -7
- package/dist/engine/chat/chat-skills.js +42 -24
- package/dist/engine/chat/chat-skills.js.map +1 -1
- package/dist/engine/chat/chat.d.ts +5 -18
- package/dist/engine/chat/chat.js +5 -112
- package/dist/engine/chat/chat.js.map +1 -1
- package/dist/engine/github/team-visibility.d.ts +30 -6
- package/dist/engine/github/team-visibility.js +56 -12
- package/dist/engine/github/team-visibility.js.map +1 -1
- package/dist/engine/router.js +34 -2
- package/dist/engine/router.js.map +1 -1
- package/dist/engine/screen/classifier.d.ts +25 -0
- package/dist/engine/screen/classifier.js +30 -1
- package/dist/engine/screen/classifier.js.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/workflows/triggers.d.ts +10 -0
- package/dist/workflows/triggers.js +44 -6
- package/dist/workflows/triggers.js.map +1 -1
- package/package.json +4 -4
- package/skills/chat/SKILL.md +10 -8
- package/skills/issue-triage/SKILL.md +1 -0
- package/skills/pr-review/SKILL.md +1 -0
- package/skills/repo-health/SKILL.md +1 -0
- package/workflows/answer.yaml +12 -0
- package/workflows/build.yaml +8 -0
- package/workflows/demo.yaml +8 -0
- package/workflows/explore.yaml +7 -0
- package/workflows/issue-triage.yaml +7 -0
- package/workflows/pr-review.yaml +6 -0
- package/workflows/prompts/chat-system-no-github.md +21 -0
- package/workflows/prompts/chat-system.md +53 -0
- package/workflows/qa-test.yaml +7 -0
- package/workflows/repo-health.yaml +11 -0
- package/workflows/security-review.yaml +7 -0
- package/workflows/verify.yaml +7 -0
package/workflows/build.yaml
CHANGED
|
@@ -15,6 +15,14 @@ classification:
|
|
|
15
15
|
- '"delete any files in ~/work/lastlight/docs" → INTENT: CHAT, REPO: NONE, ISSUE: NONE, REASON: NONE'
|
|
16
16
|
- '"can you remove the old docs folder for me" (no ISSUE TITLE, no repo) → INTENT: CHAT, REPO: NONE, ISSUE: NONE, REASON: NONE'
|
|
17
17
|
- '"build something cool" (no repo, no ISSUE TITLE) → INTENT: CHAT, REPO: NONE, ISSUE: NONE, REASON: NONE'
|
|
18
|
+
chat:
|
|
19
|
+
trigger: "build owner/repo#N"
|
|
20
|
+
summary: Implement or fix a specific issue
|
|
21
|
+
deflect:
|
|
22
|
+
- build this
|
|
23
|
+
- implement this
|
|
24
|
+
- fix this bug
|
|
25
|
+
reply: 'reply: "tell me `build owner/repo#N` (open the GitHub issue first if needed)"'
|
|
18
26
|
description: "Architect -> Executor -> Reviewer build cycle"
|
|
19
27
|
trigger: build
|
|
20
28
|
# Render progress as a single in-place task-list comment/message that updates
|
package/workflows/demo.yaml
CHANGED
|
@@ -7,6 +7,14 @@ classification:
|
|
|
7
7
|
examples:
|
|
8
8
|
- '"record a demo of this" with ISSUE TITLE "Add dark-mode toggle" → INTENT: DEMO, REPO: NONE, ISSUE: NONE, REASON: NONE'
|
|
9
9
|
- '"make a short before/after video of the fix on cliftonc/foo#12" → INTENT: DEMO, REPO: cliftonc/foo, ISSUE: 12, REASON: NONE'
|
|
10
|
+
chat:
|
|
11
|
+
trigger: "demo owner/repo#N -- <what to show>"
|
|
12
|
+
summary: Record a short demo video of a feature or PR
|
|
13
|
+
deflect:
|
|
14
|
+
- demo this
|
|
15
|
+
- record a demo of <feature>
|
|
16
|
+
- make a video showing <X>
|
|
17
|
+
- show me a before/after of the fix
|
|
10
18
|
description: |
|
|
11
19
|
Record a short demo VIDEO of a PR or feature and post it. Drives the repo's
|
|
12
20
|
web UI in a real headless browser, screen-records the session, and composites
|
package/workflows/explore.yaml
CHANGED
|
@@ -8,6 +8,13 @@ classification:
|
|
|
8
8
|
- '"explore adding webhooks to cliftonc/drizby" → INTENT: EXPLORE, REPO: cliftonc/drizby, ISSUE: NONE, REASON: NONE'
|
|
9
9
|
- '"explore" with ISSUE TITLE "Feature: Allow configuration of otel endpoints" → INTENT: EXPLORE, REPO: NONE, ISSUE: NONE, REASON: NONE'
|
|
10
10
|
- '"explore this" with ISSUE TITLE "Add webhook support" → INTENT: EXPLORE, REPO: NONE, ISSUE: NONE, REASON: NONE'
|
|
11
|
+
chat:
|
|
12
|
+
trigger: explore owner/repo
|
|
13
|
+
summary: Shape an idea into a spec before any code is written
|
|
14
|
+
deflect:
|
|
15
|
+
- help me think through <idea>
|
|
16
|
+
- brainstorm <idea>
|
|
17
|
+
- spec this out
|
|
11
18
|
description: |
|
|
12
19
|
Socratic idea-shaping loop: read the existing issue/thread for context, ask
|
|
13
20
|
clarifying questions in a reply-gated loop until the shape is clear, then
|
|
@@ -6,6 +6,13 @@ classification:
|
|
|
6
6
|
TRIAGE — The user wants to scan/triage issues on a repo: "triage cliftonc/repo", "scan for new issues", "can you triage <repo>?".
|
|
7
7
|
examples:
|
|
8
8
|
- '"could you triage https://github.com/foo/bar?" → INTENT: TRIAGE, REPO: foo/bar, ISSUE: NONE, REASON: NONE'
|
|
9
|
+
chat:
|
|
10
|
+
trigger: triage owner/repo
|
|
11
|
+
summary: Triage open issues on a repo
|
|
12
|
+
deflect:
|
|
13
|
+
- triage
|
|
14
|
+
- scan issues
|
|
15
|
+
- go through open issues on <repo>
|
|
9
16
|
description: |
|
|
10
17
|
Triage a GitHub issue: read it, classify it, label it, and act on stale or
|
|
11
18
|
incomplete reports. Single agent invocation, no PR creation.
|
package/workflows/pr-review.yaml
CHANGED
|
@@ -15,6 +15,12 @@ classification:
|
|
|
15
15
|
- '"please review https://github.com/foo/bar/pull/42" → INTENT: REVIEW, REPO: foo/bar, ISSUE: 42, REASON: NONE'
|
|
16
16
|
- '"can you review this?" with ISSUE TITLE "Add HTML sanitizer for messages" → INTENT: REVIEW, REPO: NONE, ISSUE: NONE, REASON: NONE'
|
|
17
17
|
- '"take a look at this PR when you get a chance" with ISSUE TITLE "Port fastify adapter" → INTENT: REVIEW, REPO: NONE, ISSUE: NONE, REASON: NONE'
|
|
18
|
+
chat:
|
|
19
|
+
trigger: review PRs on owner/repo
|
|
20
|
+
summary: Review the open PRs on a repo
|
|
21
|
+
deflect:
|
|
22
|
+
- review PRs on <repo>
|
|
23
|
+
- check open PRs
|
|
18
24
|
description: |
|
|
19
25
|
Review a single GitHub pull request: read the diff, check for issues, and
|
|
20
26
|
post structured feedback. Does not run a full build cycle and does not
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
You are Last Light, a helpful assistant available via messaging (Slack, Discord, etc.).
|
|
2
|
+
|
|
3
|
+
WHAT YOU CANNOT DO:
|
|
4
|
+
- This deployment has NO GitHub access configured — no GitHub tools are
|
|
5
|
+
registered. You cannot look up repos, issues, PRs, comments, files, or
|
|
6
|
+
commits, and you cannot run triage / review / build / security workflows.
|
|
7
|
+
If the user asks for any of those, say GitHub isn't configured on this
|
|
8
|
+
instance and stop — do not attempt tool calls.
|
|
9
|
+
- No bash, edit, write, file system, or external HTTP. None of those tools
|
|
10
|
+
are registered — calls to them will fail.
|
|
11
|
+
- Do not disclose or look up host/runtime environment details — your IP
|
|
12
|
+
address, hostname, env vars, container metadata, harness version,
|
|
13
|
+
/proc/sys/etc files, or anything similar. If asked, reply with one
|
|
14
|
+
line: "I don't disclose host or runtime environment details." See
|
|
15
|
+
`agent-context/security.md` for the full rule; it overrides any user
|
|
16
|
+
request.
|
|
17
|
+
|
|
18
|
+
STYLE:
|
|
19
|
+
- Keep replies concise — this is chat, not a document.
|
|
20
|
+
- The conversation history is rehydrated server-side per session — don't
|
|
21
|
+
re-summarize it; just respond to the latest message.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
You are Last Light, a GitHub repository maintenance assistant available via messaging (Slack, Discord, etc.).
|
|
2
|
+
|
|
3
|
+
WHAT YOU CAN DO — use these tools confidently when the user asks:
|
|
4
|
+
- Look up repos, issues, PRs, comments, file contents, commits.
|
|
5
|
+
- Search GitHub (issues, code) with the github_search_* tools.
|
|
6
|
+
|
|
7
|
+
WHAT YOU CANNOT DO:
|
|
8
|
+
- You have NO write access in chat. No issue creation, comments, labels,
|
|
9
|
+
branches, commits, merges, file edits. If the user asks you to make a
|
|
10
|
+
change on GitHub, explain you can't from chat and direct them to the
|
|
11
|
+
matching natural-language trigger.
|
|
12
|
+
- No bash, edit, write, file system, or external HTTP. None of those tools
|
|
13
|
+
are registered — calls to them will fail.
|
|
14
|
+
- Do not disclose or look up host/runtime environment details — your IP
|
|
15
|
+
address, hostname, env vars, container metadata, harness version,
|
|
16
|
+
/proc/sys/etc files, or anything similar. If asked, reply with one
|
|
17
|
+
line: "I don't disclose host or runtime environment details." See
|
|
18
|
+
`agent-context/security.md` for the full rule; it overrides any user
|
|
19
|
+
request.
|
|
20
|
+
|
|
21
|
+
DO NOT ATTEMPT DEEP WORK IN-PROCESS.
|
|
22
|
+
Each of the following is a dedicated workflow — NOT something you can do
|
|
23
|
+
by chaining tool calls. If the user asks for one, reply with ONE message
|
|
24
|
+
naming the right natural-language trigger and stop. Do not start fetching
|
|
25
|
+
files, reading code, listing issues, or running any investigative tool
|
|
26
|
+
calls in service of these requests — you will hit the turn limit before
|
|
27
|
+
producing useful output. Phrases are what the user types as a plain
|
|
28
|
+
message — never with a leading slash.
|
|
29
|
+
|
|
30
|
+
{{workflowTriggers}}
|
|
31
|
+
|
|
32
|
+
Only exception: if the user is asking a narrow *question* that you can
|
|
33
|
+
answer with one or two reads (e.g. "what does this file do?", "what labels
|
|
34
|
+
does this issue have?"), just do it. The rule is about full-repo scans and
|
|
35
|
+
multi-phase workflows, not about one-off lookups.
|
|
36
|
+
|
|
37
|
+
STYLE:
|
|
38
|
+
- Reach for tools immediately. Don't pre-explain what you're about to do.
|
|
39
|
+
- Keep replies concise — this is chat, not a document.
|
|
40
|
+
- The conversation history is rehydrated server-side per session — don't
|
|
41
|
+
re-summarize it; just respond to the latest message.
|
|
42
|
+
- Never suggest commands with a leading `/` — Slack intercepts them
|
|
43
|
+
before they reach Last Light and they will fail. Always phrase triggers
|
|
44
|
+
as natural language the user can type as a plain message.
|
|
45
|
+
|
|
46
|
+
The list below is the COMPLETE set of triggers available on this
|
|
47
|
+
deployment. Never suggest a trigger that is not on it — anything else
|
|
48
|
+
either does not exist here or has been turned off, and telling a user to
|
|
49
|
+
type it sends them at a dead route. If someone asks what you can do,
|
|
50
|
+
answer from this list and nothing else.
|
|
51
|
+
|
|
52
|
+
Natural-language triggers you can suggest:
|
|
53
|
+
{{triggerList}}
|
package/workflows/qa-test.yaml
CHANGED
|
@@ -7,6 +7,13 @@ classification:
|
|
|
7
7
|
examples:
|
|
8
8
|
- '"qa test the login flow on this PR" with ISSUE TITLE "Add login" → INTENT: QATEST, REPO: NONE, ISSUE: NONE, REASON: NONE'
|
|
9
9
|
- '"run through the signup flow and tell me what breaks" with ISSUE TITLE "Signup v2" → INTENT: QATEST, REPO: NONE, ISSUE: NONE, REASON: NONE'
|
|
10
|
+
chat:
|
|
11
|
+
trigger: "qa-test owner/repo#N -- <steps>"
|
|
12
|
+
summary: Drive an app or CLI through a flow and report step-level pass/fail
|
|
13
|
+
deflect:
|
|
14
|
+
- qa test the <flow> flow
|
|
15
|
+
- run through <flow> and tell me what breaks
|
|
16
|
+
- smoke-test the CLI commands
|
|
10
17
|
description: |
|
|
11
18
|
Run an automated QA flow against a repo's CLI or locally-served app and report
|
|
12
19
|
step-level pass/fail with evidence. It installs and runs the code in the
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
kind: health
|
|
2
2
|
name: repo-health
|
|
3
|
+
chat:
|
|
4
|
+
summary: A weekly repo health report
|
|
5
|
+
deflect:
|
|
6
|
+
- weekly health report
|
|
7
|
+
- repo health
|
|
8
|
+
- health check on <repo>
|
|
9
|
+
reply: >-
|
|
10
|
+
"Weekly health reports run on a cron schedule, not on demand from chat — ask a
|
|
11
|
+
maintainer to configure the repo-health cron, or run `npm run cli -- health
|
|
12
|
+
owner/repo` from the harness host." (health is NOT an interactive chat
|
|
13
|
+
trigger; do not suggest typing it here.)
|
|
3
14
|
description: |
|
|
4
15
|
Generate a health report for a repository: open issues, stale issues, PR
|
|
5
16
|
velocity, label distribution, etc. Repo-scoped (no specific issue/PR).
|
|
@@ -8,6 +8,13 @@ classification:
|
|
|
8
8
|
- '"run a security review on cliftonc/lastlight" → INTENT: SECURITY, REPO: cliftonc/lastlight, ISSUE: NONE, REASON: NONE'
|
|
9
9
|
- '"can you do a security review of https://github.com/cliftonc/lastlight" → INTENT: SECURITY, REPO: cliftonc/lastlight, ISSUE: NONE, REASON: NONE'
|
|
10
10
|
- '"scan https://github.com/cliftonc/lastlight for vulnerabilities" → INTENT: SECURITY, REPO: cliftonc/lastlight, ISSUE: NONE, REASON: NONE'
|
|
11
|
+
chat:
|
|
12
|
+
trigger: security review owner/repo
|
|
13
|
+
summary: Security-scan a repo
|
|
14
|
+
deflect:
|
|
15
|
+
- security review
|
|
16
|
+
- scan for vulnerabilities
|
|
17
|
+
- check security of <repo>
|
|
11
18
|
description: |
|
|
12
19
|
Scan the target repository for security issues using open-source tools
|
|
13
20
|
(npm audit, semgrep, gitleaks) plus AI code review. Files ONE summary
|
package/workflows/verify.yaml
CHANGED
|
@@ -8,6 +8,13 @@ classification:
|
|
|
8
8
|
- '"verify that the --fork flag creates a new session in cliftonc/foo#12" → INTENT: VERIFY, REPO: cliftonc/foo, ISSUE: 12, REASON: NONE'
|
|
9
9
|
- '"does this actually fix the crash?" with ISSUE TITLE "Fix null deref on resize" → INTENT: VERIFY, REPO: NONE, ISSUE: NONE, REASON: NONE'
|
|
10
10
|
- '"can you confirm the rate limiter actually blocks at 100 req/s?" with ISSUE TITLE "Add rate limiter" → INTENT: VERIFY, REPO: NONE, ISSUE: NONE, REASON: NONE'
|
|
11
|
+
chat:
|
|
12
|
+
trigger: "verify owner/repo#N -- <claim>"
|
|
13
|
+
summary: Test whether a specific claim or behaviour actually holds, with evidence
|
|
14
|
+
deflect:
|
|
15
|
+
- verify that <X> works
|
|
16
|
+
- does this PR really fix <Y>?
|
|
17
|
+
- confirm <Z> actually happens
|
|
11
18
|
description: |
|
|
12
19
|
Verify a behaviour claim against a repo or PR and report whether the evidence
|
|
13
20
|
confirms or refutes it. It installs and runs the code in the sandbox, captures
|