Skip to content

Commit 22a798b

Browse files
committed
Merge branch 'main' into good-spinner
2 parents 780cb4c + ec432f9 commit 22a798b

53 files changed

Lines changed: 4382 additions & 103 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/afraid-pets-notice.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clack/core": minor
3+
---
4+
5+
Remove unused `debug` option key.

.changeset/cool-parrots-throw.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/huge-items-throw.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/ninety-seals-teach.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@clack/prompts": minor
3+
"@clack/core": minor
4+
---
5+
6+
Add new multiline prompt for multi-line text input.

.github/workflows/detect-agent.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Detect Agent
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
workflow_dispatch: {}
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
detect:
14+
if: github.event_name != 'workflow_dispatch'
15+
uses: bombshell-dev/automation/.github/workflows/detect-agent.yml@main
16+
17+
backfill:
18+
if: github.event_name == 'workflow_dispatch'
19+
uses: bombshell-dev/automation/.github/workflows/detect-agent-backfill.yml@main

.github/workflows/format.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ jobs:
1010
format:
1111
if: github.repository_owner == 'bombshell-dev'
1212
uses: bombshell-dev/automation/.github/workflows/format.yml@main
13+
permissions:
14+
contents: write
15+
pull-requests: write
1316
secrets: inherit

.github/workflows/preview.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ on:
77
pull_request:
88
workflow_dispatch:
99

10+
1011
jobs:
1112
preview:
1213
if: github.repository_owner == 'bombshell-dev'
1314
uses: bombshell-dev/automation/.github/workflows/preview.yml@main
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
id-token: write
1419
with:
1520
publish: "./packages/*"
1621
template: "./examples/*"

examples/basic/date.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import * as p from '@clack/prompts';
2+
import color from 'picocolors';
3+
4+
async function main() {
5+
const result = (await p.date({
6+
message: color.magenta('Pick a date'),
7+
format: 'YMD',
8+
minDate: new Date('2026-01-01'),
9+
maxDate: new Date('2026-12-31'),
10+
})) as Date;
11+
12+
if (p.isCancel(result)) {
13+
p.cancel('Operation cancelled.');
14+
process.exit(0);
15+
}
16+
17+
const fmt = (d: Date) => d.toISOString().slice(0, 10);
18+
p.outro(`Selected date: ${color.cyan(fmt(result))}`);
19+
}
20+
21+
main().catch(console.error);

examples/basic/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"progress": "jiti ./progress.ts",
1515
"spinner": "jiti ./spinner.ts",
1616
"path": "jiti ./path.ts",
17+
"date": "jiti ./date.ts",
1718
"spinner-ci": "npx cross-env CI=\"true\" jiti ./spinner-ci.ts",
1819
"spinner-timer": "jiti ./spinner-timer.ts",
1920
"task-log": "jiti ./task-log.ts"

examples/changesets/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async function main() {
7070
}
7171
);
7272

73-
const message = await p.text({
73+
const message = await p.multiline({
7474
placeholder: 'Summary',
7575
message: 'Please enter a summary for this change',
7676
});

0 commit comments

Comments
 (0)