@gooseworks/staff-cli 0.1.4 → 0.1.5
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/goose-staff.mjs +8 -9
- package/package.json +3 -3
package/goose-staff.mjs
CHANGED
|
@@ -17548,7 +17548,7 @@ var init_data_files = __esmMin((() => {
|
|
|
17548
17548
|
asOf: day$1.nullable(),
|
|
17549
17549
|
label: string().nullable(),
|
|
17550
17550
|
rowIs: string().nullable(),
|
|
17551
|
-
|
|
17551
|
+
sheets: array(dataFileSheet).describe("Each described sheet, in the file's order: its name, header row and columns, the names data_file_read takes. Empty when not described."),
|
|
17552
17552
|
isLabelChanged: boolean().describe("true when this file's label differs from the one before it in its folder, by days.")
|
|
17553
17553
|
});
|
|
17554
17554
|
dataFilesFound = object({
|
|
@@ -22214,8 +22214,8 @@ var init_staff_agent = __esmMin((() => {
|
|
|
22214
22214
|
getDataFileLinks: staffRead().input(brandInput.extend({ fileIds: array(uuid()).min(1).max(dataFileLinkLimit).refine(hasEachOnce, "Name each file once.").describe(`The files to download, by the fileId data_files_find gives each, at most ${dataFileLinkLimit}.`) })).output(object({ links: array(dataFileLink).describe("One download link per file. Each works for 1 hour for anyone holding it, so never share or print it.") })),
|
|
22215
22215
|
readDataFileTable: staffRead().input(brandInput.extend({
|
|
22216
22216
|
fileId: uuid().describe("The file, by the fileId data_files_find gives it."),
|
|
22217
|
-
sheet: string().min(1).nullable().describe("The sheet, by
|
|
22218
|
-
columns: array(string().min(1)).min(1).max(50).refine(hasEachOnce, "Name each column once.").describe(`The columns to read, by the names
|
|
22217
|
+
sheet: string().min(1).nullable().describe("The sheet, by a name in the file's sheets from data_files_find. null for the first one."),
|
|
22218
|
+
columns: array(string().min(1)).min(1).max(50).refine(hasEachOnce, "Name each column once.").describe(`The columns to read, by the names data_files_find lists for that sheet, at most 50. A column with isCustomerDetail true is refused.`)
|
|
22219
22219
|
})).output(dataFileTable.describe(`The asked columns of every row under the sheet's header, at most ${dataFileTableRowLimit.toLocaleString("en-US")} rows.`)),
|
|
22220
22220
|
createDataFolder: staffChange().input(brandInput.extend({
|
|
22221
22221
|
name: dataFolderInput.shape.name.describe("The folder's name, like Ulta weekly sales. Each folder in a brand has its own name, capitals ignored."),
|
|
@@ -22685,7 +22685,7 @@ Use the provider's normal paths, with the ids brand_get lists:
|
|
|
22685
22685
|
- onetext: GET /api/.... POST /api/reports/....
|
|
22686
22686
|
- amazon_seller: GET any Selling Partner path. POST reports, Data Kiosk queries, pricing, fees, replenishment and shipping-rate reads.
|
|
22687
22687
|
- tiktok_windsor: GET /tiktok/fields for the public field catalogue, without query parameters. GET /tiktok for Windsor report rows, not native TikTok API responses. Set fields as comma-separated public field IDs including source and account_id; add campaign_id/campaign, ad_group_id/ad_group_name or ad_id/ad_name, plus spend, impressions, clicks, conversions or results. Use date_from and date_to (YYYY-MM-DD) or date_preset, and _max_rows from 1 to 5000. Optional filter is a Windsor JSON array such as [["campaign_id","eq","123"]]. Goose fixes the company key, saved advertiser IDs and JSON renderer, and checks each returned row. Other parameters and paths, including /all, /options, native paths, exports and async jobs, are refused. Reports may be cached; data_fetched_at is the upstream fetch-start time and selecting it disables Windsor aggregation. Conversion/results describe the campaign objective, not necessarily purchases. _max_rows caps the result; it is not a cursor.
|
|
22688
|
-
- tiktok_shop_windsor: GET /tiktok_shop/fields for the public field catalogue, without query parameters. GET /tiktok_shop for TikTok Shop report rows. Set fields as comma-separated public field IDs including source and account_id, like date, shop_performance_gmv_amount, shop_performance_orders and shop_performance_buyers. Use date_from and date_to (YYYY-MM-DD) or date_preset, _max_rows from 1 to 5000, and an optional Windsor JSON filter. Other paths and parameters are refused.
|
|
22688
|
+
- tiktok_shop_windsor: GET /tiktok_shop/fields for the public field catalogue, without query parameters. GET /tiktok_shop for TikTok Shop report rows. Set fields as comma-separated public field IDs including source and account_id, like date, shop_performance_gmv_amount, shop_performance_orders and shop_performance_buyers. Use date_from and date_to (YYYY-MM-DD) or date_preset, _max_rows from 1 to 5000, and an optional Windsor JSON filter. Longer reads often time out: keep each read to 31 days or less, splitting a longer range into several such reads, and read any statement_transaction_order_transaction_sku_transactions_* field over 7 days or less. Other paths and parameters are refused.
|
|
22689
22689
|
- amazon_ads_windsor: GET /amazon_ads/fields for public field discovery without query parameters; GET /amazon_ads for Amazon Ads report rows. Include source and account_id in fields. Use current public field IDs, such as sponsored_products_campaign__spend, sponsored_products_campaign__impressions and sponsored_products_campaign__clicks with date and sponsored_products_campaign__campaignid. Discover fields before selecting other ad products; unprefixed spend, impressions and clicks are not in the current field catalogue. Use date_from/date_to or date_preset, _max_rows 1–5000 and optional documented JSON filter. Goose fixes the company key, saved Amazon Ads account IDs and JSON renderer and checks every returned row. Amazon Selling Partner paths, account options, writes, exports, async jobs and other sources are refused. Reports may be cached. Background syncing is off.
|
|
22690
22690
|
- amazon_windsor: GET /amazon_sp with fields, dates and every other read parameter, and /amazon_sp/fields for field names. Goose fills in the key and the brand's accounts.
|
|
22691
22691
|
Windsor builds a report it hasn't stored yet from Amazon, Amazon Ads or TikTok itself, which can take minutes, and serves it in a second or two once built. Reuse one set of fields, dates and filter across your questions, since each new set starts a new build, and don't send the same read twice at once. When Goose says Windsor is still building, do other reads and ask again about 2 minutes later with exactly the same path and query.`,
|
|
@@ -22856,7 +22856,7 @@ Windsor builds a report it hasn't stored yet from Amazon, Amazon Ads or TikTok i
|
|
|
22856
22856
|
dataFileRead = defineTool({
|
|
22857
22857
|
name: "data_file_read",
|
|
22858
22858
|
title: "Read a data file's rows",
|
|
22859
|
-
description: "Read the columns you name from every row of one data file's sheet, by the fileId
|
|
22859
|
+
description: "Read the columns you name from every row of one data file's sheet, by the fileId, sheet name and column names data_files_find lists in the file's sheets. A workbook can hold several sheets, like sales on one and stock on another. Each row carries its row number, isTotal for a total or subtotal row, and each cell as the file stores it, null when empty: an Excel percent shown as 20% comes as 0.2, and a number shown with leading zeros loses them. Name only the columns your numbers need. A column with isCustomerDetail true is refused. The CLI saves the rows to a file and prints only its path and row count: count them with jq, drop isTotal rows before adding, clean money and percent text, and never print rows. A file over 20,000 rows is refused: download it instead. Use it where no script can run, like a daily watch or fix check run.",
|
|
22860
22860
|
effect: "read",
|
|
22861
22861
|
input: getCallInput(calls$5.readDataFileTable),
|
|
22862
22862
|
run: (backend, input) => backend.readDataFileTable(input)
|
|
@@ -44481,7 +44481,7 @@ function checkContents(page) {
|
|
|
44481
44481
|
function listLinks(page) {
|
|
44482
44482
|
return page.body.flatMap((text, index) => {
|
|
44483
44483
|
if (page.isCode[index] === true) return [];
|
|
44484
|
-
return [...text.replaceAll(codeSpanPattern$1, "").matchAll(linkPattern$1)].map((found) => found[1]).filter((target) => target !== void 0).filter((target) => !webAddressPattern.test(target)
|
|
44484
|
+
return [...text.replaceAll(codeSpanPattern$1, "").matchAll(linkPattern$1)].map((found) => found[1]).filter((target) => target !== void 0).filter((target) => !webAddressPattern.test(target)).map((target) => ({
|
|
44485
44485
|
line: page.firstLine + index,
|
|
44486
44486
|
target
|
|
44487
44487
|
}));
|
|
@@ -44585,7 +44585,7 @@ function run$17() {
|
|
|
44585
44585
|
console.log(`All ${String(skills.folders.length)} skills name their folder, describe themselves and keep to ${String(skillWordLimit)} words. No paragraph or list item in them or in the ${String(agentPaths.length)} agent files runs over ${String(lineWordLimit)} words. Each of the ${String(longReferences.length)} reference files over ${String(contentsLineLimit)} lines, of ${String(references.length)}, links every section in its contents. All ${String(linkCount)} links to files and headings resolve.`);
|
|
44586
44586
|
}
|
|
44587
44587
|
}
|
|
44588
|
-
var stackRoot, stackMark$1, skillsFolder, agentsFolder, skillWordLimit, lineWordLimit, contentsLineLimit, contentsTitle, contentsHeadingWithin,
|
|
44588
|
+
var stackRoot, stackMark$1, skillsFolder, agentsFolder, skillWordLimit, lineWordLimit, contentsLineLimit, contentsTitle, contentsHeadingWithin, fenceOpenPattern, headingPattern, listMarkerPattern, quoteMarkerPattern, codeSpanPattern$1, linkPattern$1, webAddressPattern, pages;
|
|
44589
44589
|
var init_check_skills = __esmMin((() => {
|
|
44590
44590
|
init_stack();
|
|
44591
44591
|
stackRoot = readStackFolder();
|
|
@@ -44597,7 +44597,6 @@ var init_check_skills = __esmMin((() => {
|
|
|
44597
44597
|
contentsLineLimit = 100;
|
|
44598
44598
|
contentsTitle = "Contents";
|
|
44599
44599
|
contentsHeadingWithin = 15;
|
|
44600
|
-
clientMemoryFolder = "proactive-clients/";
|
|
44601
44600
|
fenceOpenPattern = /^\s*(`{3,}|~{3,})(.*)$/;
|
|
44602
44601
|
headingPattern = /^ {0,3}(#{1,6})\s+(.+?)\s*$/;
|
|
44603
44602
|
listMarkerPattern = /^\s*(?:[-*+]|\d+[.)])(?:\s|$)/;
|
|
@@ -46677,7 +46676,7 @@ function readArguments$6(values) {
|
|
|
46677
46676
|
const edits = Number(get("--edits"));
|
|
46678
46677
|
if (!Number.isFinite(budgetUsd) || budgetUsd <= 0) throw new Error("--budget-usd must be a positive number of dollars.");
|
|
46679
46678
|
if (!Number.isInteger(edits) || edits < 1 || edits > 10) throw new Error("--edits must be a whole number from 1 to 10.");
|
|
46680
|
-
if (!clientFactsModes.includes(get("--client-facts"))) throw new Error("--client-facts must be skip or list: the dream can't reach
|
|
46679
|
+
if (!clientFactsModes.includes(get("--client-facts"))) throw new Error("--client-facts must be skip or list: the dream can't reach a brand's wiki.");
|
|
46681
46680
|
const claude = get("--claude");
|
|
46682
46681
|
if (!isAbsolute(claude) || !existsSync(claude)) throw new Error(`--claude must be the full path of the Claude Code to run, and ${claude} isn't one. A scheduled run can find a different claude on its path than your terminal does.`);
|
|
46683
46682
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooseworks/staff-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "goose-staff: Goose staff read and save a brand's information in Goose.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"access": "public",
|
|
26
26
|
"provenance": false
|
|
27
27
|
},
|
|
28
|
-
"bundleSha256": "
|
|
29
|
-
"sourceCommit": "
|
|
28
|
+
"bundleSha256": "204f0d688448ac29211b744e75655f8f119c10692c3800240edcdfd285b881e0",
|
|
29
|
+
"sourceCommit": "8b3f85359809ebb85ee5e9c2f2b2b4882dae6518"
|
|
30
30
|
}
|