@togglhq/cli 1.13.194 → 1.13.196
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/build/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-
|
|
2
|
+
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-CfcnxWLL.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
package/build/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-CfcnxWLL.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -13679,7 +13679,7 @@ async function runSkillSetup(options) {
|
|
|
13679
13679
|
});
|
|
13680
13680
|
}
|
|
13681
13681
|
//#endregion
|
|
13682
|
-
//#region ../operations/build/validation-
|
|
13682
|
+
//#region ../operations/build/validation-DbwJkkEI.js
|
|
13683
13683
|
const optionalNumber = /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2());
|
|
13684
13684
|
const perPageField = (max) => /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ integer(), /* @__PURE__ */ minValue$1(1), /* @__PURE__ */ maxValue$1(max), /* @__PURE__ */ description$1(`Results per page (1-${max})`)));
|
|
13685
13685
|
const perPageSchema = perPageField(100);
|
|
@@ -13918,6 +13918,12 @@ const RATE_CONFLICT_CHECK = {
|
|
|
13918
13918
|
destructive: false
|
|
13919
13919
|
};
|
|
13920
13920
|
const RATE_SCHEDULE_GUIDANCE = "hourly_rate is in the currency's smallest unit, so it depends on the currency: two-decimal currencies like USD/EUR use cents (5000 = 50.00), zero-decimal ones like JPY/KRW use whole units (5000 = 5000), three-decimal ones like KWD/BHD use thousandths. Reads return the same unit. Omit end_date for an open-ended schedule; when set it must be on or after start_date.";
|
|
13921
|
+
const RATE_SCHEDULE_ACTION = /^focus\.rates\.(?:billable|labor)-(?:bulk-)?(?:check-|upsert-)/;
|
|
13922
|
+
const SYNTHESIZED_RATE_CHECK = {
|
|
13923
|
+
...RATE_CONFLICT_CHECK,
|
|
13924
|
+
agentGuidance: RATE_SCHEDULE_GUIDANCE
|
|
13925
|
+
};
|
|
13926
|
+
const SYNTHESIZED_RATE_WRITE = { agentGuidance: RATE_SCHEDULE_GUIDANCE };
|
|
13921
13927
|
const rateOverrides = {
|
|
13922
13928
|
"focus.rates.create-project": { mcp: { entityTool: void 0 } },
|
|
13923
13929
|
"focus.rates.billable-check-project-billable-rate-conflicts": {
|
|
@@ -13961,6 +13967,12 @@ const rateOverrides = {
|
|
|
13961
13967
|
"focus.rates.labor-upsert-workspace-labor-cost-rate": { agentGuidance: RATE_SCHEDULE_GUIDANCE },
|
|
13962
13968
|
"focus.rates.labor-upsert-workspace-user-labor-cost-rate": { agentGuidance: RATE_SCHEDULE_GUIDANCE }
|
|
13963
13969
|
};
|
|
13970
|
+
/** Explicit overrides win. New check/upsert actions from codegen get the same contract. */
|
|
13971
|
+
function rateOverrideFor(id) {
|
|
13972
|
+
if (Object.prototype.hasOwnProperty.call(rateOverrides, id)) return rateOverrides[id];
|
|
13973
|
+
if (!RATE_SCHEDULE_ACTION.test(id)) return void 0;
|
|
13974
|
+
return id.includes("-check-") ? SYNTHESIZED_RATE_CHECK : SYNTHESIZED_RATE_WRITE;
|
|
13975
|
+
}
|
|
13964
13976
|
const TASK_DATES_RULE = "Send start_date and end_date together, with end_date on or after start_date";
|
|
13965
13977
|
const TASK_DATES_CREATE_GUIDANCE = `${TASK_DATES_RULE}; for a single due date, send both as that day.`;
|
|
13966
13978
|
const taskOverrides = {
|
|
@@ -30968,7 +30980,7 @@ const focusOperationOverrides = {
|
|
|
30968
30980
|
...customFieldOverrides
|
|
30969
30981
|
};
|
|
30970
30982
|
function applyOverrides(operation) {
|
|
30971
|
-
const override = focusOperationOverrides[operation.id];
|
|
30983
|
+
const override = rateOverrideFor(operation.id) ?? focusOperationOverrides[operation.id];
|
|
30972
30984
|
if (!override) return operation;
|
|
30973
30985
|
return {
|
|
30974
30986
|
...operation,
|
|
@@ -32660,4 +32672,4 @@ Common commands:
|
|
|
32660
32672
|
//#endregion
|
|
32661
32673
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
32662
32674
|
|
|
32663
|
-
//# sourceMappingURL=program-
|
|
32675
|
+
//# sourceMappingURL=program-CfcnxWLL.js.map
|
package/build/program.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-CfcnxWLL.js";
|
|
2
2
|
export { createProgram };
|