feat: changed find tool to include hidden files by default, added test job to publish workflow
- Changed default for `hidden` option in find tool from `false` to `true`, now including hidden files by default. - Added test job to publish workflow that runs before build.
This commit is contained in:
@@ -20,8 +20,30 @@ permissions:
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RELEASE_TAG: ${{ github.event.inputs.tag || github.ref_name }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ env.RELEASE_TAG }}
|
||||
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: latest
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install
|
||||
|
||||
- name: Run tests
|
||||
run: bun test
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
env:
|
||||
RELEASE_TAG: ${{ github.event.inputs.tag || github.ref_name }}
|
||||
steps:
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
|
||||
- Changed default for `hidden` option in find tool from `false` to `true`, now including hidden files by default
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed serialized auth storage initialization so OAuth refreshes in subagents don't crash
|
||||
@@ -2204,4 +2209,4 @@ Initial public release.
|
||||
- Git branch display in footer
|
||||
- Message queueing during streaming responses
|
||||
- OAuth integration for Gmail and Google Calendar access
|
||||
- HTML export with syntax highlighting and collapsible sections
|
||||
- HTML export with syntax highlighting and collapsible sections
|
||||
@@ -20,7 +20,7 @@ const findSchema = Type.Object({
|
||||
}),
|
||||
path: Type.Optional(Type.String({ description: "Directory to search in (default: current directory)" })),
|
||||
limit: Type.Optional(Type.Number({ description: "Maximum number of results (default: 1000)" })),
|
||||
hidden: Type.Optional(Type.Boolean({ description: "Include hidden files (default: false)" })),
|
||||
hidden: Type.Optional(Type.Boolean({ description: "Include hidden files (default: true)" })),
|
||||
sortByMtime: Type.Optional(
|
||||
Type.Boolean({ description: "Sort results by modification time, most recent first (default: false)" }),
|
||||
),
|
||||
@@ -143,7 +143,7 @@ export function createFindTool(session: ToolSession, options?: FindToolOptions):
|
||||
})();
|
||||
const effectiveLimit = limit ?? DEFAULT_LIMIT;
|
||||
const effectiveType = type ?? "all";
|
||||
const includeHidden = hidden ?? false;
|
||||
const includeHidden = hidden ?? true;
|
||||
const shouldSortByMtime = sortByMtime ?? false;
|
||||
|
||||
// If custom operations provided with glob, use that instead of fd
|
||||
|
||||
Reference in New Issue
Block a user