jobscout 1.4.0 → 1.4.1
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/bin/cli.mjs +14 -25
- package/package.json +1 -1
package/bin/cli.mjs
CHANGED
|
@@ -130,48 +130,37 @@ function setupClaude() {
|
|
|
130
130
|
log(` ${DIM}Không cần /plugin install — Claude Code tự nhận .claude/${RESET}`);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
+
// Codex chỉ auto-discover skills trong skills/ — nên flatten mọi thứ (kể cả
|
|
134
|
+
// orchestrator find-jobs và 2 "agent" job-collector/job-matcher) thành skills.
|
|
135
|
+
const CODEX_SKILLS = [
|
|
136
|
+
"find-jobs",
|
|
137
|
+
"job-collector",
|
|
138
|
+
"job-matcher",
|
|
139
|
+
...CLAUDE_SKILLS
|
|
140
|
+
];
|
|
141
|
+
|
|
133
142
|
function setupCodex() {
|
|
134
143
|
heading("Codex CLI");
|
|
135
144
|
|
|
136
145
|
const dotAgents = join(CWD, ".agents");
|
|
137
|
-
const agentsDest = join(dotAgents, "agents");
|
|
138
|
-
const commandsDest = join(dotAgents, "commands");
|
|
139
146
|
const skillsDest = join(dotAgents, "skills");
|
|
140
147
|
const schemasDest = join(dotAgents, "schemas");
|
|
141
148
|
|
|
142
|
-
[
|
|
149
|
+
[skillsDest, schemasDest].forEach(ensureDir);
|
|
143
150
|
|
|
144
|
-
// Schemas.
|
|
151
|
+
// Schemas — file path để skill đọc runtime (Codex không auto-discover, chỉ đọc).
|
|
145
152
|
copyDir(join(PLUGIN_SRC, "schemas"), schemasDest);
|
|
146
153
|
ok("Copy .agents/schemas/ (profile, job, match)");
|
|
147
154
|
|
|
148
|
-
//
|
|
149
|
-
|
|
150
|
-
copyFileRewrite(
|
|
151
|
-
join(PLUGIN_SRC, "agents", `${name}.md`),
|
|
152
|
-
join(agentsDest, `${name}.md`),
|
|
153
|
-
".agents/schemas/"
|
|
154
|
-
);
|
|
155
|
-
});
|
|
156
|
-
ok("Copy .agents/agents/ (job-collector, job-matcher)");
|
|
157
|
-
|
|
158
|
-
// Command.
|
|
159
|
-
copyFileRewrite(
|
|
160
|
-
join(PLUGIN_SRC, "commands", "find-jobs.md"),
|
|
161
|
-
join(commandsDest, "find-jobs.md"),
|
|
162
|
-
".agents/schemas/"
|
|
163
|
-
);
|
|
164
|
-
ok("Copy .agents/commands/find-jobs.md");
|
|
165
|
-
|
|
166
|
-
// Skills.
|
|
167
|
-
CLAUDE_SKILLS.forEach((name) => {
|
|
155
|
+
// Toàn bộ skills (gồm orchestrator + collector + matcher).
|
|
156
|
+
CODEX_SKILLS.forEach((name) => {
|
|
168
157
|
copyFileRewrite(
|
|
169
158
|
join(PLUGIN_SRC, "skills", name, "SKILL.md"),
|
|
170
159
|
join(skillsDest, name, "SKILL.md"),
|
|
171
160
|
".agents/schemas/"
|
|
172
161
|
);
|
|
173
162
|
});
|
|
174
|
-
ok(`Copy .agents/skills/ (${
|
|
163
|
+
ok(`Copy .agents/skills/ (${CODEX_SKILLS.length} skills)`);
|
|
175
164
|
|
|
176
165
|
log("");
|
|
177
166
|
info("Xong! Chạy Codex trong thư mục này:");
|
package/package.json
CHANGED