@@ -4250,6 +4250,74 @@ def _add_work_queue_specs(specs: List[CommandSpec]) -> None:
42504250 "AC_shell_command" , "Shell" , "Shell Command" ,
42514251 fields = (FieldSpec ("shell_command" , FieldType .STRING ),),
42524252 ))
4253+ specs .append (CommandSpec (
4254+ "AC_open_path" , "Shell" , "Open File / URL (default app)" ,
4255+ fields = (
4256+ FieldSpec ("target" , FieldType .STRING ,
4257+ placeholder = "report.pdf or https://example.com" ),
4258+ FieldSpec ("verb" , FieldType .STRING , optional = True , default = "open" ,
4259+ placeholder = "open / print / edit" ),
4260+ ),
4261+ description = "Open a file with its default app, or a URL in the browser." ,
4262+ ))
4263+ specs .append (CommandSpec (
4264+ "AC_plan_open" , "Shell" , "Plan Open (classify)" ,
4265+ fields = (
4266+ FieldSpec ("target" , FieldType .STRING ),
4267+ FieldSpec ("verb" , FieldType .STRING , optional = True , default = "open" ),
4268+ ),
4269+ description = "Classify how a file/URL would be opened (pure, no launch)." ,
4270+ ))
4271+ specs .append (CommandSpec (
4272+ "AC_idle_seconds" , "Shell" , "Idle Seconds" ,
4273+ fields = (),
4274+ description = "Seconds since the last user keyboard / mouse input." ,
4275+ ))
4276+ specs .append (CommandSpec (
4277+ "AC_is_idle" , "Shell" , "Is User Idle" ,
4278+ fields = (
4279+ FieldSpec ("threshold" , FieldType .FLOAT , default = 300.0 ,
4280+ placeholder = "idle seconds threshold" ),
4281+ ),
4282+ description = "True if the user has been idle for >= threshold seconds." ,
4283+ ))
4284+ specs .append (CommandSpec (
4285+ "AC_plan_keep_awake" , "Shell" , "Plan Keep Awake" ,
4286+ fields = (
4287+ FieldSpec ("display" , FieldType .BOOL , optional = True , default = True ),
4288+ FieldSpec ("system" , FieldType .BOOL , optional = True , default = True ),
4289+ ),
4290+ description = "Describe a keep-awake request (pure, no OS call)." ,
4291+ ))
4292+ specs .append (CommandSpec (
4293+ "AC_keep_awake_on" , "Shell" , "Keep Machine Awake" ,
4294+ fields = (
4295+ FieldSpec ("display" , FieldType .BOOL , optional = True , default = True ),
4296+ FieldSpec ("system" , FieldType .BOOL , optional = True , default = True ),
4297+ ),
4298+ description = "Keep the machine awake until Allow Sleep is run." ,
4299+ ))
4300+ specs .append (CommandSpec (
4301+ "AC_allow_sleep" , "Shell" , "Allow Machine to Sleep" ,
4302+ fields = (),
4303+ description = "Release a previously-started keep-awake." ,
4304+ ))
4305+ specs .append (CommandSpec (
4306+ "AC_normalize_ext" , "Shell" , "Normalize Extension" ,
4307+ fields = (
4308+ FieldSpec ("target" , FieldType .STRING ,
4309+ placeholder = "report.pdf or .pdf or pdf" ),
4310+ ),
4311+ description = "Lowercased file extension (with dot) of a path / ext." ,
4312+ ))
4313+ specs .append (CommandSpec (
4314+ "AC_file_association" , "Shell" , "File Association (default app)" ,
4315+ fields = (
4316+ FieldSpec ("target" , FieldType .STRING ,
4317+ placeholder = "report.pdf or .pdf" ),
4318+ ),
4319+ description = "Which app is registered to open a file type (Windows)." ,
4320+ ))
42534321 specs .append (CommandSpec (
42544322 "AC_take_golden" , "Report" , "Capture Golden Image" ,
42554323 fields = (FieldSpec ("path" , FieldType .FILE_PATH ),),
0 commit comments