- Move the TypeScript project under scripts/ (src, tsconfig, package.json, pnpm lockfile/workspace, canonical .gitignore); drop the npm package-lock - Add scripts/Taskfile.yml aggregator plus .scripts modules (loggers, base, cli) with build, run, and validate tasks - Move the six SKILL-*.md docs into references/ with kebab names and extract the connector-routing sections from SKILL.md into references/routing-best-practices.md (SKILL.md 666 -> ~310 lines) - Add license/metadata/compatibility frontmatter, an Available scripts section, and update all CLI paths in README and references skill-manager validate: 13/13 passed, 0 warnings. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
20 lines
527 B
Bash
20 lines
527 B
Bash
#!/bin/bash
|
|
# -------------------------------------------------------------------------------------
|
|
#
|
|
#
|
|
#
|
|
# -------------------------------------------------------------------------------------
|
|
|
|
_base_mask() {
|
|
local original_value="$1"
|
|
local RET_VAL
|
|
if
|
|
[[ -n "$original_value" && ${#original_value} -gt 2 ]]
|
|
then
|
|
RET_VAL="${original_value:0:1}$(printf '%*s' $((${#original_value} - 2)) '' | tr ' ' '*')${original_value: -1}"
|
|
else
|
|
RET_VAL="$(printf '%*s' ${#original_value} '' | tr ' ' '*')"
|
|
fi
|
|
echo "${RET_VAL}"
|
|
}
|