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
233 changes: 233 additions & 0 deletions cli-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17724,6 +17724,239 @@
"sourceFile": "mubu/search.js",
"navigateBefore": "https://mubu.com"
},
{
"site": "naukri",
"name": "headline-set",
"description": "Update the logged-in Naukri resume headline and verify it was saved",
"access": "write",
"domain": "www.naukri.com",
"strategy": "cookie",
"browser": true,
"args": [
{
"name": "text",
"type": "string",
"required": true,
"help": "New resume headline text"
}
],
"columns": [
"status",
"resume_headline"
],
"type": "js",
"modulePath": "naukri/headline-set.js",
"sourceFile": "naukri/headline-set.js",
"navigateBefore": false
},
{
"site": "naukri",
"name": "key-skills-list",
"description": "List current logged-in Naukri key skill chips",
"access": "read",
"domain": "www.naukri.com",
"strategy": "cookie",
"browser": true,
"args": [],
"columns": [
"rank",
"skill"
],
"type": "js",
"modulePath": "naukri/key-skills-list.js",
"sourceFile": "naukri/key-skills-list.js",
"navigateBefore": false
},
{
"site": "naukri",
"name": "key-skills-resolve",
"description": "Resolve desired key skills against Naukri autocomplete labels without saving changes",
"access": "read",
"domain": "www.naukri.com",
"strategy": "cookie",
"browser": true,
"args": [
{
"name": "skills",
"type": "str",
"required": true,
"help": "Comma, semicolon, or newline separated desired skill labels"
},
{
"name": "limit",
"type": "int",
"default": 8,
"required": false,
"help": "Max suggestions to inspect per skill (1-15)"
}
],
"columns": [
"input",
"resolved",
"status",
"confidence",
"alternatives"
],
"type": "js",
"modulePath": "naukri/key-skills-resolve.js",
"sourceFile": "naukri/key-skills-resolve.js",
"navigateBefore": false
},
{
"site": "naukri",
"name": "key-skills-set",
"description": "Replace Naukri key skills and verify the final saved chips",
"access": "write",
"domain": "www.naukri.com",
"strategy": "cookie",
"browser": true,
"args": [
{
"name": "skills",
"type": "str",
"required": true,
"help": "Comma, semicolon, or newline separated final Naukri key skill labels"
}
],
"columns": [
"status",
"skills",
"missing",
"extra"
],
"type": "js",
"modulePath": "naukri/key-skills-set.js",
"sourceFile": "naukri/key-skills-set.js",
"navigateBefore": false
},
{
"site": "naukri",
"name": "key-skills-suggest",
"description": "Inspect Naukri key-skill autocomplete suggestions without saving changes",
"access": "read",
"domain": "www.naukri.com",
"strategy": "cookie",
"browser": true,
"args": [
{
"name": "query",
"type": "str",
"required": true,
"help": "Skill query to type into the Naukri key-skill autocomplete"
},
{
"name": "limit",
"type": "int",
"default": 10,
"required": false,
"help": "Max suggestions to return (1-25)"
}
],
"columns": [
"rank",
"suggestion",
"source",
"endpoint"
],
"type": "js",
"modulePath": "naukri/key-skills-suggest.js",
"sourceFile": "naukri/key-skills-suggest.js",
"navigateBefore": false
},
{
"site": "naukri",
"name": "profile-read",
"description": "Read the logged-in Naukri jobseeker profile sections from Mynaukri",
"access": "read",
"domain": "www.naukri.com",
"strategy": "cookie",
"browser": true,
"args": [],
"columns": [
"profile_url",
"name",
"current_title",
"current_company",
"profile_last_updated",
"profile_completion",
"photo_status",
"location",
"total_experience",
"current_salary",
"phone",
"email",
"notice_status",
"resume_file",
"resume_uploaded_on",
"resume_headline",
"key_skills",
"employment",
"education",
"it_skills",
"projects",
"profile_summary",
"accomplishments",
"career_profile",
"personal_details",
"diversity_inclusion"
],
"type": "js",
"modulePath": "naukri/profile-read.js",
"sourceFile": "naukri/profile-read.js",
"navigateBefore": false
},
{
"site": "naukri",
"name": "resume-upload",
"description": "Upload a resume file to the logged-in Naukri profile and verify the uploaded filename",
"access": "write",
"domain": "www.naukri.com",
"strategy": "cookie",
"browser": true,
"args": [
{
"name": "file",
"type": "str",
"required": true,
"positional": true,
"help": "Resume file path (doc, docx, rtf, pdf; max 2 MB)"
}
],
"columns": [
"status",
"resume_file",
"resume_uploaded_on"
],
"type": "js",
"modulePath": "naukri/resume-upload.js",
"sourceFile": "naukri/resume-upload.js",
"navigateBefore": false
},
{
"site": "naukri",
"name": "summary-set",
"description": "Update the logged-in Naukri profile summary and verify it was saved",
"access": "write",
"domain": "www.naukri.com",
"strategy": "cookie",
"browser": true,
"args": [
{
"name": "text",
"type": "string",
"required": true,
"help": "New profile summary text"
}
],
"columns": [
"status",
"profile_summary"
],
"type": "js",
"modulePath": "naukri/summary-set.js",
"sourceFile": "naukri/summary-set.js",
"navigateBefore": false
},
{
"site": "notebooklm",
"name": "add-source",
Expand Down
28 changes: 28 additions & 0 deletions clis/naukri/headline-set.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { cli, Strategy } from '@jackwener/opencli/registry';
import { requireText, setTextSection } from './shared.js';

const MAX_HEADLINE_LENGTH = 250;

cli({
site: 'naukri',
name: 'headline-set',
access: 'write',
description: 'Update the logged-in Naukri resume headline and verify it was saved',
domain: 'www.naukri.com',
strategy: Strategy.COOKIE,
browser: true,
navigateBefore: false,
args: [
{ name: 'text', type: 'string', required: true, help: 'New resume headline text' },
],
columns: ['status', 'resume_headline'],
func: async (page, kwargs) => {
const text = requireText(kwargs.text, 'text', MAX_HEADLINE_LENGTH);
const result = await setTextSection(page, 'Resume headline', text, 'resume_headline');
return [{ status: 'updated', resume_headline: result.actual }];
},
});

export const __test__ = {
MAX_HEADLINE_LENGTH,
};
21 changes: 21 additions & 0 deletions clis/naukri/key-skills-list.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { cli, Strategy } from '@jackwener/opencli/registry';
import { CommandExecutionError } from '@jackwener/opencli/errors';
import { readKeySkills } from './shared.js';

cli({
site: 'naukri',
name: 'key-skills-list',
access: 'read',
description: 'List current logged-in Naukri key skill chips',
domain: 'www.naukri.com',
strategy: Strategy.COOKIE,
browser: true,
navigateBefore: false,
args: [],
columns: ['rank', 'skill'],
func: async (page) => {
if (!page) throw new CommandExecutionError('Browser session required for naukri key-skills-list');
const skills = await readKeySkills(page);
return skills.map((skill, index) => ({ rank: index + 1, skill }));
},
});
Loading
Loading