Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 13 additions & 32 deletions .github/workflows/release-vscode-companion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,46 +87,27 @@ jobs:

- name: 'Get the version'
id: 'version'
working-directory: 'packages/vscode-ide-companion'
run: |
# Get the base version from package.json regardless of scenario
BASE_VERSION=$(node -p "require('./package.json').version")

VERSION_ARGS=()
if [[ "${IS_PREVIEW}" == "true" ]]; then
# Generate preview version. If a manual version is provided and already
# contains -preview.<id>, use it as-is (no timestamp). Otherwise, append
# a timestamp for uniqueness.
VERSION_ARGS+=(--type=preview)
if [[ -n "${MANUAL_VERSION}" ]]; then
MANUAL_CLEAN="${MANUAL_VERSION#v}" # Remove 'v' prefix if present
if [[ "${MANUAL_CLEAN}" == *"-preview."* ]]; then
PREVIEW_VERSION="${MANUAL_CLEAN}"
else
PREVIEW_BASE="${MANUAL_CLEAN%%-*}" # Strip any prerelease/build
TIMESTAMP=$(date +%Y%m%d%H%M%S)
PREVIEW_VERSION="${PREVIEW_BASE}-preview.${TIMESTAMP}"
fi
else
TIMESTAMP=$(date +%Y%m%d%H%M%S)
PREVIEW_VERSION="${BASE_VERSION}-preview.${TIMESTAMP}"
VERSION_ARGS+=("--preview_version_override=${MANUAL_VERSION}")
fi

RELEASE_TAG="${PREVIEW_VERSION}"

echo "RELEASE_TAG=${RELEASE_TAG}" >> "$GITHUB_OUTPUT"
echo "RELEASE_VERSION=${PREVIEW_VERSION}" >> "$GITHUB_OUTPUT"
echo "VSCODE_TAG=preview" >> "$GITHUB_OUTPUT"
else
# Use specified version or get from package.json
VERSION_ARGS+=(--type=stable)
if [[ -n "${MANUAL_VERSION}" ]]; then
RELEASE_VERSION="${MANUAL_VERSION#v}" # Remove 'v' prefix if present
RELEASE_TAG="${MANUAL_VERSION#v}" # Remove 'v' prefix if present
else
RELEASE_VERSION="${BASE_VERSION}"
RELEASE_TAG="${BASE_VERSION}"
VERSION_ARGS+=("--stable_version_override=${MANUAL_VERSION}")
fi
fi

VERSION_JSON=$(node scripts/get-release-version.js "${VERSION_ARGS[@]}")
echo "RELEASE_TAG=$(echo "$VERSION_JSON" | jq -r .releaseTag)" >> "$GITHUB_OUTPUT"
echo "RELEASE_VERSION=$(echo "$VERSION_JSON" | jq -r .releaseVersion)" >> "$GITHUB_OUTPUT"

echo "RELEASE_TAG=${RELEASE_TAG}" >> "$GITHUB_OUTPUT"
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> "$GITHUB_OUTPUT"
if [[ "${IS_PREVIEW}" == "true" ]]; then
echo "VSCODE_TAG=preview" >> "$GITHUB_OUTPUT"
else
echo "VSCODE_TAG=latest" >> "$GITHUB_OUTPUT"
fi
env:
Expand Down
12 changes: 6 additions & 6 deletions packages/core/src/tools/memoryTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const memoryToolSchemaData: FunctionDeclaration = {
scope: {
type: 'string',
description:
'Where to save the memory: "global" saves to user-level ~/.qwen/QWEN.md (shared across all projects), "project" saves to current project\'s QWEN.md (project-specific). If not specified, will prompt user to choose.',
'Where to save the memory: "global" saves to user-level ~/.qwen/AGENTS.md (shared across all projects), "project" saves to current project\'s AGENTS.md (project-specific). If not specified, will prompt user to choose.',
enum: ['global', 'project'],
},
},
Expand All @@ -70,19 +70,19 @@ Do NOT use this tool:

- \`fact\` (string, required): The specific fact or piece of information to remember. This should be a clear, self-contained statement. For example, if the user says "My favorite color is blue", the fact would be "My favorite color is blue".
- \`scope\` (string, optional): Where to save the memory:
- "global": Saves to user-level ~/.qwen/QWEN.md (shared across all projects)
- "project": Saves to current project's QWEN.md (project-specific)
- "global": Saves to user-level ~/.qwen/AGENTS.md (shared across all projects)
- "project": Saves to current project's AGENTS.md (project-specific)
- If not specified, the tool will ask the user where they want to save the memory.
`;

export const QWEN_CONFIG_DIR = '.qwen';
export const DEFAULT_CONTEXT_FILENAME = 'QWEN.md';
export const DEFAULT_CONTEXT_FILENAME = 'AGENTS.md';
export const AGENT_CONTEXT_FILENAME = 'AGENTS.md';
export const MEMORY_SECTION_HEADER = '## Qwen Added Memories';

// This variable will hold the currently configured filename for context files.
// It defaults to include both QWEN.md and AGENTS.md but can be overridden by setGeminiMdFilename.
// QWEN.md is first to maintain backward compatibility (used by /init command and save_memory tool).
// It defaults to include both AGENTS.md and QWEN.md but can be overridden by setGeminiMdFilename.
// AGENTS.md is first as the new default, QWEN.md is kept for backward compatibility.
let currentGeminiMdFilename: string | string[] = [
DEFAULT_CONTEXT_FILENAME,
AGENT_CONTEXT_FILENAME,
Expand Down
Loading