@slatesvideo/shared 0.7.15 → 0.7.17

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/dist/auth.js CHANGED
@@ -44,9 +44,11 @@ export function readDefaultProjectId() {
44
44
  return readConnection().defaultProjectId ?? null;
45
45
  }
46
46
  /**
47
- * Windows: strip what `path` inherits and leave the current user the only entry. The profile folder's
48
- * ACL is no wall: Codex's sandbox group can read it. Full paths, because Git for Windows puts its own
49
- * `whoami` first on PATH. A failure warns and carries on, so a locked-down machine can still sign in.
47
+ * Windows: leave the current user the only entry on `path`. `/reset` first, because `/inheritance:r`
48
+ * keeps a file's own entries, and a file made in a folder that hands nothing down starts with explicit
49
+ * SYSTEM and Administrators ones. The profile folder's ACL is no wall: Codex's sandbox group can read
50
+ * it. Full paths, because Git for Windows puts its own `whoami` first on PATH. A failure warns and
51
+ * carries on, so a locked-down machine can still sign in.
50
52
  */
51
53
  function restrictToCurrentUser(path) {
52
54
  const system32 = join(process.env.SystemRoot ?? 'C:\\Windows', 'System32');
@@ -55,6 +57,7 @@ function restrictToCurrentUser(path) {
55
57
  const sid = /"(S-1-[\d-]+)"/.exec(whoami)?.[1];
56
58
  if (!sid)
57
59
  throw new Error(`no SID in ${whoami}`);
60
+ execFileSync(join(system32, 'icacls.exe'), [path, '/reset'], { stdio: 'ignore', windowsHide: true });
58
61
  execFileSync(join(system32, 'icacls.exe'), [path, '/inheritance:r', '/grant:r', `*${sid}:F`], { stdio: 'ignore', windowsHide: true });
59
62
  }
60
63
  catch (error) {
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { ALL_OPERATIONS, VIDEO_MODELS, AUDIO_MODELS, IMAGE_MODELS, defaultContex
11
11
  export { CONFIRM_CREDITS, DEVIATION_FACTOR, WORKING_METHOD_TOPIC } from './operations/index.js';
12
12
  export { toolDefinitions, toolDefinition, groupFor, tierFor, OPERATION_GROUPS, GROUP_SUMMARY, STARTUP_TOOL_IDS, type ToolDefinition, } from './operations/index.js';
13
13
  export { MODEL_FACTS, getModelFact, multimodalRefSummary, multimodalRefModels, describeRouting, SEEDANCE_TASK_INTENT_WORDS, seedanceTaskIntentWords, type ModelFact, } from './prompts/model-facts.js';
14
- export { MODEL_CAPABILITIES, ALL_ASPECT_RATIOS, AGENT_ROUTE_PROVIDER, getModelCapability, aspectRatiosFor, videoResolutionsFor, defaultVideoResolutionFor, durationsFor, durationValuesFor, aspectRatioUnion, videoResolutionUnion, durationBounds, checkAspectRatio, checkVideoResolution, checkDuration, describeAspectRatios, describeVideoResolutions, describeDurations, describeReferenceImageCaps, type AspectRatio, type VideoResolution, type ModelCapability, type DurationCapability, type VideoResolutionCapability, } from './prompts/model-capabilities.js';
14
+ export { MODEL_CAPABILITIES, ALL_ASPECT_RATIOS, AGENT_ROUTE_PROVIDER, getModelCapability, aspectRatiosFor, videoResolutionsFor, defaultVideoResolutionFor, durationsFor, durationValuesFor, aspectRatioUnion, videoResolutionUnion, durationBounds, checkAspectRatio, checkVideoResolution, checkDuration, checkReferenceShape, maxReferenceVideosFor, lastFrameMaxSecondsFor, describeAspectRatios, describeVideoResolutions, describeDurations, describeReferenceImageCaps, type AspectRatio, type VideoResolution, type ModelCapability, type DurationCapability, type VideoResolutionCapability, } from './prompts/model-capabilities.js';
15
15
  export { buildAgentDoctrine, buildMcpInstructions, ROUTER_NOTICE, type AgentSurface } from './prompts/agent-doctrine.js';
16
16
  export { BRAIN_ROUTER, DIRECTOR_CARD, MY_BRAIN_TOPIC, PLAYBOOKS } from './prompts/brain.js';
17
17
  export { BANNED_PROMPT_TOKENS, describeBannedTokens, findBannedTokens, bannedTokenWarning, refusableBannedTokens, bannedTokensForSkill, describeBannedTokensForSkill, type BannedToken, type BannedTokenScope, type BannedTokenCondition, } from './prompts/banned-tokens.js';
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ SEEDANCE_TASK_INTENT_WORDS, seedanceTaskIntentWords, } from './prompts/model-fac
32
32
  // `slate/src/shared/pricing.ts` spreads these into every MODEL_REGISTRY entry;
33
33
  // the op surface validates against them and GENERATES its `.describe()` prose
34
34
  // from them. Never hand-type a capability fact an LLM will read.
35
- export { MODEL_CAPABILITIES, ALL_ASPECT_RATIOS, AGENT_ROUTE_PROVIDER, getModelCapability, aspectRatiosFor, videoResolutionsFor, defaultVideoResolutionFor, durationsFor, durationValuesFor, aspectRatioUnion, videoResolutionUnion, durationBounds, checkAspectRatio, checkVideoResolution, checkDuration, describeAspectRatios, describeVideoResolutions, describeDurations, describeReferenceImageCaps, } from './prompts/model-capabilities.js';
35
+ export { MODEL_CAPABILITIES, ALL_ASPECT_RATIOS, AGENT_ROUTE_PROVIDER, getModelCapability, aspectRatiosFor, videoResolutionsFor, defaultVideoResolutionFor, durationsFor, durationValuesFor, aspectRatioUnion, videoResolutionUnion, durationBounds, checkAspectRatio, checkVideoResolution, checkDuration, checkReferenceShape, maxReferenceVideosFor, lastFrameMaxSecondsFor, describeAspectRatios, describeVideoResolutions, describeDurations, describeReferenceImageCaps, } from './prompts/model-capabilities.js';
36
36
  // 🚨 AGENT GUIDANCE SSOT — the working method, the hard rules and the guide
37
37
  // index, as ONE string both surfaces consume: the desktop Studio Agent's whole
38
38
  // system prompt (slate/src/main/studio-agent/context.ts) and the MCP server's